summaryrefslogtreecommitdiffstats
path: root/sip/kparts
diff options
context:
space:
mode:
Diffstat (limited to 'sip/kparts')
-rw-r--r--sip/kparts/browserextension.sip601
-rw-r--r--sip/kparts/browserinterface.sip43
-rw-r--r--sip/kparts/browserrun.sip117
-rw-r--r--sip/kparts/dockmainwindow.sip49
-rw-r--r--sip/kparts/event.sip94
-rw-r--r--sip/kparts/factory.sip53
-rw-r--r--sip/kparts/genericfactory.sip25
-rw-r--r--sip/kparts/historyprovider.sip54
-rw-r--r--sip/kparts/kparts-kde320.diff1
-rw-r--r--sip/kparts/kparts-kde321.diff1
-rw-r--r--sip/kparts/kparts-kde322.diff1
-rw-r--r--sip/kparts/kparts-kde323.diff1
-rw-r--r--sip/kparts/kparts-kde330.diff1
-rw-r--r--sip/kparts/kparts-kde331.diff1
-rw-r--r--sip/kparts/kparts-kde332.diff1
-rw-r--r--sip/kparts/kparts-kde340.diff1
-rw-r--r--sip/kparts/kparts-kde341.diff1
-rw-r--r--sip/kparts/kparts-kde342.diff1
-rw-r--r--sip/kparts/kparts-kde343.diff1
-rw-r--r--sip/kparts/kparts-kde350.diff1
-rw-r--r--sip/kparts/kparts-kde351.diff1
-rw-r--r--sip/kparts/kparts-kde352.diff1
-rw-r--r--sip/kparts/kparts-kde353.diff1
-rw-r--r--sip/kparts/kpartsmod.sip.in51
-rw-r--r--sip/kparts/mainwindow.sip60
-rw-r--r--sip/kparts/part.sip312
-rw-r--r--sip/kparts/partmanager.sip181
-rw-r--r--sip/kparts/plugin.sip210
-rw-r--r--sip/kparts/statusbarextension.sip52
29 files changed, 1917 insertions, 0 deletions
diff --git a/sip/kparts/browserextension.sip b/sip/kparts/browserextension.sip
new file mode 100644
index 0000000..c6c37db
--- /dev/null
+++ b/sip/kparts/browserextension.sip
@@ -0,0 +1,601 @@
+//
+// 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>
+%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 = NULL;
+ if (((ainst = sipConvertFromNewType(new QCString (acpp), sipType_QCString, NULL)) == NULL)
+ || ((binst = sipConvertFromNewType(new QCString (bcpp), sipType_QCString, NULL)) == 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;
+ SIP_SSIZE_T pos = 0;
+ QCString *acpp;
+ QCString *bcpp;
+
+ while (PyDict_Next(sipPy, &pos, &aelem, &belem))
+ {
+ int iserr = 0;
+
+ acpp = (QCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
+ bcpp = (QCString *)sipForceConvertToType(belem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &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 = NULL;
+ if (((ainst = sipConvertFromNewType(new QCString (acpp), sipType_QCString, NULL)) == 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;
+ SIP_SSIZE_T pos = 0;
+ QCString *acpp;
+ int bcpp;
+
+ while (PyDict_Next(sipPy, &pos, &aelem, &belem))
+ {
+ int iserr = 0;
+
+ acpp = (QCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
+
+ if (iserr || !PyInt_Check (belem))
+ {
+ *sipIsErr = 1;
+ delete cppmap;
+ return 0;
+ }
+
+ 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 *)sipForceConvertToType(elem, sipType_KParts_ReadOnlyPart, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);
+
+ if (iserr)
+ {
+ *sipIsErr = 1;
+ delete cpplist;
+ return 0;
+ }
+
+ cpplist->append (cpp);
+ }
+
+ *sipCppPtr = cpplist;
+
+ return 1;
+%End
+};
+
+
diff --git a/sip/kparts/browserinterface.sip b/sip/kparts/browserinterface.sip
new file mode 100644
index 0000000..06785f6
--- /dev/null
+++ b/sip/kparts/browserinterface.sip
@@ -0,0 +1,43 @@
+//
+// 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/sip/kparts/browserrun.sip b/sip/kparts/browserrun.sip
new file mode 100644
index 0000000..8002ce7
--- /dev/null
+++ b/sip/kparts/browserrun.sip
@@ -0,0 +1,117 @@
+//
+// 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/sip/kparts/dockmainwindow.sip b/sip/kparts/dockmainwindow.sip
new file mode 100644
index 0000000..4d6d693
--- /dev/null
+++ b/sip/kparts/dockmainwindow.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 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/sip/kparts/event.sip b/sip/kparts/event.sip
new file mode 100644
index 0000000..c1014ff
--- /dev/null
+++ b/sip/kparts/event.sip
@@ -0,0 +1,94 @@
+//
+// 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/sip/kparts/factory.sip b/sip/kparts/factory.sip
new file mode 100644
index 0000000..f97cebf
--- /dev/null
+++ b/sip/kparts/factory.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 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/sip/kparts/genericfactory.sip b/sip/kparts/genericfactory.sip
new file mode 100644
index 0000000..b76a574
--- /dev/null
+++ b/sip/kparts/genericfactory.sip
@@ -0,0 +1,25 @@
+//
+// 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/sip/kparts/historyprovider.sip b/sip/kparts/historyprovider.sip
new file mode 100644
index 0000000..ec0bafb
--- /dev/null
+++ b/sip/kparts/historyprovider.sip
@@ -0,0 +1,54 @@
+//
+// 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/sip/kparts/kparts-kde320.diff b/sip/kparts/kparts-kde320.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde320.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde321.diff b/sip/kparts/kparts-kde321.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde321.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde322.diff b/sip/kparts/kparts-kde322.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde322.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde323.diff b/sip/kparts/kparts-kde323.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde323.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde330.diff b/sip/kparts/kparts-kde330.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde330.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde331.diff b/sip/kparts/kparts-kde331.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde331.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde332.diff b/sip/kparts/kparts-kde332.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde332.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde340.diff b/sip/kparts/kparts-kde340.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde340.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde341.diff b/sip/kparts/kparts-kde341.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde341.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde342.diff b/sip/kparts/kparts-kde342.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde342.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde343.diff b/sip/kparts/kparts-kde343.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde343.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde350.diff b/sip/kparts/kparts-kde350.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde350.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde351.diff b/sip/kparts/kparts-kde351.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde351.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde352.diff b/sip/kparts/kparts-kde352.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde352.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kparts-kde353.diff b/sip/kparts/kparts-kde353.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/kparts/kparts-kde353.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/kparts/kpartsmod.sip.in b/sip/kparts/kpartsmod.sip.in
new file mode 100644
index 0000000..3806114
--- /dev/null
+++ b/sip/kparts/kpartsmod.sip.in
@@ -0,0 +1,51 @@
+//
+// 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/sip/kparts/mainwindow.sip b/sip/kparts/mainwindow.sip
new file mode 100644
index 0000000..3fa7d3e
--- /dev/null
+++ b/sip/kparts/mainwindow.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 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/sip/kparts/part.sip b/sip/kparts/part.sip
new file mode 100644
index 0000000..3a61655
--- /dev/null
+++ b/sip/kparts/part.sip
@@ -0,0 +1,312 @@
+//
+// 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},
+ };
+
+ 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&amp; lib, QObject *parent,
+// const QString&amp; name, const char *className,
+// const QStringList &amp;args)
+// {
+// KLibFactory *factory = KLibLoader::self ()-&gt;factory ((const char *)lib);
+//
+// if (factory)
+// return static_cast&lt;KParts::ReadOnlyPart*&gt; (factory-&gt;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&amp; lib, QObject *parent,
+// const QString&amp; name, const char *className,
+// const QStringList &amp;args)
+// {
+// KLibFactory *factory = KLibLoader::self ()-&gt;factory ((const char *)lib);
+//
+// if (factory)
+// return static_cast&lt;KParts::ReadWritePart*&gt; (factory-&gt;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
+#include <klibloader.h>
+
+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/sip/kparts/partmanager.sip b/sip/kparts/partmanager.sip
new file mode 100644
index 0000000..4865323
--- /dev/null
+++ b/sip/kparts/partmanager.sip
@@ -0,0 +1,181 @@
+//
+// 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 *)sipForceConvertToType(elem, sipType_KParts_Part, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);
+
+ if (iserr)
+ {
+ *sipIsErr = 1;
+ delete cpplist;
+ return 0;
+ }
+
+ cpplist->append (cpp);
+ }
+
+ *sipCppPtr = cpplist;
+
+ return 1;
+%End
+};
+
+
diff --git a/sip/kparts/plugin.sip b/sip/kparts/plugin.sip
new file mode 100644
index 0000000..145b6f2
--- /dev/null
+++ b/sip/kparts/plugin.sip
@@ -0,0 +1,210 @@
+//
+// 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 = sipConvertFromNewType(new KParts::Plugin::PluginInfo(*it), sipType_KParts_Plugin_PluginInfo, NULL)) == 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 *)sipForceConvertToType(elem, sipType_KParts_Plugin_PluginInfo, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &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 *)sipForceConvertToType(elem, sipType_KParts_Plugin, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);
+
+ if (iserr)
+ {
+ *sipIsErr = 1;
+ delete cpplist;
+ return 0;
+ }
+
+ cpplist->append (cpp);
+ }
+
+ *sipCppPtr = cpplist;
+
+ return 1;
+%End
+};
+
+
diff --git a/sip/kparts/statusbarextension.sip b/sip/kparts/statusbarextension.sip
new file mode 100644
index 0000000..99e5129
--- /dev/null
+++ b/sip/kparts/statusbarextension.sip
@@ -0,0 +1,52 @@
+//
+// 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
+