Isis 3 Programmer Reference
|
Base class for the Qisis main windows. More...
#include <MainWindow.h>
Public Member Functions | |
MainWindow (QString title, QWidget *parent=0, Qt::WindowFlags flags=0) | |
Mainwindow constructor. More... | |
virtual | ~MainWindow () |
Free allocated memory by from this instance. More... | |
Static Public Member Functions | |
static QString | settingsFileName (QString objectTitle) |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *event) |
This method is overridden so that we can be sure to write the current settings of the Main window. More... | |
virtual void | readSettings (QSize defaultSize=QSize()) |
This method ensure that the settings get written even if the Main window was only hidden, not closed. More... | |
QString | settingsFileName () const |
Private Member Functions | |
virtual void | writeSettings () const |
This method is called when the Main window is closed or hidden to write the size and location settings to a config file in the user's home directory. More... | |
Base class for the Qisis main windows.
2012-04-05 Steven Lambright - Improved saving and restoring state by making the closeEvent() and hideEvent() actually override the parent's methods and removing the eventFilter. References #593.
2012-05-29 Steven Lambright - Fixed a bug where closeEvent method was not calling the paren't version.
Definition at line 24 of file MainWindow.h.
Isis::MainWindow::MainWindow | ( | QString | title, |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | flags = 0 |
||
) |
|
virtual |
Free allocated memory by from this instance.
Definition at line 25 of file MainWindow.cpp.
|
protectedvirtual |
This method is overridden so that we can be sure to write the current settings of the Main window.
event |
Reimplemented in Isis::TableMainWindow, and Isis::ViewportMainWindow.
Definition at line 37 of file MainWindow.cpp.
References writeSettings().
Referenced by Isis::ViewportMainWindow::closeEvent(), and Isis::TableMainWindow::closeEvent().
|
protectedvirtual |
This method ensure that the settings get written even if the Main window was only hidden, not closed.
event | This method is called from the constructor so that when the Main window is created, it know's it's size and location. |
Reimplemented in Isis::MosaicMainWindow.
Definition at line 80 of file MainWindow.cpp.
Referenced by Isis::PlotWindow::PlotWindow(), Isis::MosaicMainWindow::readSettings(), Isis::TableMainWindow::TableMainWindow(), and Isis::ViewportMainWindow::ViewportMainWindow().
|
privatevirtual |
This method is called when the Main window is closed or hidden to write the size and location settings to a config file in the user's home directory.
Definition at line 124 of file MainWindow.cpp.
Referenced by closeEvent().