diff options
Diffstat (limited to 'sip/tdeutils')
-rw-r--r-- | sip/tdeutils/kcmultidialog.sip | 86 | ||||
-rw-r--r-- | sip/tdeutils/kfind.sip | 83 | ||||
-rw-r--r-- | sip/tdeutils/kfinddialog.sip | 86 | ||||
-rw-r--r-- | sip/tdeutils/kplugininfo.sip | 148 | ||||
-rw-r--r-- | sip/tdeutils/kpluginselector.sip | 53 | ||||
-rw-r--r-- | sip/tdeutils/kreplace.sip | 60 | ||||
-rw-r--r-- | sip/tdeutils/kreplacedialog.sip | 59 | ||||
-rw-r--r-- | sip/tdeutils/tdecmoduleinfo.sip | 91 | ||||
-rw-r--r-- | sip/tdeutils/tdecmoduleloader.sip | 67 | ||||
-rw-r--r-- | sip/tdeutils/tdecmoduleproxy.sip | 104 | ||||
-rw-r--r-- | sip/tdeutils/tdemultitabbar.sip | 167 | ||||
-rw-r--r-- | sip/tdeutils/tdeutils-kde340.diff | 1 | ||||
-rw-r--r-- | sip/tdeutils/tdeutils-kde341.diff | 1 | ||||
-rw-r--r-- | sip/tdeutils/tdeutilsmod.sip.in | 50 |
14 files changed, 1056 insertions, 0 deletions
diff --git a/sip/tdeutils/kcmultidialog.sip b/sip/tdeutils/kcmultidialog.sip new file mode 100644 index 0000000..a20e383 --- /dev/null +++ b/sip/tdeutils/kcmultidialog.sip @@ -0,0 +1,86 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeutils 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 KCMultiDialog : KDialogBase +{ +%TypeHeaderCode +#include <kcmultidialog.h> +%End + + +public: + KCMultiDialog (TQWidget* = 0, const char* = 0, bool = 0); + KCMultiDialog (int, const TQString&, TQWidget* = 0, const char* = 0, bool = 0); + KCMultiDialog (int, const KGuiItem&, const KGuiItem& = KGuiItem (), int = User2 , const TQString& = i18n ("Configure" ), TQWidget* = 0, const char* = 0, bool = 0); + void addModule (const TQString&, bool = 1) /ReleaseGIL/; + void addModule (const TDECModuleInfo&, TQStringList = TQStringList (), bool = 0); + void removeAllModules (); + void show (); + +signals: + void configCommitted (); + void configCommitted (const TQCString&); + +protected slots: + virtual void slotDefault (); + virtual void slotUser1 (); + virtual void slotApply (); + virtual void slotOk (); + virtual void slotHelp (); +//force + +private: + void apply (); + +//force +%ConvertToSubClassCode +// The table of Python class objects indexed by their names. The table +// must be sorted by name. + +static sipStringTypeClassMap map[] = { +{sipName_TDECModuleProxy, &sipClass_TDECModuleProxy}, +{sipName_KCMultiDialog, &sipClass_KCMultiDialog}, +{sipName_KFind, &sipClass_KFind}, +{sipName_KFindDialog, &sipClass_KFindDialog}, +{sipName_KMultiTabBar, &sipClass_KMultiTabBar}, +{sipName_KMultiTabBarButton, &sipClass_KMultiTabBarButton}, +{sipName_KMultiTabBar, &sipClass_KMultiTabBar}, +{sipName_KPluginSelector, &sipClass_KPluginSelector}, +{sipName_KReplace, &sipClass_KReplace}, +{sipName_KReplaceDialog, &sipClass_KReplaceDialog}, +}; + +sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end +//end + +}; // class KCMultiDialog + +%End + diff --git a/sip/tdeutils/kfind.sip b/sip/tdeutils/kfind.sip new file mode 100644 index 0000000..59c4022 --- /dev/null +++ b/sip/tdeutils/kfind.sip @@ -0,0 +1,83 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeutils 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 KFind : TQObject +{ +%TypeHeaderCode +#include <kfind.h> +%End + + +public: + KFind (const TQString&, long, TQWidget*); + KFind (const TQString&, long, TQWidget*, TQWidget*); + + enum Result + { + NoMatch, + Match + }; + + bool needData () const; + void setData (const TQString&, int = -1); + void setData (int, const TQString&, int = -1); + KFind::Result find (); + long options () const; + virtual void setOptions (long); + TQString pattern () const; + void setPattern (const TQString&); + int numMatches () const; + virtual void resetCounts (); + virtual bool validateMatch (const TQString&, int, int); + virtual bool shouldRestart (bool = 0, bool = 1) const; + static int find (const TQString&, const TQString&, int, long, int*); + static int find (const TQString&, const TQRegExp&, int, long, int*); + virtual void displayFinalDialog () const; + KDialogBase* findNextDialog (bool = 0); + void closeFindNextDialog (); + int index () const; + +signals: + void highlight (const TQString&, int, int); + void highlight (int, int, int); + void findNext (); + void optionsChanged (); + void dialogClosed (); + +protected: + TQWidget* parentWidget () const; + TQWidget* dialogsParent () const; + +protected slots: + void slotFindNext (); + void slotDialogClosed (); + +}; // class KFind + +%End + diff --git a/sip/tdeutils/kfinddialog.sip b/sip/tdeutils/kfinddialog.sip new file mode 100644 index 0000000..df30625 --- /dev/null +++ b/sip/tdeutils/kfinddialog.sip @@ -0,0 +1,86 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeutils 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 KFindDialog : KDialogBase +{ +%TypeHeaderCode +#include <kfinddialog.h> +%End + + +public: + + enum Options + { + WholeWordsOnly, + FromCursor, + SelectedText, + CaseSensitive, + FindBackwards, + RegularExpression, + FindIncremental, + MinimumUserOption + }; + + KFindDialog (TQWidget* = 0, const char* = 0, long = 0, const TQStringList& = TQStringList (), bool = 0); + KFindDialog (bool, TQWidget* = 0, const char* = 0, long = 0, const TQStringList& = TQStringList (), bool = 0); + void setFindHistory (const TQStringList&); + TQStringList findHistory () const; + void setHasSelection (bool); + void setHasCursor (bool); + +%If ( KDE_3_4_0 - ) + void setSupportsBackwardsFind (bool); + void setSupportsCaseSensitiveFind (bool); + void setSupportsWholeWordsFind (bool); + void setSupportsRegularExpressionFind (bool); +%End + + void setOptions (long); + long options () const; + TQString pattern () const; + void setPattern (const TQString&); + TQWidget* findExtension (); + +protected slots: + void slotOk (); + void slotSelectedTextToggled (bool); + void showPatterns (); + void showPlaceholders (); + void textSearchChanged (const TQString&); + +protected: + virtual void showEvent (TQShowEvent*); + +private: + KFindDialog (TQWidget*, const char*, bool); + +}; // class KFindDialog + +%End + diff --git a/sip/tdeutils/kplugininfo.sip b/sip/tdeutils/kplugininfo.sip new file mode 100644 index 0000000..d71148d --- /dev/null +++ b/sip/tdeutils/kplugininfo.sip @@ -0,0 +1,148 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeutils 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 KPluginInfo +{ +%TypeHeaderCode +#include <kplugininfo.h> +%End + + +public: + typedef TQValueList<KPluginInfo*> List; + KPluginInfo (const TQString&, const char* = 0); + KPluginInfo (const KService::Ptr); + static KPluginInfo::List fromServices (const KService::List&, TDEConfig* = 0, const TQString& = TQString ::null ); + static KPluginInfo::List fromFiles (const TQStringList&, TDEConfig* = 0, const TQString& = TQString ::null ); + static KPluginInfo::List fromKPartsInstanceName (const TQString&, TDEConfig* = 0, const TQString& = TQString ::null ); + bool isHidden () const; + virtual void setPluginEnabled (bool); + virtual bool isPluginEnabled () const; + bool isPluginEnabledByDefault () const; + TQVariant property (const TQString&) const; +//ig TQVariant operator [] (const TQString&) const; + const TQString& name () const; + const TQString& comment () const; + const TQString& icon () const; + const TQString& specfile () const; + const TQString& author () const; + const TQString& email () const; + const TQString& category () const; + const TQString& pluginName () const; + const TQString& version () const; + const TQString& website () const; + const TQString& license () const; + const TQStringList& dependencies () const; + KService::Ptr service () const; +//ig const TQValueList<KService::Ptr>& kcmServices () const; + void setConfig (TDEConfig*, const TQString&); + TDEConfig* config () const; + const TQString& configgroup () const; + virtual void save (TDEConfigGroup* = 0); + virtual void load (TDEConfigGroup* = 0); + virtual void defaults (); + +private: + KPluginInfo (const KPluginInfo&); + +}; // class KPluginInfo + +%End + + + +%If (KDE_3_3_0 - ) +%MappedType KPluginInfo::List +//converts a Python list of KPluginInfo +{ +%TypeHeaderCode +#include <tqvaluelist.h> +#include <kplugininfo.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + TQValueList<KPluginInfo *> *cpplist = (TQValueList<KPluginInfo *> *)sipCpp; + PyObject *inst; + + // Get it. + TQValueList<KPluginInfo *>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromInstance ((KPluginInfo *)(*it), sipClass_KPluginInfo, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + TQValueList<KPluginInfo *> *cpplist = new TQValueList<KPluginInfo *>; + + PyObject *elem; + KPluginInfo *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KPluginInfo *)sipForceConvertToType(elem, sipType_KPluginInfo, 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/tdeutils/kpluginselector.sip b/sip/tdeutils/kpluginselector.sip new file mode 100644 index 0000000..d542bea --- /dev/null +++ b/sip/tdeutils/kpluginselector.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeutils 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 KPluginSelector : TQWidget +{ +%TypeHeaderCode +#include <kpluginselector.h> +%End + + +public: + KPluginSelector (TQWidget*, const char* = 0); + void addPlugins (const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null , TDEConfig* = 0); + void addPlugins (const TDEInstance*, const TQString& = TQString ::null , const TQString& = TQString ::null , TDEConfig* = 0); +//ig void addPlugins (const TQValueList<KPluginInfo*>&, const TQString& = TQString ::null , const TQString& = TQString ::null , TDEConfig* = 0); + void setShowEmptyConfigPage (bool); + void load (); + void save (); + void defaults (); + +signals: + void changed (bool); + void configCommitted (const TQCString&); + +}; // class KPluginSelector + +%End + diff --git a/sip/tdeutils/kreplace.sip b/sip/tdeutils/kreplace.sip new file mode 100644 index 0000000..ee3842e --- /dev/null +++ b/sip/tdeutils/kreplace.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeutils 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 KReplace : KFind +{ +%TypeHeaderCode +#include <kreplace.h> +%End + + +public: + KReplace (const TQString&, const TQString&, long, TQWidget* = 0); + KReplace (const TQString&, const TQString&, long, TQWidget*, TQWidget*); + int numReplacements () const; + virtual void resetCounts (); + Result replace (); + KDialogBase* replaceNextDialog (bool = 0); + void closeReplaceNextDialog (); + static int replace (TQString&, const TQString&, const TQString&, int, long, int*); + static int replace (TQString&, const TQRegExp&, const TQString&, int, long, int*); + virtual bool shouldRestart (bool = 0, bool = 1) const; + virtual void displayFinalDialog () const; + +signals: + void replace (const TQString&, int, int, int); + +protected slots: + void slotSkip (); + void slotReplace (); + void slotReplaceAll (); + +}; // class KReplace + +%End + diff --git a/sip/tdeutils/kreplacedialog.sip b/sip/tdeutils/kreplacedialog.sip new file mode 100644 index 0000000..0546165 --- /dev/null +++ b/sip/tdeutils/kreplacedialog.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeutils 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 KReplaceDialog : KFindDialog +{ +%TypeHeaderCode +#include <kreplacedialog.h> +%End + + +public: + + enum Options + { + PromptOnReplace, + BackReference + }; + + KReplaceDialog (TQWidget* = 0, const char* = 0, long = 0, const TQStringList& = TQStringList (), const TQStringList& = TQStringList (), bool = 1); + void setReplacementHistory (const TQStringList&); + TQStringList replacementHistory () const; + void setOptions (long); + long options () const; + TQString replacement () const; + TQWidget* replaceExtension (); + +protected slots: + void slotOk (); + virtual void showEvent (TQShowEvent*); + +}; // class KReplaceDialog + +%End + diff --git a/sip/tdeutils/tdecmoduleinfo.sip b/sip/tdeutils/tdecmoduleinfo.sip new file mode 100644 index 0000000..6403dc5 --- /dev/null +++ b/sip/tdeutils/tdecmoduleinfo.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeutils 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 <tdecmoduleinfo.h> +%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/tdeutils/tdecmoduleloader.sip b/sip/tdeutils/tdecmoduleloader.sip new file mode 100644 index 0000000..a5744b5 --- /dev/null +++ b/sip/tdeutils/tdecmoduleloader.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeutils 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 <tdecmoduleloader.h> +%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/tdeutils/tdecmoduleproxy.sip b/sip/tdeutils/tdecmoduleproxy.sip new file mode 100644 index 0000000..3b4baec --- /dev/null +++ b/sip/tdeutils/tdecmoduleproxy.sip @@ -0,0 +1,104 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeutils 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 <tdecmoduleproxy.h> +%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/tdeutils/tdemultitabbar.sip b/sip/tdeutils/tdemultitabbar.sip new file mode 100644 index 0000000..4f52d78 --- /dev/null +++ b/sip/tdeutils/tdemultitabbar.sip @@ -0,0 +1,167 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeutils 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 KMultiTabBar : TQWidget +{ +%TypeHeaderCode +#include <tdemultitabbar.h> +%End + + +public: + + enum KMultiTabBarMode + { + Horizontal, + Vertical + }; + + + enum KMultiTabBarPosition + { + Left, + Right, + Top, + Bottom + }; + + + enum KMultiTabBarStyle + { + VSNET, + KDEV3, + KONQSBC, + KDEV3ICON, + STYLELAST + }; + + KMultiTabBar (KMultiTabBar::KMultiTabBarMode, TQWidget* = 0, const char* = 0); + int appendButton (const TQPixmap&, int = -1, TQPopupMenu* = 0, const TQString& = TQString ::null ); + void removeButton (int); + int appendTab (const TQPixmap&, int = -1, const TQString& = TQString ::null ); + void removeTab (int); + void setTab (int, bool); + bool isTabRaised (int) const; + KMultiTabBarButton* button (int) const; + KMultiTabBarTab* tab (int) const; + void setPosition (KMultiTabBar::KMultiTabBarPosition); + +%If ( KDE_3_5_0 - ) + KMultiTabBar::KMultiTabBarPosition position () const; +%End + + void setStyle (KMultiTabBar::KMultiTabBarStyle); + +%If ( KDE_3_5_0 - ) + KMultiTabBar::KMultiTabBarStyle tabStyle () const; +%End + +//ig TQPtrList<KMultiTabBarTab>* tabs (); +//ig TQPtrList<KMultiTabBarButton>* buttons (); + void showActiveTabTexts (bool = 1); + +protected: + virtual void fontChange (const TQFont&); + void updateSeparator (); + +}; // class KMultiTabBar + +%End + + +%If ( KDE_3_3_0 - ) + +class KMultiTabBarButton : TQPushButton +{ +%TypeHeaderCode +#include <tdemultitabbar.h> +%End + + +public: + KMultiTabBarButton (const TQPixmap&, const TQString&, TQPopupMenu*, int, TQWidget*, KMultiTabBar::KMultiTabBarPosition, KMultiTabBar::KMultiTabBarStyle); + KMultiTabBarButton (const TQString&, TQPopupMenu*, int, TQWidget*, KMultiTabBar::KMultiTabBarPosition, KMultiTabBar::KMultiTabBarStyle); + int id () const; + +public slots: + void setPosition (KMultiTabBar::KMultiTabBarPosition); + void setStyle (KMultiTabBar::KMultiTabBarStyle); + void setText (const TQString&); + TQSize sizeHint () const; + +protected: + virtual void hideEvent (TQHideEvent*); + virtual void showEvent (TQShowEvent*); + +signals: + void clicked (int); + +protected slots: + virtual void slotClicked (); + +}; // class KMultiTabBarButton + +%End + + +%If ( KDE_3_3_0 - ) + +class KMultiTabBarTab : KMultiTabBarButton +{ +%TypeHeaderCode +#include <tdemultitabbar.h> +%End + + +public: + KMultiTabBarTab (const TQPixmap&, const TQString&, int, TQWidget*, KMultiTabBar::KMultiTabBarPosition, KMultiTabBar::KMultiTabBarStyle); + void setState (bool); + void showActiveTabText (bool); + void resize (); + +protected: + void setSize (int); + int neededSize (); + void updateState (); + virtual void drawButton (TQPainter*); + virtual void drawButtonLabel (TQPainter*); + void drawButtonStyled (TQPainter*); + void drawButtonClassic (TQPainter*); + +protected slots: + virtual void slotClicked (); + void setTabsPosition (KMultiTabBar::KMultiTabBarPosition); + +public slots: + virtual void setIcon (const TQString&); + virtual void setIcon (const TQPixmap&); + +}; // class KMultiTabBarTab + +%End + diff --git a/sip/tdeutils/tdeutils-kde340.diff b/sip/tdeutils/tdeutils-kde340.diff new file mode 100644 index 0000000..0805f47 --- /dev/null +++ b/sip/tdeutils/tdeutils-kde340.diff @@ -0,0 +1 @@ ++ %Include tdecmodulecontainer.sip diff --git a/sip/tdeutils/tdeutils-kde341.diff b/sip/tdeutils/tdeutils-kde341.diff new file mode 100644 index 0000000..0805f47 --- /dev/null +++ b/sip/tdeutils/tdeutils-kde341.diff @@ -0,0 +1 @@ ++ %Include tdecmodulecontainer.sip diff --git a/sip/tdeutils/tdeutilsmod.sip.in b/sip/tdeutils/tdeutilsmod.sip.in new file mode 100644 index 0000000..ad606c9 --- /dev/null +++ b/sip/tdeutils/tdeutilsmod.sip.in @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeutils version KDE_3_5_2 + +%Copying + + 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. + +%End + +%Module tdeutils + +%Import qt/qtmod.sip +%Import dcopmod.sip +%Import tdecoremod.sip +%Import qtxml/qtxmlmod.sip +%Import tdefxmod.sip +%Import tdeuimod.sip +%Import kiomod.sip + +%Include tdecmoduleinfo.sip +%Include tdecmoduleloader.sip +%Include tdecmoduleproxy.sip +%Include kcmultidialog.sip +%Include kfind.sip +%Include kfinddialog.sip +%Include tdemultitabbar.sip +%Include kplugininfo.sip +%Include kpluginselector.sip +%Include kreplace.sip +%Include kreplacedialog.sip +@mark@ |