Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/GuiManager.py

    rf0bb711 r01cda57  
    3131from sas.qtgui.Calculators.GenericScatteringCalculator import GenericScatteringCalculator 
    3232from sas.qtgui.Calculators.ResolutionCalculatorPanel import ResolutionCalculatorPanel 
    33 from sas.qtgui.Calculators.DataOperationUtilityPanel import DataOperationUtilityPanel 
     33 
    3434 
    3535# Perspectives 
     
    4747    Main SasView window functionality 
    4848    """ 
    49  
    5049    def __init__(self, parent=None): 
    5150        """ 
     
    143142        self.GENSASCalculator = GenericScatteringCalculator(self) 
    144143        self.ResolutionCalculator = ResolutionCalculatorPanel(self) 
    145         self.DataOperation = DataOperationUtilityPanel(self) 
    146144 
    147145    def statusBarSetup(self): 
     
    339337        self.communicate.updateTheoryFromPerspectiveSignal.connect(self.updateTheoryFromPerspective) 
    340338        self.communicate.plotRequestedSignal.connect(self.showPlot) 
    341         self.communicate.updateModelFromDataOperationPanelSignal.connect(self.updateModelFromDataOperationPanel) 
    342339 
    343340    def addTriggers(self): 
     
    534531        """ 
    535532        """ 
    536         self.communicate.sendDataToPanelSignal.emit(self._data_manager.get_all_data()) 
    537  
    538         self.DataOperation.show() 
     533        print("actionData_Operation TRIGGERED") 
     534        pass 
    539535 
    540536    def actionSLD_Calculator(self): 
     
    735731        self.filesWidget.updateTheoryFromPerspective(index) 
    736732 
    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  
    750733    def showPlot(self, plot): 
    751734        """ 
     
    754737        if hasattr(self, "filesWidget"): 
    755738            self.filesWidget.displayData(plot) 
     739 
Note: See TracChangeset for help on using the changeset viewer.