Isis 3 Programmer Reference
MainWindow.h
1 #ifndef MainWindow_h
2 #define MainWindow_h
3 #include <QMainWindow>
4 #include <QtGui>
5 #include <QSettings>
6 #include "FileName.h"
7 
8 namespace Isis {
24  class MainWindow : public QMainWindow {
25  Q_OBJECT
26  public:
27  MainWindow(QString title, QWidget *parent = 0, Qt::WindowFlags flags = 0);
28  virtual ~MainWindow();
29 
30  static QString settingsFileName(QString objectTitle);
31 
32  protected:
33  virtual void closeEvent(QCloseEvent *event);
34  virtual void readSettings(QSize defaultSize = QSize());
35  QString settingsFileName() const;
36 
37  private:
38  virtual void writeSettings() const;
39 
40  };
41 };
42 
43 #endif
44 
virtual void readSettings(QSize defaultSize=QSize())
This method ensure that the settings get written even if the Main window was only hidden...
Definition: MainWindow.cpp:80
MainWindow(QString title, QWidget *parent=0, Qt::WindowFlags flags=0)
Mainwindow constructor.
Definition: MainWindow.cpp:15
virtual void closeEvent(QCloseEvent *event)
This method is overridden so that we can be sure to write the current settings of the Main window...
Definition: MainWindow.cpp:37
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for the Qisis main windows.
Definition: MainWindow.h:24
virtual void writeSettings() const
This method is called when the Main window is closed or hidden to write the size and location setting...
Definition: MainWindow.cpp:124
virtual ~MainWindow()
Free allocated memory by from this instance.
Definition: MainWindow.cpp:25