Isis 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
FileName.h
QWidget
Isis::PaletteWindow
Definition: PaletteWindow.h:15
PaletteWindow.h
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
QMainWindow
Isis::PaletteWindow::PaletteWindow
PaletteWindow(QWidget *parent=0)
PaletteWindow constructor.
Definition: PaletteWindow.cpp:12
IString.h
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Isis::PaletteWindow::eventFilter
bool eventFilter(QObject *o, QEvent *e)
This event filter is installed on the parent of this window.
Definition: PaletteWindow.cpp:87
Isis::PaletteWindow::hideEvent
void hideEvent(QHideEvent *event)
This method ensure that the settings get written even if the Palette window was only hidden,...
Definition: PaletteWindow.cpp:36
Isis::PaletteWindow::closeEvent
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
Isis::PaletteWindow::readSettings
void readSettings()
This method is called from the constructor so that when the Palette window is created,...
Definition: PaletteWindow.cpp:46
Isis::PaletteWindow::writeSettings
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
QObject
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16