KPrefsDialog Class Reference
Base class for a preferences dialog. More...
#include <kprefsdialog.h>
Inheritance diagram for KPrefsDialog:

Public Slots | |
void | setDefaults () |
void | readConfig () |
void | writeConfig () |
Signals | |
void | configChanged () |
Public Methods | |
KPrefsDialog (KConfigSkeleton *prefs, QWidget *parent=0, char *name=0, bool modal=false) | |
virtual | ~KPrefsDialog () |
void | autoCreate () |
Protected Slots | |
void | slotApply () |
void | slotOk () |
void | slotDefault () |
Protected Methods | |
virtual void | usrReadConfig () |
virtual void | usrWriteConfig () |
Detailed Description
Base class for a preferences dialog.This class provides the framework for a preferences dialog. You have to subclass it and add the code to create the actual configuration widgets and do the layout management.
KPrefsDialog provides functions to add subclasses of KPrefsWid via KPrefsWidManager. For these widgets the reading, writing and setting to default values is handled automatically. Custom widgets have to be handled in the functions usrReadConfig() and usrWriteConfig().
Definition at line 498 of file kprefsdialog.h.
Constructor & Destructor Documentation
|
Create a KPrefsDialog for a KPrefs object.
Definition at line 509 of file kprefsdialog.cpp. |
|
Destructor.
Definition at line 522 of file kprefsdialog.cpp. |
Member Function Documentation
|
Set all widgets to default values.
Definition at line 587 of file kprefsdialog.cpp. References KPrefsWidManager::setWidDefaults(). Referenced by slotDefault(). |
|
Read preferences from config file.
Definition at line 592 of file kprefsdialog.cpp. References KPrefsWidManager::readWidConfig(), and usrReadConfig(). Referenced by writeConfig(). |
|
Write preferences to config file.
Definition at line 599 of file kprefsdialog.cpp. References readConfig(), usrWriteConfig(), and KPrefsWidManager::writeWidConfig(). Referenced by slotApply(). |
|
Emitted when the a changed configuration has been stored.
Referenced by slotApply(). |
|
Apply changes to preferences.
Definition at line 609 of file kprefsdialog.cpp. References configChanged(), and writeConfig(). Referenced by slotOk(). |
|
Accept changes to preferences and close dialog.
Definition at line 615 of file kprefsdialog.cpp. References slotApply(). |
|
Set preferences to default values.
Definition at line 621 of file kprefsdialog.cpp. References setDefaults(). |
|
Implement this to read custom configuration widgets.
Definition at line 545 of file kprefsdialog.h. Referenced by readConfig(). |
|
Implement this to write custom configuration widgets.
Definition at line 547 of file kprefsdialog.h. Referenced by writeConfig(). |
The documentation for this class was generated from the following files: