Changeset 416fa8f in sasview
- Timestamp:
- Dec 7, 2016 6:17:38 AM (8 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:
- cad617b
- Parents:
- 64f1e93
- Location:
- src/sas/qtgui
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/DataExplorer.py
r55d89f8 r416fa8f 23 23 from sas.qtgui.Plotter2D import Plotter2D 24 24 from sas.qtgui.DroppableDataLoadWidget import DroppableDataLoadWidget 25 from sas.qtgui.MaskEditor import MaskEditor 25 26 26 27 class DataExplorerWindow(DroppableDataLoadWidget): … … 801 802 """ 802 803 """ 803 print "showEditDataMask" 804 pass 804 index = self.treeView.selectedIndexes()[0] 805 model_item = self.model.itemFromIndex(self.data_proxy.mapToSource(index)) 806 data = GuiUtils.dataFromItem(model_item) 807 808 mask_editor = MaskEditor(self, data) 809 810 mask_editor.exec_() 805 811 806 812 def loadComplete(self, output): -
src/sas/qtgui/Plotter.py
r6d05e1d r416fa8f 7 7 from sas.qtgui.PlotterBase import PlotterBase 8 8 9 class Plotter (PlotterBase):10 def __init__(self, parent=None, quickplot=False):11 super(Plotter , self).__init__(parent, quickplot=quickplot)9 class PlotterWidget(PlotterBase): 10 def __init__(self, parent=None, manager=None, quickplot=False): 11 super(PlotterWidget, self).__init__(parent, manager=manager, quickplot=quickplot) 12 12 13 13 @property … … 199 199 # Plot the updated chart 200 200 self.plot(marker='o', linestyle='') 201 202 203 class Plotter(QtGui.QDialog, PlotterWidget): 204 def __init__(self, parent=None, quickplot=False): 205 206 QtGui.QDialog.__init__(self) 207 PlotterWidget.__init__(self, manager=parent, quickplot=quickplot) 208 -
src/sas/qtgui/Plotter2D.py
r64f1e93 r416fa8f 11 11 from mpl_toolkits.mplot3d import Axes3D 12 12 13 class Plotter2D (PlotterBase):14 def __init__(self, parent=None, quickplot=False, dimension=2):13 class Plotter2DWidget(PlotterBase): 14 def __init__(self, parent=None, manager=None, quickplot=False, dimension=2): 15 15 self.dimension = dimension 16 super(Plotter2D , self).__init__(parent, quickplot=quickplot)16 super(Plotter2DWidget, self).__init__(parent, manager=manager, quickplot=quickplot) 17 17 18 18 @property … … 189 189 else: 190 190 self.figure.canvas.draw() 191 192 class Plotter2D(QtGui.QDialog, Plotter2DWidget): 193 def __init__(self, parent=None, quickplot=False, dimension=2): 194 195 QtGui.QDialog.__init__(self) 196 Plotter2DWidget.__init__(self, manager=parent, quickplot=quickplot, dimension=2) -
src/sas/qtgui/PlotterBase.py
r64f1e93 r416fa8f 17 17 import sas.qtgui.PlotHelper as PlotHelper 18 18 19 class PlotterBase(QtGui.Q Dialog):20 def __init__(self, parent=None, quickplot=False):19 class PlotterBase(QtGui.QWidget): 20 def __init__(self, parent=None, manager=None, quickplot=False): 21 21 super(PlotterBase, self).__init__(parent) 22 22 23 23 # Required for the communicator 24 self. parent = parent24 self.manager = manager 25 25 self.quickplot = quickplot 26 26 … … 71 71 self.contextMenu() 72 72 # Notify the listeners 73 self. parent.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots())73 self.manager.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots()) 74 74 else: 75 75 self.contextMenuQuickPlot() … … 181 181 PlotHelper.deletePlot(PlotHelper.idOfPlot(self)) 182 182 # Notify the listeners 183 self. parent.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots())183 self.manager.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots()) 184 184 event.accept() 185 185 -
src/sas/qtgui/UnitTesting/DensityCalculatorTest.py
- Property mode changed from 100755 to 100644
r31c5b58 r416fa8f 9 9 10 10 ####### TEMP 11 import LocalSetup11 import path_prepare 12 12 ####### 13 13 -
src/sas/qtgui/UnitTesting/Plotter2DTest.py
r64f1e93 r416fa8f 9 9 10 10 ####### TEMP 11 import LocalSetup11 import path_prepare 12 12 ####### 13 13 from sas.sasgui.guiframe.dataFitting import Data1D -
src/sas/qtgui/UnitTesting/PlotterTest.py
r64f1e93 r416fa8f 8 8 9 9 ####### TEMP 10 import LocalSetup10 import path_prepare 11 11 ####### 12 12 from sas.sasgui.guiframe.dataFitting import Data1D -
src/sas/qtgui/UnitTesting/SLDCalculatorTest.py
re4676c8 r416fa8f 9 9 10 10 ####### TEMP 11 import LocalSetup11 import path_prepare 12 12 ####### 13 13
Note: See TracChangeset
for help on using the changeset viewer.