Changeset 3b3b40b in sasview for src/sas/qtgui/MainWindow/GuiManager.py
- Timestamp:
- Mar 21, 2018 4:17:04 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 8b480d27
- Parents:
- e4c475b7
- git-author:
- Piotr Rozyczko <rozyczko@…> (02/08/18 04:19:04)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (03/21/18 04:17:04)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
r14ec91c5 r3b3b40b 19 19 20 20 import sas.qtgui.Utilities.ObjectLibrary as ObjectLibrary 21 from sas.qtgui.Utilities.TabbedModelEditor import TabbedModelEditor 22 from sas.qtgui.Utilities.PluginManager import PluginManager 21 23 from sas.qtgui.MainWindow.UI.AcknowledgementsUI import Ui_Acknowledgements 22 24 from sas.qtgui.MainWindow.AboutBox import AboutBox … … 358 360 self.communicate.updateTheoryFromPerspectiveSignal.connect(self.updateTheoryFromPerspective) 359 361 self.communicate.plotRequestedSignal.connect(self.showPlot) 362 self.communicate.plotFromFilenameSignal.connect(self.showPlotFromFilename) 360 363 self.communicate.updateModelFromDataOperationPanelSignal.connect(self.updateModelFromDataOperationPanel) 361 364 … … 406 409 self._workspace.actionFit_Results.triggered.connect(self.actionFit_Results) 407 410 self._workspace.actionChain_Fitting.triggered.connect(self.actionChain_Fitting) 411 self._workspace.actionAdd_Custom_Model.triggered.connect(self.actionAdd_Custom_Model) 408 412 self._workspace.actionEdit_Custom_Model.triggered.connect(self.actionEdit_Custom_Model) 413 self._workspace.actionManage_Custom_Models.triggered.connect(self.actionManage_Custom_Models) 409 414 # Window 410 415 self._workspace.actionCascade.triggered.connect(self.actionCascade) … … 662 667 pass 663 668 669 def actionAdd_Custom_Model(self): 670 """ 671 """ 672 self.model_editor = TabbedModelEditor(self) 673 self.model_editor.show() 674 664 675 def actionEdit_Custom_Model(self): 665 676 """ 666 677 """ 667 print("actionEdit_Custom_Model TRIGGERED") 668 pass 678 self.model_editor = TabbedModelEditor(self, edit_only=True) 679 self.model_editor.show() 680 681 def actionManage_Custom_Models(self): 682 """ 683 """ 684 self.model_manager = PluginManager(self) 685 self.model_manager.show() 669 686 670 687 #============ ANALYSIS ================= … … 779 796 self.filesWidget.model.appendRow(new_item) 780 797 self._data_manager.add_data(new_datalist_item) 798 799 def showPlotFromFilename(self, filename): 800 """ 801 Pass the show plot request to the data explorer 802 """ 803 if hasattr(self, "filesWidget"): 804 self.filesWidget.displayFile(filename=filename, is_data=True) 781 805 782 806 def showPlot(self, plot):
Note: See TracChangeset
for help on using the changeset viewer.