Isis 3 Programmer Reference
PaletteWindow.h
1 #ifndef PaletteWindow_h
2 #define PaletteWindow_h
3 #include <QMainWindow>
4 #include <QtGui>
5 #include <QSettings>
6 #include "FileName.h"
7 
8 namespace Isis {
9 
15  class PaletteWindow : public QMainWindow {
16  Q_OBJECT
17  public:
18  PaletteWindow(QWidget *parent = 0);
19  void closeEvent(QCloseEvent *event);
20  void hideEvent(QHideEvent *event);
21  void readSettings();
22  void writeSettings();
23 
24  protected:
25  bool eventFilter(QObject *o, QEvent *e);
26 
27  private:
28  QString p_appName;
29 
30 
31  };
32 };
33 
34 #endif
void writeSettings()
This method is called when the Palette window is closed or hidden to write the size and location sett...
bool eventFilter(QObject *o, QEvent *e)
This event filter is installed on the parent of this window.
PaletteWindow(QWidget *parent=0)
PaletteWindow constructor.
void hideEvent(QHideEvent *event)
This method ensure that the settings get written even if the Palette window was only hidden...
QString p_appName
Application name.
Definition: PaletteWindow.h:28
void closeEvent(QCloseEvent *event)
This method is overridden so that we can be sure to write the current settings of the Palette window...
void readSettings()
This method is called from the constructor so that when the Palette window is created, it know&#39;s it&#39;s size and location.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31