Base class for configuration pages. More...
#include <configurationbasebox.h>
Inheritance diagram for ConfigurationBaseBox:Signals | |
| void | appearanceChanged () |
| Emit to tell Doomseeker to redraw certain widgets. More... | |
Public Member Functions | |
| ConfigurationBaseBox (QWidget *parent=NULL) | |
| bool | allowSave () |
| Does this page allow to save the new settings? More... | |
| bool | areSettingsAlreadyRead () |
| true if settings for this page have already been loaded at least once. More... | |
| virtual QIcon | icon () const =0 |
| Reimplement this to return a displayable icon for the ConfigurationBaseBox. More... | |
| virtual QString | name () const =0 |
| Reimplement this to return a list-displayable name for this ConfigurationBaseBox. More... | |
| void | read () |
| Read configuration from persistence to page contents. More... | |
| bool | save () |
| Save configuration from page contents to persistence. More... | |
| void | setAllowSave (bool b) |
| Change whether settings on this page can be stored in persisting configuration. More... | |
| virtual QString | title () const |
| Page title, by default returns the same string as name(). More... | |
Protected Member Functions | |
| virtual void | readSettings ()=0 |
| Reimplement this to read settings from config into widgets. More... | |
| virtual void | saveSettings ()=0 |
| Reimplement this to write settings to config from widgets. More... | |
Base class for configuration pages.
Subclassed pages contain actual widgets allowing user input in order to configure program's modules. Specific settings are read and saved through virtual methods: saveSettings() and readSettings().
Plugins should rather inherit from EngineConfigurationBaseBox as this provides some default, common behavior, like executable path or custom program parameters configuration.
Definition at line 43 of file configurationbasebox.h.
| bool ConfigurationBaseBox::allowSave | ( | ) |
Does this page allow to save the new settings?
Definition at line 46 of file configurationbasebox.cpp.
|
signal |
Emit to tell Doomseeker to redraw certain widgets.
This will send a request to Doomseeker to redraw some graphics. This should be emitted if settings on current page change program's appearance so that program can redraw affected widgets.
| bool ConfigurationBaseBox::areSettingsAlreadyRead | ( | ) |
true if settings for this page have already been loaded at least once.
Definition at line 51 of file configurationbasebox.cpp.
|
pure virtual |
Reimplement this to return a displayable icon for the ConfigurationBaseBox.
If there is no QIcon associated with this box just return a QIcon object with argument-less constructor.
Implemented in EngineConfigurationBaseBox, CFGCustomServers, CFGFilePaths, CFGIRCNetworks, CFGServerPasswords, CFGWadAlias, CFGWadseekerSites, CFGAppearance, CFGIP2Country, CFGQuery, CFGIRCSounds, CFGAutoUpdates, CFGWadseekerAppearance, CFGWadseekerGeneral, CFGWadseekerIdgames, CfgChatLogsPage, and CFGIRCAppearance.
|
pure virtual |
Reimplement this to return a list-displayable name for this ConfigurationBaseBox.
Implemented in EngineConfigurationBaseBox, CFGFilePaths, CFGCustomServers, CFGIRCNetworks, CFGServerPasswords, CFGWadAlias, CFGWadseekerSites, CFGAppearance, CFGIP2Country, CFGQuery, CFGIRCSounds, CFGAutoUpdates, CFGWadseekerAppearance, CFGWadseekerGeneral, CFGWadseekerIdgames, CfgChatLogsPage, and CFGIRCAppearance.
| void ConfigurationBaseBox::read | ( | ) |
Read configuration from persistence to page contents.
Definition at line 56 of file configurationbasebox.cpp.
|
protectedpure virtual |
Reimplement this to read settings from config into widgets.
Implemented in EngineConfigurationBaseBox, CFGCustomServers, CFGIRCNetworks, CFGServerPasswords, CFGWadAlias, CFGAppearance, CFGWadseekerSites, CFGAutoUpdates, CFGIP2Country, CFGQuery, CFGIRCSounds, CFGFilePaths, CFGWadseekerAppearance, CFGWadseekerGeneral, CFGWadseekerIdgames, CfgChatLogsPage, and CFGIRCAppearance.
| bool ConfigurationBaseBox::save | ( | ) |
Save configuration from page contents to persistence.
Definition at line 62 of file configurationbasebox.cpp.
|
protectedpure virtual |
Reimplement this to write settings to config from widgets.
Implemented in EngineConfigurationBaseBox, CFGCustomServers, CFGFilePaths, CFGWadseekerSites, CFGIRCNetworks, CFGServerPasswords, CFGWadseekerIdgames, CFGWadAlias, CFGAppearance, CFGWadseekerGeneral, CFGIRCSounds, CFGAutoUpdates, CFGIP2Country, CFGQuery, CFGWadseekerAppearance, CfgChatLogsPage, and CFGIRCAppearance.
| void ConfigurationBaseBox::setAllowSave | ( | bool | b | ) |
Change whether settings on this page can be stored in persisting configuration.
Definition at line 75 of file configurationbasebox.cpp.
|
virtual |
Page title, by default returns the same string as name().
Reimplemented in EngineConfigurationBaseBox, CFGIRCNetworks, CFGWadseekerSites, CFGIRCSounds, CFGWadseekerAppearance, CFGWadseekerGeneral, CFGWadseekerIdgames, CfgChatLogsPage, and CFGIRCAppearance.
Definition at line 80 of file configurationbasebox.cpp.