diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-14 19:47:20 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-14 19:47:20 +0000 |
commit | 875ae8e38bc3663e5057ca910e7ebe4b2994edb9 (patch) | |
tree | ddd3b3bc4d6f0343bae986aebbf9555c20f8e558 /python/pykde/sip/kparts | |
parent | cb61a0436524f8ceba31db51ce3f1c5d4afbbb0e (diff) | |
download | tdebindings-875ae8e38bc3663e5057ca910e7ebe4b2994edb9.tar.gz tdebindings-875ae8e38bc3663e5057ca910e7ebe4b2994edb9.zip |
Updated python directory
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1175349 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'python/pykde/sip/kparts')
31 files changed, 0 insertions, 2151 deletions
diff --git a/python/pykde/sip/kparts/browserextension.sip b/python/pykde/sip/kparts/browserextension.sip deleted file mode 100644 index 494b8662..00000000 --- a/python/pykde/sip/kparts/browserextension.sip +++ /dev/null @@ -1,603 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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. - -namespace KParts -{ - -class URLArgs -{ -%TypeHeaderCode -#include <browserextension.h> -#include <sipkioKIOMetaData.h> -%End - - -public: - URLArgs (); - URLArgs (const KParts::URLArgs&); - URLArgs (bool, int, int, const QString& = QString ::null ); - QStringList docState; - bool reload; - int xOffset; - int yOffset; - QString serviceType; - QByteArray postData; - void setContentType (const QString&); - QString contentType () const; - void setDoPost (bool); - bool doPost () const; - void setLockHistory (bool); - bool lockHistory () const; - -%If ( KDE_3_1_0 - ) - void setNewTab (bool); - bool newTab () const; -%End - - QMap<QString,QString>& metaData (); - QString frameName; - bool trustedSource; - -%If ( KDE_3_1_3 - ) - bool redirectedRequest () const; - void setRedirectedRequest (bool); - -%If ( KDE_3_4_0 - ) - void setForcesNewWindow (bool); - bool forcesNewWindow () const; -%End - -%End - -//ig URLArgsPrivate* d; - -}; // class URLArgs - - -class WindowArgs -{ -%TypeHeaderCode -#include <browserextension.h> -%End - - -public: - WindowArgs (); - WindowArgs (const KParts::WindowArgs&); - WindowArgs (const QRect&, bool, bool, bool, bool, bool); - WindowArgs (int, int, int, int, bool, bool, bool, bool, bool); - int x; - int y; - int width; - int height; - bool fullscreen; - bool menuBarVisible; - bool toolBarsVisible; - bool statusBarVisible; - bool resizable; - bool lowerWindow; - -%If ( KDE_3_5_0 - ) - bool scrollBarsVisible; -%End - -//ig WindowArgsPrivate* d; - -}; // class WindowArgs - - -class OpenURLEvent : KParts::Event -{ -%TypeHeaderCode -#include <browserextension.h> -%End - - -public: - OpenURLEvent (KParts::ReadOnlyPart*, const KURL&, const KParts::URLArgs& = KParts ::URLArgs ()); - KParts::ReadOnlyPart* part () const; - KURL url () const; - KParts::URLArgs args () const; - static bool test (const QEvent*); - -}; // class OpenURLEvent - - -class BrowserExtension : QObject -{ -%TypeHeaderCode -#include <browserextension.h> -%End - - -public: - BrowserExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); - -%If ( KDE_3_2_0 - ) - typedef uint PopupFlags; - -%If ( KDE_3_4_0 - ) - - enum - { - DefaultPopupItems, - ShowNavigationItems, - ShowUp, - ShowReload, - ShowBookmark, - ShowCreateDirectory, - ShowTextSelectionItems, - NoDeletion - }; - -%End - -%End - - virtual void setURLArgs (const KParts::URLArgs&); - KParts::URLArgs urlArgs () const; - virtual int xOffset (); - virtual int yOffset (); - virtual void saveState (QDataStream&); - virtual void restoreState (QDataStream&); - bool isURLDropHandlingEnabled () const; - void setURLDropHandlingEnabled (bool); - void setBrowserInterface (KParts::BrowserInterface*); - KParts::BrowserInterface* browserInterface () const; - bool isActionEnabled (const char*) const; - -%If ( KDE_3_5_0 - ) - QString actionText (const char*) const; -%End - - typedef QMap<QCString,QCString> ActionSlotMap; - static KParts::BrowserExtension::ActionSlotMap actionSlotMap (); - static KParts::BrowserExtension::ActionSlotMap* actionSlotMapPtr (); - static KParts::BrowserExtension* childObject (QObject*); - -%If ( KDE_3_2_0 - ) - void pasteRequest (); -%End - - -signals: - void enableAction (const char*, bool); - -%If ( KDE_3_5_0 - ) - void setActionText (const char*, const QString&); -%End - - void openURLRequest (const KURL&, const KParts::URLArgs& = KParts ::URLArgs ()); - void openURLRequestDelayed (const KURL&, const KParts::URLArgs& = KParts ::URLArgs ()); - void openURLNotify (); - void setLocationBarURL (const QString&); - void setIconURL (const KURL&); - void createNewWindow (const KURL&, const KParts::URLArgs& = KParts ::URLArgs ()); -//ig void createNewWindow (const KURL&, const KParts::URLArgs&, const KParts::WindowArgs&, KParts::ReadOnlyPart*&); - void loadingProgress (int); - void speedProgress (int); - void infoMessage (const QString&); - void popupMenu (const QPoint&, const KFileItemList&); - void popupMenu (KXMLGUIClient*, const QPoint&, const KFileItemList&); - -%If ( KDE_3_2_0 - ) - void popupMenu (KXMLGUIClient*, const QPoint&, const KFileItemList&, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags); -%End - - void popupMenu (const QPoint&, const KURL&, const QString&, mode_t = -1); - void popupMenu (KXMLGUIClient*, const QPoint&, const KURL&, const QString&, mode_t = -1); - -%If ( KDE_3_2_0 - ) - void popupMenu (KXMLGUIClient*, const QPoint&, const KURL&, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t = -1); -%End - - void selectionInfo (const KFileItemList&); - void selectionInfo (const QString&); - void selectionInfo (const KURL::List&); - -%If ( KDE_3_1_0 - ) - void mouseOverInfo (const KFileItem*); - -%If ( KDE_3_2_0 - ) - void addWebSideBar (const KURL&, const QString&); - void moveTopLevelWidget (int, int); - void resizeTopLevelWidget (int, int); - -%If ( KDE_3_3_1 - ) - void requestFocus (KParts::ReadOnlyPart*); - -%If ( KDE_3_4_0 - ) - void setPageSecurity (int); -%End - -%End - -%End - -%End - - -public: - typedef QMap<QCString,int> ActionNumberMap; - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( KDE_3_3_0 - KDE_3_4_0 ) - - enum - { - DefaultPopupItems, - ShowNavigationItems, - ShowUp, - ShowReload, - ShowBookmark, - ShowCreateDirectory, - ShowTextSelectionItems - }; - -%End - - -public: - -%If ( KDE_3_2_0 - KDE_3_3_0 ) - - enum - { - DefaultPopupItems, - ShowNavigationItems, - ShowUp, - ShowReload, - ShowBookmark, - ShowCreateDirectory - }; - -%End - - -}; // class BrowserExtension - - -class BrowserHostExtension : QObject -{ -%TypeHeaderCode -#include <browserextension.h> -%End - - -public: - BrowserHostExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); - virtual QStringList frameNames () const; - virtual const QPtrList<KParts::ReadOnlyPart> frames () const; - -%If ( KDE_3_3_0 - ) - KParts::BrowserHostExtension* findFrameParent (KParts::ReadOnlyPart*, const QString&); -%End - - virtual bool openURLInFrame (const KURL&, const KParts::URLArgs&); - static KParts::BrowserHostExtension* childObject (QObject*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class BrowserHostExtension - - -%If ( KDE_3_1_0 - ) - -class LiveConnectExtension : QObject -{ -%TypeHeaderCode -#include <browserextension.h> -%End - - -public: - - enum Type - { - TypeVoid, - TypeBool, - TypeFunction, - TypeNumber, - TypeObject, - TypeString - }; - -//ig typedef QValueList<QPair<Type,QString>> ArgList; - LiveConnectExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); - virtual bool get (const ulong, const QString&, KParts::LiveConnectExtension::Type&, ulong&, QString&); - virtual bool put (const ulong, const QString&, const QString&); - virtual bool call (const ulong, const QString&, const QStringList&, KParts::LiveConnectExtension::Type&, ulong&, QString&); - virtual void unregister (const ulong); - static KParts::LiveConnectExtension* childObject (QObject*); - -signals: -//ig virtual void partEvent (const ulong, const QString&, const KParts::LiveConnectExtension::ArgList&); - -}; // class LiveConnectExtension - -%End - -}; // namespace KParts - - -%If ( - KDE_3_5_3 ) -//ig typedef QPtrList<KFileItem> KFileItemList; -%End - -//force -QMap<QCString,int> testQMapQCStringInt (QMap<QCString,int>); -%MethodCode -//takes dict | (QMap<QCString,int>) -//returns (QMap<QCString,int>) - - sipRes = a0; -%End - -//end - - -%MappedType QMap<QCString,QCString> -//converts a Python dict of QCString:QCString -{ -%TypeHeaderCode -#include <qmap.h> -%End - -%ConvertFromTypeCode - // Convert to a Python dict - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap<QCString,QCString> cppmap = *sipCpp; - QMap<QCString,QCString>::ConstIterator it; - - for (it = cppmap.begin (); it != cppmap.end (); ++it) - { - QCString acpp = it.key (); - QCString bcpp = it.data (); - PyObject *ainst; - PyObject *binst; - if (((ainst = sipBuildResult (NULL, "N", new QCString (acpp), sipClass_QCString)) == NULL) - || ((binst = sipBuildResult (NULL, "N", new QCString (bcpp), sipClass_QCString)) == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - - QMap<QCString,QCString> *cppmap = new QMap<QCString,QCString>; - - PyObject *aelem, *belem; - int pos = 0; - QCString *acpp; - QCString *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - acpp = (QCString *)sipForceConvertTo_QCString (aelem, &iserr); - bcpp = (QCString *)sipForceConvertTo_QCString (belem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, *bcpp); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - - -%MappedType QMap<QCString,int> -//converts a Python dict of QCString:int -{ -%TypeHeaderCode -#include <qmap.h> -%End - -%ConvertFromTypeCode - // Convert to a Python dict - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap<QCString,int> cppmap = *sipCpp; - QMap<QCString,int>::ConstIterator it; - - for (it = cppmap.begin (); it != cppmap.end (); ++it) - { - QCString acpp = it.key (); - int bcpp = it.data (); - PyObject *ainst; - PyObject *binst; - if (((ainst = sipBuildResult (NULL, "N", new QCString (acpp), sipClass_QCString)) == NULL) - || ((binst = PyInt_FromLong (bcpp)) < 0) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - - QMap<QCString,int> *cppmap = new QMap<QCString,int>; - - PyObject *aelem, *belem; - int pos = 0; - QCString *acpp; - int bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - if (iserr || !PyInt_Check (belem)) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - acpp = (QCString *)sipForceConvertTo_QCString (aelem, &iserr); - bcpp = PyInt_AS_LONG (belem); - - cppmap->insert (*acpp, bcpp); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - - -%MappedType QPtrList<KParts::ReadOnlyPart> -//converts a Python list of KParts.ReadOnlyPart -{ -%TypeHeaderCode -#include <qptrlist.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList<KParts::ReadOnlyPart> *cpplist = (QPtrList<KParts::ReadOnlyPart> *)sipCpp; - KParts::ReadOnlyPart *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_KParts_ReadOnlyPart, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList<KParts::ReadOnlyPart> *cpplist = new QPtrList<KParts::ReadOnlyPart>; - - PyObject *elem; - KParts::ReadOnlyPart *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KParts::ReadOnlyPart *)sipForceConvertTo_KParts_ReadOnlyPart (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kparts/browserinterface.sip b/python/pykde/sip/kparts/browserinterface.sip deleted file mode 100644 index 06785f66..00000000 --- a/python/pykde/sip/kparts/browserinterface.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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. - -namespace KParts -{ - -class BrowserInterface : QObject -{ -%TypeHeaderCode -#include <browserinterface.h> -%End - - -public: - BrowserInterface (QObject* /TransferThis/, const char* = 0); - void callMethod (const char*, const QVariant&); - -}; // class BrowserInterface - -}; // namespace KParts - diff --git a/python/pykde/sip/kparts/browserrun.sip b/python/pykde/sip/kparts/browserrun.sip deleted file mode 100644 index 8002ce78..00000000 --- a/python/pykde/sip/kparts/browserrun.sip +++ /dev/null @@ -1,117 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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. - -namespace KParts -{ - -class BrowserRun : KRun -{ -%TypeHeaderCode -#include <browserrun.h> -%End - - -public: - BrowserRun (const KURL&, const KParts::URLArgs&, KParts::ReadOnlyPart*, QWidget*, bool, bool); - -%If ( KDE_3_1_0 - ) - BrowserRun (const KURL&, const KParts::URLArgs&, KParts::ReadOnlyPart*, QWidget*, bool, bool, bool); -%End - - KURL url () const; - -%If ( KDE_3_1_0 - ) - bool hideErrorDialog () const; - -%If ( KDE_3_2_0 - ) - QString suggestedFilename () const; - -%If ( KDE_3_5_2 - ) - QString contentDisposition () const; - bool serverSuggestsSave () const; -%End - -%End - -%End - - - enum AskSaveResult - { - Save, - Open, - Cancel - }; - - static KParts::BrowserRun::AskSaveResult askSave (const KURL&, KService::Ptr, const QString&, const QString& = QString ::null ); - -%If ( KDE_3_5_2 - ) - - enum AskEmbedOrSaveFlags - { - InlineDisposition, - AttachmentDisposition - }; - -%End - - -%If ( KDE_3_2_0 - ) - static KParts::BrowserRun::AskSaveResult askEmbedOrSave (const KURL&, const QString&, const QString& = QString ::null , int = 0); -%End - - virtual void save (const KURL&, const QString&); - -%If ( KDE_3_2_0 - ) - static void simpleSave (const KURL&, const QString&, QWidget*); -%End - - static void simpleSave (const KURL&, const QString&); - static bool allowExecution (const QString&, const KURL&); - static bool isExecutable (const QString&); - static bool isTextExecutable (const QString&); - -protected: - virtual void scanFile (); - -%If ( KDE_3_1_0 - ) - virtual void init (); -%End - - virtual void handleError (KIO::Job*); -//ig KParts::BrowserRun::NonEmbeddableResult handleNonEmbeddable (const QString&); - -protected slots: - void slotBrowserScanFinished (KIO::Job*); - void slotBrowserMimetype (KIO::Job*, const QString&); - void slotCopyToTempFileResult (KIO::Job*); - virtual void slotStatResult (KIO::Job*); - -protected: - -}; // class BrowserRun - -}; // namespace KParts - diff --git a/python/pykde/sip/kparts/dockmainwindow.sip b/python/pykde/sip/kparts/dockmainwindow.sip deleted file mode 100644 index 4d6d6935..00000000 --- a/python/pykde/sip/kparts/dockmainwindow.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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. - -namespace KParts -{ - -class DockMainWindow : KDockMainWindow, KParts::PartBase -{ -%TypeHeaderCode -#include <dockmainwindow.h> -%End - - -public: - DockMainWindow (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WDestructiveClose ); - -protected slots: - void createGUI (KParts::Part*); - virtual void slotSetStatusBarText (const QString&); - -protected: - virtual void createShellGUI (bool = 1); - -}; // class DockMainWindow - -}; // namespace KParts - diff --git a/python/pykde/sip/kparts/event.sip b/python/pykde/sip/kparts/event.sip deleted file mode 100644 index c1014ff9..00000000 --- a/python/pykde/sip/kparts/event.sip +++ /dev/null @@ -1,94 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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. - -namespace KParts -{ - -class Event : QCustomEvent -{ -%TypeHeaderCode -#include <event.h> -%End - - -public: - Event (const char*); - virtual const char* eventName () const; - static bool test (const QEvent*); - static bool test (const QEvent*, const char*); - -}; // class Event - - -class GUIActivateEvent : KParts::Event -{ -%TypeHeaderCode -#include <event.h> -%End - - -public: - GUIActivateEvent (bool); - bool activated () const; - static bool test (const QEvent*); - -}; // class GUIActivateEvent - - -class PartActivateEvent : KParts::Event -{ -%TypeHeaderCode -#include <event.h> -%End - - -public: - PartActivateEvent (bool, KParts::Part*, QWidget*); - bool activated () const; - KParts::Part* part () const; - QWidget* widget () const; - static bool test (const QEvent*); - -}; // class PartActivateEvent - - -class PartSelectEvent : KParts::Event -{ -%TypeHeaderCode -#include <event.h> -%End - - -public: - PartSelectEvent (bool, KParts::Part*, QWidget*); - bool selected () const; - KParts::Part* part () const; - QWidget* widget () const; - static bool test (const QEvent*); - -}; // class PartSelectEvent - -}; // namespace KParts - diff --git a/python/pykde/sip/kparts/factory.sip b/python/pykde/sip/kparts/factory.sip deleted file mode 100644 index f97cebf0..00000000 --- a/python/pykde/sip/kparts/factory.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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. - -namespace KParts -{ - -class Factory : KLibFactory -{ -%TypeHeaderCode -#include <factory.h> -%End - - -public: - Factory (QObject* /TransferThis/ = 0, const char* = 0); - KParts::Part* createPart (QWidget* = 0, const char* = 0, QObject* /Transfer/ = 0, const char* = 0, const char* = "KParts::Part", const QStringList& = QStringList ()); - -%If ( KDE_3_2_0 - ) - const KInstance* partInstance (); - static const KInstance* partInstanceFromLibrary (const QCString&); -%End - - -protected: - virtual KParts::Part* createPartObject (QWidget* = 0, const char* = 0, QObject* /Transfer/ = 0, const char* = 0, const char* = "KParts::Part", const QStringList& = QStringList ()); - virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); - -}; // class Factory - -}; // namespace KParts - diff --git a/python/pykde/sip/kparts/genericfactory.sip b/python/pykde/sip/kparts/genericfactory.sip deleted file mode 100644 index b76a5746..00000000 --- a/python/pykde/sip/kparts/genericfactory.sip +++ /dev/null @@ -1,25 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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. - diff --git a/python/pykde/sip/kparts/historyprovider.sip b/python/pykde/sip/kparts/historyprovider.sip deleted file mode 100644 index ec0bafbb..00000000 --- a/python/pykde/sip/kparts/historyprovider.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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. - -namespace KParts -{ - -class HistoryProvider : QObject -{ -%TypeHeaderCode -#include <historyprovider.h> -%End - - -public: - static KParts::HistoryProvider* self (); - HistoryProvider (QObject* /TransferThis/ = 0, const char* = 0); - virtual bool contains (const QString&) const; - virtual void insert (const QString&); - virtual void remove (const QString&); - virtual void clear (); - -signals: - void cleared (); - void updated (const QStringList&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class HistoryProvider - -}; // namespace KParts - diff --git a/python/pykde/sip/kparts/konsole_part.sip b/python/pykde/sip/kparts/konsole_part.sip deleted file mode 100644 index bbc4ea0d..00000000 --- a/python/pykde/sip/kparts/konsole_part.sip +++ /dev/null @@ -1,177 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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 konsoleFactory : KParts::Factory -{ -%TypeHeaderCode -#include <kprocess.h> -#include <konsole_part.h> -%End - - -public: - konsoleFactory (); - virtual KParts::Part* createPartObject (QWidget* = 0, const char* = 0, QObject* /Transfer/ = 0, const char* = 0, const char* = "KParts::Part", const QStringList& = QStringList ()); - static KInstance* instance (); - -}; // class konsoleFactory - - -%If ( KDE_3_5_0 - ) - -class konsolePart : KParts::ReadOnlyPart, TerminalInterface, ExtTerminalInterface -{ -%TypeHeaderCode -#include <kprocess.h> -#include <konsole_part.h> -%End - - -public: - konsolePart (QWidget*, const char*, QObject* /TransferThis/, const char*, const char* = 0); - -signals: - void processExited (KProcess*); - void receivedData (const QString&); - void forkedChild (); - -protected: - virtual bool openURL (const KURL&); - virtual bool openFile (); - virtual bool closeURL (); - virtual void guiActivateEvent (KParts::GUIActivateEvent*); - -protected slots: - void showShell (); - void sessionDestroyed (); - void enableMasterModeConnections (); - -public: - void startProgram (const QString&, const QStrList&); - void newSession (); - void showShellInDir (const QString&); - void sendInput (const QString&); - void setAutoDestroy (bool); - void setAutoStartShell (bool); - -}; // class konsolePart - -%End - - -class konsoleBrowserExtension : KParts::BrowserExtension -{ -%TypeHeaderCode -#include <kprocess.h> -#include <konsole_part.h> -%End - - -public: - konsoleBrowserExtension (konsolePart*); - void emitOpenURLRequest (const KURL&); - -}; // class konsoleBrowserExtension - - -%If ( - KDE_3_5_0 ) - -class konsolePart : KParts::ReadOnlyPart, TerminalInterface -{ -%TypeHeaderCode -#include <kprocess.h> -#include <konsole_part.h> -%End - - -public: - konsolePart (QWidget*, const char*, QObject* /TransferThis/, const char*, const char* = 0); - -signals: - void processExited (); - void receivedData (const QString&); - -protected: - virtual bool openURL (const KURL&); - virtual bool openFile (); - virtual bool closeURL (); - virtual void guiActivateEvent (KParts::GUIActivateEvent*); - -protected slots: - void showShell (); - void slotProcessExited (); - void slotReceivedData (const QString&); - void sessionDestroyed (); - void updateTitle (); - void enableMasterModeConnections (); - -public: - void startProgram (const QString&, const QStrList&); - void showShellInDir (const QString&); - void sendInput (const QString&); - -}; // class konsolePart - -%End - -//force - -class TerminalInterface -{ -%TypeHeaderCode -#include <kde_terminal_interface.h> -%End - - -public: - virtual void startProgram (const QString&, const QStrList&) = 0; - virtual void showShellInDir (const QString&) = 0; - virtual void sendInput (const QString&) = 0; - -}; // class TerminalInterface - - -%If ( KDE_3_5_0 - ) - -class ExtTerminalInterface -{ -%TypeHeaderCode -#include <kde_terminal_interface.h> -%End - - -public: - virtual void startProgram (const QString&, const QStrList&) = 0; - virtual void showShellInDir (const QString&) = 0; - virtual void sendInput (const QString&) = 0; - virtual void setAutoStartShell (bool) = 0; - virtual void setAutoDestroy (bool) = 0; - -}; // class ExtTerminalInterface - -%End - -//end diff --git a/python/pykde/sip/kparts/kparts-kde320.diff b/python/pykde/sip/kparts/kparts-kde320.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde320.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde321.diff b/python/pykde/sip/kparts/kparts-kde321.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde321.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde322.diff b/python/pykde/sip/kparts/kparts-kde322.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde322.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde323.diff b/python/pykde/sip/kparts/kparts-kde323.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde323.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde330.diff b/python/pykde/sip/kparts/kparts-kde330.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde330.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde331.diff b/python/pykde/sip/kparts/kparts-kde331.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde331.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde332.diff b/python/pykde/sip/kparts/kparts-kde332.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde332.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde340.diff b/python/pykde/sip/kparts/kparts-kde340.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde340.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde341.diff b/python/pykde/sip/kparts/kparts-kde341.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde341.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde342.diff b/python/pykde/sip/kparts/kparts-kde342.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde342.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde343.diff b/python/pykde/sip/kparts/kparts-kde343.diff deleted file mode 100644 index 8ad0226b..00000000 --- a/python/pykde/sip/kparts/kparts-kde343.diff +++ /dev/null @@ -1 +0,0 @@ -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde350.diff b/python/pykde/sip/kparts/kparts-kde350.diff deleted file mode 100644 index 8920fa04..00000000 --- a/python/pykde/sip/kparts/kparts-kde350.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include konsole_part.sip -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde351.diff b/python/pykde/sip/kparts/kparts-kde351.diff deleted file mode 100644 index 8920fa04..00000000 --- a/python/pykde/sip/kparts/kparts-kde351.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include konsole_part.sip -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde352.diff b/python/pykde/sip/kparts/kparts-kde352.diff deleted file mode 100644 index 8920fa04..00000000 --- a/python/pykde/sip/kparts/kparts-kde352.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include konsole_part.sip -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kparts-kde353.diff b/python/pykde/sip/kparts/kparts-kde353.diff deleted file mode 100644 index 8920fa04..00000000 --- a/python/pykde/sip/kparts/kparts-kde353.diff +++ /dev/null @@ -1,2 +0,0 @@ -+ %Include konsole_part.sip -+ %Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kpartsmod.sip b/python/pykde/sip/kparts/kpartsmod.sip deleted file mode 100644 index 7e2c2904..00000000 --- a/python/pykde/sip/kparts/kpartsmod.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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 kparts - -%Import qt/qtmod.sip -%Import qtxml/qtxmlmod.sip -%Import dcopmod.sip -%Import kdecoremod.sip -%Import kdefxmod.sip -%Import kdeuimod.sip -%Import kiomod.sip - -%Include browserextension.sip -%Include browserinterface.sip -%Include browserrun.sip -%Include dockmainwindow.sip -%Include event.sip -%Include factory.sip -%Include genericfactory.sip -%Include historyprovider.sip -%Include mainwindow.sip -%Include part.sip -%Include partmanager.sip -%Include plugin.sip -%Include statusbarextension.sip diff --git a/python/pykde/sip/kparts/kpartsmod.sip.in b/python/pykde/sip/kparts/kpartsmod.sip.in deleted file mode 100644 index 38061144..00000000 --- a/python/pykde/sip/kparts/kpartsmod.sip.in +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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 kparts - -%Import qt/qtmod.sip -%Import qtxml/qtxmlmod.sip -%Import dcopmod.sip -%Import kdecoremod.sip -%Import kdefxmod.sip -%Import kdeuimod.sip -%Import kiomod.sip - -%Include browserextension.sip -%Include browserinterface.sip -%Include browserrun.sip -%Include dockmainwindow.sip -%Include event.sip -%Include factory.sip -%Include genericfactory.sip -%Include historyprovider.sip -%Include mainwindow.sip -%Include part.sip -%Include partmanager.sip -%Include plugin.sip -@mark@ diff --git a/python/pykde/sip/kparts/mainwindow.sip b/python/pykde/sip/kparts/mainwindow.sip deleted file mode 100644 index 3fa7d3e1..00000000 --- a/python/pykde/sip/kparts/mainwindow.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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. - -namespace KParts -{ - -class MainWindow : KMainWindow, KParts::PartBase -{ -%TypeHeaderCode -#include <mainwindow.h> -%End - - -public: - MainWindow (QWidget* /TransferThis/, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); - MainWindow (const char* = 0, WFlags = WDestructiveClose ); - -%If ( KDE_3_2_0 - ) - MainWindow (int, QWidget* /TransferThis/, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); -%End - - -protected slots: - void createGUI (KParts::Part*); - virtual void slotSetStatusBarText (const QString&); - -%If ( KDE_3_4_0 - ) - void saveNewToolbarConfig (); -%End - - -protected: - virtual void createShellGUI (bool = 1); - -}; // class MainWindow - -}; // namespace KParts - diff --git a/python/pykde/sip/kparts/part.sip b/python/pykde/sip/kparts/part.sip deleted file mode 100644 index c4ec29d7..00000000 --- a/python/pykde/sip/kparts/part.sip +++ /dev/null @@ -1,312 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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. - -namespace KParts -{ - -class PartBase : KXMLGUIClient -{ -%TypeHeaderCode -#include <part.h> -%End - - -public: - PartBase (); - void setPartObject (QObject*); - QObject* partObject () const; - -protected: - virtual void setInstance (KInstance*); - virtual void setInstance (KInstance*, bool); - -%If ( KDE_3_1_0 - ) - void loadPlugins (QObject* /Transfer/, KXMLGUIClient*, KInstance*); -//ig void setPluginLoadingMode (KParts::PartBase::PluginLoadingMode); -%End - - -}; // class PartBase - - -class Part : QObject, KParts::PartBase -{ -%TypeHeaderCode -#include <part.h> -%End - - -public: - Part (QObject* /TransferThis/ = 0, const char* = 0); - virtual void embed (QWidget*); - virtual QWidget* widget (); - virtual void setManager (KParts::PartManager*); - KParts::PartManager* manager (); - virtual KParts::Part* hitTest (QWidget*, const QPoint&); - virtual void setSelectable (bool); - bool isSelectable () const; - -signals: - void setWindowCaption (const QString&); - void setStatusBarText (const QString&); - -protected: - virtual void setWidget (QWidget*); - virtual void customEvent (QCustomEvent*); - virtual void partActivateEvent (KParts::PartActivateEvent*); - virtual void partSelectEvent (KParts::PartSelectEvent*); - virtual void guiActivateEvent (KParts::GUIActivateEvent*); - QWidget* hostContainer (const QString&); - -//force -%ConvertToSubClassCode - // The table of Python class objects indexed by their names. The table - // must be sorted by name. - - static sipStringTypeClassMap map[] = { - {sipName_BrowserExtension, &sipClass_KParts_BrowserExtension}, - {sipName_BrowserHostExtension, &sipClass_KParts_BrowserHostExtension}, - {sipName_BrowserInterface, &sipClass_KParts_BrowserInterface}, - {sipName_BrowserRun, &sipClass_KParts_BrowserRun}, - {sipName_Factory, &sipClass_KParts_Factory}, - {sipName_HistoryProvider, &sipClass_KParts_HistoryProvider}, -#if KDE_VERSION >= 0x030100 - {sipName_LiveConnectExtension, &sipClass_KParts_LiveConnectExtension}, -#endif - {sipName_MainWindow, &sipClass_KParts_MainWindow}, - {sipName_Part, &sipClass_KParts_Part}, - {sipName_PartManager, &sipClass_KParts_PartManager}, - {sipName_Plugin, &sipClass_KParts_Plugin}, - {sipName_ReadOnlyPart, &sipClass_KParts_ReadOnlyPart}, - {sipName_ReadWritePart, &sipClass_KParts_ReadWritePart}, -// {sipName_konsolePart, &sipClass_konsolePart}, -// {sipName_konsoleBrowserExtension, &sipClass_konsoleBrowserExtension}, - }; - - sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); -%End -//end - -}; // class Part - -//doc -// Even though this is an abstract class, you can use -// createReadOnlyPart (see below) without creating -// a concrete instance of this class. -//end - -class ReadOnlyPart : KParts::Part -{ -%TypeHeaderCode -#include <part.h> -%End - - -public: - ReadOnlyPart (QObject* /TransferThis/ = 0, const char* = 0); - void setProgressInfoEnabled (bool); - bool isProgressInfoEnabled () const; - void showProgressInfo (bool); - -public slots: - virtual bool openURL (const KURL&); - -public: - KURL url () const; - virtual bool closeURL (); - -public: - bool openStream (const QString&, const KURL&); - bool writeStream (const QByteArray&); - bool closeStream (); - -signals: - void started (KIO::Job*); - void completed (); - void completed (bool); - void canceled (const QString&); - -protected slots: - void slotJobFinished (KIO::Job*); - -protected: - virtual bool openFile () = 0; - void abortLoad (); - virtual void guiActivateEvent (KParts::GUIActivateEvent*); - -}; // class ReadOnlyPart - -//doc -// Even though this is an abstract class, you can use -// createReadWritePart (see below) without creating a concrete instance -// of this class. -//end - -class ReadWritePart : KParts::ReadOnlyPart -{ -%TypeHeaderCode -#include <part.h> -%End - - -public: - ReadWritePart (QObject* /TransferThis/ = 0, const char* = 0); - bool isReadWrite () const; - virtual void setReadWrite (bool = 1); - bool isModified () const; - -%If ( KDE_3_1_3 - ) - bool queryClose (); -%End - - virtual bool closeURL (); - -%If ( KDE_3_1_3 - ) - bool closeURL (bool); -%End - - virtual bool saveAs (const KURL&); - virtual void setModified (bool); - -signals: - -%If ( KDE_3_2_0 - ) -//ig void sigQueryClose (bool*, bool*); -%End - - -public slots: - virtual void setModified (); - virtual bool save (); - -%If ( KDE_3_2_0 - ) - bool waitSaveComplete (); -%End - - -protected: - virtual bool saveFile () = 0; - virtual bool saveToURL (); - -protected slots: - void slotUploadFinished (KIO::Job*); - -}; // class ReadWritePart - -}; // namespace KParts - -//force -//doc -// <para> -// This is a PyKDE-only function that handles the machinery necessary -// to create a KParts::ReadOnlyPart. It executes the following C++ code: -// </para> -// <pre class="PROGRAMLISTING"> -// KParts::ReadOnlyPart *createReadOnlyPart (const QString& lib, QObject *parent, -// const QString& name, const char *className, -// const QStringList &args) -// { -// KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib); -// -// if (factory) -// return static_cast<KParts::ReadOnlyPart*> (factory->create (parent, -// (const char *)name, className, args)); -// else -// return NULL; -// </pre> -// <para> -// Notice that it takes care of creating the KLibFactory for you, and -// returns the part cast to type KParts::ReadOnlyPart. The actual -// part has a different class (derived from KParts::ReadOnlyPart), -// and calls to openURL or openFile will use the part's overloaded -// methods. Currently it isn't possible to call KParts::ReadOnlyPart::openURL -// if it has been overloaded. -// </para> -// <para> -// Usage: KParts.createReadOnlyPart (lib, parent, name, className, args) -// </para> -//end -KParts::ReadOnlyPart* createReadOnlyPart (const QString&, QObject* = 0, const QString& = QString ::null , const char* = "KParts::ReadOnlyPart", const QStringList& = QStringList ()); -//doc -// <para> -// This is a PyKDE-only function that handles the machinery necessary -// to create a KParts::ReadWritePart. It executes the following C++ code: -// </para> -// <pre class="PROGRAMLISTING"> -// KParts::ReadWritePart *createReadWritePart (const QString& lib, QObject *parent, -// const QString& name, const char *className, -// const QStringList &args) -// { -// KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib); -// -// if (factory) -// return static_cast<KParts::ReadWritePart*> (factory->create (parent, -// (const char *)name, className, args)); -// else -// return NULL; -// </pre> -// <para> -// Notice that it takes care of creating the KLibFactory for you, and -// returns the part cast to type KParts::ReadWritePart. The actual -// part has a different class (derived from KParts::ReadWritePart), -// and calls to openURL or openFile will use the part's overloaded -// methods. Currently it isn't possible to call KParts::ReadWritePart::openURL -// if it has been overloaded. -// </para> -// <para> -// Usage: KParts.createReadWritePart (lib, parent, name, className, args) -// </para> -//end -KParts::ReadWritePart* createReadWritePart (const QString&, QObject* = 0, const QString& = QString ::null , const char* = "KParts::ReadWritePart", const QStringList& = QStringList ()); -//end - - -%ModuleCode -KParts::ReadOnlyPart *createReadOnlyPart (const QString& lib, QObject *parent, const QString& name, const char *className, - const QStringList &args) -{ - KParts::ReadOnlyPart *res = NULL; - - KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib); - - if (factory) - res = static_cast<KParts::ReadOnlyPart*> (factory->create (parent, (const char *)name, className, args)); - - return res; -} - -KParts::ReadWritePart *createReadWritePart (const QString& lib, QObject *parent, const QString& name, const char *className, - const QStringList &args) -{ - KParts::ReadWritePart *res = NULL; - - KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib); - - if (factory) - res = static_cast<KParts::ReadWritePart*> (factory->create (parent, (const char *)name, className, args)); - - return res; -} -%End diff --git a/python/pykde/sip/kparts/partmanager.sip b/python/pykde/sip/kparts/partmanager.sip deleted file mode 100644 index 9e380b81..00000000 --- a/python/pykde/sip/kparts/partmanager.sip +++ /dev/null @@ -1,181 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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. - -namespace KParts -{ - -class PartManager : QObject -{ -%TypeHeaderCode -#include <partmanager.h> -%End - - -public: - - enum SelectionPolicy - { - Direct, - TriState - }; - - -%If ( KDE_3_3_0 - ) - - enum Reason - { - ReasonLeftClick, - ReasonMidClick, - ReasonRightClick, - NoReason - }; - -%End - - PartManager (QWidget* /TransferThis/, const char* = 0); - PartManager (QWidget*, QObject* /TransferThis/, const char* = 0); - void setSelectionPolicy (KParts::PartManager::SelectionPolicy); - KParts::PartManager::SelectionPolicy selectionPolicy () const; - void setAllowNestedParts (bool); - bool allowNestedParts () const; - void setIgnoreScrollBars (bool); - bool ignoreScrollBars () const; - -%If ( KDE_3_1_0 - ) - void setActivationButtonMask (short); - short activationButtonMask () const; -%End - - virtual bool eventFilter (QObject*, QEvent*); - virtual void addPart (KParts::Part*, bool = 1); - virtual void removePart (KParts::Part*); - virtual void replacePart (KParts::Part*, KParts::Part*, bool = 1); - virtual void setActivePart (KParts::Part*, QWidget* = 0); - virtual KParts::Part* activePart () const; - virtual QWidget* activeWidget () const; - virtual void setSelectedPart (KParts::Part*, QWidget* = 0); - virtual KParts::Part* selectedPart () const; - virtual QWidget* selectedWidget () const; - const QPtrList<KParts::Part>* parts () const; - void addManagedTopLevelWidget (const QWidget*); - void removeManagedTopLevelWidget (const QWidget*); - -%If ( KDE_3_3_0 - ) - int reason () const; -%End - - -signals: - void partAdded (KParts::Part*); - void partRemoved (KParts::Part*); - void activePartChanged (KParts::Part*); - -protected: - virtual void setActiveInstance (KInstance*); - -protected slots: - void slotObjectDestroyed (); - void slotWidgetDestroyed (); - void slotManagedTopLevelWidgetDestroyed (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class PartManager - -}; // namespace KParts - - - -%MappedType QPtrList<KParts::Part> -//converts a Python list of KParts.Part -{ -%TypeHeaderCode -#include <qptrlist.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList<KParts::Part> *cpplist = (QPtrList<KParts::Part> *)sipCpp; - KParts::Part *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_KParts_Part, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList<KParts::Part> *cpplist = new QPtrList<KParts::Part>; - - PyObject *elem; - KParts::Part *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KParts::Part *)sipForceConvertTo_KParts_Part (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kparts/plugin.sip b/python/pykde/sip/kparts/plugin.sip deleted file mode 100644 index 815e1b78..00000000 --- a/python/pykde/sip/kparts/plugin.sip +++ /dev/null @@ -1,210 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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. - -namespace KParts -{ - -class Plugin : QObject, KXMLGUIClient -{ -%TypeHeaderCode -#include <plugin.h> -%End - - -public: - - class PluginInfo - { - - public: - QString m_relXMLFileName; - QString m_absXMLFileName; - QDomDocument m_document; - - }; // class PluginInfo - - -public: - Plugin (QObject* /TransferThis/ = 0, const char* = 0); - virtual QString xmlFile () const; - virtual QString localXMLFile () const; - static void loadPlugins (QObject* /Transfer/, const KInstance*); - static void loadPlugins (QObject* /Transfer/, const QValueList<KParts::Plugin::PluginInfo>&); - static void loadPlugins (QObject* /Transfer/, const QValueList<KParts::Plugin::PluginInfo>&, const KInstance*); - -%If ( KDE_3_1_0 - ) - static void loadPlugins (QObject* /Transfer/, KXMLGUIClient*, KInstance*, bool = 1); -%End - - static QPtrList<KParts::Plugin> pluginObjects (QObject* /Transfer/); - -protected: - static QValueList<KParts::Plugin::PluginInfo> pluginInfos (const KInstance*); - static KParts::Plugin* loadPlugin (QObject* /Transfer/, const char*); - virtual void setInstance (KInstance*); - -}; // class Plugin - -}; // namespace KParts - - - -%MappedType QValueList<KParts::Plugin::PluginInfo> -//converts a Python list of KParts.Plugin.PluginInfo -{ -%TypeHeaderCode -#include <qvaluelist.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList<KParts::Plugin::PluginInfo> *cpplist = (QValueList<KParts::Plugin::PluginInfo> *)sipCpp; - PyObject *inst; - - // Get it. - QValueList<KParts::Plugin::PluginInfo>::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - if (((inst = sipBuildResult (NULL, "N", new KParts::Plugin::PluginInfo (*it), sipClass_KParts_Plugin_PluginInfo)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList<KParts::Plugin::PluginInfo> *cpplist = new QValueList<KParts::Plugin::PluginInfo>; - - PyObject *elem; - KParts::Plugin::PluginInfo *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KParts::Plugin::PluginInfo *)sipForceConvertTo_KParts_Plugin_PluginInfo (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - -%MappedType QPtrList<KParts::Plugin> -//converts a Python list of KParts.Plugin -{ -%TypeHeaderCode -#include <qptrlist.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList<KParts::Plugin> *cpplist = (QPtrList<KParts::Plugin> *)sipCpp; - KParts::Plugin *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_KParts_Plugin, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList<KParts::Plugin> *cpplist = new QPtrList<KParts::Plugin>; - - PyObject *elem; - KParts::Plugin *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KParts::Plugin *)sipForceConvertTo_KParts_Plugin (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kparts/statusbarextension.sip b/python/pykde/sip/kparts/statusbarextension.sip deleted file mode 100644 index 99e5129a..00000000 --- a/python/pykde/sip/kparts/statusbarextension.sip +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kparts 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_2_0 - ) -namespace KParts -{ - -class StatusBarExtension : QObject -{ -%TypeHeaderCode -#include <statusbarextension.h> -%End - - -public: - StatusBarExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); - void addStatusBarItem (QWidget*, int, bool); - void removeStatusBarItem (QWidget*); - KStatusBar* statusBar () const; - void setStatusBar (KStatusBar*); - static KParts::StatusBarExtension* childObject (QObject*); - virtual bool eventFilter (QObject*, QEvent*); - -}; // class StatusBarExtension - -}; // namespace KParts - -%End - |