Isis Developer Reference
MainWindow.h
Go to the documentation of this file.
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.
Definition MainWindow.cpp:37
virtual ~MainWindow()
Free allocated memory by from this instance.
Definition MainWindow.cpp:25
MainWindow(QString title, QWidget *parent=0, Qt::WindowFlags flags=0)
Mainwindow constructor.
Definition MainWindow.cpp:15
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
QString settingsFileName() const
Definition MainWindow.cpp:96
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16