Merge commit '8ed281ae2d9e45c842d93da99f641842cdfb8bb4' into installation
This commit is contained in:
commit
1702051d8f
42
QtPyLoT.py
42
QtPyLoT.py
@ -69,6 +69,21 @@ class MainWindow(QMainWindow):
|
|||||||
def _getCurrentPlotType(self):
|
def _getCurrentPlotType(self):
|
||||||
return 'TestType'
|
return 'TestType'
|
||||||
|
|
||||||
|
def createAction(self, text, slot=None, shortcut=None, icon=None,
|
||||||
|
tip=None, checkable=False):
|
||||||
|
action = QAction(text, self)
|
||||||
|
if icon is not None:
|
||||||
|
action.setIcon(icon)
|
||||||
|
if shortcut is not None:
|
||||||
|
action.setShortcut(shortcut)
|
||||||
|
if tip is not None:
|
||||||
|
action.setToolTip(tip)
|
||||||
|
if slot is not None:
|
||||||
|
action.triggered.connect(slot)
|
||||||
|
if checkable:
|
||||||
|
action.setCheckable(True)
|
||||||
|
return action
|
||||||
|
|
||||||
def loadData(self):
|
def loadData(self):
|
||||||
self.data = None
|
self.data = None
|
||||||
|
|
||||||
@ -93,8 +108,32 @@ class MainWindow(QMainWindow):
|
|||||||
ylabel=None,
|
ylabel=None,
|
||||||
title=plottitle)
|
title=plottitle)
|
||||||
|
|
||||||
|
self.setCentralWidget(self.getDataWidget())
|
||||||
|
|
||||||
|
self.openEventAction = self.createAction("&Open event ...",
|
||||||
|
self.loadData,
|
||||||
|
QKeySequence.Open,
|
||||||
|
QStyle.SP_DirOpenIcon,
|
||||||
|
"Open an event.")
|
||||||
|
self.quitAction = self.createAction("&Quit", self.cleanUp,
|
||||||
|
QKeySequence.Close,
|
||||||
|
QStyle.SP_MediaStop,
|
||||||
|
"Close event and quit PyLoT")
|
||||||
|
self.filterAction = self.createAction("&Filter ...", self.filterData,
|
||||||
|
"Ctrl+F", ":/filter.png",
|
||||||
|
"""Toggle un-/filtered waveforms
|
||||||
|
to be displayed, accroding to the
|
||||||
|
desired seismic phase.""", True)
|
||||||
|
|
||||||
|
self.selectPAction = self.createAction("&P", self.alterPhase, "Ctrl+P",
|
||||||
|
":/picon.png", "Toggle P phase.",
|
||||||
|
True)
|
||||||
|
self.selectSAction = self.createAction("&S", self.alterPhase, "Ctrl+S",
|
||||||
|
":/sicon.png", "Toggle S phase",
|
||||||
|
True)
|
||||||
|
|
||||||
self.eventLabel = QLabel()
|
self.eventLabel = QLabel()
|
||||||
self.eventLabel.setFrameStyle(QFrame.StyledPanel | QFrame.Sunken)
|
self.eventLabel.setFrameStyle(QFrame.StyledPanel|QFrame.Sunken)
|
||||||
status = self.statusBar()
|
status = self.statusBar()
|
||||||
status.setSizeGripEnabled(False)
|
status.setSizeGripEnabled(False)
|
||||||
status.addPermanentWidget(self.eventLabel)
|
status.addPermanentWidget(self.eventLabel)
|
||||||
@ -108,7 +147,6 @@ class MainWindow(QMainWindow):
|
|||||||
maingrid.addLayout(statLayout, 0, 0)
|
maingrid.addLayout(statLayout, 0, 0)
|
||||||
maingrid.addWidget(dataLayout, 1, 0)
|
maingrid.addWidget(dataLayout, 1, 0)
|
||||||
self.setLayout(maingrid)
|
self.setLayout(maingrid)
|
||||||
#self.setCentralWidget(dataLayout)
|
|
||||||
|
|
||||||
def plotData(self):
|
def plotData(self):
|
||||||
pass #self.data.plotData(self.DataPlot)
|
pass #self.data.plotData(self.DataPlot)
|
||||||
|
BIN
icons/printer.png
Normal file
BIN
icons/printer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 937 B |
@ -1 +1 @@
|
|||||||
8cb6-dirty
|
0.0.0-g4b7b
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource>
|
<qresource>
|
||||||
<file alias="icon.ico">icons/pylot.ico</file>
|
<file alias="icon.ico">icons/pylot.ico</file>
|
||||||
|
<file alias="printer.png">icons/printer.png</file>
|
||||||
|
|
||||||
<file alias="help.html">help/index.html</file>
|
<file alias="help.html">help/index.html</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
Loading…
Reference in New Issue
Block a user