#include <kprefsdialog.h>
Public Member Functions | |
KPrefsWidManager (TDEConfigSkeleton *prefs) | |
virtual | ~KPrefsWidManager () |
TDEConfigSkeleton * | prefs () const |
virtual void | addWid (KPrefsWid *) |
KPrefsWidBool * | addWidBool (TDEConfigSkeleton::ItemBool *item, TQWidget *parent) |
KPrefsWidInt * | addWidInt (TDEConfigSkeleton::ItemInt *item, TQWidget *parent) |
KPrefsWidDate * | addWidDate (TDEConfigSkeleton::ItemDateTime *item, TQWidget *parent) |
KPrefsWidTime * | addWidTime (TDEConfigSkeleton::ItemDateTime *item, TQWidget *parent) |
KPrefsWidDuration * | addWidDuration (TDEConfigSkeleton::ItemDateTime *item, TQWidget *parent) |
KPrefsWidColor * | addWidColor (TDEConfigSkeleton::ItemColor *item, TQWidget *parent) |
KPrefsWidRadios * | addWidRadios (TDEConfigSkeleton::ItemEnum *item, TQWidget *parent) |
KPrefsWidCombo * | addWidCombo (TDEConfigSkeleton::ItemEnum *item, TQWidget *parent) |
KPrefsWidString * | addWidString (TDEConfigSkeleton::ItemString *item, TQWidget *parent) |
KPrefsWidPath * | addWidPath (TDEConfigSkeleton::ItemPath *item, TQWidget *parent, const TQString &filter=TQString(), uint mode=KFile::File) |
KPrefsWidString * | addWidPassword (TDEConfigSkeleton::ItemString *item, TQWidget *parent) |
KPrefsWidFont * | addWidFont (TDEConfigSkeleton::ItemFont *item, TQWidget *parent, const TQString &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 557 of file kprefsdialog.h.
Constructor & Destructor Documentation
◆ KPrefsWidManager()
KPrefsWidManager::KPrefsWidManager | ( | TDEConfigSkeleton * | prefs | ) |
Create a KPrefsWidManager object for a KPrefs object.
- Parameters
-
prefs KPrefs object used to access te configuration.
Definition at line 578 of file kprefsdialog.cpp.
◆ ~KPrefsWidManager()
|
virtual |
Destructor.
Definition at line 583 of file kprefsdialog.cpp.
Member Function Documentation
◆ addWid()
|
virtual |
Register a custom KPrefsWid object.
Definition at line 587 of file kprefsdialog.cpp.
◆ addWidBool()
KPrefsWidBool * KPrefsWidManager::addWidBool | ( | TDEConfigSkeleton::ItemBool * | item, |
TQWidget * | parent | ||
) |
Register a KPrefsWidBool object.
- Parameters
-
item The TDEConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 592 of file kprefsdialog.cpp.
◆ addWidColor()
KPrefsWidColor * KPrefsWidManager::addWidColor | ( | TDEConfigSkeleton::ItemColor * | item, |
TQWidget * | parent | ||
) |
Register a KPrefsWidColor object.
- Parameters
-
item The TDEConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 624 of file kprefsdialog.cpp.
◆ addWidCombo()
KPrefsWidCombo * KPrefsWidManager::addWidCombo | ( | TDEConfigSkeleton::ItemEnum * | item, |
TQWidget * | parent | ||
) |
Register a KPrefsWidCombo object.
The choices represented by the given item object are automatically added to the combo box.
- Parameters
-
item The TDEConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 646 of file kprefsdialog.cpp.
◆ addWidDate()
KPrefsWidDate * KPrefsWidManager::addWidDate | ( | TDEConfigSkeleton::ItemDateTime * | item, |
TQWidget * | parent | ||
) |
Register a KPrefsWidDate object.
- Parameters
-
item The TDEConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 616 of file kprefsdialog.cpp.
◆ addWidDuration()
KPrefsWidDuration * KPrefsWidManager::addWidDuration | ( | TDEConfigSkeleton::ItemDateTime * | item, |
TQWidget * | parent | ||
) |
Register a KPrefsWidDuration object.
- Parameters
-
item The TDEConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 608 of file kprefsdialog.cpp.
◆ addWidFont()
KPrefsWidFont * KPrefsWidManager::addWidFont | ( | TDEConfigSkeleton::ItemFont * | item, |
TQWidget * | parent, | ||
const TQString & | sampleText | ||
) |
Register a KPrefsWidFont object.
- Parameters
-
item The TDEConfigSkeletonItem representing the preferences entry. parent Parent widget. sampleText Sample text for previewing the selected font.
Definition at line 685 of file kprefsdialog.cpp.
◆ addWidInt()
KPrefsWidInt * KPrefsWidManager::addWidInt | ( | TDEConfigSkeleton::ItemInt * | item, |
TQWidget * | parent | ||
) |
Register a KPrefsWidInt object.
- Parameters
-
item The TDEConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 694 of file kprefsdialog.cpp.
◆ addWidPassword()
KPrefsWidString * KPrefsWidManager::addWidPassword | ( | TDEConfigSkeleton::ItemString * | item, |
TQWidget * | parent | ||
) |
Register a password KPrefsWidString object, with echomode set to TQLineEdit::Password.
- Parameters
-
item The TDEConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 677 of file kprefsdialog.cpp.
◆ addWidPath()
KPrefsWidPath * KPrefsWidManager::addWidPath | ( | TDEConfigSkeleton::ItemPath * | item, |
TQWidget * | parent, | ||
const TQString & | filter = TQString() , |
||
uint | mode = KFile::File |
||
) |
Register a path KPrefsWidPath object.
- Parameters
-
item The TDEConfigSkeletonItem representing the preferences entry. parent Parent widget. filter URLRequester filter mode URLRequester mode
Definition at line 669 of file kprefsdialog.cpp.
◆ addWidRadios()
KPrefsWidRadios * KPrefsWidManager::addWidRadios | ( | TDEConfigSkeleton::ItemEnum * | item, |
TQWidget * | parent | ||
) |
Register a KPrefsWidRadios object.
The choices represented by the given item object are automatically added as radio buttons.
- Parameters
-
item The TDEConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 632 of file kprefsdialog.cpp.
◆ addWidString()
KPrefsWidString * KPrefsWidManager::addWidString | ( | TDEConfigSkeleton::ItemString * | item, |
TQWidget * | parent | ||
) |
Register a KPrefsWidString object.
- Parameters
-
item The TDEConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 660 of file kprefsdialog.cpp.
◆ addWidTime()
KPrefsWidTime * KPrefsWidManager::addWidTime | ( | TDEConfigSkeleton::ItemDateTime * | item, |
TQWidget * | parent | ||
) |
Register a KPrefsWidTime object.
- Parameters
-
item The TDEConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 600 of file kprefsdialog.cpp.
◆ readWidConfig()
void KPrefsWidManager::readWidConfig | ( | ) |
Read preferences from config file.
Definition at line 713 of file kprefsdialog.cpp.
◆ setWidDefaults()
void KPrefsWidManager::setWidDefaults | ( | ) |
Set all widgets to default values.
Definition at line 702 of file kprefsdialog.cpp.
◆ writeWidConfig()
void KPrefsWidManager::writeWidConfig | ( | ) |
Write preferences to config file.
Definition at line 723 of file kprefsdialog.cpp.
The documentation for this class was generated from the following files: