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
8namespace 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
Base class for the Qisis main windows.
Definition MainWindow.h:24
virtual void closeEvent(QCloseEvent *event)
This method is overridden so that we can be sure to write the current settings of the Main window.
virtual ~MainWindow()
Free allocated memory by from this instance.
MainWindow(QString title, QWidget *parent=0, Qt::WindowFlags flags=0)
Mainwindow constructor.
virtual void readSettings(QSize defaultSize=QSize())
This method ensure that the settings get written even if the Main window was only hidden,...
virtual void writeSettings() const
This method is called when the Main window is closed or hidden to write the size and location setting...
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16