summaryrefslogtreecommitdiffstats
path: root/sip/kparts/browserextension.sip
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-03 22:23:44 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-03 22:23:44 -0600
commit203ba231d0276943aae36111f9ec1e949f3c6a4c (patch)
treef039f7a5b5fc2da88a96876971bac580d87f6788 /sip/kparts/browserextension.sip
parentfd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff)
downloadpytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz
pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip
Initial TQt conversion
Diffstat (limited to 'sip/kparts/browserextension.sip')
-rw-r--r--sip/kparts/browserextension.sip142
1 files changed, 71 insertions, 71 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;