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
8namespace 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
QString p_appName
Application name.
void hideEvent(QHideEvent *event)
This method ensure that the settings get written even if the Palette window was only hidden,...
PaletteWindow(QWidget *parent=0)
PaletteWindow constructor.
void closeEvent(QCloseEvent *event)
This method is overridden so that we can be sure to write the current settings of the Palette window.
void writeSettings()
This method is called when the Palette window is closed or hidden to write the size and location sett...
void readSettings()
This method is called from the constructor so that when the Palette window is created,...
bool eventFilter(QObject *o, QEvent *e)
This event filter is installed on the parent of this window.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16