• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
tdeconfigskeleton.h
1/*
2 * This file is part of KDE.
3 *
4 * Copyright (c) 2001,2002,2003 Cornelius Schumacher <schumacher@kde.org>
5 * Copyright (c) 2003 Waldo Bastian <bastian@kde.org>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
21 */
22
23#ifndef _TDECONFIGSKELETON_H
24#define _TDECONFIGSKELETON_H
25
26#include <tqcolor.h>
27#include <tqdatetime.h>
28#include <tqfont.h>
29#include <tqpoint.h>
30#include <tqptrlist.h>
31#include <tqdict.h>
32#include <tqrect.h>
33#include <tqsize.h>
34#include <tqstringlist.h>
35#include <tqvariant.h>
36#include <tdeconfig.h>
37#include <tdeglobalsettings.h>
38
50 class TDECORE_EXPORT TDEConfigSkeletonItem
51 {
52 public:
53 typedef TQValueList < TDEConfigSkeletonItem * >List;
54 typedef TQDict < TDEConfigSkeletonItem > Dict;
55 typedef TQDictIterator < TDEConfigSkeletonItem > DictIterator;
56
63 TDEConfigSkeletonItem(const TQString & group, const TQString & key)
64 :mGroup(group),mKey(key), mIsImmutable(true)
65 {
66 }
67
71 virtual ~TDEConfigSkeletonItem()
72 {
73 }
74
78 void setGroup( const TQString &group )
79 {
80 mGroup = group;
81 }
82
86 TQString group() const
87 {
88 return mGroup;
89 }
90
94 void setKey( const TQString &key )
95 {
96 mKey = key;
97 }
98
102 TQString key() const
103 {
104 return mKey;
105 }
106
110 void setName(const TQString &name)
111 {
112 mName = name;
113 }
114
118 TQString name() const
119 {
120 return mName;
121 }
122
126 void setLabel( const TQString &l )
127 {
128 mLabel = l;
129 }
130
134 TQString label() const
135 {
136 return mLabel;
137 }
138
142 void setWhatsThis( const TQString &w )
143 {
144 mWhatsThis = w;
145 }
146
150 TQString whatsThis() const
151 {
152 return mWhatsThis;
153 }
154
160 virtual void readConfig(TDEConfig *) = 0;
161
166 virtual void writeConfig(TDEConfig *) = 0;
167
171 virtual void readDefault(TDEConfig *) = 0;
172
176 virtual void setProperty(const TQVariant &p) = 0;
177
181 virtual TQVariant property() const = 0;
182
186 virtual TQVariant minValue() const { return TQVariant(); }
187
191 virtual TQVariant maxValue() const { return TQVariant(); }
192
196 virtual void setDefault() = 0;
197
202 virtual void swapDefault() = 0;
203
207 bool isImmutable() const
208 {
209 return mIsImmutable;
210 }
211
212 protected:
217 void readImmutability(TDEConfig *config);
218
219 TQString mGroup;
220 TQString mKey;
221 TQString mName;
222
223 private:
224 bool mIsImmutable;
225
226 TQString mLabel;
227 TQString mWhatsThis;
228 };
229
230
231template < typename T > class TDEConfigSkeletonGenericItem:public TDEConfigSkeletonItem
232 {
233 public:
234 TDEConfigSkeletonGenericItem(const TQString & group, const TQString & key, T & reference,
235 T defaultValue)
236 : TDEConfigSkeletonItem(group, key), mReference(reference),
237 mDefault(defaultValue), mLoadedValue(defaultValue)
238 {
239 }
240
244 void setValue(const T & v)
245 {
246 mReference = v;
247 }
248
252 T & value()
253 {
254 return mReference;
255 }
256
260 const T & value() const
261 {
262 return mReference;
263 }
264
268 virtual void setDefaultValue( const T &v )
269 {
270 mDefault = v;
271 }
272
273 virtual void setDefault()
274 {
275 mReference = mDefault;
276 }
277
278 virtual void writeConfig(TDEConfig * config)
279 {
280 if ( mReference != mLoadedValue ) // Is this needed?
281 {
282 config->setGroup(mGroup);
283 if ((mDefault == mReference) && !config->hasDefault( mKey))
284 config->revertToDefault( mKey );
285 else
286 config->writeEntry(mKey, mReference);
287 }
288 }
289
290 void readDefault(TDEConfig * config)
291 {
292 config->setReadDefaults(true);
293 readConfig(config);
294 config->setReadDefaults(false);
295 mDefault = mReference;
296 }
297
298 void swapDefault()
299 {
300 T tmp = mReference;
301 mReference = mDefault;
302 mDefault = tmp;
303 }
304
305 protected:
306 T & mReference;
307 T mDefault;
308 T mLoadedValue;
309 };
310
365class TDECORE_EXPORT TDEConfigSkeleton
366{
367public:
368
372 class TDECORE_EXPORT ItemString:public TDEConfigSkeletonGenericItem < TQString >
373 {
374 public:
375 enum Type { Normal, Password, Path };
376
377 ItemString(const TQString & group, const TQString & key,
378 TQString & reference,
379 const TQString & defaultValue = TQString::fromLatin1(""), // NOT TQString::null !!
380 Type type = Normal);
381
382 void writeConfig(TDEConfig * config);
383 void readConfig(TDEConfig * config);
384 void setProperty(const TQVariant & p);
385 TQVariant property() const;
386
387 private:
388 Type mType;
389 };
390
394 class TDECORE_EXPORT ItemPassword:public ItemString
395 {
396 public:
397 ItemPassword(const TQString & group, const TQString & key,
398 TQString & reference,
399 const TQString & defaultValue = TQString::fromLatin1("")); // NOT TQString::null !!
400 };
401
405 class TDECORE_EXPORT ItemPath:public ItemString
406 {
407 public:
408 ItemPath(const TQString & group, const TQString & key,
409 TQString & reference,
410 const TQString & defaultValue = TQString::null);
411 };
412
413
417 class TDECORE_EXPORT ItemProperty:public TDEConfigSkeletonGenericItem < TQVariant >
418 {
419 public:
420 ItemProperty(const TQString & group, const TQString & key,
421 TQVariant & reference, TQVariant defaultValue = 0);
422
423 void readConfig(TDEConfig * config);
424 void setProperty(const TQVariant & p);
425 TQVariant property() const;
426 };
427
428
432 class TDECORE_EXPORT ItemBool:public TDEConfigSkeletonGenericItem < bool >
433 {
434 public:
435 ItemBool(const TQString & group, const TQString & key, bool & reference,
436 bool defaultValue = true);
437
438 void readConfig(TDEConfig * config);
439 void setProperty(const TQVariant & p);
440 TQVariant property() const;
441 };
442
443
447 class TDECORE_EXPORT ItemInt:public TDEConfigSkeletonGenericItem < int >
448 {
449 public:
450 ItemInt(const TQString & group, const TQString & key, int &reference,
451 int defaultValue = 0);
452
453 void readConfig(TDEConfig * config);
454 void setProperty(const TQVariant & p);
455 TQVariant property() const;
456 TQVariant minValue() const;
457 TQVariant maxValue() const;
458
459 void setMinValue(int);
460 void setMaxValue(int);
461
462 private:
463 bool mHasMin : 1;
464 bool mHasMax : 1;
465 int mMin;
466 int mMax;
467 };
468
472 class TDECORE_EXPORT ItemInt64:public TDEConfigSkeletonGenericItem < TQ_INT64 >
473 {
474 public:
475 ItemInt64(const TQString & group, const TQString & key, TQ_INT64 &reference,
476 TQ_INT64 defaultValue = 0);
477
478 void readConfig(TDEConfig * config);
479 void setProperty(const TQVariant & p);
480 TQVariant property() const;
481
482 TQVariant minValue() const;
483 TQVariant maxValue() const;
484
485 void setMinValue(TQ_INT64);
486 void setMaxValue(TQ_INT64);
487
488 private:
489 bool mHasMin : 1;
490 bool mHasMax : 1;
491 TQ_INT64 mMin;
492 TQ_INT64 mMax;
493 };
494
498 class TDECORE_EXPORT ItemEnum:public ItemInt
499 {
500 public:
501 struct Choice
502 {
503 TQString name;
504 TQString label;
505 TQString whatsThis;
506 };
507
508 ItemEnum(const TQString & group, const TQString & key, int &reference,
509 const TQValueList<Choice> &choices, int defaultValue = 0);
510
511 TQValueList<Choice> choices() const;
512
513 void readConfig(TDEConfig * config);
514 void writeConfig(TDEConfig * config);
515
516 private:
517 TQValueList<Choice> mChoices;
518 };
519
520
524 class TDECORE_EXPORT ItemUInt:public TDEConfigSkeletonGenericItem < unsigned int >
525 {
526 public:
527 ItemUInt(const TQString & group, const TQString & key,
528 unsigned int &reference, unsigned int defaultValue = 0);
529
530 void readConfig(TDEConfig * config);
531 void setProperty(const TQVariant & p);
532 TQVariant property() const;
533 TQVariant minValue() const;
534 TQVariant maxValue() const;
535
536 void setMinValue(unsigned int);
537 void setMaxValue(unsigned int);
538
539 private:
540 bool mHasMin : 1;
541 bool mHasMax : 1;
542 unsigned int mMin;
543 unsigned int mMax;
544 };
545
546
550 class TDECORE_EXPORT ItemLong:public TDEConfigSkeletonGenericItem < long >
551 {
552 public:
553 ItemLong(const TQString & group, const TQString & key, long &reference,
554 long defaultValue = 0);
555
556 void readConfig(TDEConfig * config);
557 void setProperty(const TQVariant & p);
558 TQVariant property() const;
559 TQVariant minValue() const;
560 TQVariant maxValue() const;
561
562 void setMinValue(long);
563 void setMaxValue(long);
564
565 private:
566 bool mHasMin : 1;
567 bool mHasMax : 1;
568 long mMin;
569 long mMax;
570 };
571
572
576 class TDECORE_EXPORT ItemULong:public TDEConfigSkeletonGenericItem < unsigned long >
577 {
578 public:
579 ItemULong(const TQString & group, const TQString & key,
580 unsigned long &reference, unsigned long defaultValue = 0);
581
582 void readConfig(TDEConfig * config);
583 void setProperty(const TQVariant & p);
584 TQVariant property() const;
585 TQVariant minValue() const;
586 TQVariant maxValue() const;
587
588 void setMinValue(unsigned long);
589 void setMaxValue(unsigned long);
590
591 private:
592 bool mHasMin : 1;
593 bool mHasMax : 1;
594 unsigned long mMin;
595 unsigned long mMax;
596 };
597
601 class TDECORE_EXPORT ItemUInt64:public TDEConfigSkeletonGenericItem < TQ_UINT64 >
602 {
603 public:
604 ItemUInt64(const TQString & group, const TQString & key, TQ_UINT64 &reference,
605 TQ_UINT64 defaultValue = 0);
606
607 void readConfig(TDEConfig * config);
608 void setProperty(const TQVariant & p);
609 TQVariant property() const;
610
611 TQVariant minValue() const;
612 TQVariant maxValue() const;
613
614 void setMinValue(TQ_UINT64);
615 void setMaxValue(TQ_UINT64);
616
617 private:
618 bool mHasMin : 1;
619 bool mHasMax : 1;
620 TQ_UINT64 mMin;
621 TQ_UINT64 mMax;
622 };
623
627 class TDECORE_EXPORT ItemDouble:public TDEConfigSkeletonGenericItem < double >
628 {
629 public:
630 ItemDouble(const TQString & group, const TQString & key,
631 double &reference, double defaultValue = 0);
632
633 void readConfig(TDEConfig * config);
634 void setProperty(const TQVariant & p);
635 TQVariant property() const;
636 TQVariant minValue() const;
637 TQVariant maxValue() const;
638
639 void setMinValue(double);
640 void setMaxValue(double);
641
642 private:
643 bool mHasMin : 1;
644 bool mHasMax : 1;
645 double mMin;
646 double mMax;
647 };
648
649
653 class TDECORE_EXPORT ItemColor:public TDEConfigSkeletonGenericItem < TQColor >
654 {
655 public:
656 ItemColor(const TQString & group, const TQString & key,
657 TQColor & reference,
658 const TQColor & defaultValue = TQColor(128, 128, 128));
659
660 void readConfig(TDEConfig * config);
661 void setProperty(const TQVariant & p);
662 TQVariant property() const;
663 };
664
665
669 class TDECORE_EXPORT ItemFont:public TDEConfigSkeletonGenericItem < TQFont >
670 {
671 public:
672 ItemFont(const TQString & group, const TQString & key, TQFont & reference,
673 const TQFont & defaultValue = TDEGlobalSettings::generalFont());
674
675 void readConfig(TDEConfig * config);
676 void setProperty(const TQVariant & p);
677 TQVariant property() const;
678 };
679
680
684 class TDECORE_EXPORT ItemRect:public TDEConfigSkeletonGenericItem < TQRect >
685 {
686 public:
687 ItemRect(const TQString & group, const TQString & key, TQRect & reference,
688 const TQRect & defaultValue = TQRect());
689
690 void readConfig(TDEConfig * config);
691 void setProperty(const TQVariant & p);
692 TQVariant property() const;
693 };
694
695
699 class TDECORE_EXPORT ItemPoint:public TDEConfigSkeletonGenericItem < TQPoint >
700 {
701 public:
702 ItemPoint(const TQString & group, const TQString & key, TQPoint & reference,
703 const TQPoint & defaultValue = TQPoint());
704
705 void readConfig(TDEConfig * config);
706 void setProperty(const TQVariant & p);
707 TQVariant property() const;
708 };
709
710
714 class TDECORE_EXPORT ItemSize:public TDEConfigSkeletonGenericItem < TQSize >
715 {
716 public:
717 ItemSize(const TQString & group, const TQString & key, TQSize & reference,
718 const TQSize & defaultValue = TQSize());
719
720 void readConfig(TDEConfig * config);
721 void setProperty(const TQVariant & p);
722 TQVariant property() const;
723 };
724
725
729 class TDECORE_EXPORT ItemDateTime:public TDEConfigSkeletonGenericItem < TQDateTime >
730 {
731 public:
732 ItemDateTime(const TQString & group, const TQString & key,
733 TQDateTime & reference,
734 const TQDateTime & defaultValue = TQDateTime());
735
736 void readConfig(TDEConfig * config);
737 void setProperty(const TQVariant & p);
738 TQVariant property() const;
739 };
740
741
745 class TDECORE_EXPORT ItemStringList:public TDEConfigSkeletonGenericItem < TQStringList >
746 {
747 public:
748 ItemStringList(const TQString & group, const TQString & key,
749 TQStringList & reference,
750 const TQStringList & defaultValue = TQStringList());
751
752 void readConfig(TDEConfig * config);
753 void setProperty(const TQVariant & p);
754 TQVariant property() const;
755 };
756
757
761 class TDECORE_EXPORT ItemPathList:public ItemStringList
762 {
763 public:
764 ItemPathList(const TQString & group, const TQString & key,
765 TQStringList & reference,
766 const TQStringList & defaultValue = TQStringList());
767
768 void readConfig(TDEConfig * config);
769 void writeConfig(TDEConfig * config);
770 };
771
772
776 class TDECORE_EXPORT ItemIntList:public TDEConfigSkeletonGenericItem < TQValueList < int > >
777 {
778 public:
779 ItemIntList(const TQString & group, const TQString & key,
780 TQValueList < int >&reference,
781 const TQValueList < int >&defaultValue = TQValueList < int >());
782
783 void readConfig(TDEConfig * config);
784 void setProperty(const TQVariant & p);
785 TQVariant property() const;
786 };
787
788
789public:
796 TDEConfigSkeleton(const TQString & configname = TQString::null);
797
803 TDEConfigSkeleton(TDESharedConfig::Ptr config);
804
808 virtual ~ TDEConfigSkeleton();
809
813 void setDefaults();
814
819 void readConfig();
820
825 void writeConfig();
826
832 void setCurrentGroup(const TQString & group);
833
837 TQString currentGroup() // ### KDE 4.0: make const
838 {
839 return mCurrentGroup;
840 }
841
848 void addItem(TDEConfigSkeletonItem *, const TQString & name = TQString::null );
849
861 ItemString *addItemString(const TQString & name, TQString & reference,
862 const TQString & defaultValue = TQString::fromLatin1(""), // NOT TQString::null !!
863 const TQString & key = TQString::null);
864
878 ItemPassword *addItemPassword(const TQString & name, TQString & reference,
879 const TQString & defaultValue = TQString::fromLatin1(""),
880 const TQString & key = TQString::null);
881
895 ItemPath *addItemPath(const TQString & name, TQString & reference,
896 const TQString & defaultValue = TQString::fromLatin1(""),
897 const TQString & key = TQString::null);
898
912 ItemProperty *addItemProperty(const TQString & name, TQVariant & reference,
913 const TQVariant & defaultValue = TQVariant(),
914 const TQString & key = TQString::null);
926 ItemBool *addItemBool(const TQString & name, bool & reference,
927 bool defaultValue = false,
928 const TQString & key = TQString::null);
929
941 ItemInt *addItemInt(const TQString & name, int &reference, int defaultValue = 0,
942 const TQString & key = TQString::null);
943
955 ItemUInt *addItemUInt(const TQString & name, unsigned int &reference,
956 unsigned int defaultValue = 0,
957 const TQString & key = TQString::null);
958
970 ItemLong *addItemLong(const TQString & name, long &reference,
971 long defaultValue = 0,
972 const TQString & key = TQString::null);
973
985 ItemULong *addItemULong(const TQString & name, unsigned long &reference,
986 unsigned long defaultValue = 0,
987 const TQString & key = TQString::null);
988
1000 ItemInt64 *addItemInt64(const TQString & name, TQ_INT64 &reference,
1001 TQ_INT64 defaultValue = 0,
1002 const TQString & key = TQString::null);
1003
1015 ItemUInt64 *addItemUInt64(const TQString & name, TQ_UINT64 &reference,
1016 TQ_UINT64 defaultValue = 0,
1017 const TQString & key = TQString::null);
1018
1030 ItemDouble *addItemDouble(const TQString & name, double &reference,
1031 double defaultValue = 0.0,
1032 const TQString & key = TQString::null);
1033
1045 ItemColor *addItemColor(const TQString & name, TQColor & reference,
1046 const TQColor & defaultValue = TQColor(128, 128, 128),
1047 const TQString & key = TQString::null);
1048
1060 ItemFont *addItemFont(const TQString & name, TQFont & reference,
1061 const TQFont & defaultValue =
1062 TDEGlobalSettings::generalFont(),
1063 const TQString & key = TQString::null);
1064
1076 ItemRect *addItemRect(const TQString & name, TQRect & reference,
1077 const TQRect & defaultValue = TQRect(),
1078 const TQString & key = TQString::null);
1079
1091 ItemPoint *addItemPoint(const TQString & name, TQPoint & reference,
1092 const TQPoint & defaultValue = TQPoint(),
1093 const TQString & key = TQString::null);
1094
1106 ItemSize *addItemSize(const TQString & name, TQSize & reference,
1107 const TQSize & defaultValue = TQSize(),
1108 const TQString & key = TQString::null);
1109
1121 ItemDateTime *addItemDateTime(const TQString & name, TQDateTime & reference,
1122 const TQDateTime & defaultValue = TQDateTime(),
1123 const TQString & key = TQString::null);
1124
1136 ItemStringList *addItemStringList(const TQString & name, TQStringList & reference,
1137 const TQStringList & defaultValue = TQStringList(),
1138 const TQString & key = TQString::null);
1139
1151 ItemIntList *addItemIntList(const TQString & name, TQValueList < int >&reference,
1152 const TQValueList < int >&defaultValue =
1153 TQValueList < int >(),
1154 const TQString & key = TQString::null);
1155
1159 TDEConfig *config() const;
1160
1164 TDEConfigSkeletonItem::List items() const
1165 {
1166 return mItems;
1167 }
1168
1172 bool isImmutable(const TQString & name);
1173
1177 TDEConfigSkeletonItem * findItem(const TQString & name);
1178
1185 bool useDefaults(bool b);
1186
1187protected:
1193 virtual void usrUseDefaults(bool)
1194 {
1195 }
1196
1197 virtual void usrSetDefaults()
1198 {
1199 }
1200
1204 virtual void usrReadConfig()
1205 {
1206 }
1207
1211 virtual void usrWriteConfig()
1212 {
1213 }
1214
1215private:
1216 TQString mCurrentGroup;
1217
1218 TDESharedConfig::Ptr mConfig; // pointer to TDEConfig object
1219
1220 TDEConfigSkeletonItem::List mItems;
1221 TDEConfigSkeletonItem::Dict mItemDict;
1222
1223 bool mUseDefaults;
1224
1225 class Private;
1226 Private *d;
1227
1228};
1229
1230#endif
TDEConfigBase::hasDefault
bool hasDefault(const TQString &key) const
Returns whether a default is specified for an entry in either the system wide configuration file or t...
Definition: tdeconfigbase.cpp:1804
TDEConfigBase::setReadDefaults
void setReadDefaults(bool b)
When set, all readEntry and readXXXEntry calls return the system wide (default) values instead of the...
Definition: tdeconfigbase.cpp:1761
TDEConfigBase::revertToDefault
void revertToDefault(const TQString &key)
Reverts the entry with key key in the current group in the application specific config file to either...
Definition: tdeconfigbase.cpp:1777
TDEConfigBase::writeEntry
void writeEntry(const TQString &pKey, const TQString &pValue, bool bPersistent=true, bool bGlobal=false, bool bNLS=false)
Writes a key/value pair.
Definition: tdeconfigbase.cpp:1044
TDEConfigBase::setGroup
void setGroup(const TQString &group)
Specifies the group in which keys will be read and written.
Definition: tdeconfigbase.cpp:79
TDEConfigSkeletonItem
Class for storing a preferences setting.
Definition: tdeconfigskeleton.h:51
TDEConfigSkeletonItem::~TDEConfigSkeletonItem
virtual ~TDEConfigSkeletonItem()
Destructor.
Definition: tdeconfigskeleton.h:71
TDEConfigSkeletonItem::readConfig
virtual void readConfig(TDEConfig *)=0
This function is called by TDEConfigSkeleton to read the value for this setting from a config file.
TDEConfigSkeletonItem::setProperty
virtual void setProperty(const TQVariant &p)=0
Set item to p.
TDEConfigSkeletonItem::setKey
void setKey(const TQString &key)
Set config file key.
Definition: tdeconfigskeleton.h:94
TDEConfigSkeletonItem::maxValue
virtual TQVariant maxValue() const
Return maximum value of item or invalid if not specified.
Definition: tdeconfigskeleton.h:191
TDEConfigSkeletonItem::label
TQString label() const
Return label of item.
Definition: tdeconfigskeleton.h:134
TDEConfigSkeletonItem::setDefault
virtual void setDefault()=0
Sets the current value to the default value.
TDEConfigSkeletonItem::setGroup
void setGroup(const TQString &group)
Set config file group.
Definition: tdeconfigskeleton.h:78
TDEConfigSkeletonItem::setName
void setName(const TQString &name)
Set internal name of entry.
Definition: tdeconfigskeleton.h:110
TDEConfigSkeletonItem::property
virtual TQVariant property() const =0
Return item as property.
TDEConfigSkeletonItem::writeConfig
virtual void writeConfig(TDEConfig *)=0
This function is called by TDEConfigSkeleton to write the value of this setting to a config file.
TDEConfigSkeletonItem::whatsThis
TQString whatsThis() const
Return WhatsThis description of item.
Definition: tdeconfigskeleton.h:150
TDEConfigSkeletonItem::group
TQString group() const
Return config file group.
Definition: tdeconfigskeleton.h:86
TDEConfigSkeletonItem::isImmutable
bool isImmutable() const
Return if the entry can be modified.
Definition: tdeconfigskeleton.h:207
TDEConfigSkeletonItem::setWhatsThis
void setWhatsThis(const TQString &w)
Set WhatsThis description og item.
Definition: tdeconfigskeleton.h:142
TDEConfigSkeletonItem::readDefault
virtual void readDefault(TDEConfig *)=0
Read global default value.
TDEConfigSkeletonItem::swapDefault
virtual void swapDefault()=0
Exchanges the current value with the default value Used by TDEConfigSkeleton::useDefaults(bool);.
TDEConfigSkeletonItem::name
TQString name() const
Return internal name of entry.
Definition: tdeconfigskeleton.h:118
TDEConfigSkeletonItem::TDEConfigSkeletonItem
TDEConfigSkeletonItem(const TQString &group, const TQString &key)
Constructor.
Definition: tdeconfigskeleton.h:63
TDEConfigSkeletonItem::key
TQString key() const
Return config file key.
Definition: tdeconfigskeleton.h:102
TDEConfigSkeletonItem::minValue
virtual TQVariant minValue() const
Return minimum value of item or invalid if not specified.
Definition: tdeconfigskeleton.h:186
TDEConfigSkeletonItem::setLabel
void setLabel(const TQString &l)
Set label providing a translated one-line description of the item.
Definition: tdeconfigskeleton.h:126
TDEConfigSkeleton::ItemBool
Class for handling a bool preferences item.
Definition: tdeconfigskeleton.h:433
TDEConfigSkeleton::ItemColor
Class for handling a color preferences item.
Definition: tdeconfigskeleton.h:654
TDEConfigSkeleton::ItemDateTime
Class for handling a TQDateTime preferences item.
Definition: tdeconfigskeleton.h:730
TDEConfigSkeleton::ItemDouble
Class for handling a floating point preference item.
Definition: tdeconfigskeleton.h:628
TDEConfigSkeleton::ItemEnum
Class for handling enums.
Definition: tdeconfigskeleton.h:499
TDEConfigSkeleton::ItemFont
Class for handling a font preferences item.
Definition: tdeconfigskeleton.h:670
TDEConfigSkeleton::ItemInt64
Class for handling an 64-bit integer preferences item.
Definition: tdeconfigskeleton.h:473
TDEConfigSkeleton::ItemIntList
Class for handling an integer list preferences item.
Definition: tdeconfigskeleton.h:777
TDEConfigSkeleton::ItemInt
Class for handling an integer preferences item.
Definition: tdeconfigskeleton.h:448
TDEConfigSkeleton::ItemLong
Class for hanlding a long integer preferences item.
Definition: tdeconfigskeleton.h:551
TDEConfigSkeleton::ItemPassword
Class for handling a password preferences item.
Definition: tdeconfigskeleton.h:395
TDEConfigSkeleton::ItemPathList
Class for handling a path list preferences item.
Definition: tdeconfigskeleton.h:762
TDEConfigSkeleton::ItemPath
Class for handling a path preferences item.
Definition: tdeconfigskeleton.h:406
TDEConfigSkeleton::ItemPoint
Class for handling a TQPoint preferences item.
Definition: tdeconfigskeleton.h:700
TDEConfigSkeleton::ItemProperty
Class for handling a TQVariant preferences item.
Definition: tdeconfigskeleton.h:418
TDEConfigSkeleton::ItemRect
Class for handling a TQRect preferences item.
Definition: tdeconfigskeleton.h:685
TDEConfigSkeleton::ItemSize
Class for handling a TQSize preferences item.
Definition: tdeconfigskeleton.h:715
TDEConfigSkeleton::ItemStringList
Class for handling a string list preferences item.
Definition: tdeconfigskeleton.h:746
TDEConfigSkeleton::ItemString
Class for handling a string preferences item.
Definition: tdeconfigskeleton.h:373
TDEConfigSkeleton::ItemUInt64
Class for handling unsigned 64-bit integer preferences item.
Definition: tdeconfigskeleton.h:602
TDEConfigSkeleton::ItemUInt
Class for handling an unsingend integer preferences item.
Definition: tdeconfigskeleton.h:525
TDEConfigSkeleton::ItemULong
Class for handling an unsigned long integer preferences item.
Definition: tdeconfigskeleton.h:577
TDEConfigSkeleton
Class for handling preferences settings for an application.
Definition: tdeconfigskeleton.h:366
TDEConfigSkeleton::currentGroup
TQString currentGroup()
Returns the current group used for addItem() calls.
Definition: tdeconfigskeleton.h:837
TDEConfigSkeleton::usrUseDefaults
virtual void usrUseDefaults(bool)
Implemented by subclasses that use special defaults.
Definition: tdeconfigskeleton.h:1193
TDEConfigSkeleton::items
TDEConfigSkeletonItem::List items() const
Return list of items managed by this TDEConfigSkeleton object.
Definition: tdeconfigskeleton.h:1164
TDEConfigSkeleton::usrWriteConfig
virtual void usrWriteConfig()
Implemented by subclasses that write special config values.
Definition: tdeconfigskeleton.h:1211
TDEConfigSkeleton::usrReadConfig
virtual void usrReadConfig()
Implemented by subclasses that read special config values.
Definition: tdeconfigskeleton.h:1204
TDEConfig
Access KDE Configuration entries.
Definition: tdeconfig.h:44
TDEGlobalSettings::generalFont
static TQFont generalFont()
Returns the default general font.
Definition: tdeglobalsettings.cpp:470
TDESharedPtr< TDESharedConfig >
TDEStdAccel::key
int key(StdAccel id)
Definition: tdestdaccel.cpp:383

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.