KPrefsWidManager Class Reference
Class for managing KPrefsWid objects. More...
#include <kprefsdialog.h>
Inheritance diagram for KPrefsWidManager:


Public Member Functions | |
| KPrefsWidManager (KConfigSkeleton *prefs) | |
| virtual | ~KPrefsWidManager () |
| KConfigSkeleton * | prefs () const |
| virtual void | addWid (KPrefsWid *) |
| KPrefsWidBool * | addWidBool (KConfigSkeleton::ItemBool *item, QWidget *parent) |
| KPrefsWidInt * | addWidInt (KConfigSkeleton::ItemInt *item, QWidget *parent) |
| KPrefsWidTime * | addWidTime (KConfigSkeleton::ItemDateTime *item, QWidget *parent) |
| KPrefsWidColor * | addWidColor (KConfigSkeleton::ItemColor *item, QWidget *parent) |
| KPrefsWidRadios * | addWidRadios (KConfigSkeleton::ItemEnum *item, QWidget *parent) |
| KPrefsWidString * | addWidString (KConfigSkeleton::ItemString *item, QWidget *parent) |
| KPrefsWidString * | addWidPassword (KConfigSkeleton::ItemString *item, QWidget *parent) |
| KPrefsWidFont * | addWidFont (KConfigSkeleton::ItemFont *item, QWidget *parent, const QString &sampleText) |
| void | setWidDefaults () |
| void | readWidConfig () |
| void | writeWidConfig () |
Detailed Description
Class for managing KPrefsWid objects.This class manages standard configuration widgets provided bz the KPrefsWid subclasses. It handles creation, loading, saving and default values in a transparent way. The user has to add the widgets by the corresponding addWid functions and KPrefsWidManager handles the rest automatically.
Definition at line 385 of file kprefsdialog.h.
Constructor & Destructor Documentation
|
|
Create a KPrefsWidManager object for a KPrefs object.
Definition at line 403 of file kprefsdialog.cpp. |
|
|
Destructor.
Definition at line 408 of file kprefsdialog.cpp. |
Member Function Documentation
|
|
Register a custom KPrefsWid object.
Definition at line 412 of file kprefsdialog.cpp. Referenced by addWidBool(), addWidColor(), addWidFont(), addWidInt(), addWidPassword(), addWidRadios(), addWidString(), and addWidTime(). |
|
||||||||||||
|
Register a KPrefsWidBool object.
Definition at line 417 of file kprefsdialog.cpp. References addWid(). |
|
||||||||||||
|
Register a KPrefsWidInt object.
Definition at line 481 of file kprefsdialog.cpp. References addWid(). |
|
||||||||||||
|
Register a KPrefsWidTime object.
Definition at line 425 of file kprefsdialog.cpp. References addWid(). |
|
||||||||||||
|
Register a KPrefsWidColor object.
Definition at line 433 of file kprefsdialog.cpp. References addWid(). |
|
||||||||||||
|
Register a KPrefsWidRadios object. The choices represented by the given item object are automatically added as radio buttons.
Definition at line 441 of file kprefsdialog.cpp. References KPrefsWidRadios::addRadio(), and addWid(). |
|
||||||||||||
|
Register a KPrefsWidString object.
Definition at line 455 of file kprefsdialog.cpp. References addWid(). |
|
||||||||||||
|
Register a password KPrefsWidString object, with echomode set to QLineEdit::Password.
Definition at line 464 of file kprefsdialog.cpp. References addWid(). |
|
||||||||||||||||
|
Register a KPrefsWidFont object.
Definition at line 472 of file kprefsdialog.cpp. References addWid(). |
|
|
Set all widgets to default values.
Definition at line 489 of file kprefsdialog.cpp. References readWidConfig(). Referenced by KPrefsDialog::setDefaults(). |
|
|
Read preferences from config file.
Definition at line 500 of file kprefsdialog.cpp. References KPrefsWid::readConfig(). Referenced by KPrefsDialog::readConfig(), and setWidDefaults(). |
|
|
Write preferences to config file.
Definition at line 510 of file kprefsdialog.cpp. References KPrefsWid::writeConfig(). Referenced by KPrefsDialog::writeConfig(). |
The documentation for this class was generated from the following files:
