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