libkdepim
#include <kprefsdialog.h>
Public Slots | |
void | readConfig () |
void | setDefaults () |
void | writeConfig () |
Signals | |
void | configChanged () |
Public Member Functions | |
KPrefsDialog (KConfigSkeleton *prefs, QWidget *parent=0, bool modal=false) | |
virtual | ~KPrefsDialog () |
void | autoCreate () |
Public Member Functions inherited from KPIM::KPrefsWidManager | |
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 () |
Protected Slots | |
void | slotApply () |
void | slotDefault () |
void | slotOk () |
Protected Member Functions | |
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 739 of file kprefsdialog.h.
Constructor & Destructor Documentation
|
explicit |
Create a KPrefsDialog for a KPrefs object.
- Parameters
-
prefs KPrefs object used to access te configuration. parent Parent widget. name Widget name. modal true, if dialog has to be modal, false for non-modal.
Definition at line 779 of file kprefsdialog.cpp.
|
virtual |
Destructor.
Definition at line 795 of file kprefsdialog.cpp.
Member Function Documentation
void KPrefsDialog::autoCreate | ( | ) |
Definition at line 800 of file kprefsdialog.cpp.
|
signal |
Emitted when the a changed configuration has been stored.
|
slot |
Read preferences from config file.
Definition at line 862 of file kprefsdialog.cpp.
|
slot |
Set all widgets to default values.
Definition at line 857 of file kprefsdialog.cpp.
|
protectedslot |
Apply changes to preferences.
Definition at line 875 of file kprefsdialog.cpp.
|
protectedslot |
Set preferences to default values.
Definition at line 888 of file kprefsdialog.cpp.
|
protectedslot |
Accept changes to preferences and close dialog.
Definition at line 882 of file kprefsdialog.cpp.
|
inlineprotectedvirtual |
Implement this to read custom configuration widgets.
Definition at line 787 of file kprefsdialog.h.
|
inlineprotectedvirtual |
Implement this to write custom configuration widgets.
Definition at line 789 of file kprefsdialog.h.
|
slot |
Write preferences to config file.
Definition at line 868 of file kprefsdialog.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.