- 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
- Location:
- src/sas/qtgui/MainWindow
- Files:
-
- 2 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 -
src/sas/qtgui/MainWindow/UI/MainWindowUI.ui
rfc5d2d7f refaf022 25 25 <y>0</y> 26 26 <width>915</width> 27 <height>2 6</height>27 <height>21</height> 28 28 </rect> 29 29 </property> … … 75 75 <addaction name="actionHide_Toolbar"/> 76 76 <addaction name="actionHide_DataExplorer"/> 77 <addaction name="actionHide_LogExplorer"/> 77 78 <addaction name="separator"/> 78 79 <addaction name="actionStartup_Settings"/> … … 565 566 </property> 566 567 </action> 568 <action name="actionHide_LogExplorer"> 569 <property name="text"> 570 <string>Hide Log Explorer</string> 571 </property> 572 </action> 567 573 </widget> 568 574 <resources/>
Note: See TracChangeset
for help on using the changeset viewer.