libkdepim
#include <kprefsdialog.h>
Public Member Functions | |
KPrefsWidManager (KConfigSkeleton *prefs) | |
virtual | ~KPrefsWidManager () |
virtual void | addWid (KPrefsWid *) |
KPrefsWidBool * | addWidBool (KConfigSkeleton::ItemBool *item, QWidget *parent=0) |
KPrefsWidColor * | addWidColor (KConfigSkeleton::ItemColor *item, QWidget *parent=0) |
KPrefsWidCombo * | addWidCombo (KConfigSkeleton::ItemEnum *item, QWidget *parent=0) |
KPrefsWidDate * | addWidDate (KConfigSkeleton::ItemDateTime *item, QWidget *parent=0) |
KPrefsWidDuration * | addWidDuration (KConfigSkeleton::ItemDateTime *item, const QString &format, QWidget *parent=0) |
KPrefsWidFont * | addWidFont (KConfigSkeleton::ItemFont *item, QWidget *parent=0, const QString &sampleText=QString()) |
KPrefsWidInt * | addWidInt (KConfigSkeleton::ItemInt *item, QWidget *parent=0) |
KPrefsWidString * | addWidPassword (KConfigSkeleton::ItemString *item, QWidget *parent=0) |
KPrefsWidPath * | addWidPath (KConfigSkeleton::ItemPath *item, QWidget *parent=0, const QString &filter=QString(), KFile::Modes mode=KFile::File) |
KPrefsWidRadios * | addWidRadios (KConfigSkeleton::ItemEnum *item, QWidget *parent=0) |
KPrefsWidString * | addWidString (KConfigSkeleton::ItemString *item, QWidget *parent=0) |
KPrefsWidTime * | addWidTime (KConfigSkeleton::ItemDateTime *item, QWidget *parent=0) |
KConfigSkeleton * | prefs () const |
void | readWidConfig () |
void | setWidDefaults () |
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 571 of file kprefsdialog.h.
Constructor & Destructor Documentation
|
explicit |
Create a KPrefsWidManager object for a KPrefs object.
- Parameters
-
prefs KPrefs object used to access te configuration.
Definition at line 626 of file kprefsdialog.cpp.
|
virtual |
Destructor.
Definition at line 631 of file kprefsdialog.cpp.
Member Function Documentation
|
virtual |
Register a custom KPrefsWid object.
Reimplemented in KPIM::KPrefsModule.
Definition at line 637 of file kprefsdialog.cpp.
KPrefsWidBool * KPrefsWidManager::addWidBool | ( | KConfigSkeleton::ItemBool * | item, |
QWidget * | parent = 0 |
||
) |
Register a KPrefsWidBool object.
- Parameters
-
item The KConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 642 of file kprefsdialog.cpp.
KPrefsWidColor * KPrefsWidManager::addWidColor | ( | KConfigSkeleton::ItemColor * | item, |
QWidget * | parent = 0 |
||
) |
Register a KPrefsWidColor object.
- Parameters
-
item The KConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 675 of file kprefsdialog.cpp.
KPrefsWidCombo * KPrefsWidManager::addWidCombo | ( | KConfigSkeleton::ItemEnum * | item, |
QWidget * | parent = 0 |
||
) |
Register a KPrefsWidCombo object.
The choices represented by the given item object are automatically added to the combo box.
- Parameters
-
item The KConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 698 of file kprefsdialog.cpp.
KPrefsWidDate * KPrefsWidManager::addWidDate | ( | KConfigSkeleton::ItemDateTime * | item, |
QWidget * | parent = 0 |
||
) |
Register a KPrefsWidDate object.
- Parameters
-
item The KConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 667 of file kprefsdialog.cpp.
KPrefsWidDuration * KPrefsWidManager::addWidDuration | ( | KConfigSkeleton::ItemDateTime * | item, |
const QString & | format, | ||
QWidget * | parent = 0 |
||
) |
Register a KPrefsWidDuration object.
- Parameters
-
item The KConfigSkeletonItem representing the preferences entry. format display format. default is "hh:mm:ss" parent Parent widget.
Definition at line 658 of file kprefsdialog.cpp.
KPrefsWidFont * KPrefsWidManager::addWidFont | ( | KConfigSkeleton::ItemFont * | item, |
QWidget * | parent = 0 , |
||
const QString & | sampleText = QString() |
||
) |
Register a KPrefsWidFont object.
- Parameters
-
item The KConfigSkeletonItem representing the preferences entry. parent Parent widget. sampleText Sample text for previewing the selected font.
Definition at line 738 of file kprefsdialog.cpp.
KPrefsWidInt * KPrefsWidManager::addWidInt | ( | KConfigSkeleton::ItemInt * | item, |
QWidget * | parent = 0 |
||
) |
Register a KPrefsWidInt object.
- Parameters
-
item The KConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 747 of file kprefsdialog.cpp.
KPrefsWidString * KPrefsWidManager::addWidPassword | ( | KConfigSkeleton::ItemString * | item, |
QWidget * | parent = 0 |
||
) |
Register a password KPrefsWidString object, with echomode set to KLineEdit::Password.
- Parameters
-
item The KConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 730 of file kprefsdialog.cpp.
KPrefsWidPath * KPrefsWidManager::addWidPath | ( | KConfigSkeleton::ItemPath * | item, |
QWidget * | parent = 0 , |
||
const QString & | filter = QString() , |
||
KFile::Modes | mode = KFile::File |
||
) |
Register a path KPrefsWidPath object.
- Parameters
-
item The KConfigSkeletonItem representing the preferences entry. parent Parent widget. filter URLRequester filter mode URLRequester mode
Definition at line 720 of file kprefsdialog.cpp.
KPrefsWidRadios * KPrefsWidManager::addWidRadios | ( | KConfigSkeleton::ItemEnum * | item, |
QWidget * | parent = 0 |
||
) |
Register a KPrefsWidRadios object.
The choices represented by the given item object are automatically added as radio buttons.
- Parameters
-
item The KConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 683 of file kprefsdialog.cpp.
KPrefsWidString * KPrefsWidManager::addWidString | ( | KConfigSkeleton::ItemString * | item, |
QWidget * | parent = 0 |
||
) |
Register a KPrefsWidString object.
- Parameters
-
item The KConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 712 of file kprefsdialog.cpp.
KPrefsWidTime * KPrefsWidManager::addWidTime | ( | KConfigSkeleton::ItemDateTime * | item, |
QWidget * | parent = 0 |
||
) |
Register a KPrefsWidTime object.
- Parameters
-
item The KConfigSkeletonItem representing the preferences entry. parent Parent widget.
Definition at line 650 of file kprefsdialog.cpp.
|
inline |
Definition at line 586 of file kprefsdialog.h.
void KPrefsWidManager::readWidConfig | ( | ) |
Read preferences from config file.
Definition at line 762 of file kprefsdialog.cpp.
void KPrefsWidManager::setWidDefaults | ( | ) |
Set all widgets to default values.
Definition at line 755 of file kprefsdialog.cpp.
void KPrefsWidManager::writeWidConfig | ( | ) |
Write preferences to config file.
Definition at line 770 of file kprefsdialog.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.