Changeset d5c5d3d in sasview for src/sas/qtgui/MainWindow
- Timestamp:
- Oct 17, 2017 3:25:17 PM (7 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:
- f0bb711
- Parents:
- d6e5b31
- Location:
- src/sas/qtgui/MainWindow
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r7d8bebf rd5c5d3d 93 93 self.communicator.activeGraphName.connect(self.updatePlotName) 94 94 self.communicator.plotUpdateSignal.connect(self.updatePlot) 95 95 96 self.cbgraph.editTextChanged.connect(self.enableGraphCombo) 96 97 self.cbgraph.currentIndexChanged.connect(self.enableGraphCombo) … … 869 870 self.txt_widget.setWindowIcon(QtGui.QIcon(":/res/ball.ico")) 870 871 self.txt_widget.setWindowTitle("Data Info: %s" % data.filename) 872 self.txt_widget.clear() 871 873 self.txt_widget.insertPlainText(text_to_show) 872 874 … … 1012 1014 self.model.appendRow(checkbox_item) 1013 1015 1014 1015 1016 def updateModelFromPerspective(self, model_item): 1016 1017 """ -
src/sas/qtgui/MainWindow/GuiManager.py
r01cda57 rd5c5d3d 31 31 from sas.qtgui.Calculators.GenericScatteringCalculator import GenericScatteringCalculator 32 32 from sas.qtgui.Calculators.ResolutionCalculatorPanel import ResolutionCalculatorPanel 33 33 from sas.qtgui.Calculators.DataOperationUtilityPanel import DataOperationUtilityPanel 34 34 35 35 # Perspectives … … 47 47 Main SasView window functionality 48 48 """ 49 49 50 def __init__(self, parent=None): 50 51 """ … … 142 143 self.GENSASCalculator = GenericScatteringCalculator(self) 143 144 self.ResolutionCalculator = ResolutionCalculatorPanel(self) 145 self.DataOperation = DataOperationUtilityPanel(self) 144 146 145 147 def statusBarSetup(self): … … 337 339 self.communicate.updateTheoryFromPerspectiveSignal.connect(self.updateTheoryFromPerspective) 338 340 self.communicate.plotRequestedSignal.connect(self.showPlot) 341 self.communicate.updateModelFromDataOperationPanelSignal.connect(self.updateModelFromDataOperationPanel) 339 342 340 343 def addTriggers(self): … … 531 534 """ 532 535 """ 533 print("actionData_Operation TRIGGERED") 534 pass 536 self.communicate.sendDataToPanel.emit(self._data_manager.get_all_data()) 537 538 self.DataOperation.show() 535 539 536 540 def actionSLD_Calculator(self): … … 731 735 self.filesWidget.updateTheoryFromPerspective(index) 732 736 737 def updateModelFromDataOperationPanel(self, new_item, new_datalist_item): 738 """ 739 :param new_item: item to be added to list of loaded files 740 :param new_datalist_item: 741 """ 742 if not isinstance(new_item, QtGui.QStandardItem) or \ 743 not isinstance(new_datalist_item, dict): 744 msg = "Wrong data type returned from calculations." 745 raise AttributeError, msg 746 747 self.filesWidget.model.appendRow(new_item) 748 self._data_manager.add_data(new_datalist_item) 749 733 750 def showPlot(self, plot): 734 751 """ … … 737 754 if hasattr(self, "filesWidget"): 738 755 self.filesWidget.displayData(plot) 739
Note: See TracChangeset
for help on using the changeset viewer.