|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
|
|
|
|
|
%If ( KDE_3_2_0 - )
|
|
|
|
|
|
|
|
|
|
class KConfigSkeletonItem
|
|
|
|
|
class TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
|
#include <typeinfo>
|
|
|
|
@ -35,10 +35,10 @@ class KConfigSkeletonItem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
typedef TQValueList<KConfigSkeletonItem*> List;
|
|
|
|
|
//ig typedef TQDict<KConfigSkeletonItem> Dict;
|
|
|
|
|
//ig typedef TQDictIterator<KConfigSkeletonItem> DictIterator;
|
|
|
|
|
KConfigSkeletonItem (const TQString&, const TQString&);
|
|
|
|
|
typedef TQValueList<TDEConfigSkeletonItem*> List;
|
|
|
|
|
//ig typedef TQDict<TDEConfigSkeletonItem> Dict;
|
|
|
|
|
//ig typedef TQDictIterator<TDEConfigSkeletonItem> DictIterator;
|
|
|
|
|
TDEConfigSkeletonItem (const TQString&, const TQString&);
|
|
|
|
|
void setGroup (const TQString&);
|
|
|
|
|
TQString group () const;
|
|
|
|
|
void setKey (const TQString&);
|
|
|
|
@ -49,9 +49,9 @@ public:
|
|
|
|
|
TQString label () const;
|
|
|
|
|
void setWhatsThis (const TQString&);
|
|
|
|
|
TQString whatsThis () const;
|
|
|
|
|
virtual void readConfig (KConfig*) = 0;
|
|
|
|
|
virtual void writeConfig (KConfig*) = 0;
|
|
|
|
|
virtual void readDefault (KConfig*) = 0;
|
|
|
|
|
virtual void readConfig (TDEConfig*) = 0;
|
|
|
|
|
virtual void writeConfig (TDEConfig*) = 0;
|
|
|
|
|
virtual void readDefault (TDEConfig*) = 0;
|
|
|
|
|
virtual void setProperty (const TQVariant&) = 0;
|
|
|
|
|
virtual TQVariant property () const = 0;
|
|
|
|
|
virtual TQVariant minValue () const;
|
|
|
|
@ -61,65 +61,65 @@ public:
|
|
|
|
|
bool isImmutable () const;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void readImmutability (KConfig*);
|
|
|
|
|
void readImmutability (TDEConfig*);
|
|
|
|
|
|
|
|
|
|
//force
|
|
|
|
|
%ConvertToSubClassCode
|
|
|
|
|
if (dynamic_cast<KConfigSkeleton::ItemBool*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemBool;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemColor*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemColor;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemDateTime*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemDateTime;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemDouble*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemDouble;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemEnum*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemEnum;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemFont*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemFont;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemInt*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemInt;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemInt64*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemInt64;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemIntList*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemIntList;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemLong*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemLong;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemPassword*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemPassword;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemPath*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemPath;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemPoint*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemPoint;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemProperty*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemProperty;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemRect*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemRect;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemSize*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemSize;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemString*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemString;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemStringList*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemStringList;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemUInt*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemUInt;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemUInt64*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemUInt64;
|
|
|
|
|
else if (dynamic_cast<KConfigSkeleton::ItemULong*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_KConfigSkeleton_ItemULong;
|
|
|
|
|
if (dynamic_cast<TDEConfigSkeleton::ItemBool*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemBool;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemColor*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemColor;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemDateTime*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemDateTime;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemDouble*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemDouble;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemEnum*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemEnum;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemFont*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemFont;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemInt*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemInt;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemInt64*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemInt64;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemIntList*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemIntList;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemLong*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemLong;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemPassword*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemPassword;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemPath*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemPath;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemPoint*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemPoint;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemProperty*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemProperty;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemRect*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemRect;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemSize*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemSize;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemString*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemString;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemStringList*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemStringList;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemUInt*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemUInt;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemUInt64*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemUInt64;
|
|
|
|
|
else if (dynamic_cast<TDEConfigSkeleton::ItemULong*>(sipCpp))
|
|
|
|
|
sipClass = sipClass_TDEConfigSkeleton_ItemULong;
|
|
|
|
|
else
|
|
|
|
|
sipClass = NULL;
|
|
|
|
|
%End
|
|
|
|
|
//end
|
|
|
|
|
|
|
|
|
|
}; // class KConfigSkeletonItem
|
|
|
|
|
}; // class TDEConfigSkeletonItem
|
|
|
|
|
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%If ( KDE_3_2_0 - )
|
|
|
|
|
|
|
|
|
|
class KConfigSkeleton
|
|
|
|
|
class TDEConfigSkeleton
|
|
|
|
|
{
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
|
#include <kconfigskeleton.h>
|
|
|
|
@ -129,7 +129,7 @@ typedef TQValueList<int> IntList;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class ItemPassword : KConfigSkeleton::ItemString
|
|
|
|
|
class ItemPassword : TDEConfigSkeleton::ItemString
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -140,7 +140,7 @@ public:
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class ItemPath : KConfigSkeleton::ItemString
|
|
|
|
|
class ItemPath : TDEConfigSkeleton::ItemString
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -151,7 +151,7 @@ public:
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class ItemEnum : KConfigSkeleton::ItemInt
|
|
|
|
|
class ItemEnum : TDEConfigSkeleton::ItemInt
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -168,15 +168,15 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
ItemEnum (const TQString&, const TQString&, int, const TQValueList<KConfigSkeleton::ItemEnum::Choice>&, int = 0) [(const TQString&, const TQString&, int&, const TQValueList<KConfigSkeleton::ItemEnum::Choice>&, int = 0)];
|
|
|
|
|
ItemEnum (const TQString&, const TQString&, int, const TQValueList<TDEConfigSkeleton::ItemEnum::Choice>&, int = 0) [(const TQString&, const TQString&, int&, const TQValueList<TDEConfigSkeleton::ItemEnum::Choice>&, int = 0)];
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes group | (TQString) | key | (TQString) | reference | (int) | choices | (TQValueList<KConfigSkeleton::ItemEnum::Choice>) |defaultValue | (int = 1)
|
|
|
|
|
//takes group | (TQString) | key | (TQString) | reference | (int) | choices | (TQValueList<TDEConfigSkeleton::ItemEnum::Choice>) |defaultValue | (int = 1)
|
|
|
|
|
|
|
|
|
|
class PyItemEnum : public KConfigSkeleton::ItemEnum
|
|
|
|
|
class PyItemEnum : public TDEConfigSkeleton::ItemEnum
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemEnum (const TQString& group, const TQString& key, int& val, const TQValueList<KConfigSkeleton::ItemEnum::Choice>& choices, int defaultValue = 0) :
|
|
|
|
|
KConfigSkeleton::ItemEnum(group, key, this->value, choices, defaultValue)
|
|
|
|
|
PyItemEnum (const TQString& group, const TQString& key, int& val, const TQValueList<TDEConfigSkeleton::ItemEnum::Choice>& choices, int defaultValue = 0) :
|
|
|
|
|
TDEConfigSkeleton::ItemEnum(group, key, this->value, choices, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
};
|
|
|
|
@ -186,13 +186,13 @@ public:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
sipCpp = (sipKConfigSkeleton_ItemEnum *) new PyItemEnum (*a0, *a1, a2, *a3, a4);
|
|
|
|
|
sipCpp = (sipTDEConfigSkeleton_ItemEnum *) new PyItemEnum (*a0, *a1, a2, *a3, a4);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
TQValueList<KConfigSkeleton::ItemEnum::Choice> choices () const;
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
TQValueList<TDEConfigSkeleton::ItemEnum::Choice> choices () const;
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
@ -210,13 +210,13 @@ public:
|
|
|
|
|
|
|
|
|
|
%If ( KDE_3_4_0 - )
|
|
|
|
|
|
|
|
|
|
class ItemPathList : KConfigSkeleton::ItemStringList
|
|
|
|
|
class ItemPathList : TDEConfigSkeleton::ItemStringList
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
ItemPathList (const TQString&, const TQString&, TQStringList&, const TQStringList& = TQStringList ());
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
|
|
|
|
|
}; // class ItemPathList
|
|
|
|
|
|
|
|
|
@ -226,27 +226,27 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
KConfigSkeleton (const TQString& = TQString ::null );
|
|
|
|
|
KConfigSkeleton (KSharedConfig::Ptr);
|
|
|
|
|
TDEConfigSkeleton (const TQString& = TQString ::null );
|
|
|
|
|
TDEConfigSkeleton (KSharedConfig::Ptr);
|
|
|
|
|
void setDefaults ();
|
|
|
|
|
void readConfig ();
|
|
|
|
|
void writeConfig ();
|
|
|
|
|
void setCurrentGroup (const TQString&);
|
|
|
|
|
TQString currentGroup ();
|
|
|
|
|
void addItem (KConfigSkeletonItem*, const TQString& = TQString ::null );
|
|
|
|
|
void addItem (TDEConfigSkeletonItem*, const TQString& = TQString ::null );
|
|
|
|
|
ItemString* addItemString (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null );
|
|
|
|
|
KConfigSkeleton::ItemPassword* addItemPassword (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null );
|
|
|
|
|
KConfigSkeleton::ItemPath* addItemPath (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null );
|
|
|
|
|
TDEConfigSkeleton::ItemPassword* addItemPassword (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null );
|
|
|
|
|
TDEConfigSkeleton::ItemPath* addItemPath (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null );
|
|
|
|
|
ItemProperty* addItemProperty (const TQString&, TQVariant&, const TQVariant& = TQVariant (), const TQString& = TQString ::null );
|
|
|
|
|
ItemBool* addItemBool (const TQString&, bool&, bool = 0, const TQString& = TQString ::null );
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes name | (TQString) | value | (bool) | defaultValue | (bool) | key | (TQString = TQString::null)
|
|
|
|
|
|
|
|
|
|
class PyItemBool : public KConfigSkeleton::ItemBool
|
|
|
|
|
class PyItemBool : public TDEConfigSkeleton::ItemBool
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemBool (const TQString &group, const TQString &key, bool val, bool defaultValue = 0) :
|
|
|
|
|
KConfigSkeleton::ItemBool (group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemBool (group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
}
|
|
|
|
@ -265,11 +265,11 @@ public:
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes name | (TQString) | value | (int) | defaultValue | (int) | key | (TQString = TQString::null)
|
|
|
|
|
|
|
|
|
|
class PyItemInt : public KConfigSkeleton::ItemInt
|
|
|
|
|
class PyItemInt : public TDEConfigSkeleton::ItemInt
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemInt(const TQString &group, const TQString &key, int val, int defaultValue=0) :
|
|
|
|
|
KConfigSkeleton::ItemInt (group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemInt (group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
}
|
|
|
|
@ -288,11 +288,11 @@ public:
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes name | (TQString) | value | (uint) | defaultValue | (uint) | key | (TQString = TQString::null)
|
|
|
|
|
|
|
|
|
|
class PyItemUInt : public KConfigSkeleton::ItemUInt
|
|
|
|
|
class PyItemUInt : public TDEConfigSkeleton::ItemUInt
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemUInt(const TQString &group, const TQString &key, uint val, uint defaultValue = 0) :
|
|
|
|
|
KConfigSkeleton::ItemUInt (group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemUInt (group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
}
|
|
|
|
@ -311,11 +311,11 @@ public:
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes name | (TQString) | value | (long) | defaultValue | (long) | key | (TQString = TQString::null)
|
|
|
|
|
|
|
|
|
|
class PyItemLong : public KConfigSkeleton::ItemLong
|
|
|
|
|
class PyItemLong : public TDEConfigSkeleton::ItemLong
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemLong(const TQString &group, const TQString &key, long val, long defaultValue=0) :
|
|
|
|
|
KConfigSkeleton::ItemLong (group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemLong (group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
}
|
|
|
|
@ -334,11 +334,11 @@ public:
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes name | (TQString) | value | (ulong) | defaultValue | (ulong) | key | (TQString = TQString::null)
|
|
|
|
|
|
|
|
|
|
class PyItemULong : public KConfigSkeleton::ItemULong
|
|
|
|
|
class PyItemULong : public TDEConfigSkeleton::ItemULong
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemULong(const TQString &group, const TQString &key, ulong val, ulong defaultValue = 0) :
|
|
|
|
|
KConfigSkeleton::ItemULong (group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemULong (group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
}
|
|
|
|
@ -353,17 +353,17 @@ public:
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
KConfigSkeleton::ItemInt64* addItemInt64 (const TQString&, longlong&, longlong = 0, const TQString& = TQString ::null );
|
|
|
|
|
KConfigSkeleton::ItemUInt64* addItemUInt64 (const TQString&, ulonglong&, ulonglong = 0, const TQString& = TQString ::null );
|
|
|
|
|
TDEConfigSkeleton::ItemInt64* addItemInt64 (const TQString&, longlong&, longlong = 0, const TQString& = TQString ::null );
|
|
|
|
|
TDEConfigSkeleton::ItemUInt64* addItemUInt64 (const TQString&, ulonglong&, ulonglong = 0, const TQString& = TQString ::null );
|
|
|
|
|
ItemDouble* addItemDouble (const TQString&, double&, double = 0.0, const TQString& = TQString ::null );
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes name | (TQString) | value | (double) | defaultValue | (double) | key | (TQString = TQString::null)
|
|
|
|
|
|
|
|
|
|
class PyItemDouble : public KConfigSkeleton::ItemDouble
|
|
|
|
|
class PyItemDouble : public TDEConfigSkeleton::ItemDouble
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemDouble(const TQString &group, const TQString &key, double val, double defaultValue=0.0) :
|
|
|
|
|
KConfigSkeleton::ItemDouble(group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemDouble(group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
};
|
|
|
|
@ -384,8 +384,8 @@ public:
|
|
|
|
|
ItemPoint* addItemPoint (const TQString&, TQPoint&, const TQPoint& = TQPoint (), const TQString& = TQString ::null );
|
|
|
|
|
ItemSize* addItemSize (const TQString&, TQSize&, const TQSize& = TQSize (), const TQString& = TQString ::null );
|
|
|
|
|
ItemDateTime* addItemDateTime (const TQString&, TQDateTime&, const TQDateTime& = TQDateTime (), const TQString& = TQString ::null );
|
|
|
|
|
KConfigSkeleton::ItemStringList* addItemStringList (const TQString&, TQStringList&, const TQStringList& = TQStringList (), const TQString& = TQString ::null );
|
|
|
|
|
KConfigSkeleton::ItemIntList* addItemIntList (const TQString&, TQValueList<int>&, const TQValueList<int>& = IntList (), const TQString& = TQString ::null );
|
|
|
|
|
TDEConfigSkeleton::ItemStringList* addItemStringList (const TQString&, TQStringList&, const TQStringList& = TQStringList (), const TQString& = TQString ::null );
|
|
|
|
|
TDEConfigSkeleton::ItemIntList* addItemIntList (const TQString&, TQValueList<int>&, const TQValueList<int>& = IntList (), const TQString& = TQString ::null );
|
|
|
|
|
%MethodCode
|
|
|
|
|
//returns a Python list of int
|
|
|
|
|
//takes name | (TQString) | reference | (a Python list of int) | defaultValue | (a Python list of int = []) | key | (TQString = TQString::null)
|
|
|
|
@ -395,12 +395,12 @@ public:
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
KConfig* config () const;
|
|
|
|
|
SIP_PYLIST items () const [KConfigSkeletonItem::List ()];
|
|
|
|
|
TDEConfig* config () const;
|
|
|
|
|
SIP_PYLIST items () const [TDEConfigSkeletonItem::List ()];
|
|
|
|
|
%MethodCode
|
|
|
|
|
//returns (a Python list of Items)
|
|
|
|
|
|
|
|
|
|
KConfigSkeletonItem::List list;
|
|
|
|
|
TDEConfigSkeletonItem::List list;
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
list = sipCpp->items ();
|
|
|
|
@ -409,11 +409,11 @@ public:
|
|
|
|
|
int n = list.count ();
|
|
|
|
|
if (n > 0)
|
|
|
|
|
for (int i = 0; i < n; i++)
|
|
|
|
|
PyList_Append (sipRes, sipConvertFromInstance (&(list [i]), sipClass_KConfigSkeletonItem, NULL));
|
|
|
|
|
PyList_Append (sipRes, sipConvertFromInstance (&(list [i]), sipClass_TDEConfigSkeletonItem, NULL));
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
bool isImmutable (const TQString&);
|
|
|
|
|
KConfigSkeletonItem* findItem (const TQString&);
|
|
|
|
|
TDEConfigSkeletonItem* findItem (const TQString&);
|
|
|
|
|
bool useDefaults (bool);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
@ -425,7 +425,7 @@ protected:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemString : KConfigSkeletonItem
|
|
|
|
|
class ItemString : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -437,14 +437,14 @@ public:
|
|
|
|
|
Path
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ItemString (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), KConfigSkeleton::ItemString::Type = KConfigSkeleton ::ItemString ::Normal );
|
|
|
|
|
ItemString (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), TDEConfigSkeleton::ItemString::Type = TDEConfigSkeleton ::ItemString ::Normal );
|
|
|
|
|
void setValue (const TQString&);
|
|
|
|
|
TQString& value ();
|
|
|
|
|
virtual void setDefaultValue (const TQString&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
|
|
|
|
@ -457,7 +457,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemProperty : KConfigSkeletonItem
|
|
|
|
|
class ItemProperty : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -465,7 +465,7 @@ public:
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes group | (TQString) | key | (TQString) | reference | (TQVariant) | defaultValue | (TQVariant = 0)
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
sipCpp = (sipKConfigSkeleton_ItemProperty *) new KConfigSkeleton::ItemProperty (*a0, *a1, *a2, *a3);
|
|
|
|
|
sipCpp = (sipTDEConfigSkeleton_ItemProperty *) new TDEConfigSkeleton::ItemProperty (*a0, *a1, *a2, *a3);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
@ -474,8 +474,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const TQVariant&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
|
|
|
|
@ -488,7 +488,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemBool : KConfigSkeletonItem
|
|
|
|
|
class ItemBool : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -496,11 +496,11 @@ public:
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes group | (TQString) | key | (TQString) | reference | (bool) | defaultValue | (bool = 1)
|
|
|
|
|
|
|
|
|
|
class PyItemBool : public KConfigSkeleton::ItemBool
|
|
|
|
|
class PyItemBool : public TDEConfigSkeleton::ItemBool
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemBool(const TQString &group, const TQString &key, bool val, bool defaultValue = false) :
|
|
|
|
|
KConfigSkeleton::ItemBool(group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemBool(group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
};
|
|
|
|
@ -510,7 +510,7 @@ public:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
sipCpp = (sipKConfigSkeleton_ItemBool *) new PyItemBool (*a0, *a1, a2);
|
|
|
|
|
sipCpp = (sipTDEConfigSkeleton_ItemBool *) new PyItemBool (*a0, *a1, a2);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
@ -519,8 +519,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const bool&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
|
|
|
|
@ -533,7 +533,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemInt : KConfigSkeletonItem
|
|
|
|
|
class ItemInt : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -541,11 +541,11 @@ public:
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes group | (TQString) | key | (TQString) | reference | (int) | defaultValue | (int = 1)
|
|
|
|
|
|
|
|
|
|
class PyItemInt : public KConfigSkeleton::ItemInt
|
|
|
|
|
class PyItemInt : public TDEConfigSkeleton::ItemInt
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemInt(const TQString &group, const TQString &key, int val, int defaultValue = 0) :
|
|
|
|
|
KConfigSkeleton::ItemInt(group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemInt(group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
};
|
|
|
|
@ -555,7 +555,7 @@ public:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
sipCpp = (sipKConfigSkeleton_ItemInt *) new PyItemInt (*a0, *a1, a2);
|
|
|
|
|
sipCpp = (sipTDEConfigSkeleton_ItemInt *) new PyItemInt (*a0, *a1, a2);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
@ -564,8 +564,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const int&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
TQVariant minValue () const;
|
|
|
|
@ -582,7 +582,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemInt64 : KConfigSkeletonItem
|
|
|
|
|
class ItemInt64 : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -590,11 +590,11 @@ public:
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes group | (TQString) | key | (TQString) | reference | (longlong) | defaultValue | (longlong = 0)
|
|
|
|
|
|
|
|
|
|
class PyItemInt64 : public KConfigSkeleton::ItemInt64
|
|
|
|
|
class PyItemInt64 : public TDEConfigSkeleton::ItemInt64
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemInt64(const TQString &group, const TQString &key, TQ_INT64 val, TQ_INT64 defaultValue=0) :
|
|
|
|
|
KConfigSkeleton::ItemInt64(group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemInt64(group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
};
|
|
|
|
@ -604,7 +604,7 @@ public:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
sipCpp = (sipKConfigSkeleton_ItemInt64 *) new PyItemInt64 (*a0, *a1, *a2, *a3);
|
|
|
|
|
sipCpp = (sipTDEConfigSkeleton_ItemInt64 *) new PyItemInt64 (*a0, *a1, *a2, *a3);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
@ -613,8 +613,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const longlong&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
TQVariant minValue () const;
|
|
|
|
@ -631,7 +631,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemUInt : KConfigSkeletonItem
|
|
|
|
|
class ItemUInt : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -639,11 +639,11 @@ public:
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes group | (TQString) | key | (TQString) | reference | (uint) | defaultValue | (uint = 1)
|
|
|
|
|
|
|
|
|
|
class PyItemUInt : public KConfigSkeleton::ItemUInt
|
|
|
|
|
class PyItemUInt : public TDEConfigSkeleton::ItemUInt
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemUInt(const TQString &group, const TQString &key, uint val, uint defaultValue = 0) :
|
|
|
|
|
KConfigSkeleton::ItemUInt(group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemUInt(group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
};
|
|
|
|
@ -653,7 +653,7 @@ public:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
sipCpp = (sipKConfigSkeleton_ItemUInt *) new PyItemUInt (*a0, *a1, a2);
|
|
|
|
|
sipCpp = (sipTDEConfigSkeleton_ItemUInt *) new PyItemUInt (*a0, *a1, a2);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
@ -662,8 +662,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const uint&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
TQVariant minValue () const;
|
|
|
|
@ -678,7 +678,7 @@ public:
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
class ItemLong : KConfigSkeletonItem
|
|
|
|
|
class ItemLong : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -686,11 +686,11 @@ public:
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes group | (TQString) | key | (TQString) | reference | (long) | defaultValue | (long = 1)
|
|
|
|
|
|
|
|
|
|
class PyItemLong : public KConfigSkeleton::ItemLong
|
|
|
|
|
class PyItemLong : public TDEConfigSkeleton::ItemLong
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemLong(const TQString &group, const TQString &key, long val, long defaultValue = 0) :
|
|
|
|
|
KConfigSkeleton::ItemLong(group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemLong(group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
};
|
|
|
|
@ -700,7 +700,7 @@ public:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
sipCpp = (sipKConfigSkeleton_ItemLong *) new PyItemLong (*a0, *a1, a2);
|
|
|
|
|
sipCpp = (sipTDEConfigSkeleton_ItemLong *) new PyItemLong (*a0, *a1, a2);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
@ -709,8 +709,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const long&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
TQVariant minValue () const;
|
|
|
|
@ -727,7 +727,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemULong : KConfigSkeletonItem
|
|
|
|
|
class ItemULong : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -735,11 +735,11 @@ public:
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes group | (TQString) | key | (TQString) | reference | (ulong) | defaultValue | (ulong = 1)
|
|
|
|
|
|
|
|
|
|
class PyItemULong : public KConfigSkeleton::ItemULong
|
|
|
|
|
class PyItemULong : public TDEConfigSkeleton::ItemULong
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemULong(const TQString &group, const TQString &key, ulong val, ulong defaultValue = 0) :
|
|
|
|
|
KConfigSkeleton::ItemULong(group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemULong(group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
};
|
|
|
|
@ -749,7 +749,7 @@ public:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
sipCpp = (sipKConfigSkeleton_ItemULong *) new PyItemULong (*a0, *a1, a2);
|
|
|
|
|
sipCpp = (sipTDEConfigSkeleton_ItemULong *) new PyItemULong (*a0, *a1, a2);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
@ -758,8 +758,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const ulong&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
TQVariant minValue () const;
|
|
|
|
@ -776,7 +776,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemUInt64 : KConfigSkeletonItem
|
|
|
|
|
class ItemUInt64 : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -784,11 +784,11 @@ public:
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes group | (TQString) | key | (TQString) | reference | (ulonglong) | defaultValue | (ulonglong = 0)
|
|
|
|
|
|
|
|
|
|
class PyItemUInt64 : public KConfigSkeleton::ItemUInt64
|
|
|
|
|
class PyItemUInt64 : public TDEConfigSkeleton::ItemUInt64
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemUInt64(const TQString &group, const TQString &key, TQ_UINT64 val, TQ_UINT64 defaultValue = 0) :
|
|
|
|
|
KConfigSkeleton::ItemUInt64(group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemUInt64(group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
};
|
|
|
|
@ -798,7 +798,7 @@ public:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
sipCpp = (sipKConfigSkeleton_ItemUInt64 *) new PyItemUInt64 (*a0, *a1, *a2, *a3);
|
|
|
|
|
sipCpp = (sipTDEConfigSkeleton_ItemUInt64 *) new PyItemUInt64 (*a0, *a1, *a2, *a3);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
@ -807,8 +807,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const ulonglong&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
TQVariant minValue () const;
|
|
|
|
@ -825,18 +825,18 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemDouble : KConfigSkeletonItem
|
|
|
|
|
class ItemDouble : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
ItemDouble (const TQString&, const TQString&, double, double = 0) [(const TQString&, const TQString&, double&, double = 0)];
|
|
|
|
|
%MethodCode
|
|
|
|
|
//takes group | (TQString) | key | (TQString) | reference | (double) | defaultValue | (double = 0)
|
|
|
|
|
class PyItemDouble : public KConfigSkeleton::ItemDouble
|
|
|
|
|
class PyItemDouble : public TDEConfigSkeleton::ItemDouble
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PyItemDouble(const TQString &group, const TQString &key, double val, double defaultValue=0.0) :
|
|
|
|
|
KConfigSkeleton::ItemDouble(group, key, this->value, defaultValue)
|
|
|
|
|
TDEConfigSkeleton::ItemDouble(group, key, this->value, defaultValue)
|
|
|
|
|
{
|
|
|
|
|
value = val;
|
|
|
|
|
};
|
|
|
|
@ -846,7 +846,7 @@ public:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
sipCpp = (sipKConfigSkeleton_ItemDouble *) new PyItemDouble (*a0, *a1, a2, a3);
|
|
|
|
|
sipCpp = (sipTDEConfigSkeleton_ItemDouble *) new PyItemDouble (*a0, *a1, a2, a3);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
@ -855,8 +855,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const double&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
TQVariant minValue () const;
|
|
|
|
@ -873,7 +873,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemColor : KConfigSkeletonItem
|
|
|
|
|
class ItemColor : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -883,8 +883,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const TQColor&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
|
|
|
|
@ -897,7 +897,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemFont : KConfigSkeletonItem
|
|
|
|
|
class ItemFont : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -907,8 +907,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const TQFont&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
|
|
|
|
@ -921,7 +921,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemRect : KConfigSkeletonItem
|
|
|
|
|
class ItemRect : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -931,8 +931,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const TQRect&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
|
|
|
|
@ -945,7 +945,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemPoint : KConfigSkeletonItem
|
|
|
|
|
class ItemPoint : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -955,8 +955,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const TQPoint&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
|
|
|
|
@ -969,7 +969,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemSize : KConfigSkeletonItem
|
|
|
|
|
class ItemSize : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -979,8 +979,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const TQSize&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
|
|
|
|
@ -993,7 +993,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemDateTime : KConfigSkeletonItem
|
|
|
|
|
class ItemDateTime : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -1003,8 +1003,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const TQDateTime&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
|
|
|
|
@ -1017,7 +1017,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemStringList : KConfigSkeletonItem
|
|
|
|
|
class ItemStringList : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -1027,8 +1027,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const TQStringList&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
|
|
|
|
@ -1041,7 +1041,7 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//force
|
|
|
|
|
|
|
|
|
|
class ItemIntList : KConfigSkeletonItem
|
|
|
|
|
class ItemIntList : TDEConfigSkeletonItem
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
@ -1050,7 +1050,7 @@ public:
|
|
|
|
|
//takes group | (TQString) | key | (TQString) | reference | (a Python list of int) | defaultValue | (a Python list of int = 0)
|
|
|
|
|
if (a3 == NULL) *(TQValueList<int> *)a3 = TQValueList<int>();
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
sipCpp = (sipKConfigSkeleton_ItemIntList *) new KConfigSkeleton::ItemIntList (*a0, *a1, *a2, *a3);
|
|
|
|
|
sipCpp = (sipTDEConfigSkeleton_ItemIntList *) new TDEConfigSkeleton::ItemIntList (*a0, *a1, *a2, *a3);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
@ -1059,8 +1059,8 @@ public:
|
|
|
|
|
virtual void setDefaultValue (const TQValueList<int>&);
|
|
|
|
|
virtual void setDefault ();
|
|
|
|
|
void swapDefault ();
|
|
|
|
|
void writeConfig (KConfig*);
|
|
|
|
|
void readConfig (KConfig*);
|
|
|
|
|
void writeConfig (TDEConfig*);
|
|
|
|
|
void readConfig (TDEConfig*);
|
|
|
|
|
void setProperty (const TQVariant&);
|
|
|
|
|
TQVariant property () const;
|
|
|
|
|
|
|
|
|
@ -1070,14 +1070,14 @@ public:
|
|
|
|
|
public:
|
|
|
|
|
//end
|
|
|
|
|
|
|
|
|
|
}; // class KConfigSkeleton
|
|
|
|
|
}; // class TDEConfigSkeleton
|
|
|
|
|
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%If (KDE_3_2_0 - )
|
|
|
|
|
%MappedType TQValueList<KConfigSkeleton::ItemEnum::Choice>
|
|
|
|
|
%MappedType TQValueList<TDEConfigSkeleton::ItemEnum::Choice>
|
|
|
|
|
{
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
|
#include <kconfigskeleton.h>
|
|
|
|
@ -1092,14 +1092,14 @@ public:
|
|
|
|
|
if ((pylist = PyList_New(0)) == NULL)
|
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
|
|
TQValueList<KConfigSkeleton::ItemEnum::Choice> *cpplist = (TQValueList<KConfigSkeleton::ItemEnum::Choice> *)sipCpp;
|
|
|
|
|
TQValueList<TDEConfigSkeleton::ItemEnum::Choice> *cpplist = (TQValueList<TDEConfigSkeleton::ItemEnum::Choice> *)sipCpp;
|
|
|
|
|
PyObject *inst;
|
|
|
|
|
|
|
|
|
|
// Get it.
|
|
|
|
|
TQValueList<KConfigSkeleton::ItemEnum::Choice>::Iterator it;
|
|
|
|
|
TQValueList<TDEConfigSkeleton::ItemEnum::Choice>::Iterator it;
|
|
|
|
|
for( it = cpplist->begin(); it != cpplist->end(); ++it )
|
|
|
|
|
{
|
|
|
|
|
if (((inst = sipConvertFromNewType(new KConfigSkeleton::ItemEnum::Choice(*it), sipType_KConfigSkeleton_ItemEnum_Choice, NULL)) == NULL)
|
|
|
|
|
if (((inst = sipConvertFromNewType(new TDEConfigSkeleton::ItemEnum::Choice(*it), sipType_TDEConfigSkeleton_ItemEnum_Choice, NULL)) == NULL)
|
|
|
|
|
|| PyList_Append (pylist, inst) < 0)
|
|
|
|
|
{
|
|
|
|
|
Py_DECREF (pylist);
|
|
|
|
@ -1115,16 +1115,16 @@ public:
|
|
|
|
|
if (sipIsErr == NULL)
|
|
|
|
|
return PyList_Check(sipPy);
|
|
|
|
|
|
|
|
|
|
TQValueList<KConfigSkeleton::ItemEnum::Choice> *cpplist = new TQValueList<KConfigSkeleton::ItemEnum::Choice>;
|
|
|
|
|
TQValueList<TDEConfigSkeleton::ItemEnum::Choice> *cpplist = new TQValueList<TDEConfigSkeleton::ItemEnum::Choice>;
|
|
|
|
|
|
|
|
|
|
PyObject *elem;
|
|
|
|
|
KConfigSkeleton::ItemEnum::Choice *cpp;
|
|
|
|
|
TDEConfigSkeleton::ItemEnum::Choice *cpp;
|
|
|
|
|
int iserr = 0;
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < PyList_Size (sipPy); i++)
|
|
|
|
|
{
|
|
|
|
|
elem = PyList_GET_ITEM (sipPy, i);
|
|
|
|
|
cpp = (KConfigSkeleton::ItemEnum::Choice *)sipForceConvertToType(elem, sipType_KConfigSkeleton_ItemEnum_Choice, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
|
|
|
|
|
cpp = (TDEConfigSkeleton::ItemEnum::Choice *)sipForceConvertToType(elem, sipType_TDEConfigSkeleton_ItemEnum_Choice, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
|
|
|
|
|
|
|
|
|
|
if (iserr)
|
|
|
|
|
{
|
|
|
|
|