libkdepim
KConfigWizard Class Reference
Configuration wizard base class. More...
#include <kconfigwizard.h>
Inherits KDialogBase.
Public Member Functions | |
KConfigWizard (TQWidget *parent=0, char *name=0, bool modal=false) | |
KConfigWizard (KConfigPropagator *propagator, TQWidget *parent=0, char *name=0, bool modal=false) | |
virtual | ~KConfigWizard () |
void | setPropagator (KConfigPropagator *) |
KConfigPropagator * | propagator () |
TQFrame * | createWizardPage (const TQString &title) |
virtual void | usrReadConfig ()=0 |
virtual void | usrWriteConfig ()=0 |
virtual TQString | validate () |
Protected Slots | |
void | readConfig () |
void | slotOk () |
void | slotAboutToShowPage (TQWidget *page) |
Protected Member Functions | |
void | init () |
void | setupRulesPage () |
void | updateRules () |
void | setupChangesPage () |
void | updateChanges () |
Detailed Description
Configuration wizard base class.Definition at line 33 of file kconfigwizard.h.
Constructor & Destructor Documentation
KConfigWizard::KConfigWizard | ( | TQWidget * | parent = 0 , |
|
char * | name = 0 , |
|||
bool | modal = false | |||
) |
Create wizard.
You have to set a propgator with setPropagator() later.
Definition at line 34 of file kconfigwizard.cpp.
KConfigWizard::KConfigWizard | ( | KConfigPropagator * | propagator, | |
TQWidget * | parent = 0 , |
|||
char * | name = 0 , |
|||
bool | modal = false | |||
) |
Create wizard for given KConfigPropagator.
The wizard takes ownership of the propagator.
Definition at line 43 of file kconfigwizard.cpp.
KConfigWizard::~KConfigWizard | ( | ) | [virtual] |
Member Function Documentation
void KConfigWizard::setPropagator | ( | KConfigPropagator * | p | ) |
KConfigPropagator* KConfigWizard::propagator | ( | ) | [inline] |
TQFrame * KConfigWizard::createWizardPage | ( | const TQString & | title | ) |
virtual void KConfigWizard::usrReadConfig | ( | ) | [pure virtual] |
Use this function to read the configuration from the KConfigSkeleton object to the GUI.
virtual void KConfigWizard::usrWriteConfig | ( | ) | [pure virtual] |
This function is called when the wizard is finished.
You have to save all settings from the GUI to the KConfigSkeleton object here, so that the KConfigPropagator can take them up from there.
virtual TQString KConfigWizard::validate | ( | ) | [inline, virtual] |
Validates the supplied data.
Returns a appropiate error when some data is invalid. Return TQString::null if all data is valid.
Definition at line 83 of file kconfigwizard.h.
The documentation for this class was generated from the following files: