ConfigurationBaseBox Class Reference

Base class for configuration group boxes. More...

#include <configurationbasebox.h>

Inheritance diagram for ConfigurationBaseBox:
EngineConfigurationBaseBox

List of all members.

Signals

void appearanceChanged ()
void wantChangeDefaultButton (QPushButton *btn)

Public Member Functions

 ConfigurationBaseBox (QWidget *parent=NULL)
bool allowSave ()
bool areSettingsAlreadyRead ()
virtual QIcon icon () const =0
 Reimplement this to return displayable icon for the ConfigurationBaseBox.
virtual QString name () const =0
 Reimplement this to return displayable name for the ConfigurationBaseBox.
void setAllowSave (bool b)
void read ()
bool save ()

Protected Member Functions

virtual void readSettings ()=0
virtual void saveSettings ()=0

Protected Attributes

bool bAllowSave
bool bSettingsAlreadyRead

Detailed Description

Base class for configuration group boxes.

Such group boxes contain actual widgets allowing user input in order to configure program's modules. Settings are being read() and save()'d through virtual methods, however the implementation of such methods can do basicaly anything.


Member Function Documentation

void ConfigurationBaseBox::appearanceChanged (  )  [signal]

This will send a request to the Doomseeker through ConfigurationDialog to redraw some graphics.

virtual QIcon ConfigurationBaseBox::icon (  )  const [pure virtual]

Reimplement this to return displayable icon for the ConfigurationBaseBox.

If there is no QIcon associated with this box just return QIcon object with argument-less constructor.

Implemented in EngineConfigurationBaseBox.

virtual void ConfigurationBaseBox::readSettings (  )  [protected, pure virtual]

These shouldn't execute Config::readConfig() and Config::saveConfig() methods. They're here to read settings from and write them to controls.

Implemented in EngineConfigurationBaseBox.

virtual void ConfigurationBaseBox::saveSettings (  )  [protected, pure virtual]

These shouldn't execute Config::readConfig() and Config::saveConfig() methods. They're here to read settings from and write them to controls.

Implemented in EngineConfigurationBaseBox.

void ConfigurationBaseBox::wantChangeDefaultButton ( QPushButton *  btn  )  [signal]

This will change default button (the one that is activated when user hits ENTER) to 'btn'. If NULL is passed as 'btn' argument it will revert to OK button.


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