diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
commit | 203ba231d0276943aae36111f9ec1e949f3c6a4c (patch) | |
tree | f039f7a5b5fc2da88a96876971bac580d87f6788 /sip/kparts | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'sip/kparts')
-rw-r--r-- | sip/kparts/browserextension.sip | 142 | ||||
-rw-r--r-- | sip/kparts/browserinterface.sip | 6 | ||||
-rw-r--r-- | sip/kparts/browserrun.sip | 28 | ||||
-rw-r--r-- | sip/kparts/dockmainwindow.sip | 4 | ||||
-rw-r--r-- | sip/kparts/event.sip | 20 | ||||
-rw-r--r-- | sip/kparts/factory.sip | 10 | ||||
-rw-r--r-- | sip/kparts/historyprovider.sip | 12 | ||||
-rw-r--r-- | sip/kparts/mainwindow.sip | 6 | ||||
-rw-r--r-- | sip/kparts/part.sip | 60 | ||||
-rw-r--r-- | sip/kparts/partmanager.sip | 28 | ||||
-rw-r--r-- | sip/kparts/plugin.sip | 42 | ||||
-rw-r--r-- | sip/kparts/statusbarextension.sip | 10 |
12 files changed, 184 insertions, 184 deletions
diff --git a/sip/kparts/browserextension.sip b/sip/kparts/browserextension.sip index c6c37db..b994de5 100644 --- a/sip/kparts/browserextension.sip +++ b/sip/kparts/browserextension.sip @@ -36,15 +36,15 @@ class URLArgs public: URLArgs (); URLArgs (const KParts::URLArgs&); - URLArgs (bool, int, int, const QString& = QString ::null ); - QStringList docState; + URLArgs (bool, int, int, const TQString& = TQString ::null ); + TQStringList docState; bool reload; int xOffset; int yOffset; - QString serviceType; - QByteArray postData; - void setContentType (const QString&); - QString contentType () const; + TQString serviceType; + TQByteArray postData; + void setContentType (const TQString&); + TQString contentType () const; void setDoPost (bool); bool doPost () const; void setLockHistory (bool); @@ -55,8 +55,8 @@ public: bool newTab () const; %End - QMap<QString,QString>& metaData (); - QString frameName; + TQMap<TQString,TQString>& metaData (); + TQString frameName; bool trustedSource; %If ( KDE_3_1_3 - ) @@ -85,7 +85,7 @@ class WindowArgs public: WindowArgs (); WindowArgs (const KParts::WindowArgs&); - WindowArgs (const QRect&, bool, bool, bool, bool, bool); + WindowArgs (const TQRect&, bool, bool, bool, bool, bool); WindowArgs (int, int, int, int, bool, bool, bool, bool, bool); int x; int y; @@ -119,12 +119,12 @@ public: KParts::ReadOnlyPart* part () const; KURL url () const; KParts::URLArgs args () const; - static bool test (const QEvent*); + static bool test (const TQEvent*); }; // class OpenURLEvent -class BrowserExtension : QObject +class BrowserExtension : TQObject { %TypeHeaderCode #include <browserextension.h> @@ -159,8 +159,8 @@ public: KParts::URLArgs urlArgs () const; virtual int xOffset (); virtual int yOffset (); - virtual void saveState (QDataStream&); - virtual void restoreState (QDataStream&); + virtual void saveState (TQDataStream&); + virtual void restoreState (TQDataStream&); bool isURLDropHandlingEnabled () const; void setURLDropHandlingEnabled (bool); void setBrowserInterface (KParts::BrowserInterface*); @@ -168,13 +168,13 @@ public: bool isActionEnabled (const char*) const; %If ( KDE_3_5_0 - ) - QString actionText (const char*) const; + TQString actionText (const char*) const; %End - typedef QMap<QCString,QCString> ActionSlotMap; + typedef TQMap<TQCString,TQCString> ActionSlotMap; static KParts::BrowserExtension::ActionSlotMap actionSlotMap (); static KParts::BrowserExtension::ActionSlotMap* actionSlotMapPtr (); - static KParts::BrowserExtension* childObject (QObject*); + static KParts::BrowserExtension* childObject (TQObject*); %If ( KDE_3_2_0 - ) void pasteRequest (); @@ -185,42 +185,42 @@ signals: void enableAction (const char*, bool); %If ( KDE_3_5_0 - ) - void setActionText (const char*, const QString&); + 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 QString&); + 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 QString&); - void popupMenu (const QPoint&, const KFileItemList&); - void popupMenu (KXMLGUIClient*, const QPoint&, const KFileItemList&); + 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 QPoint&, const KFileItemList&, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags); + void popupMenu (KXMLGUIClient*, const TQPoint&, 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); + 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 QPoint&, const KURL&, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t = -1); + void popupMenu (KXMLGUIClient*, const TQPoint&, const KURL&, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t = -1); %End void selectionInfo (const KFileItemList&); - void selectionInfo (const QString&); + 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 QString&); + void addWebSideBar (const KURL&, const TQString&); void moveTopLevelWidget (int, int); void resizeTopLevelWidget (int, int); @@ -239,7 +239,7 @@ signals: public: - typedef QMap<QCString,int> ActionNumberMap; + typedef TQMap<TQCString,int> ActionNumberMap; protected: //igx virtual void virtual_hook (int, void*); @@ -282,7 +282,7 @@ public: }; // class BrowserExtension -class BrowserHostExtension : QObject +class BrowserHostExtension : TQObject { %TypeHeaderCode #include <browserextension.h> @@ -291,15 +291,15 @@ class BrowserHostExtension : QObject public: BrowserHostExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); - virtual QStringList frameNames () const; - virtual const QPtrList<KParts::ReadOnlyPart> frames () const; + virtual TQStringList frameNames () const; + virtual const TQPtrList<KParts::ReadOnlyPart> frames () const; %If ( KDE_3_3_0 - ) - KParts::BrowserHostExtension* findFrameParent (KParts::ReadOnlyPart*, const QString&); + KParts::BrowserHostExtension* findFrameParent (KParts::ReadOnlyPart*, const TQString&); %End virtual bool openURLInFrame (const KURL&, const KParts::URLArgs&); - static KParts::BrowserHostExtension* childObject (QObject*); + static KParts::BrowserHostExtension* childObject (TQObject*); protected: //igx virtual void virtual_hook (int, void*); @@ -309,7 +309,7 @@ protected: %If ( KDE_3_1_0 - ) -class LiveConnectExtension : QObject +class LiveConnectExtension : TQObject { %TypeHeaderCode #include <browserextension.h> @@ -328,16 +328,16 @@ public: TypeString }; -//ig typedef QValueList<QPair<Type,QString>> ArgList; +//ig typedef TQValueList<TQPair<Type,TQString>> 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 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 (QObject*); + static KParts::LiveConnectExtension* childObject (TQObject*); signals: -//ig virtual void partEvent (const ulong, const QString&, const KParts::LiveConnectExtension::ArgList&); +//ig virtual void partEvent (const ulong, const TQString&, const KParts::LiveConnectExtension::ArgList&); }; // class LiveConnectExtension @@ -347,14 +347,14 @@ signals: %If ( - KDE_3_5_3 ) -//ig typedef QPtrList<KFileItem> KFileItemList; +//ig typedef TQPtrList<KFileItem> KFileItemList; %End //force -QMap<QCString,int> testQMapQCStringInt (QMap<QCString,int>); +TQMap<TQCString,int> testTQMapTQCStringInt (TQMap<TQCString,int>); %MethodCode -//takes dict | (QMap<QCString,int>) -//returns (QMap<QCString,int>) +//takes dict | (TQMap<TQCString,int>) +//returns (TQMap<TQCString,int>) sipRes = a0; %End @@ -362,8 +362,8 @@ QMap<QCString,int> testQMapQCStringInt (QMap<QCString,int>); //end -%MappedType QMap<QCString,QCString> -//converts a Python dict of QCString:QCString +%MappedType TQMap<TQCString,TQCString> +//converts a Python dict of TQCString:TQCString { %TypeHeaderCode #include <qmap.h> @@ -384,17 +384,17 @@ QMap<QCString,int> testQMapQCStringInt (QMap<QCString,int>); // Get it. - const QMap<QCString,QCString> cppmap = *sipCpp; - QMap<QCString,QCString>::ConstIterator it; + const TQMap<TQCString,TQCString> cppmap = *sipCpp; + TQMap<TQCString,TQCString>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QCString acpp = it.key (); - QCString bcpp = it.data (); + TQCString acpp = it.key (); + TQCString 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) + if (((ainst = sipConvertFromNewType(new TQCString (acpp), sipType_QCString, NULL)) == NULL) + || ((binst = sipConvertFromNewType(new TQCString (bcpp), sipType_QCString, NULL)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) { Py_XDECREF (ainst); @@ -409,24 +409,24 @@ QMap<QCString,int> testQMapQCStringInt (QMap<QCString,int>); %ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. + // Convert a Python dictionary to a TQMap on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QCString,QCString> *cppmap = new QMap<QCString,QCString>; + TQMap<TQCString,TQCString> *cppmap = new TQMap<TQCString,TQCString>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QCString *acpp; - QCString *bcpp; + TQCString *acpp; + TQCString *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); + acpp = (TQCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + bcpp = (TQCString *)sipForceConvertToType(belem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); if (iserr) { @@ -445,8 +445,8 @@ QMap<QCString,int> testQMapQCStringInt (QMap<QCString,int>); }; -%MappedType QMap<QCString,int> -//converts a Python dict of QCString:int +%MappedType TQMap<TQCString,int> +//converts a Python dict of TQCString:int { %TypeHeaderCode #include <qmap.h> @@ -467,16 +467,16 @@ QMap<QCString,int> testQMapQCStringInt (QMap<QCString,int>); // Get it. - const QMap<QCString,int> cppmap = *sipCpp; - QMap<QCString,int>::ConstIterator it; + const TQMap<TQCString,int> cppmap = *sipCpp; + TQMap<TQCString,int>::ConstIterator it; for (it = cppmap.begin (); it != cppmap.end (); ++it) { - QCString acpp = it.key (); + TQCString acpp = it.key (); int bcpp = it.data (); PyObject *ainst; PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new QCString (acpp), sipType_QCString, NULL)) == NULL) + if (((ainst = sipConvertFromNewType(new TQCString (acpp), sipType_QCString, NULL)) == NULL) || ((binst = PyInt_FromLong (bcpp)) < 0) || (PyDict_SetItem (dict, ainst, binst) < 0)) { @@ -492,23 +492,23 @@ QMap<QCString,int> testQMapQCStringInt (QMap<QCString,int>); %ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. + // Convert a Python dictionary to a TQMap on the heap. if (sipIsErr == NULL) return PyDict_Check(sipPy); - QMap<QCString,int> *cppmap = new QMap<QCString,int>; + TQMap<TQCString,int> *cppmap = new TQMap<TQCString,int>; PyObject *aelem, *belem; SIP_SSIZE_T pos = 0; - QCString *acpp; + TQCString *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); + acpp = (TQCString *)sipForceConvertToType(aelem, sipType_QCString, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); if (iserr || !PyInt_Check (belem)) { @@ -529,7 +529,7 @@ QMap<QCString,int> testQMapQCStringInt (QMap<QCString,int>); }; -%MappedType QPtrList<KParts::ReadOnlyPart> +%MappedType TQPtrList<KParts::ReadOnlyPart> //converts a Python list of KParts.ReadOnlyPart { %TypeHeaderCode @@ -549,7 +549,7 @@ QMap<QCString,int> testQMapQCStringInt (QMap<QCString,int>); // Get it. - QPtrList<KParts::ReadOnlyPart> *cpplist = (QPtrList<KParts::ReadOnlyPart> *)sipCpp; + TQPtrList<KParts::ReadOnlyPart> *cpplist = (TQPtrList<KParts::ReadOnlyPart> *)sipCpp; KParts::ReadOnlyPart *cpp; PyObject *inst; @@ -571,7 +571,7 @@ QMap<QCString,int> testQMapQCStringInt (QMap<QCString,int>); if (sipIsErr == NULL) return PyList_Check(sipPy); - QPtrList<KParts::ReadOnlyPart> *cpplist = new QPtrList<KParts::ReadOnlyPart>; + TQPtrList<KParts::ReadOnlyPart> *cpplist = new TQPtrList<KParts::ReadOnlyPart>; PyObject *elem; KParts::ReadOnlyPart *cpp; diff --git a/sip/kparts/browserinterface.sip b/sip/kparts/browserinterface.sip index 06785f6..b57ad05 100644 --- a/sip/kparts/browserinterface.sip +++ b/sip/kparts/browserinterface.sip @@ -26,7 +26,7 @@ namespace KParts { -class BrowserInterface : QObject +class BrowserInterface : TQObject { %TypeHeaderCode #include <browserinterface.h> @@ -34,8 +34,8 @@ class BrowserInterface : QObject public: - BrowserInterface (QObject* /TransferThis/, const char* = 0); - void callMethod (const char*, const QVariant&); + BrowserInterface (TQObject* /TransferThis/, const char* = 0); + void callMethod (const char*, const TQVariant&); }; // class BrowserInterface diff --git a/sip/kparts/browserrun.sip b/sip/kparts/browserrun.sip index 8002ce7..ad2b14c 100644 --- a/sip/kparts/browserrun.sip +++ b/sip/kparts/browserrun.sip @@ -34,10 +34,10 @@ class BrowserRun : KRun public: - BrowserRun (const KURL&, const KParts::URLArgs&, KParts::ReadOnlyPart*, QWidget*, bool, bool); + BrowserRun (const KURL&, const KParts::URLArgs&, KParts::ReadOnlyPart*, TQWidget*, bool, bool); %If ( KDE_3_1_0 - ) - BrowserRun (const KURL&, const KParts::URLArgs&, KParts::ReadOnlyPart*, QWidget*, bool, bool, bool); + BrowserRun (const KURL&, const KParts::URLArgs&, KParts::ReadOnlyPart*, TQWidget*, bool, bool, bool); %End KURL url () const; @@ -46,10 +46,10 @@ public: bool hideErrorDialog () const; %If ( KDE_3_2_0 - ) - QString suggestedFilename () const; + TQString suggestedFilename () const; %If ( KDE_3_5_2 - ) - QString contentDisposition () const; + TQString contentDisposition () const; bool serverSuggestsSave () const; %End @@ -65,7 +65,7 @@ public: Cancel }; - static KParts::BrowserRun::AskSaveResult askSave (const KURL&, KService::Ptr, const QString&, const QString& = QString ::null ); + static KParts::BrowserRun::AskSaveResult askSave (const KURL&, KService::Ptr, const TQString&, const TQString& = TQString ::null ); %If ( KDE_3_5_2 - ) @@ -79,19 +79,19 @@ public: %If ( KDE_3_2_0 - ) - static KParts::BrowserRun::AskSaveResult askEmbedOrSave (const KURL&, const QString&, const QString& = QString ::null , int = 0); + static KParts::BrowserRun::AskSaveResult askEmbedOrSave (const KURL&, const TQString&, const TQString& = TQString ::null , int = 0); %End - virtual void save (const KURL&, const QString&); + virtual void save (const KURL&, const TQString&); %If ( KDE_3_2_0 - ) - static void simpleSave (const KURL&, const QString&, QWidget*); + static void simpleSave (const KURL&, const TQString&, TQWidget*); %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&); + 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 (); @@ -101,11 +101,11 @@ protected: %End virtual void handleError (KIO::Job*); -//ig KParts::BrowserRun::NonEmbeddableResult handleNonEmbeddable (const QString&); +//ig KParts::BrowserRun::NonEmbeddableResult handleNonEmbeddable (const TQString&); protected slots: void slotBrowserScanFinished (KIO::Job*); - void slotBrowserMimetype (KIO::Job*, const QString&); + void slotBrowserMimetype (KIO::Job*, const TQString&); void slotCopyToTempFileResult (KIO::Job*); virtual void slotStatResult (KIO::Job*); diff --git a/sip/kparts/dockmainwindow.sip b/sip/kparts/dockmainwindow.sip index 4d6d693..b2a7fa3 100644 --- a/sip/kparts/dockmainwindow.sip +++ b/sip/kparts/dockmainwindow.sip @@ -34,11 +34,11 @@ class DockMainWindow : KDockMainWindow, KParts::PartBase public: - DockMainWindow (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WDestructiveClose ); + DockMainWindow (TQWidget* /TransferThis/ = 0, const char* = 0, WFlags = WDestructiveClose ); protected slots: void createGUI (KParts::Part*); - virtual void slotSetStatusBarText (const QString&); + virtual void slotSetStatusBarText (const TQString&); protected: virtual void createShellGUI (bool = 1); diff --git a/sip/kparts/event.sip b/sip/kparts/event.sip index c1014ff..1288e9b 100644 --- a/sip/kparts/event.sip +++ b/sip/kparts/event.sip @@ -26,7 +26,7 @@ namespace KParts { -class Event : QCustomEvent +class Event : TQCustomEvent { %TypeHeaderCode #include <event.h> @@ -36,8 +36,8 @@ class Event : QCustomEvent public: Event (const char*); virtual const char* eventName () const; - static bool test (const QEvent*); - static bool test (const QEvent*, const char*); + static bool test (const TQEvent*); + static bool test (const TQEvent*, const char*); }; // class Event @@ -52,7 +52,7 @@ class GUIActivateEvent : KParts::Event public: GUIActivateEvent (bool); bool activated () const; - static bool test (const QEvent*); + static bool test (const TQEvent*); }; // class GUIActivateEvent @@ -65,11 +65,11 @@ class PartActivateEvent : KParts::Event public: - PartActivateEvent (bool, KParts::Part*, QWidget*); + PartActivateEvent (bool, KParts::Part*, TQWidget*); bool activated () const; KParts::Part* part () const; - QWidget* widget () const; - static bool test (const QEvent*); + TQWidget* widget () const; + static bool test (const TQEvent*); }; // class PartActivateEvent @@ -82,11 +82,11 @@ class PartSelectEvent : KParts::Event public: - PartSelectEvent (bool, KParts::Part*, QWidget*); + PartSelectEvent (bool, KParts::Part*, TQWidget*); bool selected () const; KParts::Part* part () const; - QWidget* widget () const; - static bool test (const QEvent*); + TQWidget* widget () const; + static bool test (const TQEvent*); }; // class PartSelectEvent diff --git a/sip/kparts/factory.sip b/sip/kparts/factory.sip index f97cebf..6b919e2 100644 --- a/sip/kparts/factory.sip +++ b/sip/kparts/factory.sip @@ -34,18 +34,18 @@ class Factory : KLibFactory 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 ()); + 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 KInstance* partInstance (); - static const KInstance* partInstanceFromLibrary (const QCString&); + static const KInstance* partInstanceFromLibrary (const TQCString&); %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 ()); + 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 diff --git a/sip/kparts/historyprovider.sip b/sip/kparts/historyprovider.sip index ec0bafb..d562810 100644 --- a/sip/kparts/historyprovider.sip +++ b/sip/kparts/historyprovider.sip @@ -26,7 +26,7 @@ namespace KParts { -class HistoryProvider : QObject +class HistoryProvider : TQObject { %TypeHeaderCode #include <historyprovider.h> @@ -35,15 +35,15 @@ class HistoryProvider : QObject 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&); + 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 QStringList&); + void updated (const TQStringList&); protected: //igx virtual void virtual_hook (int, void*); diff --git a/sip/kparts/mainwindow.sip b/sip/kparts/mainwindow.sip index 3fa7d3e..181af5f 100644 --- a/sip/kparts/mainwindow.sip +++ b/sip/kparts/mainwindow.sip @@ -34,17 +34,17 @@ class MainWindow : KMainWindow, KParts::PartBase public: - MainWindow (QWidget* /TransferThis/, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); + MainWindow (TQWidget* /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 ); + MainWindow (int, TQWidget* /TransferThis/, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); %End protected slots: void createGUI (KParts::Part*); - virtual void slotSetStatusBarText (const QString&); + virtual void slotSetStatusBarText (const TQString&); %If ( KDE_3_4_0 - ) void saveNewToolbarConfig (); diff --git a/sip/kparts/part.sip b/sip/kparts/part.sip index cddc3c5..c1f5758 100644 --- a/sip/kparts/part.sip +++ b/sip/kparts/part.sip @@ -35,15 +35,15 @@ class PartBase : KXMLGUIClient public: PartBase (); - void setPartObject (QObject*); - QObject* partObject () const; + void setPartObject (TQObject*); + TQObject* partObject () const; protected: virtual void setInstance (KInstance*); virtual void setInstance (KInstance*, bool); %If ( KDE_3_1_0 - ) - void loadPlugins (QObject* /Transfer/, KXMLGUIClient*, KInstance*); + void loadPlugins (TQObject* /Transfer/, KXMLGUIClient*, KInstance*); //ig void setPluginLoadingMode (KParts::PartBase::PluginLoadingMode); %End @@ -51,7 +51,7 @@ protected: }; // class PartBase -class Part : QObject, KParts::PartBase +class Part : TQObject, KParts::PartBase { %TypeHeaderCode #include <part.h> @@ -59,26 +59,26 @@ class Part : QObject, KParts::PartBase public: - Part (QObject* /TransferThis/ = 0, const char* = 0); - virtual void embed (QWidget*); - virtual QWidget* widget (); + 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 (QWidget*, const QPoint&); + virtual KParts::Part* hitTest (TQWidget*, const TQPoint&); virtual void setSelectable (bool); bool isSelectable () const; signals: - void setWindowCaption (const QString&); - void setStatusBarText (const QString&); + void setWindowCaption (const TQString&); + void setStatusBarText (const TQString&); protected: - virtual void setWidget (QWidget*); - virtual void customEvent (QCustomEvent*); + virtual void setWidget (TQWidget*); + virtual void customEvent (TQCustomEvent*); virtual void partActivateEvent (KParts::PartActivateEvent*); virtual void partSelectEvent (KParts::PartSelectEvent*); virtual void guiActivateEvent (KParts::GUIActivateEvent*); - QWidget* hostContainer (const QString&); + TQWidget* hostContainer (const TQString&); //force %ConvertToSubClassCode @@ -123,7 +123,7 @@ class ReadOnlyPart : KParts::Part public: - ReadOnlyPart (QObject* /TransferThis/ = 0, const char* = 0); + ReadOnlyPart (TQObject* /TransferThis/ = 0, const char* = 0); void setProgressInfoEnabled (bool); bool isProgressInfoEnabled () const; void showProgressInfo (bool); @@ -136,15 +136,15 @@ public: virtual bool closeURL (); public: - bool openStream (const QString&, const KURL&); - bool writeStream (const QByteArray&); + bool openStream (const TQString&, const KURL&); + bool writeStream (const TQByteArray&); bool closeStream (); signals: void started (KIO::Job*); void completed (); void completed (bool); - void canceled (const QString&); + void canceled (const TQString&); protected slots: void slotJobFinished (KIO::Job*); @@ -170,7 +170,7 @@ class ReadWritePart : KParts::ReadOnlyPart public: - ReadWritePart (QObject* /TransferThis/ = 0, const char* = 0); + ReadWritePart (TQObject* /TransferThis/ = 0, const char* = 0); bool isReadWrite () const; virtual void setReadWrite (bool = 1); bool isModified () const; @@ -222,9 +222,9 @@ protected slots: // to create a KParts::ReadOnlyPart. It executes the following C++ code: // </para> // <pre class="PROGRAMLISTING"> -// KParts::ReadOnlyPart *createReadOnlyPart (const QString& lib, QObject *parent, -// const QString& name, const char *className, -// const QStringList &args) +// KParts::ReadOnlyPart *createReadOnlyPart (const TQString& lib, TQObject *parent, +// const TQString& name, const char *className, +// const TQStringList &args) // { // KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib); // @@ -246,16 +246,16 @@ protected slots: // 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 ()); +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 QString& lib, QObject *parent, -// const QString& name, const char *className, -// const QStringList &args) +// KParts::ReadWritePart *createReadWritePart (const TQString& lib, TQObject *parent, +// const TQString& name, const char *className, +// const TQStringList &args) // { // KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib); // @@ -277,15 +277,15 @@ KParts::ReadOnlyPart* createReadOnlyPart (const QString&, QObject* = 0, const QS // 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 ()); +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 QString& lib, QObject *parent, const QString& name, const char *className, - const QStringList &args) +KParts::ReadOnlyPart *createReadOnlyPart (const TQString& lib, TQObject *parent, const TQString& name, const char *className, + const TQStringList &args) { KParts::ReadOnlyPart *res = NULL; @@ -297,8 +297,8 @@ KParts::ReadOnlyPart *createReadOnlyPart (const QString& lib, QObject *parent, c return res; } -KParts::ReadWritePart *createReadWritePart (const QString& lib, QObject *parent, const QString& name, const char *className, - const QStringList &args) +KParts::ReadWritePart *createReadWritePart (const TQString& lib, TQObject *parent, const TQString& name, const char *className, + const TQStringList &args) { KParts::ReadWritePart *res = NULL; diff --git a/sip/kparts/partmanager.sip b/sip/kparts/partmanager.sip index 4865323..98f3f5e 100644 --- a/sip/kparts/partmanager.sip +++ b/sip/kparts/partmanager.sip @@ -26,7 +26,7 @@ namespace KParts { -class PartManager : QObject +class PartManager : TQObject { %TypeHeaderCode #include <partmanager.h> @@ -54,8 +54,8 @@ public: %End - PartManager (QWidget* /TransferThis/, const char* = 0); - PartManager (QWidget*, QObject* /TransferThis/, const char* = 0); + 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); @@ -68,19 +68,19 @@ public: short activationButtonMask () const; %End - virtual bool eventFilter (QObject*, QEvent*); + 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*, QWidget* = 0); + virtual void setActivePart (KParts::Part*, TQWidget* = 0); virtual KParts::Part* activePart () const; - virtual QWidget* activeWidget () const; - virtual void setSelectedPart (KParts::Part*, QWidget* = 0); + virtual TQWidget* activeWidget () const; + virtual void setSelectedPart (KParts::Part*, TQWidget* = 0); virtual KParts::Part* selectedPart () const; - virtual QWidget* selectedWidget () const; - const QPtrList<KParts::Part>* parts () const; - void addManagedTopLevelWidget (const QWidget*); - void removeManagedTopLevelWidget (const QWidget*); + 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; @@ -109,7 +109,7 @@ protected: -%MappedType QPtrList<KParts::Part> +%MappedType TQPtrList<KParts::Part> //converts a Python list of KParts.Part { %TypeHeaderCode @@ -129,7 +129,7 @@ protected: // Get it. - QPtrList<KParts::Part> *cpplist = (QPtrList<KParts::Part> *)sipCpp; + TQPtrList<KParts::Part> *cpplist = (TQPtrList<KParts::Part> *)sipCpp; KParts::Part *cpp; PyObject *inst; @@ -151,7 +151,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QPtrList<KParts::Part> *cpplist = new QPtrList<KParts::Part>; + TQPtrList<KParts::Part> *cpplist = new TQPtrList<KParts::Part>; PyObject *elem; KParts::Part *cpp; diff --git a/sip/kparts/plugin.sip b/sip/kparts/plugin.sip index 145b6f2..b4957dd 100644 --- a/sip/kparts/plugin.sip +++ b/sip/kparts/plugin.sip @@ -26,7 +26,7 @@ namespace KParts { -class Plugin : QObject, KXMLGUIClient +class Plugin : TQObject, KXMLGUIClient { %TypeHeaderCode #include <plugin.h> @@ -39,30 +39,30 @@ public: { public: - QString m_relXMLFileName; - QString m_absXMLFileName; - QDomDocument m_document; + TQString m_relXMLFileName; + TQString m_absXMLFileName; + TQDomDocument 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*); + Plugin (TQObject* /TransferThis/ = 0, const char* = 0); + virtual TQString xmlFile () const; + virtual TQString localXMLFile () const; + static void loadPlugins (TQObject* /Transfer/, const KInstance*); + static void loadPlugins (TQObject* /Transfer/, const TQValueList<KParts::Plugin::PluginInfo>&); + static void loadPlugins (TQObject* /Transfer/, const TQValueList<KParts::Plugin::PluginInfo>&, const KInstance*); %If ( KDE_3_1_0 - ) - static void loadPlugins (QObject* /Transfer/, KXMLGUIClient*, KInstance*, bool = 1); + static void loadPlugins (TQObject* /Transfer/, KXMLGUIClient*, KInstance*, bool = 1); %End - static QPtrList<KParts::Plugin> pluginObjects (QObject* /Transfer/); + static TQPtrList<KParts::Plugin> pluginObjects (TQObject* /Transfer/); protected: - static QValueList<KParts::Plugin::PluginInfo> pluginInfos (const KInstance*); - static KParts::Plugin* loadPlugin (QObject* /Transfer/, const char*); + static TQValueList<KParts::Plugin::PluginInfo> pluginInfos (const KInstance*); + static KParts::Plugin* loadPlugin (TQObject* /Transfer/, const char*); virtual void setInstance (KInstance*); }; // class Plugin @@ -71,7 +71,7 @@ protected: -%MappedType QValueList<KParts::Plugin::PluginInfo> +%MappedType TQValueList<KParts::Plugin::PluginInfo> //converts a Python list of KParts.Plugin.PluginInfo { %TypeHeaderCode @@ -87,11 +87,11 @@ protected: if ((pylist = PyList_New(0)) == NULL) return NULL; - QValueList<KParts::Plugin::PluginInfo> *cpplist = (QValueList<KParts::Plugin::PluginInfo> *)sipCpp; + TQValueList<KParts::Plugin::PluginInfo> *cpplist = (TQValueList<KParts::Plugin::PluginInfo> *)sipCpp; PyObject *inst; // Get it. - QValueList<KParts::Plugin::PluginInfo>::Iterator 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) @@ -110,7 +110,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QValueList<KParts::Plugin::PluginInfo> *cpplist = new QValueList<KParts::Plugin::PluginInfo>; + TQValueList<KParts::Plugin::PluginInfo> *cpplist = new TQValueList<KParts::Plugin::PluginInfo>; PyObject *elem; KParts::Plugin::PluginInfo *cpp; @@ -138,7 +138,7 @@ protected: }; -%MappedType QPtrList<KParts::Plugin> +%MappedType TQPtrList<KParts::Plugin> //converts a Python list of KParts.Plugin { %TypeHeaderCode @@ -158,7 +158,7 @@ protected: // Get it. - QPtrList<KParts::Plugin> *cpplist = (QPtrList<KParts::Plugin> *)sipCpp; + TQPtrList<KParts::Plugin> *cpplist = (TQPtrList<KParts::Plugin> *)sipCpp; KParts::Plugin *cpp; PyObject *inst; @@ -180,7 +180,7 @@ protected: if (sipIsErr == NULL) return PyList_Check(sipPy); - QPtrList<KParts::Plugin> *cpplist = new QPtrList<KParts::Plugin>; + TQPtrList<KParts::Plugin> *cpplist = new TQPtrList<KParts::Plugin>; PyObject *elem; KParts::Plugin *cpp; diff --git a/sip/kparts/statusbarextension.sip b/sip/kparts/statusbarextension.sip index 99e5129..1a43377 100644 --- a/sip/kparts/statusbarextension.sip +++ b/sip/kparts/statusbarextension.sip @@ -28,7 +28,7 @@ namespace KParts { -class StatusBarExtension : QObject +class StatusBarExtension : TQObject { %TypeHeaderCode #include <statusbarextension.h> @@ -37,12 +37,12 @@ class StatusBarExtension : QObject public: StatusBarExtension (KParts::ReadOnlyPart* /TransferThis/, const char* = 0); - void addStatusBarItem (QWidget*, int, bool); - void removeStatusBarItem (QWidget*); + void addStatusBarItem (TQWidget*, int, bool); + void removeStatusBarItem (TQWidget*); KStatusBar* statusBar () const; void setStatusBar (KStatusBar*); - static KParts::StatusBarExtension* childObject (QObject*); - virtual bool eventFilter (QObject*, QEvent*); + static KParts::StatusBarExtension* childObject (TQObject*); + virtual bool eventFilter (TQObject*, TQEvent*); }; // class StatusBarExtension |