diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /python/pykde/sip/kutils | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'python/pykde/sip/kutils')
-rw-r--r-- | python/pykde/sip/kutils/kcmoduleinfo.sip | 91 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kcmoduleloader.sip | 67 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kcmoduleproxy.sip | 104 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kcmultidialog.sip | 86 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kfind.sip | 83 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kfinddialog.sip | 86 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kmultitabbar.sip | 167 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kplugininfo.sip | 149 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kpluginselector.sip | 53 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kreplace.sip | 60 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kreplacedialog.sip | 59 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kutils-kde340.diff | 1 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kutils-kde341.diff | 1 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kutilsmod.sip | 49 | ||||
-rw-r--r-- | python/pykde/sip/kutils/kutilsmod.sip.in | 50 |
15 files changed, 1106 insertions, 0 deletions
diff --git a/python/pykde/sip/kutils/kcmoduleinfo.sip b/python/pykde/sip/kutils/kcmoduleinfo.sip new file mode 100644 index 00000000..35eec98a --- /dev/null +++ b/python/pykde/sip/kutils/kcmoduleinfo.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 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KCModuleInfo +{ +%TypeHeaderCode +#include <kcmoduleinfo.h> +%End + + +public: + KCModuleInfo (const QString&); + KCModuleInfo (KService::Ptr); + KCModuleInfo (const KCModuleInfo&); + +%If ( KDE_3_4_0 - ) + KCModuleInfo (); +%End + + bool operator == (const KCModuleInfo&) const; + bool operator != (const KCModuleInfo&) const; + QString fileName () const; + const QStringList& keywords () const; + +%If ( KDE_3_4_0 - ) + QString factoryName () const; +%End + + QString moduleName () const; + KService::Ptr service () const; + QString comment () const; + QString icon () const; + QString docPath () const; + QString library () const; + QString handle () const; + int weight () const; + bool needsRootPrivileges () const; + bool isHiddenByDefault () const; + +%If ( KDE_3_4_0 - ) + bool needsTest () const; +%End + + +protected: + void setKeywords (const QStringList&); + void setName (const QString&); + void setComment (const QString&); + void setIcon (const QString&); + void setLibrary (const QString&); + void setHandle (const QString&); + void setWeight (int); + +%If ( KDE_3_4_0 - ) + void setNeedsTest (bool); +%End + + void setNeedsRootPrivileges (bool); + void setIsHiddenByDefault (bool); + void setDocPath (const QString&); + void loadAll (); + +}; // class KCModuleInfo + +%End + diff --git a/python/pykde/sip/kutils/kcmoduleloader.sip b/python/pykde/sip/kutils/kcmoduleloader.sip new file mode 100644 index 00000000..dc732bdc --- /dev/null +++ b/python/pykde/sip/kutils/kcmoduleloader.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 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KCModuleLoader +{ +%TypeHeaderCode +#include <kcmoduleloader.h> +%End + + +public: + static KCModule* loadModule (const KCModuleInfo&, bool = 1, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + static KCModule* loadModule (const QString&, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + +%If ( KDE_3_4_0 - ) + + enum ErrorReporting + { + None, + Inline, + Dialog, + Both + }; + + static KCModule* loadModule (const KCModuleInfo&, KCModuleLoader::ErrorReporting, bool = 1, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + static KCModule* loadModule (const QString&, KCModuleLoader::ErrorReporting, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); +%End + + static void unloadModule (const KCModuleInfo&); + static void showLastLoaderError (QWidget*); + +%If ( KDE_3_4_0 - ) + static bool testModule (const QString&); + static bool testModule (const KCModuleInfo&); + static KCModule* reportError (KCModuleLoader::ErrorReporting, const QString&, QString, QWidget*); +%End + + +}; // class KCModuleLoader + +%End + diff --git a/python/pykde/sip/kutils/kcmoduleproxy.sip b/python/pykde/sip/kutils/kcmoduleproxy.sip new file mode 100644 index 00000000..e0df6304 --- /dev/null +++ b/python/pykde/sip/kutils/kcmoduleproxy.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 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KCModuleProxy : QWidget +{ +%TypeHeaderCode +#include <kcmoduleproxy.h> +%End + + +public: + KCModuleProxy (const KCModuleInfo&, bool = 0, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + +%If ( KDE_3_4_0 - ) + KCModuleProxy (const QString&, bool = 1, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); + KCModuleProxy (const KService::Ptr&, bool = 1, QWidget* = 0, const char* = 0, const QStringList& = QStringList ()); +%End + + void load (); + void save (); + QString quickHelp () const; + const KAboutData* aboutData () const; + int buttons () const; + QString rootOnlyMsg () const; + bool useRootOnlyMsg () const; + KInstance* instance () const; + bool changed () const; + +%If ( KDE_3_4_0 - ) + bool rootMode () const; +%End + + KCModule* realModule () const; + const KCModuleInfo& moduleInfo () const; + +%If ( KDE_3_4_0 - ) + QCString 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 (KCModuleProxy*); + void childClosed (); + void quickHelpChanged (); +%End + + +protected: + void showEvent (QShowEvent*); + +%If ( KDE_3_4_0 - ) + void init (const KCModuleInfo&); + void emitQuickHelpChanged (); +%End + + +public: + +%If ( - KDE_3_4_0 ) + void defaults (); +%End + + +}; // class KCModuleProxy + +%End + diff --git a/python/pykde/sip/kutils/kcmultidialog.sip b/python/pykde/sip/kutils/kcmultidialog.sip new file mode 100644 index 00000000..0d827091 --- /dev/null +++ b/python/pykde/sip/kutils/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 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KCMultiDialog : KDialogBase +{ +%TypeHeaderCode +#include <kcmultidialog.h> +%End + + +public: + KCMultiDialog (QWidget* = 0, const char* = 0, bool = 0); + KCMultiDialog (int, const QString&, QWidget* = 0, const char* = 0, bool = 0); + KCMultiDialog (int, const KGuiItem&, const KGuiItem& = KGuiItem (), int = User2 , const QString& = i18n ("Configure" ), QWidget* = 0, const char* = 0, bool = 0); + void addModule (const QString&, bool = 1) /ReleaseGIL/; + void addModule (const KCModuleInfo&, QStringList = QStringList (), bool = 0); + void removeAllModules (); + void show (); + +signals: + void configCommitted (); + void configCommitted (const QCString&); + +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_KCModuleProxy, &sipClass_KCModuleProxy}, +{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/python/pykde/sip/kutils/kfind.sip b/python/pykde/sip/kutils/kfind.sip new file mode 100644 index 00000000..382a572a --- /dev/null +++ b/python/pykde/sip/kutils/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 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KFind : QObject +{ +%TypeHeaderCode +#include <kfind.h> +%End + + +public: + KFind (const QString&, long, QWidget*); + KFind (const QString&, long, QWidget*, QWidget*); + + enum Result + { + NoMatch, + Match + }; + + bool needData () const; + void setData (const QString&, int = -1); + void setData (int, const QString&, int = -1); + KFind::Result find (); + long options () const; + virtual void setOptions (long); + QString pattern () const; + void setPattern (const QString&); + int numMatches () const; + virtual void resetCounts (); + virtual bool validateMatch (const QString&, int, int); + virtual bool shouldRestart (bool = 0, bool = 1) const; + static int find (const QString&, const QString&, int, long, int*); + static int find (const QString&, const QRegExp&, int, long, int*); + virtual void displayFinalDialog () const; + KDialogBase* findNextDialog (bool = 0); + void closeFindNextDialog (); + int index () const; + +signals: + void highlight (const QString&, int, int); + void highlight (int, int, int); + void findNext (); + void optionsChanged (); + void dialogClosed (); + +protected: + QWidget* parentWidget () const; + QWidget* dialogsParent () const; + +protected slots: + void slotFindNext (); + void slotDialogClosed (); + +}; // class KFind + +%End + diff --git a/python/pykde/sip/kutils/kfinddialog.sip b/python/pykde/sip/kutils/kfinddialog.sip new file mode 100644 index 00000000..7241ad99 --- /dev/null +++ b/python/pykde/sip/kutils/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 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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 (QWidget* = 0, const char* = 0, long = 0, const QStringList& = QStringList (), bool = 0); + KFindDialog (bool, QWidget* = 0, const char* = 0, long = 0, const QStringList& = QStringList (), bool = 0); + void setFindHistory (const QStringList&); + QStringList 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; + QString pattern () const; + void setPattern (const QString&); + QWidget* findExtension (); + +protected slots: + void slotOk (); + void slotSelectedTextToggled (bool); + void showPatterns (); + void showPlaceholders (); + void textSearchChanged (const QString&); + +protected: + virtual void showEvent (QShowEvent*); + +private: + KFindDialog (QWidget*, const char*, bool); + +}; // class KFindDialog + +%End + diff --git a/python/pykde/sip/kutils/kmultitabbar.sip b/python/pykde/sip/kutils/kmultitabbar.sip new file mode 100644 index 00000000..d9224422 --- /dev/null +++ b/python/pykde/sip/kutils/kmultitabbar.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 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KMultiTabBar : QWidget +{ +%TypeHeaderCode +#include <kmultitabbar.h> +%End + + +public: + + enum KMultiTabBarMode + { + Horizontal, + Vertical + }; + + + enum KMultiTabBarPosition + { + Left, + Right, + Top, + Bottom + }; + + + enum KMultiTabBarStyle + { + VSNET, + KDEV3, + KONQSBC, + KDEV3ICON, + STYLELAST + }; + + KMultiTabBar (KMultiTabBar::KMultiTabBarMode, QWidget* = 0, const char* = 0); + int appendButton (const QPixmap&, int = -1, QPopupMenu* = 0, const QString& = QString ::null ); + void removeButton (int); + int appendTab (const QPixmap&, int = -1, const QString& = QString ::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 QPtrList<KMultiTabBarTab>* tabs (); +//ig QPtrList<KMultiTabBarButton>* buttons (); + void showActiveTabTexts (bool = 1); + +protected: + virtual void fontChange (const QFont&); + void updateSeparator (); + +}; // class KMultiTabBar + +%End + + +%If ( KDE_3_3_0 - ) + +class KMultiTabBarButton : QPushButton +{ +%TypeHeaderCode +#include <kmultitabbar.h> +%End + + +public: + KMultiTabBarButton (const QPixmap&, const QString&, QPopupMenu*, int, QWidget*, KMultiTabBar::KMultiTabBarPosition, KMultiTabBar::KMultiTabBarStyle); + KMultiTabBarButton (const QString&, QPopupMenu*, int, QWidget*, KMultiTabBar::KMultiTabBarPosition, KMultiTabBar::KMultiTabBarStyle); + int id () const; + +public slots: + void setPosition (KMultiTabBar::KMultiTabBarPosition); + void setStyle (KMultiTabBar::KMultiTabBarStyle); + void setText (const QString&); + QSize sizeHint () const; + +protected: + virtual void hideEvent (QHideEvent*); + virtual void showEvent (QShowEvent*); + +signals: + void clicked (int); + +protected slots: + virtual void slotClicked (); + +}; // class KMultiTabBarButton + +%End + + +%If ( KDE_3_3_0 - ) + +class KMultiTabBarTab : KMultiTabBarButton +{ +%TypeHeaderCode +#include <kmultitabbar.h> +%End + + +public: + KMultiTabBarTab (const QPixmap&, const QString&, int, QWidget*, KMultiTabBar::KMultiTabBarPosition, KMultiTabBar::KMultiTabBarStyle); + void setState (bool); + void showActiveTabText (bool); + void resize (); + +protected: + void setSize (int); + int neededSize (); + void updateState (); + virtual void drawButton (QPainter*); + virtual void drawButtonLabel (QPainter*); + void drawButtonStyled (QPainter*); + void drawButtonClassic (QPainter*); + +protected slots: + virtual void slotClicked (); + void setTabsPosition (KMultiTabBar::KMultiTabBarPosition); + +public slots: + virtual void setIcon (const QString&); + virtual void setIcon (const QPixmap&); + +}; // class KMultiTabBarTab + +%End + diff --git a/python/pykde/sip/kutils/kplugininfo.sip b/python/pykde/sip/kutils/kplugininfo.sip new file mode 100644 index 00000000..e58d9899 --- /dev/null +++ b/python/pykde/sip/kutils/kplugininfo.sip @@ -0,0 +1,149 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KPluginInfo +{ +%TypeHeaderCode +#include <kplugininfo.h> +%End + + +public: + typedef QValueList<KPluginInfo*> List; + KPluginInfo (const QString&, const char* = 0); + KPluginInfo (const KService::Ptr); + static KPluginInfo::List fromServices (const KService::List&, KConfig* = 0, const QString& = QString ::null ); + static KPluginInfo::List fromFiles (const QStringList&, KConfig* = 0, const QString& = QString ::null ); + static KPluginInfo::List fromKPartsInstanceName (const QString&, KConfig* = 0, const QString& = QString ::null ); + bool isHidden () const; + virtual void setPluginEnabled (bool); + virtual bool isPluginEnabled () const; + bool isPluginEnabledByDefault () const; + QVariant property (const QString&) const; +//ig QVariant operator [] (const QString&) const; + const QString& name () const; + const QString& comment () const; + const QString& icon () const; + const QString& specfile () const; + const QString& author () const; + const QString& email () const; + const QString& category () const; + const QString& pluginName () const; + const QString& version () const; + const QString& website () const; + const QString& license () const; + const QStringList& dependencies () const; + KService::Ptr service () const; +//ig const QValueList<KService::Ptr>& kcmServices () const; + void setConfig (KConfig*, const QString&); + KConfig* config () const; + const QString& configgroup () const; + virtual void save (KConfigGroup* = 0); + virtual void load (KConfigGroup* = 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 <qvaluelist.h> +#include <kplugininfo.h> +#include <sipkutilsKPluginInfo.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KPluginInfo *> *cpplist = (QValueList<KPluginInfo *> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<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); + + QValueList<KPluginInfo *> *cpplist = new QValueList<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 *)sipForceConvertTo_KPluginInfo (elem, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/python/pykde/sip/kutils/kpluginselector.sip b/python/pykde/sip/kutils/kpluginselector.sip new file mode 100644 index 00000000..2ef12ed3 --- /dev/null +++ b/python/pykde/sip/kutils/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 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KPluginSelector : QWidget +{ +%TypeHeaderCode +#include <kpluginselector.h> +%End + + +public: + KPluginSelector (QWidget*, const char* = 0); + void addPlugins (const QString&, const QString& = QString ::null , const QString& = QString ::null , KConfig* = 0); + void addPlugins (const KInstance*, const QString& = QString ::null , const QString& = QString ::null , KConfig* = 0); +//ig void addPlugins (const QValueList<KPluginInfo*>&, const QString& = QString ::null , const QString& = QString ::null , KConfig* = 0); + void setShowEmptyConfigPage (bool); + void load (); + void save (); + void defaults (); + +signals: + void changed (bool); + void configCommitted (const QCString&); + +}; // class KPluginSelector + +%End + diff --git a/python/pykde/sip/kutils/kreplace.sip b/python/pykde/sip/kutils/kreplace.sip new file mode 100644 index 00000000..bfed876e --- /dev/null +++ b/python/pykde/sip/kutils/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 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KReplace : KFind +{ +%TypeHeaderCode +#include <kreplace.h> +%End + + +public: + KReplace (const QString&, const QString&, long, QWidget* = 0); + KReplace (const QString&, const QString&, long, QWidget*, QWidget*); + int numReplacements () const; + virtual void resetCounts (); + Result replace (); + KDialogBase* replaceNextDialog (bool = 0); + void closeReplaceNextDialog (); + static int replace (QString&, const QString&, const QString&, int, long, int*); + static int replace (QString&, const QRegExp&, const QString&, int, long, int*); + virtual bool shouldRestart (bool = 0, bool = 1) const; + virtual void displayFinalDialog () const; + +signals: + void replace (const QString&, int, int, int); + +protected slots: + void slotSkip (); + void slotReplace (); + void slotReplaceAll (); + +}; // class KReplace + +%End + diff --git a/python/pykde/sip/kutils/kreplacedialog.sip b/python/pykde/sip/kutils/kreplacedialog.sip new file mode 100644 index 00000000..5657adad --- /dev/null +++ b/python/pykde/sip/kutils/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 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KReplaceDialog : KFindDialog +{ +%TypeHeaderCode +#include <kreplacedialog.h> +%End + + +public: + + enum Options + { + PromptOnReplace, + BackReference + }; + + KReplaceDialog (QWidget* = 0, const char* = 0, long = 0, const QStringList& = QStringList (), const QStringList& = QStringList (), bool = 1); + void setReplacementHistory (const QStringList&); + QStringList replacementHistory () const; + void setOptions (long); + long options () const; + QString replacement () const; + QWidget* replaceExtension (); + +protected slots: + void slotOk (); + virtual void showEvent (QShowEvent*); + +}; // class KReplaceDialog + +%End + diff --git a/python/pykde/sip/kutils/kutils-kde340.diff b/python/pykde/sip/kutils/kutils-kde340.diff new file mode 100644 index 00000000..d37bf3db --- /dev/null +++ b/python/pykde/sip/kutils/kutils-kde340.diff @@ -0,0 +1 @@ ++ %Include kcmodulecontainer.sip diff --git a/python/pykde/sip/kutils/kutils-kde341.diff b/python/pykde/sip/kutils/kutils-kde341.diff new file mode 100644 index 00000000..d37bf3db --- /dev/null +++ b/python/pykde/sip/kutils/kutils-kde341.diff @@ -0,0 +1 @@ ++ %Include kcmodulecontainer.sip diff --git a/python/pykde/sip/kutils/kutilsmod.sip b/python/pykde/sip/kutils/kutilsmod.sip new file mode 100644 index 00000000..bfce8f0d --- /dev/null +++ b/python/pykde/sip/kutils/kutilsmod.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kutils 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., + 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +%End + +%Module kutils + +%Import qt/qtmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import qtxml/qtxmlmod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip + +%Include kcmoduleinfo.sip +%Include kcmoduleloader.sip +%Include kcmoduleproxy.sip +%Include kcmultidialog.sip +%Include kfind.sip +%Include kfinddialog.sip +%Include kmultitabbar.sip +%Include kplugininfo.sip +%Include kpluginselector.sip +%Include kreplace.sip +%Include kreplacedialog.sip diff --git a/python/pykde/sip/kutils/kutilsmod.sip.in b/python/pykde/sip/kutils/kutilsmod.sip.in new file mode 100644 index 00000000..fbfb4ad0 --- /dev/null +++ b/python/pykde/sip/kutils/kutilsmod.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 kutils 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., + 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +%End + +%Module kutils + +%Import qt/qtmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import qtxml/qtxmlmod.sip +%Import kdefxmod.sip +%Import kdeuimod.sip +%Import kiomod.sip + +%Include kcmoduleinfo.sip +%Include kcmoduleloader.sip +%Include kcmoduleproxy.sip +%Include kcmultidialog.sip +%Include kfind.sip +%Include kfinddialog.sip +%Include kmultitabbar.sip +%Include kplugininfo.sip +%Include kpluginselector.sip +%Include kreplace.sip +%Include kreplacedialog.sip +@mark@ |