#include <tdeconfigskeleton.h>
Inherited by TDEConfigSkeletonGenericItem< long >, TDEConfigSkeletonGenericItem< TQColor >, TDEConfigSkeletonGenericItem< unsigned long >, TDEConfigSkeletonGenericItem< TQ_INT64 >, TDEConfigSkeletonGenericItem< double >, TDEConfigSkeletonGenericItem< TQString >, TDEConfigSkeletonGenericItem< TQ_UINT64 >, TDEConfigSkeletonGenericItem< int >, TDEConfigSkeletonGenericItem< unsigned int >, TDEConfigSkeletonGenericItem< TQVariant >, TDEConfigSkeletonGenericItem< TQSize >, TDEConfigSkeletonGenericItem< TQRect >, TDEConfigSkeletonGenericItem< TQPoint >, TDEConfigSkeletonGenericItem< TQValueList< int > >, TDEConfigSkeletonGenericItem< TQFont >, TDEConfigSkeletonGenericItem< bool >, TDEConfigSkeletonGenericItem< TQStringList >, TDEConfigSkeletonGenericItem< TQDateTime >, and TDEConfigSkeletonGenericItem< T >.
Public Types | |
typedef TQValueList< TDEConfigSkeletonItem * > | List |
typedef TQDict< TDEConfigSkeletonItem > | Dict |
typedef TQDictIterator< TDEConfigSkeletonItem > | DictIterator |
Public Member Functions | |
TDEConfigSkeletonItem (const TQString &group, const TQString &key) | |
virtual | ~TDEConfigSkeletonItem () |
void | setGroup (const TQString &group) |
TQString | group () const |
void | setKey (const TQString &key) |
TQString | key () const |
void | setName (const TQString &name) |
TQString | name () const |
void | setLabel (const TQString &l) |
TQString | label () const |
void | setWhatsThis (const TQString &w) |
TQString | whatsThis () const |
virtual void | readConfig (TDEConfig *)=0 |
virtual void | writeConfig (TDEConfig *)=0 |
virtual void | readDefault (TDEConfig *)=0 |
virtual void | setProperty (const TQVariant &p)=0 |
virtual TQVariant | property () const =0 |
virtual TQVariant | minValue () const |
virtual TQVariant | maxValue () const |
virtual void | setDefault ()=0 |
virtual void | swapDefault ()=0 |
bool | isImmutable () const |
Protected Member Functions | |
void | readImmutability (TDEConfig *config) |
Protected Attributes | |
TQString | mGroup |
TQString | mKey |
TQString | mName |
Detailed Description
Class for storing a preferences setting.
- See also
- TDEConfigSkeleton
This class represents one preferences setting as used by TDEConfigSkeleton. Subclasses of TDEConfigSkeletonItem implement storage functions for a certain type of setting. Normally you don't have to use this class directly. Use the special addItem() functions of TDEConfigSkeleton instead. If you subclass this class you will have to register instances with the function TDEConfigSkeleton::addItem().
Definition at line 50 of file tdeconfigskeleton.h.
Constructor & Destructor Documentation
◆ TDEConfigSkeletonItem()
|
inline |
Constructor.
- Parameters
-
group Config file group. key Config file key.
Definition at line 63 of file tdeconfigskeleton.h.
◆ ~TDEConfigSkeletonItem()
|
inlinevirtual |
Destructor.
Definition at line 71 of file tdeconfigskeleton.h.
Member Function Documentation
◆ group()
|
inline |
Return config file group.
Definition at line 86 of file tdeconfigskeleton.h.
◆ isImmutable()
|
inline |
Return if the entry can be modified.
Definition at line 207 of file tdeconfigskeleton.h.
◆ key()
|
inline |
Return config file key.
Definition at line 102 of file tdeconfigskeleton.h.
◆ label()
|
inline |
◆ maxValue()
|
inlinevirtual |
Return maximum value of item or invalid if not specified.
Reimplemented in TDEConfigSkeleton::ItemDouble, TDEConfigSkeleton::ItemUInt64, TDEConfigSkeleton::ItemULong, TDEConfigSkeleton::ItemLong, TDEConfigSkeleton::ItemUInt, TDEConfigSkeleton::ItemInt64, and TDEConfigSkeleton::ItemInt.
Definition at line 191 of file tdeconfigskeleton.h.
◆ minValue()
|
inlinevirtual |
Return minimum value of item or invalid if not specified.
Reimplemented in TDEConfigSkeleton::ItemDouble, TDEConfigSkeleton::ItemUInt64, TDEConfigSkeleton::ItemULong, TDEConfigSkeleton::ItemLong, TDEConfigSkeleton::ItemUInt, TDEConfigSkeleton::ItemInt64, and TDEConfigSkeleton::ItemInt.
Definition at line 186 of file tdeconfigskeleton.h.
◆ name()
|
inline |
Return internal name of entry.
Definition at line 118 of file tdeconfigskeleton.h.
◆ property()
|
pure virtual |
Return item as property.
Implemented in TDEConfigSkeleton::ItemIntList, TDEConfigSkeleton::ItemStringList, TDEConfigSkeleton::ItemDateTime, TDEConfigSkeleton::ItemSize, TDEConfigSkeleton::ItemPoint, TDEConfigSkeleton::ItemRect, TDEConfigSkeleton::ItemFont, TDEConfigSkeleton::ItemColor, TDEConfigSkeleton::ItemDouble, TDEConfigSkeleton::ItemUInt64, TDEConfigSkeleton::ItemULong, TDEConfigSkeleton::ItemLong, TDEConfigSkeleton::ItemUInt, TDEConfigSkeleton::ItemInt64, TDEConfigSkeleton::ItemInt, TDEConfigSkeleton::ItemBool, TDEConfigSkeleton::ItemProperty, and TDEConfigSkeleton::ItemString.
◆ readConfig()
|
pure virtual |
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
value.
Implemented in TDEConfigSkeleton::ItemIntList, TDEConfigSkeleton::ItemPathList, TDEConfigSkeleton::ItemStringList, TDEConfigSkeleton::ItemDateTime, TDEConfigSkeleton::ItemSize, TDEConfigSkeleton::ItemPoint, TDEConfigSkeleton::ItemRect, TDEConfigSkeleton::ItemFont, TDEConfigSkeleton::ItemColor, TDEConfigSkeleton::ItemDouble, TDEConfigSkeleton::ItemUInt64, TDEConfigSkeleton::ItemULong, TDEConfigSkeleton::ItemLong, TDEConfigSkeleton::ItemUInt, TDEConfigSkeleton::ItemEnum, TDEConfigSkeleton::ItemInt64, TDEConfigSkeleton::ItemInt, TDEConfigSkeleton::ItemBool, TDEConfigSkeleton::ItemProperty, and TDEConfigSkeleton::ItemString.
◆ readDefault()
|
pure virtual |
Read global default value.
◆ readImmutability()
|
protected |
sets mIsImmutable to true if mKey in config is immutable
- Parameters
-
config TDEConfig to check if mKey is immutable in
Definition at line 35 of file tdeconfigskeleton.cpp.
◆ setDefault()
|
pure virtual |
Sets the current value to the default value.
◆ setGroup()
|
inline |
Set config file group.
Definition at line 78 of file tdeconfigskeleton.h.
◆ setKey()
|
inline |
Set config file key.
Definition at line 94 of file tdeconfigskeleton.h.
◆ setLabel()
|
inline |
Set label providing a translated one-line description of the item.
Definition at line 126 of file tdeconfigskeleton.h.
◆ setName()
|
inline |
Set internal name of entry.
Definition at line 110 of file tdeconfigskeleton.h.
◆ setProperty()
|
pure virtual |
Set item to p
.
Implemented in TDEConfigSkeleton::ItemIntList, TDEConfigSkeleton::ItemStringList, TDEConfigSkeleton::ItemDateTime, TDEConfigSkeleton::ItemSize, TDEConfigSkeleton::ItemPoint, TDEConfigSkeleton::ItemRect, TDEConfigSkeleton::ItemFont, TDEConfigSkeleton::ItemColor, TDEConfigSkeleton::ItemDouble, TDEConfigSkeleton::ItemUInt64, TDEConfigSkeleton::ItemULong, TDEConfigSkeleton::ItemLong, TDEConfigSkeleton::ItemUInt, TDEConfigSkeleton::ItemInt64, TDEConfigSkeleton::ItemInt, TDEConfigSkeleton::ItemBool, TDEConfigSkeleton::ItemProperty, and TDEConfigSkeleton::ItemString.
◆ setWhatsThis()
|
inline |
Set WhatsThis description og item.
Definition at line 142 of file tdeconfigskeleton.h.
◆ swapDefault()
|
pure virtual |
Exchanges the current value with the default value Used by TDEConfigSkeleton::useDefaults(bool);.
◆ whatsThis()
|
inline |
Return WhatsThis description of item.
See setWhatsThis().
Definition at line 150 of file tdeconfigskeleton.h.
◆ writeConfig()
|
pure virtual |
This function is called by TDEConfigSkeleton to write the value of this setting to a config file.
Implemented in TDEConfigSkeleton::ItemPathList, TDEConfigSkeleton::ItemEnum, and TDEConfigSkeleton::ItemString.
The documentation for this class was generated from the following files: