summaryrefslogtreecommitdiffstats
path: root/sip/tdeparts
diff options
context:
space:
mode:
Diffstat (limited to 'sip/tdeparts')
-rw-r--r--sip/tdeparts/browserextension.sip601
-rw-r--r--sip/tdeparts/browserinterface.sip43
-rw-r--r--sip/tdeparts/browserrun.sip117
-rw-r--r--sip/tdeparts/dockmainwindow.sip49
-rw-r--r--sip/tdeparts/event.sip94
-rw-r--r--sip/tdeparts/factory.sip53
-rw-r--r--sip/tdeparts/genericfactory.sip25
-rw-r--r--sip/tdeparts/historyprovider.sip54
-rw-r--r--sip/tdeparts/mainwindow.sip60
-rw-r--r--sip/tdeparts/part.sip312
-rw-r--r--sip/tdeparts/partmanager.sip181
-rw-r--r--sip/tdeparts/plugin.sip210
-rw-r--r--sip/tdeparts/statusbarextension.sip52
-rw-r--r--sip/tdeparts/tdeparts-kde320.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde321.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde322.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde323.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde330.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde331.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde332.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde340.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde341.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde342.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde343.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde350.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde351.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde352.diff1
-rw-r--r--sip/tdeparts/tdeparts-kde353.diff1
-rw-r--r--sip/tdeparts/tdepartsmod.sip.in51
29 files changed, 1917 insertions, 0 deletions
diff --git a/sip/tdeparts/browserextension.sip b/sip/tdeparts/browserextension.sip
new file mode 100644
index 0000000..cf93792
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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 TQString& = TQString ::null );
+ TQStringList docState;
+ bool reload;
+ int xOffset;
+ int yOffset;
+ TQString serviceType;
+ TQByteArray postData;
+ void setContentType (const TQString&);
+ TQString 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
+
+ TQMap<TQString,TQString>& metaData ();
+ TQString 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 TQRect&, 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 TQEvent*);
+
+}; // class OpenURLEvent
+
+
+class BrowserExtension : TQObject
+{
+%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 (TQDataStream&);
+ virtual void restoreState (TQDataStream&);
+ bool isURLDropHandlingEnabled () const;
+ void setURLDropHandlingEnabled (bool);
+ void setBrowserInterface (KParts::BrowserInterface*);
+ KParts::BrowserInterface* browserInterface () const;
+ bool isActionEnabled (const char*) const;
+
+%If ( KDE_3_5_0 - )
+ TQString actionText (const char*) const;
+%End
+
+ typedef TQMap<TQCString,TQCString> ActionSlotMap;
+ static KParts::BrowserExtension::ActionSlotMap actionSlotMap ();
+ static KParts::BrowserExtension::ActionSlotMap* actionSlotMapPtr ();
+ static KParts::BrowserExtension* childObject (TQObject*);
+
+%If ( KDE_3_2_0 - )
+ void pasteRequest ();
+%End
+
+
+signals:
+ void enableAction (const char*, bool);
+
+%If ( KDE_3_5_0 - )
+ void setActionText (const char*, const TQString&);
+%End
+
+ void openURLRequest (const KURL&, const KParts::URLArgs& = KParts ::URLArgs ());
+ void openURLRequestDelayed (const KURL&, const KParts::URLArgs& = KParts ::URLArgs ());
+ void openURLNotify ();
+ void setLocationBarURL (const TQString&);
+ 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 TQString&);
+ void popupMenu (const TQPoint&, const KFileItemList&);
+ void popupMenu (KXMLGUIClient*, const TQPoint&, const KFileItemList&);
+
+%If ( KDE_3_2_0 - )
+ void popupMenu (KXMLGUIClient*, const TQPoint&, const KFileItemList&, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags);
+%End
+
+ void popupMenu (const TQPoint&, const KURL&, const TQString&, mode_t = -1);
+ void popupMenu (KXMLGUIClient*, const TQPoint&, const KURL&, const TQString&, mode_t = -1);
+
+%If ( KDE_3_2_0 - )
+ void popupMenu (KXMLGUIClient*, const TQPoint&, const KURL&, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t = -1);
+%End
+
+ void selectionInfo (const KFileItemList&);
+ void selectionInfo (const TQString&);
+ void selectionInfo (const KURL::List&);
+
+%If ( KDE_3_1_0 - )
+ void mouseOverInfo (const KFileItem*);
+
+%If ( KDE_3_2_0 - )
+ void addWebSideBar (const KURL&, const TQString&);
+ 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 TQMap<TQCString,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 : TQObject
+{
+%TypeHeaderCode
+#include <browserextension.h>
+%End
+
+
+public:
+ BrowserHostExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0);
+ virtual TQStringList frameNames () const;
+ virtual const TQPtrList<KParts::ReadOnlyPart> frames () const;
+
+%If ( KDE_3_3_0 - )
+ KParts::BrowserHostExtension* findFrameParent (KParts::ReadOnlyPart*, const TQString&);
+%End
+
+ virtual bool openURLInFrame (const KURL&, const KParts::URLArgs&);
+ static KParts::BrowserHostExtension* childObject (TQObject*);
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class BrowserHostExtension
+
+
+%If ( KDE_3_1_0 - )
+
+class LiveConnectExtension : TQObject
+{
+%TypeHeaderCode
+#include <browserextension.h>
+%End
+
+
+public:
+
+ enum Type
+ {
+ TypeVoid,
+ TypeBool,
+ TypeFunction,
+ TypeNumber,
+ TypeObject,
+ TypeString
+ };
+
+//ig typedef TQValueList<TQPair<Type,TQString>> ArgList;
+ LiveConnectExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0);
+ virtual bool get (const ulong, const TQString&, KParts::LiveConnectExtension::Type&, ulong&, TQString&);
+ virtual bool put (const ulong, const TQString&, const TQString&);
+ virtual bool call (const ulong, const TQString&, const TQStringList&, KParts::LiveConnectExtension::Type&, ulong&, TQString&);
+ virtual void unregister (const ulong);
+ static KParts::LiveConnectExtension* childObject (TQObject*);
+
+signals:
+//ig virtual void partEvent (const ulong, const TQString&, const KParts::LiveConnectExtension::ArgList&);
+
+}; // class LiveConnectExtension
+
+%End
+
+}; // namespace KParts
+
+
+%If ( - KDE_3_5_3 )
+//ig typedef TQPtrList<KFileItem> KFileItemList;
+%End
+
+//force
+TQMap<TQCString,int> testTQMapTQCStringInt (TQMap<TQCString,int>);
+%MethodCode
+//takes dict | (TQMap<TQCString,int>)
+//returns (TQMap<TQCString,int>)
+
+ sipRes = a0;
+%End
+
+//end
+
+
+%MappedType TQMap<TQCString,TQCString>
+//converts a Python dict of TQCString:TQCString
+{
+%TypeHeaderCode
+#include <tqmap.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 TQMap<TQCString,TQCString> cppmap = *sipCpp;
+ TQMap<TQCString,TQCString>::ConstIterator it;
+
+ for (it = cppmap.begin (); it != cppmap.end (); ++it)
+ {
+ TQCString acpp = it.key ();
+ TQCString bcpp = it.data ();
+ PyObject *ainst;
+ PyObject *binst = NULL;
+ if (((ainst = sipConvertFromNewType(new TQCString (acpp), sipType_TQCString, NULL)) == NULL)
+ || ((binst = sipConvertFromNewType(new TQCString (bcpp), sipType_TQCString, 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 TQMap on the heap.
+
+ if (sipIsErr == NULL)
+ return PyDict_Check(sipPy);
+
+ TQMap<TQCString,TQCString> *cppmap = new TQMap<TQCString,TQCString>;
+
+ PyObject *aelem, *belem;
+ SIP_SSIZE_T pos = 0;
+ TQCString *acpp;
+ TQCString *bcpp;
+
+ while (PyDict_Next(sipPy, &pos, &aelem, &belem))
+ {
+ int iserr = 0;
+
+ acpp = (TQCString *)sipForceConvertToType(aelem, sipType_TQCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
+ bcpp = (TQCString *)sipForceConvertToType(belem, sipType_TQCString, 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 TQMap<TQCString,int>
+//converts a Python dict of TQCString:int
+{
+%TypeHeaderCode
+#include <tqmap.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 TQMap<TQCString,int> cppmap = *sipCpp;
+ TQMap<TQCString,int>::ConstIterator it;
+
+ for (it = cppmap.begin (); it != cppmap.end (); ++it)
+ {
+ TQCString acpp = it.key ();
+ int bcpp = it.data ();
+ PyObject *ainst;
+ PyObject *binst = NULL;
+ if (((ainst = sipConvertFromNewType(new TQCString (acpp), sipType_TQCString, 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 TQMap on the heap.
+
+ if (sipIsErr == NULL)
+ return PyDict_Check(sipPy);
+
+ TQMap<TQCString,int> *cppmap = new TQMap<TQCString,int>;
+
+ PyObject *aelem, *belem;
+ SIP_SSIZE_T pos = 0;
+ TQCString *acpp;
+ int bcpp;
+
+ while (PyDict_Next(sipPy, &pos, &aelem, &belem))
+ {
+ int iserr = 0;
+
+ acpp = (TQCString *)sipForceConvertToType(aelem, sipType_TQCString, 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 TQPtrList<KParts::ReadOnlyPart>
+//converts a Python list of KParts.ReadOnlyPart
+{
+%TypeHeaderCode
+#include <tqptrlist.h>
+%End
+
+%ConvertFromTypeCode
+ if (!sipCpp)
+ return PyList_New (0);
+
+ PyObject *pylist;
+
+ // Create the list
+
+ if ((pylist = PyList_New(0)) == NULL)
+ return NULL;
+
+ // Get it.
+
+ TQPtrList<KParts::ReadOnlyPart> *cpplist = (TQPtrList<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);
+
+ TQPtrList<KParts::ReadOnlyPart> *cpplist = new TQPtrList<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/tdeparts/browserinterface.sip b/sip/tdeparts/browserinterface.sip
new file mode 100644
index 0000000..56ad91f
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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 : TQObject
+{
+%TypeHeaderCode
+#include <browserinterface.h>
+%End
+
+
+public:
+ BrowserInterface (TQObject* /TransferThis/, const char* = 0);
+ void callMethod (const char*, const TQVariant&);
+
+}; // class BrowserInterface
+
+}; // namespace KParts
+
diff --git a/sip/tdeparts/browserrun.sip b/sip/tdeparts/browserrun.sip
new file mode 100644
index 0000000..dc2dcc3
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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*, TQWidget*, bool, bool);
+
+%If ( KDE_3_1_0 - )
+ BrowserRun (const KURL&, const KParts::URLArgs&, KParts::ReadOnlyPart*, TQWidget*, bool, bool, bool);
+%End
+
+ KURL url () const;
+
+%If ( KDE_3_1_0 - )
+ bool hideErrorDialog () const;
+
+%If ( KDE_3_2_0 - )
+ TQString suggestedFilename () const;
+
+%If ( KDE_3_5_2 - )
+ TQString contentDisposition () const;
+ bool serverSuggestsSave () const;
+%End
+
+%End
+
+%End
+
+
+ enum AskSaveResult
+ {
+ Save,
+ Open,
+ Cancel
+ };
+
+ static KParts::BrowserRun::AskSaveResult askSave (const KURL&, KService::Ptr, const TQString&, const TQString& = TQString ::null );
+
+%If ( KDE_3_5_2 - )
+
+ enum AskEmbedOrSaveFlags
+ {
+ InlineDisposition,
+ AttachmentDisposition
+ };
+
+%End
+
+
+%If ( KDE_3_2_0 - )
+ static KParts::BrowserRun::AskSaveResult askEmbedOrSave (const KURL&, const TQString&, const TQString& = TQString ::null , int = 0);
+%End
+
+ virtual void save (const KURL&, const TQString&);
+
+%If ( KDE_3_2_0 - )
+ static void simpleSave (const KURL&, const TQString&, TQWidget*);
+%End
+
+ static void simpleSave (const KURL&, const TQString&);
+ static bool allowExecution (const TQString&, const KURL&);
+ static bool isExecutable (const TQString&);
+ static bool isTextExecutable (const TQString&);
+
+protected:
+ virtual void scanFile ();
+
+%If ( KDE_3_1_0 - )
+ virtual void init ();
+%End
+
+ virtual void handleError (TDEIO::Job*);
+//ig KParts::BrowserRun::NonEmbeddableResult handleNonEmbeddable (const TQString&);
+
+protected slots:
+ void slotBrowserScanFinished (TDEIO::Job*);
+ void slotBrowserMimetype (TDEIO::Job*, const TQString&);
+ void slotCopyToTempFileResult (TDEIO::Job*);
+ virtual void slotStatResult (TDEIO::Job*);
+
+protected:
+
+}; // class BrowserRun
+
+}; // namespace KParts
+
diff --git a/sip/tdeparts/dockmainwindow.sip b/sip/tdeparts/dockmainwindow.sip
new file mode 100644
index 0000000..1d05909
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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 (TQWidget* /TransferThis/ = 0, const char* = 0, WFlags = WDestructiveClose );
+
+protected slots:
+ void createGUI (KParts::Part*);
+ virtual void slotSetStatusBarText (const TQString&);
+
+protected:
+ virtual void createShellGUI (bool = 1);
+
+}; // class DockMainWindow
+
+}; // namespace KParts
+
diff --git a/sip/tdeparts/event.sip b/sip/tdeparts/event.sip
new file mode 100644
index 0000000..0a5ee41
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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 : TQCustomEvent
+{
+%TypeHeaderCode
+#include <event.h>
+%End
+
+
+public:
+ Event (const char*);
+ virtual const char* eventName () const;
+ static bool test (const TQEvent*);
+ static bool test (const TQEvent*, const char*);
+
+}; // class Event
+
+
+class GUIActivateEvent : KParts::Event
+{
+%TypeHeaderCode
+#include <event.h>
+%End
+
+
+public:
+ GUIActivateEvent (bool);
+ bool activated () const;
+ static bool test (const TQEvent*);
+
+}; // class GUIActivateEvent
+
+
+class PartActivateEvent : KParts::Event
+{
+%TypeHeaderCode
+#include <event.h>
+%End
+
+
+public:
+ PartActivateEvent (bool, KParts::Part*, TQWidget*);
+ bool activated () const;
+ KParts::Part* part () const;
+ TQWidget* widget () const;
+ static bool test (const TQEvent*);
+
+}; // class PartActivateEvent
+
+
+class PartSelectEvent : KParts::Event
+{
+%TypeHeaderCode
+#include <event.h>
+%End
+
+
+public:
+ PartSelectEvent (bool, KParts::Part*, TQWidget*);
+ bool selected () const;
+ KParts::Part* part () const;
+ TQWidget* widget () const;
+ static bool test (const TQEvent*);
+
+}; // class PartSelectEvent
+
+}; // namespace KParts
+
diff --git a/sip/tdeparts/factory.sip b/sip/tdeparts/factory.sip
new file mode 100644
index 0000000..00b25e0
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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 (TQObject* /TransferThis/ = 0, const char* = 0);
+ KParts::Part* createPart (TQWidget* = 0, const char* = 0, TQObject* /Transfer/ = 0, const char* = 0, const char* = "KParts::Part", const TQStringList& = TQStringList ());
+
+%If ( KDE_3_2_0 - )
+ const TDEInstance* partInstance ();
+ static const TDEInstance* partInstanceFromLibrary (const TQCString&);
+%End
+
+
+protected:
+ virtual KParts::Part* createPartObject (TQWidget* = 0, const char* = 0, TQObject* /Transfer/ = 0, const char* = 0, const char* = "KParts::Part", const TQStringList& = TQStringList ());
+ virtual TQObject* createObject (TQObject* /Transfer/ = 0, const char* = 0, const char* = "TQObject", const TQStringList& = TQStringList ());
+
+}; // class Factory
+
+}; // namespace KParts
+
diff --git a/sip/tdeparts/genericfactory.sip b/sip/tdeparts/genericfactory.sip
new file mode 100644
index 0000000..81a5bd2
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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/tdeparts/historyprovider.sip b/sip/tdeparts/historyprovider.sip
new file mode 100644
index 0000000..f93be1f
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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 : TQObject
+{
+%TypeHeaderCode
+#include <historyprovider.h>
+%End
+
+
+public:
+ static KParts::HistoryProvider* self ();
+ HistoryProvider (TQObject* /TransferThis/ = 0, const char* = 0);
+ virtual bool contains (const TQString&) const;
+ virtual void insert (const TQString&);
+ virtual void remove (const TQString&);
+ virtual void clear ();
+
+signals:
+ void cleared ();
+ void updated (const TQStringList&);
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class HistoryProvider
+
+}; // namespace KParts
+
diff --git a/sip/tdeparts/mainwindow.sip b/sip/tdeparts/mainwindow.sip
new file mode 100644
index 0000000..9fc9758
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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 (TQWidget* /TransferThis/, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose );
+ MainWindow (const char* = 0, WFlags = WDestructiveClose );
+
+%If ( KDE_3_2_0 - )
+ MainWindow (int, TQWidget* /TransferThis/, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose );
+%End
+
+
+protected slots:
+ void createGUI (KParts::Part*);
+ virtual void slotSetStatusBarText (const TQString&);
+
+%If ( KDE_3_4_0 - )
+ void saveNewToolbarConfig ();
+%End
+
+
+protected:
+ virtual void createShellGUI (bool = 1);
+
+}; // class MainWindow
+
+}; // namespace KParts
+
diff --git a/sip/tdeparts/part.sip b/sip/tdeparts/part.sip
new file mode 100644
index 0000000..be35510
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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 (TQObject*);
+ TQObject* partObject () const;
+
+protected:
+ virtual void setInstance (TDEInstance*);
+ virtual void setInstance (TDEInstance*, bool);
+
+%If ( KDE_3_1_0 - )
+ void loadPlugins (TQObject* /Transfer/, KXMLGUIClient*, TDEInstance*);
+//ig void setPluginLoadingMode (KParts::PartBase::PluginLoadingMode);
+%End
+
+
+}; // class PartBase
+
+
+class Part : TQObject, KParts::PartBase
+{
+%TypeHeaderCode
+#include <part.h>
+%End
+
+
+public:
+ Part (TQObject* /TransferThis/ = 0, const char* = 0);
+ virtual void embed (TQWidget*);
+ virtual TQWidget* widget ();
+ virtual void setManager (KParts::PartManager*);
+ KParts::PartManager* manager ();
+ virtual KParts::Part* hitTest (TQWidget*, const TQPoint&);
+ virtual void setSelectable (bool);
+ bool isSelectable () const;
+
+signals:
+ void setWindowCaption (const TQString&);
+ void setStatusBarText (const TQString&);
+
+protected:
+ virtual void setWidget (TQWidget*);
+ virtual void customEvent (TQCustomEvent*);
+ virtual void partActivateEvent (KParts::PartActivateEvent*);
+ virtual void partSelectEvent (KParts::PartSelectEvent*);
+ virtual void guiActivateEvent (KParts::GUIActivateEvent*);
+ TQWidget* hostContainer (const TQString&);
+
+//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 TDE_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 (TQObject* /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 TQString&, const KURL&);
+ bool writeStream (const TQByteArray&);
+ bool closeStream ();
+
+signals:
+ void started (TDEIO::Job*);
+ void completed ();
+ void completed (bool);
+ void canceled (const TQString&);
+
+protected slots:
+ void slotJobFinished (TDEIO::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 (TQObject* /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 (TDEIO::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 TQString&amp; lib, TQObject *parent,
+// const TQString&amp; name, const char *className,
+// const TQStringList &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 TQString&, TQObject* = 0, const TQString& = TQString ::null , const char* = "KParts::ReadOnlyPart", const TQStringList& = TQStringList ());
+//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 TQString&amp; lib, TQObject *parent,
+// const TQString&amp; name, const char *className,
+// const TQStringList &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 TQString&, TQObject* = 0, const TQString& = TQString ::null , const char* = "KParts::ReadWritePart", const TQStringList& = TQStringList ());
+//end
+
+
+%ModuleCode
+#include <klibloader.h>
+
+KParts::ReadOnlyPart *createReadOnlyPart (const TQString& lib, TQObject *parent, const TQString& name, const char *className,
+ const TQStringList &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 TQString& lib, TQObject *parent, const TQString& name, const char *className,
+ const TQStringList &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/tdeparts/partmanager.sip b/sip/tdeparts/partmanager.sip
new file mode 100644
index 0000000..c4ebc86
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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 : TQObject
+{
+%TypeHeaderCode
+#include <partmanager.h>
+%End
+
+
+public:
+
+ enum SelectionPolicy
+ {
+ Direct,
+ TriState
+ };
+
+
+%If ( KDE_3_3_0 - )
+
+ enum Reason
+ {
+ ReasonLeftClick,
+ ReasonMidClick,
+ ReasonRightClick,
+ NoReason
+ };
+
+%End
+
+ PartManager (TQWidget* /TransferThis/, const char* = 0);
+ PartManager (TQWidget*, TQObject* /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 (TQObject*, TQEvent*);
+ 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*, TQWidget* = 0);
+ virtual KParts::Part* activePart () const;
+ virtual TQWidget* activeWidget () const;
+ virtual void setSelectedPart (KParts::Part*, TQWidget* = 0);
+ virtual KParts::Part* selectedPart () const;
+ virtual TQWidget* selectedWidget () const;
+ const TQPtrList<KParts::Part>* parts () const;
+ void addManagedTopLevelWidget (const TQWidget*);
+ void removeManagedTopLevelWidget (const TQWidget*);
+
+%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 (TDEInstance*);
+
+protected slots:
+ void slotObjectDestroyed ();
+ void slotWidgetDestroyed ();
+ void slotManagedTopLevelWidgetDestroyed ();
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class PartManager
+
+}; // namespace KParts
+
+
+
+%MappedType TQPtrList<KParts::Part>
+//converts a Python list of KParts.Part
+{
+%TypeHeaderCode
+#include <tqptrlist.h>
+%End
+
+%ConvertFromTypeCode
+ if (!sipCpp)
+ return PyList_New (0);
+
+ PyObject *pylist;
+
+ // Create the list
+
+ if ((pylist = PyList_New(0)) == NULL)
+ return NULL;
+
+ // Get it.
+
+ TQPtrList<KParts::Part> *cpplist = (TQPtrList<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);
+
+ TQPtrList<KParts::Part> *cpplist = new TQPtrList<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/tdeparts/plugin.sip b/sip/tdeparts/plugin.sip
new file mode 100644
index 0000000..670ef6b
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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 : TQObject, KXMLGUIClient
+{
+%TypeHeaderCode
+#include <plugin.h>
+%End
+
+
+public:
+
+ class PluginInfo
+ {
+
+ public:
+ TQString m_relXMLFileName;
+ TQString m_absXMLFileName;
+ TQDomDocument m_document;
+
+ }; // class PluginInfo
+
+
+public:
+ Plugin (TQObject* /TransferThis/ = 0, const char* = 0);
+ virtual TQString xmlFile () const;
+ virtual TQString localXMLFile () const;
+ static void loadPlugins (TQObject* /Transfer/, const TDEInstance*);
+ static void loadPlugins (TQObject* /Transfer/, const TQValueList<KParts::Plugin::PluginInfo>&);
+ static void loadPlugins (TQObject* /Transfer/, const TQValueList<KParts::Plugin::PluginInfo>&, const TDEInstance*);
+
+%If ( KDE_3_1_0 - )
+ static void loadPlugins (TQObject* /Transfer/, KXMLGUIClient*, TDEInstance*, bool = 1);
+%End
+
+ static TQPtrList<KParts::Plugin> pluginObjects (TQObject* /Transfer/);
+
+protected:
+ static TQValueList<KParts::Plugin::PluginInfo> pluginInfos (const TDEInstance*);
+ static KParts::Plugin* loadPlugin (TQObject* /Transfer/, const char*);
+ virtual void setInstance (TDEInstance*);
+
+}; // class Plugin
+
+}; // namespace KParts
+
+
+
+%MappedType TQValueList<KParts::Plugin::PluginInfo>
+//converts a Python list of KParts.Plugin.PluginInfo
+{
+%TypeHeaderCode
+#include <tqvaluelist.h>
+%End
+
+%ConvertFromTypeCode
+ if (!sipCpp)
+ return PyList_New(0);
+
+ // Create the list
+ PyObject *pylist;
+ if ((pylist = PyList_New(0)) == NULL)
+ return NULL;
+
+ TQValueList<KParts::Plugin::PluginInfo> *cpplist = (TQValueList<KParts::Plugin::PluginInfo> *)sipCpp;
+ PyObject *inst;
+
+ // Get it.
+ TQValueList<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);
+
+ TQValueList<KParts::Plugin::PluginInfo> *cpplist = new TQValueList<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 TQPtrList<KParts::Plugin>
+//converts a Python list of KParts.Plugin
+{
+%TypeHeaderCode
+#include <tqptrlist.h>
+%End
+
+%ConvertFromTypeCode
+ if (!sipCpp)
+ return PyList_New (0);
+
+ PyObject *pylist;
+
+ // Create the list
+
+ if ((pylist = PyList_New(0)) == NULL)
+ return NULL;
+
+ // Get it.
+
+ TQPtrList<KParts::Plugin> *cpplist = (TQPtrList<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);
+
+ TQPtrList<KParts::Plugin> *cpplist = new TQPtrList<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/tdeparts/statusbarextension.sip b/sip/tdeparts/statusbarextension.sip
new file mode 100644
index 0000000..4f835d7
--- /dev/null
+++ b/sip/tdeparts/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 tdeparts 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 : TQObject
+{
+%TypeHeaderCode
+#include <statusbarextension.h>
+%End
+
+
+public:
+ StatusBarExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0);
+ void addStatusBarItem (TQWidget*, int, bool);
+ void removeStatusBarItem (TQWidget*);
+ KStatusBar* statusBar () const;
+ void setStatusBar (KStatusBar*);
+ static KParts::StatusBarExtension* childObject (TQObject*);
+ virtual bool eventFilter (TQObject*, TQEvent*);
+
+}; // class StatusBarExtension
+
+}; // namespace KParts
+
+%End
+
diff --git a/sip/tdeparts/tdeparts-kde320.diff b/sip/tdeparts/tdeparts-kde320.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde320.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde321.diff b/sip/tdeparts/tdeparts-kde321.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde321.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde322.diff b/sip/tdeparts/tdeparts-kde322.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde322.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde323.diff b/sip/tdeparts/tdeparts-kde323.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde323.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde330.diff b/sip/tdeparts/tdeparts-kde330.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde330.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde331.diff b/sip/tdeparts/tdeparts-kde331.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde331.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde332.diff b/sip/tdeparts/tdeparts-kde332.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde332.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde340.diff b/sip/tdeparts/tdeparts-kde340.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde340.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde341.diff b/sip/tdeparts/tdeparts-kde341.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde341.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde342.diff b/sip/tdeparts/tdeparts-kde342.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde342.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde343.diff b/sip/tdeparts/tdeparts-kde343.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde343.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde350.diff b/sip/tdeparts/tdeparts-kde350.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde350.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde351.diff b/sip/tdeparts/tdeparts-kde351.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde351.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde352.diff b/sip/tdeparts/tdeparts-kde352.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde352.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdeparts-kde353.diff b/sip/tdeparts/tdeparts-kde353.diff
new file mode 100644
index 0000000..8ad0226
--- /dev/null
+++ b/sip/tdeparts/tdeparts-kde353.diff
@@ -0,0 +1 @@
++ %Include statusbarextension.sip
diff --git a/sip/tdeparts/tdepartsmod.sip.in b/sip/tdeparts/tdepartsmod.sip.in
new file mode 100644
index 0000000..89e7863
--- /dev/null
+++ b/sip/tdeparts/tdepartsmod.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 tdeparts 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 tdeparts
+
+%Import qt/qtmod.sip
+%Import qtxml/qtxmlmod.sip
+%Import dcopmod.sip
+%Import tdecoremod.sip
+%Import tdefxmod.sip
+%Import tdeuimod.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@