Changeset efaf022 in sasview for src/sas/qtgui/MainWindow/GuiManager.py
- Timestamp:
- Oct 10, 2018 9:25:21 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- a4ceeb7
- Parents:
- f20ea3f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
re258c53 refaf022 136 136 self.logDockWidget = QDockWidget("Log Explorer", self._workspace) 137 137 self.logDockWidget.setObjectName("LogDockWidget") 138 self.logDockWidget.visibilityChanged.connect(self.updateLogContextMenus) 139 138 140 139 141 self.listWidget = QTextBrowser() … … 178 180 logger.error("%s: could not load SasView models") 179 181 logger.error(traceback.format_exc()) 182 183 def updateLogContextMenus(self, visible=False): 184 """ 185 Modify the View/Data Explorer menu item text on widget visibility 186 """ 187 if visible: 188 self._workspace.actionHide_LogExplorer.setText("Hide Log Explorer") 189 else: 190 self._workspace.actionHide_LogExplorer.setText("Show Log Explorer") 180 191 181 192 def updateContextMenus(self, visible=False): … … 433 444 """ 434 445 # disable not yet fully implemented actions 435 self._workspace.actionOpen_Analysis.set Enabled(False)436 self._workspace.actionUndo.set Enabled(False)437 self._workspace.actionRedo.set Enabled(False)438 self._workspace.actionReset.set Enabled(False)439 self._workspace.actionStartup_Settings.set Enabled(False)440 self._workspace.actionImage_Viewer.set Enabled(False)441 self._workspace.actionCombine_Batch_Fit.set Enabled(False)442 self._workspace.actionFit_Results.set Enabled(False)446 self._workspace.actionOpen_Analysis.setVisible(False) 447 self._workspace.actionUndo.setVisible(False) 448 self._workspace.actionRedo.setVisible(False) 449 self._workspace.actionReset.setVisible(False) 450 self._workspace.actionStartup_Settings.setVisible(False) 451 self._workspace.actionImage_Viewer.setVisible(False) 452 self._workspace.actionCombine_Batch_Fit.setVisible(False) 453 self._workspace.actionFit_Results.setVisible(False) 443 454 # orientation viewer set to invisible SASVIEW-1132 444 455 self._workspace.actionOrientation_Viewer.setVisible(False) … … 467 478 self._workspace.actionCategory_Manager.triggered.connect(self.actionCategory_Manager) 468 479 self._workspace.actionHide_DataExplorer.triggered.connect(self.actionHide_DataExplorer) 480 self._workspace.actionHide_LogExplorer.triggered.connect(self.actionHide_LogExplorer) 469 481 # Tools 470 482 self._workspace.actionData_Operation.triggered.connect(self.actionData_Operation) … … 654 666 """ 655 667 if self.dockedFilesWidget.isVisible(): 656 #self._workspace.actionHide_DataExplorer.setText("Show Data Explorer")657 668 self.dockedFilesWidget.setVisible(False) 658 669 else: 659 #self._workspace.actionHide_DataExplorer.setText("Hide Data Explorer")660 670 self.dockedFilesWidget.setVisible(True) 671 pass 672 673 def actionHide_LogExplorer(self): 674 """ 675 Toggle Data Explorer vsibility 676 """ 677 if self.logDockWidget.isVisible(): 678 self.logDockWidget.setVisible(False) 679 else: 680 self.logDockWidget.setVisible(True) 661 681 pass 662 682
Note: See TracChangeset
for help on using the changeset viewer.