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 
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 
FileName.h
QWidget
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
MainWindow.h
QMainWindow
Isis::MainWindow::MainWindow
MainWindow(QString title, QWidget *parent=0, Qt::WindowFlags flags=0)
Mainwindow constructor.
Definition: MainWindow.cpp:15
IString.h
Isis::MainWindow::~MainWindow
virtual ~MainWindow()
Free allocated memory by from this instance.
Definition: MainWindow.cpp:25
Isis::MainWindow::closeEvent
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
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::MainWindow::readSettings
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
IException.h
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Isis::MainWindow::settingsFileName
QString settingsFileName() const
Definition: MainWindow.cpp:96
Isis::MainWindow
Base class for the Qisis main windows.
Definition: MainWindow.h:24
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16