Isis 3 Developer Reference
PaletteWindow.h
Go to the documentation of this file.
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
Definition: PaletteWindow.h:15
void writeSettings()
This method is called when the Palette window is closed or hidden to write the size and location sett...
Definition: PaletteWindow.cpp:63
bool eventFilter(QObject *o, QEvent *e)
This event filter is installed on the parent of this window.
Definition: PaletteWindow.cpp:87
PaletteWindow(QWidget *parent=0)
PaletteWindow constructor.
Definition: PaletteWindow.cpp:12
void hideEvent(QHideEvent *event)
This method ensure that the settings get written even if the Palette window was only hidden...
Definition: PaletteWindow.cpp:36
void closeEvent(QCloseEvent *event)
This method is overridden so that we can be sure to write the current settings of the Palette window...
Definition: PaletteWindow.cpp:25
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.
Definition: PaletteWindow.cpp:46
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31