libtdepim

KPrefsWidManager Class Reference

#include <kprefsdialog.h>

Inheritance diagram for KPrefsWidManager:
KPrefsDialog

Public Member Functions

 KPrefsWidManager (TDEConfigSkeleton *prefs)
 
virtual ~KPrefsWidManager ()
 
TDEConfigSkeleton * prefs () const
 
virtual void addWid (KPrefsWid *)
 
KPrefsWidBooladdWidBool (TDEConfigSkeleton::ItemBool *item, TQWidget *parent)
 
KPrefsWidIntaddWidInt (TDEConfigSkeleton::ItemInt *item, TQWidget *parent)
 
KPrefsWidDateaddWidDate (TDEConfigSkeleton::ItemDateTime *item, TQWidget *parent)
 
KPrefsWidTimeaddWidTime (TDEConfigSkeleton::ItemDateTime *item, TQWidget *parent)
 
KPrefsWidDurationaddWidDuration (TDEConfigSkeleton::ItemDateTime *item, TQWidget *parent)
 
KPrefsWidColoraddWidColor (TDEConfigSkeleton::ItemColor *item, TQWidget *parent)
 
KPrefsWidRadiosaddWidRadios (TDEConfigSkeleton::ItemEnum *item, TQWidget *parent)
 
KPrefsWidComboaddWidCombo (TDEConfigSkeleton::ItemEnum *item, TQWidget *parent)
 
KPrefsWidStringaddWidString (TDEConfigSkeleton::ItemString *item, TQWidget *parent)
 
KPrefsWidPathaddWidPath (TDEConfigSkeleton::ItemPath *item, TQWidget *parent, const TQString &filter=TQString(), uint mode=KFile::File)
 
KPrefsWidStringaddWidPassword (TDEConfigSkeleton::ItemString *item, TQWidget *parent)
 
KPrefsWidFontaddWidFont (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
prefsKPrefs object used to access te configuration.

Definition at line 578 of file kprefsdialog.cpp.

◆ ~KPrefsWidManager()

KPrefsWidManager::~KPrefsWidManager ( )
virtual

Destructor.

Definition at line 583 of file kprefsdialog.cpp.

Member Function Documentation

◆ addWid()

void KPrefsWidManager::addWid ( KPrefsWid wid)
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
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent widget.

Definition at line 592 of file kprefsdialog.cpp.

◆ addWidColor()

KPrefsWidColor * KPrefsWidManager::addWidColor ( TDEConfigSkeleton::ItemColor *  item,
TQWidget *  parent 
)

Register a KPrefsWidColor object.

Parameters
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent 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
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent widget.

Definition at line 646 of file kprefsdialog.cpp.

◆ addWidDate()

KPrefsWidDate * KPrefsWidManager::addWidDate ( TDEConfigSkeleton::ItemDateTime *  item,
TQWidget *  parent 
)

Register a KPrefsWidDate object.

Parameters
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent widget.

Definition at line 616 of file kprefsdialog.cpp.

◆ addWidDuration()

KPrefsWidDuration * KPrefsWidManager::addWidDuration ( TDEConfigSkeleton::ItemDateTime *  item,
TQWidget *  parent 
)

Register a KPrefsWidDuration object.

Parameters
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent 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
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent widget.
sampleTextSample 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
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent 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
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent 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
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent widget.
filterURLRequester filter
modeURLRequester 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
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent widget.

Definition at line 632 of file kprefsdialog.cpp.

◆ addWidString()

KPrefsWidString * KPrefsWidManager::addWidString ( TDEConfigSkeleton::ItemString *  item,
TQWidget *  parent 
)

Register a KPrefsWidString object.

Parameters
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent widget.

Definition at line 660 of file kprefsdialog.cpp.

◆ addWidTime()

KPrefsWidTime * KPrefsWidManager::addWidTime ( TDEConfigSkeleton::ItemDateTime *  item,
TQWidget *  parent 
)

Register a KPrefsWidTime object.

Parameters
itemThe TDEConfigSkeletonItem representing the preferences entry.
parentParent 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: