Changes in src/sas/qtgui/MainWindow/GuiManager.py [f0bb711:01cda57] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
rf0bb711 r01cda57 31 31 from sas.qtgui.Calculators.GenericScatteringCalculator import GenericScatteringCalculator 32 32 from sas.qtgui.Calculators.ResolutionCalculatorPanel import ResolutionCalculatorPanel 33 from sas.qtgui.Calculators.DataOperationUtilityPanel import DataOperationUtilityPanel 33 34 34 35 35 # Perspectives … … 47 47 Main SasView window functionality 48 48 """ 49 50 49 def __init__(self, parent=None): 51 50 """ … … 143 142 self.GENSASCalculator = GenericScatteringCalculator(self) 144 143 self.ResolutionCalculator = ResolutionCalculatorPanel(self) 145 self.DataOperation = DataOperationUtilityPanel(self)146 144 147 145 def statusBarSetup(self): … … 339 337 self.communicate.updateTheoryFromPerspectiveSignal.connect(self.updateTheoryFromPerspective) 340 338 self.communicate.plotRequestedSignal.connect(self.showPlot) 341 self.communicate.updateModelFromDataOperationPanelSignal.connect(self.updateModelFromDataOperationPanel)342 339 343 340 def addTriggers(self): … … 534 531 """ 535 532 """ 536 self.communicate.sendDataToPanelSignal.emit(self._data_manager.get_all_data()) 537 538 self.DataOperation.show() 533 print("actionData_Operation TRIGGERED") 534 pass 539 535 540 536 def actionSLD_Calculator(self): … … 735 731 self.filesWidget.updateTheoryFromPerspective(index) 736 732 737 def updateModelFromDataOperationPanel(self, new_item, new_datalist_item):738 """739 :param new_item: item to be added to list of loaded files740 :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, msg746 747 self.filesWidget.model.appendRow(new_item)748 self._data_manager.add_data(new_datalist_item)749 750 733 def showPlot(self, plot): 751 734 """ … … 754 737 if hasattr(self, "filesWidget"): 755 738 self.filesWidget.displayData(plot) 739
Note: See TracChangeset
for help on using the changeset viewer.