From ccad7a42d96879251c4971e51aac269f61a0ccf8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 16:21:06 -0600 Subject: Fix FTBFS resulting from KCModule rename --- sip/kutils/kcmoduleinfo.sip | 91 -------------------- sip/kutils/kcmoduleloader.sip | 67 --------------- sip/kutils/kcmoduleproxy.sip | 104 ----------------------- sip/kutils/kutils-kde340.diff | 2 +- sip/kutils/kutils-kde341.diff | 2 +- sip/kutils/kutilsmod.sip.in | 6 +- sip/kutils/tdecmoduleinfo.sip | 91 ++++++++++++++++++++ sip/kutils/tdecmoduleloader.sip | 67 +++++++++++++++ sip/kutils/tdecmoduleproxy.sip | 104 +++++++++++++++++++++++ sip/tdeui/kcmodule.sip | 183 ---------------------------------------- sip/tdeui/tdecmodule.sip | 183 ++++++++++++++++++++++++++++++++++++++++ sip/tdeui/tdeuimod.sip.in | 2 +- 12 files changed, 451 insertions(+), 451 deletions(-) delete mode 100644 sip/kutils/kcmoduleinfo.sip delete mode 100644 sip/kutils/kcmoduleloader.sip delete mode 100644 sip/kutils/kcmoduleproxy.sip create mode 100644 sip/kutils/tdecmoduleinfo.sip create mode 100644 sip/kutils/tdecmoduleloader.sip create mode 100644 sip/kutils/tdecmoduleproxy.sip delete mode 100644 sip/tdeui/kcmodule.sip create mode 100644 sip/tdeui/tdecmodule.sip (limited to 'sip') diff --git a/sip/kutils/kcmoduleinfo.sip b/sip/kutils/kcmoduleinfo.sip deleted file mode 100644 index 4664aa4..0000000 --- a/sip/kutils/kcmoduleinfo.sip +++ /dev/null @@ -1,91 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kutils version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_3_0 - ) - -class TDECModuleInfo -{ -%TypeHeaderCode -#include -%End - - -public: - TDECModuleInfo (const TQString&); - TDECModuleInfo (KService::Ptr); - TDECModuleInfo (const TDECModuleInfo&); - -%If ( KDE_3_4_0 - ) - TDECModuleInfo (); -%End - - bool operator == (const TDECModuleInfo&) const; - bool operator != (const TDECModuleInfo&) const; - TQString fileName () const; - const TQStringList& keywords () const; - -%If ( KDE_3_4_0 - ) - TQString factoryName () const; -%End - - TQString moduleName () const; - KService::Ptr service () const; - TQString comment () const; - TQString icon () const; - TQString docPath () const; - TQString library () const; - TQString handle () const; - int weight () const; - bool needsRootPrivileges () const; - bool isHiddenByDefault () const; - -%If ( KDE_3_4_0 - ) - bool needsTest () const; -%End - - -protected: - void setKeywords (const TQStringList&); - void setName (const TQString&); - void setComment (const TQString&); - void setIcon (const TQString&); - void setLibrary (const TQString&); - void setHandle (const TQString&); - void setWeight (int); - -%If ( KDE_3_4_0 - ) - void setNeedsTest (bool); -%End - - void setNeedsRootPrivileges (bool); - void setIsHiddenByDefault (bool); - void setDocPath (const TQString&); - void loadAll (); - -}; // class TDECModuleInfo - -%End - diff --git a/sip/kutils/kcmoduleloader.sip b/sip/kutils/kcmoduleloader.sip deleted file mode 100644 index 6a21295..0000000 --- a/sip/kutils/kcmoduleloader.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kutils version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_3_0 - ) - -class TDECModuleLoader -{ -%TypeHeaderCode -#include -%End - - -public: - static TDECModule* loadModule (const TDECModuleInfo&, bool = 1, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); - static TDECModule* loadModule (const TQString&, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); - -%If ( KDE_3_4_0 - ) - - enum ErrorReporting - { - None, - Inline, - Dialog, - Both - }; - - static TDECModule* loadModule (const TDECModuleInfo&, TDECModuleLoader::ErrorReporting, bool = 1, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); - static TDECModule* loadModule (const TQString&, TDECModuleLoader::ErrorReporting, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); -%End - - static void unloadModule (const TDECModuleInfo&); - static void showLastLoaderError (TQWidget*); - -%If ( KDE_3_4_0 - ) - static bool testModule (const TQString&); - static bool testModule (const TDECModuleInfo&); - static TDECModule* reportError (TDECModuleLoader::ErrorReporting, const TQString&, TQString, TQWidget*); -%End - - -}; // class TDECModuleLoader - -%End - diff --git a/sip/kutils/kcmoduleproxy.sip b/sip/kutils/kcmoduleproxy.sip deleted file mode 100644 index 6224c01..0000000 --- a/sip/kutils/kcmoduleproxy.sip +++ /dev/null @@ -1,104 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kutils version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_3_0 - ) - -class TDECModuleProxy : TQWidget -{ -%TypeHeaderCode -#include -%End - - -public: - TDECModuleProxy (const TDECModuleInfo&, bool = 0, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); - -%If ( KDE_3_4_0 - ) - TDECModuleProxy (const TQString&, bool = 1, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); - TDECModuleProxy (const KService::Ptr&, bool = 1, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); -%End - - void load (); - void save (); - TQString quickHelp () const; - const TDEAboutData* aboutData () const; - int buttons () const; - TQString rootOnlyMsg () const; - bool useRootOnlyMsg () const; - TDEInstance* instance () const; - bool changed () const; - -%If ( KDE_3_4_0 - ) - bool rootMode () const; -%End - - TDECModule* realModule () const; - const TDECModuleInfo& moduleInfo () const; - -%If ( KDE_3_4_0 - ) - TQCString dcopName () const; -%End - - -public slots: - -%If ( KDE_3_4_0 - ) - void runAsRoot (); - void defaults (); - void deleteClient (); -%End - - -signals: - void changed (bool); - -%If ( KDE_3_4_0 - ) - void changed (TDECModuleProxy*); - void childClosed (); - void quickHelpChanged (); -%End - - -protected: - void showEvent (TQShowEvent*); - -%If ( KDE_3_4_0 - ) - void init (const TDECModuleInfo&); - void emitQuickHelpChanged (); -%End - - -public: - -%If ( - KDE_3_4_0 ) - void defaults (); -%End - - -}; // class TDECModuleProxy - -%End - diff --git a/sip/kutils/kutils-kde340.diff b/sip/kutils/kutils-kde340.diff index d37bf3d..0805f47 100644 --- a/sip/kutils/kutils-kde340.diff +++ b/sip/kutils/kutils-kde340.diff @@ -1 +1 @@ -+ %Include kcmodulecontainer.sip ++ %Include tdecmodulecontainer.sip diff --git a/sip/kutils/kutils-kde341.diff b/sip/kutils/kutils-kde341.diff index d37bf3d..0805f47 100644 --- a/sip/kutils/kutils-kde341.diff +++ b/sip/kutils/kutils-kde341.diff @@ -1 +1 @@ -+ %Include kcmodulecontainer.sip ++ %Include tdecmodulecontainer.sip diff --git a/sip/kutils/kutilsmod.sip.in b/sip/kutils/kutilsmod.sip.in index 0124c99..ebd8f69 100644 --- a/sip/kutils/kutilsmod.sip.in +++ b/sip/kutils/kutilsmod.sip.in @@ -36,9 +36,9 @@ %Import tdeuimod.sip %Import kiomod.sip -%Include kcmoduleinfo.sip -%Include kcmoduleloader.sip -%Include kcmoduleproxy.sip +%Include tdecmoduleinfo.sip +%Include tdecmoduleloader.sip +%Include tdecmoduleproxy.sip %Include kcmultidialog.sip %Include kfind.sip %Include kfinddialog.sip diff --git a/sip/kutils/tdecmoduleinfo.sip b/sip/kutils/tdecmoduleinfo.sip new file mode 100644 index 0000000..2adda6c --- /dev/null +++ b/sip/kutils/tdecmoduleinfo.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class TDECModuleInfo +{ +%TypeHeaderCode +#include +%End + + +public: + TDECModuleInfo (const TQString&); + TDECModuleInfo (KService::Ptr); + TDECModuleInfo (const TDECModuleInfo&); + +%If ( KDE_3_4_0 - ) + TDECModuleInfo (); +%End + + bool operator == (const TDECModuleInfo&) const; + bool operator != (const TDECModuleInfo&) const; + TQString fileName () const; + const TQStringList& keywords () const; + +%If ( KDE_3_4_0 - ) + TQString factoryName () const; +%End + + TQString moduleName () const; + KService::Ptr service () const; + TQString comment () const; + TQString icon () const; + TQString docPath () const; + TQString library () const; + TQString handle () const; + int weight () const; + bool needsRootPrivileges () const; + bool isHiddenByDefault () const; + +%If ( KDE_3_4_0 - ) + bool needsTest () const; +%End + + +protected: + void setKeywords (const TQStringList&); + void setName (const TQString&); + void setComment (const TQString&); + void setIcon (const TQString&); + void setLibrary (const TQString&); + void setHandle (const TQString&); + void setWeight (int); + +%If ( KDE_3_4_0 - ) + void setNeedsTest (bool); +%End + + void setNeedsRootPrivileges (bool); + void setIsHiddenByDefault (bool); + void setDocPath (const TQString&); + void loadAll (); + +}; // class TDECModuleInfo + +%End + diff --git a/sip/kutils/tdecmoduleloader.sip b/sip/kutils/tdecmoduleloader.sip new file mode 100644 index 0000000..9d87854 --- /dev/null +++ b/sip/kutils/tdecmoduleloader.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class TDECModuleLoader +{ +%TypeHeaderCode +#include +%End + + +public: + static TDECModule* loadModule (const TDECModuleInfo&, bool = 1, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); + static TDECModule* loadModule (const TQString&, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); + +%If ( KDE_3_4_0 - ) + + enum ErrorReporting + { + None, + Inline, + Dialog, + Both + }; + + static TDECModule* loadModule (const TDECModuleInfo&, TDECModuleLoader::ErrorReporting, bool = 1, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); + static TDECModule* loadModule (const TQString&, TDECModuleLoader::ErrorReporting, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); +%End + + static void unloadModule (const TDECModuleInfo&); + static void showLastLoaderError (TQWidget*); + +%If ( KDE_3_4_0 - ) + static bool testModule (const TQString&); + static bool testModule (const TDECModuleInfo&); + static TDECModule* reportError (TDECModuleLoader::ErrorReporting, const TQString&, TQString, TQWidget*); +%End + + +}; // class TDECModuleLoader + +%End + diff --git a/sip/kutils/tdecmoduleproxy.sip b/sip/kutils/tdecmoduleproxy.sip new file mode 100644 index 0000000..6e65ce9 --- /dev/null +++ b/sip/kutils/tdecmoduleproxy.sip @@ -0,0 +1,104 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +%If ( KDE_3_3_0 - ) + +class TDECModuleProxy : TQWidget +{ +%TypeHeaderCode +#include +%End + + +public: + TDECModuleProxy (const TDECModuleInfo&, bool = 0, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); + +%If ( KDE_3_4_0 - ) + TDECModuleProxy (const TQString&, bool = 1, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); + TDECModuleProxy (const KService::Ptr&, bool = 1, TQWidget* = 0, const char* = 0, const TQStringList& = TQStringList ()); +%End + + void load (); + void save (); + TQString quickHelp () const; + const TDEAboutData* aboutData () const; + int buttons () const; + TQString rootOnlyMsg () const; + bool useRootOnlyMsg () const; + TDEInstance* instance () const; + bool changed () const; + +%If ( KDE_3_4_0 - ) + bool rootMode () const; +%End + + TDECModule* realModule () const; + const TDECModuleInfo& moduleInfo () const; + +%If ( KDE_3_4_0 - ) + TQCString dcopName () const; +%End + + +public slots: + +%If ( KDE_3_4_0 - ) + void runAsRoot (); + void defaults (); + void deleteClient (); +%End + + +signals: + void changed (bool); + +%If ( KDE_3_4_0 - ) + void changed (TDECModuleProxy*); + void childClosed (); + void quickHelpChanged (); +%End + + +protected: + void showEvent (TQShowEvent*); + +%If ( KDE_3_4_0 - ) + void init (const TDECModuleInfo&); + void emitQuickHelpChanged (); +%End + + +public: + +%If ( - KDE_3_4_0 ) + void defaults (); +%End + + +}; // class TDECModuleProxy + +%End + diff --git a/sip/tdeui/kcmodule.sip b/sip/tdeui/kcmodule.sip deleted file mode 100644 index 0ff0b24..0000000 --- a/sip/tdeui/kcmodule.sip +++ /dev/null @@ -1,183 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class TDECModule : TQWidget -{ -%TypeHeaderCode -#include -%End - - -public: - - enum Button - { - Help, - Default, - Apply, - Reset, - Cancel, - Ok, - SysDefault - }; - - TDECModule (TQWidget* /TransferThis/ = 0, const char* = 0, const TQStringList& = TQStringList ()); - TDECModule (TDEInstance*, TQWidget* /TransferThis/ = 0, const TQStringList& = TQStringList ()); - virtual void load (); - virtual void save (); - virtual void defaults (); - virtual void sysdefaults (); - virtual TQString quickHelp () const; - virtual const TDEAboutData* aboutData () const; - -%If ( KDE_3_3_0 - ) - void setAboutData (TDEAboutData*); -%End - - int buttons (); - TQString rootOnlyMsg () const; - bool useRootOnlyMsg () const; - TDEInstance* instance () const; - -%If ( KDE_3_4_0 - ) - const TQPtrList& configs () const; -%End - - -protected: - -%If ( KDE_3_3_0 - ) - TDEConfigDialogManager* addConfig (TDEConfigSkeleton*, TQWidget*); - void setQuickHelp (const TQString&); -%End - - -signals: - void changed (bool); - void quickHelpChanged (); - -protected slots: - -%If ( KDE_3_3_0 - ) - void changed (); - -%If ( KDE_3_4_0 - ) - void widgetChanged (); -%End - -%End - - -protected: - void setButtons (int); - void setRootOnlyMsg (const TQString&); - void setUseRootOnlyMsg (bool); - -%If ( KDE_3_5_0 - ) - bool managedWidgetChangeState () const; - void unmanagedWidgetChangeState (bool); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class TDECModule - - - -%If (KDE_3_3_0 - ) -%MappedType TQPtrList -//converts a Python list of TDEConfigDialogManager -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - TQPtrList *cpplist = (TQPtrList *)sipCpp; - TDEConfigDialogManager *cpp; - PyObject *inst; - - // the loop depends on the type of iterator the tmeplate makes available - for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) - { - if (((inst = sipConvertFromInstance (cpp, sipClass_TDEConfigDialogManager, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - TQPtrList *cpplist = new TQPtrList; - - PyObject *elem; - TDEConfigDialogManager *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (TDEConfigDialogManager *)sipForceConvertToType(elem, sipType_TDEConfigDialogManager, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/sip/tdeui/tdecmodule.sip b/sip/tdeui/tdecmodule.sip new file mode 100644 index 0000000..446f992 --- /dev/null +++ b/sip/tdeui/tdecmodule.sip @@ -0,0 +1,183 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +class TDECModule : TQWidget +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Button + { + Help, + Default, + Apply, + Reset, + Cancel, + Ok, + SysDefault + }; + + TDECModule (TQWidget* /TransferThis/ = 0, const char* = 0, const TQStringList& = TQStringList ()); + TDECModule (TDEInstance*, TQWidget* /TransferThis/ = 0, const TQStringList& = TQStringList ()); + virtual void load (); + virtual void save (); + virtual void defaults (); + virtual void sysdefaults (); + virtual TQString quickHelp () const; + virtual const TDEAboutData* aboutData () const; + +%If ( KDE_3_3_0 - ) + void setAboutData (TDEAboutData*); +%End + + int buttons (); + TQString rootOnlyMsg () const; + bool useRootOnlyMsg () const; + TDEInstance* instance () const; + +%If ( KDE_3_4_0 - ) + const TQPtrList& configs () const; +%End + + +protected: + +%If ( KDE_3_3_0 - ) + TDEConfigDialogManager* addConfig (TDEConfigSkeleton*, TQWidget*); + void setQuickHelp (const TQString&); +%End + + +signals: + void changed (bool); + void quickHelpChanged (); + +protected slots: + +%If ( KDE_3_3_0 - ) + void changed (); + +%If ( KDE_3_4_0 - ) + void widgetChanged (); +%End + +%End + + +protected: + void setButtons (int); + void setRootOnlyMsg (const TQString&); + void setUseRootOnlyMsg (bool); + +%If ( KDE_3_5_0 - ) + bool managedWidgetChangeState () const; + void unmanagedWidgetChangeState (bool); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class TDECModule + + + +%If (KDE_3_3_0 - ) +%MappedType TQPtrList +//converts a Python list of TDEConfigDialogManager +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + TQPtrList *cpplist = (TQPtrList *)sipCpp; + TDEConfigDialogManager *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_TDEConfigDialogManager, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + TQPtrList *cpplist = new TQPtrList; + + PyObject *elem; + TDEConfigDialogManager *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (TDEConfigDialogManager *)sipForceConvertToType(elem, sipType_TDEConfigDialogManager, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/sip/tdeui/tdeuimod.sip.in b/sip/tdeui/tdeuimod.sip.in index a7a2abb..c9101c8 100644 --- a/sip/tdeui/tdeuimod.sip.in +++ b/sip/tdeui/tdeuimod.sip.in @@ -47,7 +47,7 @@ %Include kbuttonbox.sip %Include kcharselect.sip %Include kcmenumngr.sip -%Include kcmodule.sip +%Include tdecmodule.sip %Include kcolorbtn.sip %Include kcolorcombo.sip %Include kcolordialog.sip -- cgit v1.2.1