Base class for configuration group boxes. More...
#include <configurationbasebox.h>
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 |
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.
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.