Changeset 5d28d6b in sasview


Ignore:
Timestamp:
Sep 8, 2018 4:47:34 PM (2 weeks ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Pr_fixes, ESS_GUI_iss1052, ESS_GUI_iss879
Children:
61f0c75
Parents:
5b144c6
Message:

Switch to the theory tab when a new theory is being generated. SASVIEW-1045

Location:
src/sas/qtgui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    r5b144c6 r5d28d6b  
    9898        self.communicator.maskEditorSignal.connect(self.showEditDataMask) 
    9999        self.communicator.extMaskEditorSignal.connect(self.extShowEditDataMask) 
     100        self.communicator.changeDataExplorerTabSignal.connect(self.changeTabs) 
    100101 
    101102        self.cbgraph.editTextChanged.connect(self.enableGraphCombo) 
     
    139140        else: 
    140141            self.current_view = self.freezeView 
     142 
     143    def changeTabs(self, tab=0): 
     144        """ 
     145        Switch tabs of the data explorer 
     146        0: data tab 
     147        1: theory tab 
     148        """ 
     149        assert(tab in [0,1]) 
     150        self.setCurrentIndex(tab) 
    141151 
    142152    def displayHelp(self): 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r5b144c6 r5d28d6b  
    22872287            fitted_data.symbol = "Line" 
    22882288            self.createTheoryIndex(fitted_data) 
     2289            # Switch to the theory tab for user's glee 
     2290            self.communicate.changeDataExplorerTabSignal.emit(1) 
    22892291 
    22902292    def updateModelIndex(self, fitted_data): 
  • src/sas/qtgui/Utilities/GuiUtils.py

    r5b144c6 r5d28d6b  
    277277    # Notify about new categories/models from category manager 
    278278    updateModelCategoriesSignal = QtCore.pyqtSignal() 
     279 
     280    # Tell the data explorer to switch tabs 
     281    changeDataExplorerTabSignal = QtCore.pyqtSignal(int) 
    279282 
    280283def updateModelItemWithPlot(item, update_data, name=""): 
Note: See TracChangeset for help on using the changeset viewer.