Changeset 416fa8f in sasview for src/sas/qtgui/PlotterBase.py


Ignore:
Timestamp:
Dec 7, 2016 8:17:38 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
cad617b
Parents:
64f1e93
Message:

Initial implementation of the mask editor.
Refactored plotter base to QDialog and reimplemented as local widgets.
Fixed some unit tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/PlotterBase.py

    r64f1e93 r416fa8f  
    1717import sas.qtgui.PlotHelper as PlotHelper 
    1818 
    19 class PlotterBase(QtGui.QDialog): 
    20     def __init__(self, parent=None, quickplot=False): 
     19class PlotterBase(QtGui.QWidget): 
     20    def __init__(self, parent=None, manager=None, quickplot=False): 
    2121        super(PlotterBase, self).__init__(parent) 
    2222 
    2323        # Required for the communicator 
    24         self.parent = parent 
     24        self.manager = manager 
    2525        self.quickplot = quickplot 
    2626 
     
    7171            self.contextMenu() 
    7272            # Notify the listeners 
    73             self.parent.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots()) 
     73            self.manager.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots()) 
    7474        else: 
    7575            self.contextMenuQuickPlot() 
     
    181181        PlotHelper.deletePlot(PlotHelper.idOfPlot(self)) 
    182182        # Notify the listeners 
    183         self.parent.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots()) 
     183        self.manager.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots()) 
    184184        event.accept() 
    185185 
Note: See TracChangeset for help on using the changeset viewer.