Author: | Neil Wallace (neil@openmolar.com) |
---|---|
Release: | 2.0.906~hg207 |
The BaseMainWindow class provides a re-implementation of QtGui.QMainWindow, but which handles state saving accross sesions etc.
Inherited by PostgresMainWindow
Bases: PyQt4.QtGui.QMainWindow, lib_openmolar.common.qt4.widgets.advisor_notification.Advisor
This class is a MainWindow, with menu, toolbar and statusbar. Some of the layout signals/slots already connected. Provides about, about QT and license dialogs.
a pointer to the about qaction
a pointer to the about qt qaction
a pointer to the fullscreen mode qaction
a pointer to the help qaction
a pointer to the license qaction
a pointer to the preferences qAction
a pointer to the quit qaction
a pointer to the show statusbar qaction
re-implement the close event of QtGui.QMainWindow, and check the user really meant to do this.
this function connects the triggered signals from the default menu it should not need to be called, as it is called during the __init__()
PyQt4 prints unhandled exceptions to stdout and carries on regardless I don’t want this to happen. so sys.excepthook is passed to this
a convenience function to raise a dialog for confirmation of an action
a convenience function that slots new actions in just before the “help” menu item on the menubar
a convenience function that slots new widgets in just before the “help” menu item on the main Toolbar. accepts either a QAction, or a widget. If option 2nd argument (sep) is True, a separator is also added.
a pointer to the main toolbar
a pointer to the Edit menu
a pointer to the File menu
a pointer to the Help menu
a pointer to the View menu of menubar
a pointer to the DockableMenuBar
this function is overwritten so that the advisor popup can be put in the correct place
make the Advisor sub class aware of the windows geometry. set it top right, and right_to_left
attempts to read and show the license text from file COPYRIGHT.txt in the apps directory on failure, gives a simple message box with link.
a pointer to the label in the statusbar
a pointer to the QtGui.QStatusBar