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