Isis 3 Programmer Reference
Isis::PaletteWindow Class Reference

#include <PaletteWindow.h>

Inheritance diagram for Isis::PaletteWindow:
Inheritance graph
Collaboration diagram for Isis::PaletteWindow:
Collaboration graph

Public Member Functions

 PaletteWindow (QWidget *parent=0)
 PaletteWindow constructor. More...
 
void closeEvent (QCloseEvent *event)
 This method is overridden so that we can be sure to write the current settings of the Palette window. More...
 
void hideEvent (QHideEvent *event)
 This method ensure that the settings get written even if the Palette window was only hidden, not closed. More...
 
void readSettings ()
 This method is called from the constructor so that when the Palette window is created, it know's it's size and location. More...
 
void writeSettings ()
 This method is called when the Palette window is closed or hidden to write the size and location settings to a config file in the user's home directory. More...
 

Protected Member Functions

bool eventFilter (QObject *o, QEvent *e)
 This event filter is installed on the parent of this window. More...
 

Private Attributes

QString p_appName
 Application name. More...
 

Detailed Description

Author
????-??-?? Unknown

Definition at line 15 of file PaletteWindow.h.

Constructor & Destructor Documentation

◆ PaletteWindow()

Isis::PaletteWindow::PaletteWindow ( QWidget parent = 0)

PaletteWindow constructor.

Parameters
parent

Definition at line 12 of file PaletteWindow.cpp.

References p_appName, and readSettings().

Member Function Documentation

◆ closeEvent()

void Isis::PaletteWindow::closeEvent ( QCloseEvent *  event)

This method is overridden so that we can be sure to write the current settings of the Palette window.

Parameters
event

Definition at line 25 of file PaletteWindow.cpp.

References writeSettings().

◆ eventFilter()

bool Isis::PaletteWindow::eventFilter ( QObject o,
QEvent *  e 
)
protected

This event filter is installed on the parent of this window.

When the user closes the main window of the application, the Palette windows will write their settings even though they did not receive the close event themselves.

Parameters
o
e
Returns
bool

Definition at line 87 of file PaletteWindow.cpp.

References writeSettings().

◆ hideEvent()

void Isis::PaletteWindow::hideEvent ( QHideEvent *  event)

This method ensure that the settings get written even if the Palette window was only hidden, not closed.

Parameters
event

Definition at line 36 of file PaletteWindow.cpp.

References writeSettings().

◆ readSettings()

void Isis::PaletteWindow::readSettings ( )

This method is called from the constructor so that when the Palette window is created, it know's it's size and location.

Definition at line 46 of file PaletteWindow.cpp.

References Isis::FileName::expanded(), and p_appName.

Referenced by PaletteWindow().

◆ writeSettings()

void Isis::PaletteWindow::writeSettings ( )

This method is called when the Palette window is closed or hidden to write the size and location settings to a config file in the user's home directory.

Definition at line 63 of file PaletteWindow.cpp.

References Isis::FileName::expanded(), and p_appName.

Referenced by closeEvent(), eventFilter(), and hideEvent().

Member Data Documentation

◆ p_appName

QString Isis::PaletteWindow::p_appName
private

Application name.

Definition at line 28 of file PaletteWindow.h.

Referenced by PaletteWindow(), readSettings(), and writeSettings().


The documentation for this class was generated from the following files: