PropertiesDlg added to the MainWindow (not tested yet)
This commit is contained in:
parent
0749420f9a
commit
8213cdc575
10
QtPyLoT.py
10
QtPyLoT.py
@ -39,6 +39,7 @@ from pylot.core.util import checkurl
|
|||||||
from pylot.core.util import layoutStationButtons
|
from pylot.core.util import layoutStationButtons
|
||||||
from pylot.core.util import (FilterOptionsDialog,
|
from pylot.core.util import (FilterOptionsDialog,
|
||||||
MPLWidget,
|
MPLWidget,
|
||||||
|
PropertiesDlg,
|
||||||
HelpForm)
|
HelpForm)
|
||||||
|
|
||||||
|
|
||||||
@ -193,6 +194,9 @@ class MainWindow(QMainWindow):
|
|||||||
saveEventAction = self.createAction("&Save event ...", self.saveData,
|
saveEventAction = self.createAction("&Save event ...", self.saveData,
|
||||||
QKeySequence.Save, saveIcon,
|
QKeySequence.Save, saveIcon,
|
||||||
"Save actual event data.")
|
"Save actual event data.")
|
||||||
|
prefsEventAction = self.createAction("Preferences", self.PyLoTprefs,
|
||||||
|
QKeySequence.Preferences, None,
|
||||||
|
"Edit PyLoT app preferences.")
|
||||||
quitAction = self.createAction("&Quit",
|
quitAction = self.createAction("&Quit",
|
||||||
QCoreApplication.instance().quit,
|
QCoreApplication.instance().quit,
|
||||||
QKeySequence.Close, quitIcon,
|
QKeySequence.Close, quitIcon,
|
||||||
@ -218,6 +222,7 @@ class MainWindow(QMainWindow):
|
|||||||
"Print waveform overview.")
|
"Print waveform overview.")
|
||||||
self.fileMenu = self.menuBar().addMenu('&File')
|
self.fileMenu = self.menuBar().addMenu('&File')
|
||||||
self.fileMenuActions = (openEventAction, saveEventAction, None,
|
self.fileMenuActions = (openEventAction, saveEventAction, None,
|
||||||
|
prefsEventAction, None,
|
||||||
quitAction)
|
quitAction)
|
||||||
self.fileMenu.aboutToShow.connect(self.updateFileMenu)
|
self.fileMenu.aboutToShow.connect(self.updateFileMenu)
|
||||||
|
|
||||||
@ -327,6 +332,11 @@ class MainWindow(QMainWindow):
|
|||||||
self.closing.emit()
|
self.closing.emit()
|
||||||
QMainWindow.closeEvent(self, event)
|
QMainWindow.closeEvent(self, event)
|
||||||
|
|
||||||
|
def PyLoTprefs(self):
|
||||||
|
props = PropertiesDlg(self)
|
||||||
|
if props.exec_():
|
||||||
|
return
|
||||||
|
|
||||||
def helpHelp(self):
|
def helpHelp(self):
|
||||||
if checkurl():
|
if checkurl():
|
||||||
form = HelpForm('https://ariadne.geophysik.ruhr-uni-bochum.de/trac/PyLoT/wiki')
|
form = HelpForm('https://ariadne.geophysik.ruhr-uni-bochum.de/trac/PyLoT/wiki')
|
||||||
|
Loading…
Reference in New Issue
Block a user