diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kdejava/koala/kdejava/KHTMLPart.cpp | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kdejava/koala/kdejava/KHTMLPart.cpp')
-rw-r--r-- | kdejava/koala/kdejava/KHTMLPart.cpp | 362 |
1 files changed, 181 insertions, 181 deletions
diff --git a/kdejava/koala/kdejava/KHTMLPart.cpp b/kdejava/koala/kdejava/KHTMLPart.cpp index 32db7384..9d6295f7 100644 --- a/kdejava/koala/kdejava/KHTMLPart.cpp +++ b/kdejava/koala/kdejava/KHTMLPart.cpp @@ -22,15 +22,15 @@ class KHTMLPartJBridge : public KHTMLPart { public: - KHTMLPartJBridge(TQWidget* arg1,const char* arg2,TQObject* arg3,const char* arg4,KHTMLPart::GUIProfile arg5) : KHTMLPart(arg1,arg2,arg3,arg4,arg5) {}; - KHTMLPartJBridge(TQWidget* arg1,const char* arg2,TQObject* arg3,const char* arg4) : KHTMLPart(arg1,arg2,arg3,arg4) {}; - KHTMLPartJBridge(TQWidget* arg1,const char* arg2,TQObject* arg3) : KHTMLPart(arg1,arg2,arg3) {}; - KHTMLPartJBridge(TQWidget* arg1,const char* arg2) : KHTMLPart(arg1,arg2) {}; - KHTMLPartJBridge(TQWidget* arg1) : KHTMLPart(arg1) {}; + KHTMLPartJBridge(TTQWidget* arg1,const char* arg2,TTQObject* arg3,const char* arg4,KHTMLPart::GUIProfile arg5) : KHTMLPart(arg1,arg2,arg3,arg4,arg5) {}; + KHTMLPartJBridge(TTQWidget* arg1,const char* arg2,TTQObject* arg3,const char* arg4) : KHTMLPart(arg1,arg2,arg3,arg4) {}; + KHTMLPartJBridge(TTQWidget* arg1,const char* arg2,TTQObject* arg3) : KHTMLPart(arg1,arg2,arg3) {}; + KHTMLPartJBridge(TTQWidget* arg1,const char* arg2) : KHTMLPart(arg1,arg2) {}; + KHTMLPartJBridge(TTQWidget* arg1) : KHTMLPart(arg1) {}; KHTMLPartJBridge() : KHTMLPart() {}; - KHTMLPartJBridge(KHTMLView* arg1,TQObject* arg2,const char* arg3,KHTMLPart::GUIProfile arg4) : KHTMLPart(arg1,arg2,arg3,arg4) {}; - KHTMLPartJBridge(KHTMLView* arg1,TQObject* arg2,const char* arg3) : KHTMLPart(arg1,arg2,arg3) {}; - KHTMLPartJBridge(KHTMLView* arg1,TQObject* arg2) : KHTMLPart(arg1,arg2) {}; + KHTMLPartJBridge(KHTMLView* arg1,TTQObject* arg2,const char* arg3,KHTMLPart::GUIProfile arg4) : KHTMLPart(arg1,arg2,arg3,arg4) {}; + KHTMLPartJBridge(KHTMLView* arg1,TTQObject* arg2,const char* arg3) : KHTMLPart(arg1,arg2,arg3) {}; + KHTMLPartJBridge(KHTMLView* arg1,TTQObject* arg2) : KHTMLPart(arg1,arg2) {}; KHTMLPartJBridge(KHTMLView* arg1) : KHTMLPart(arg1) {}; void public_begin() { KHTMLPart::begin(); @@ -40,14 +40,14 @@ public: KHTMLPart::end(); return; } - KURL protected_completeURL(const TQString& arg1) { + KURL protected_completeURL(const TTQString& arg1) { return (KURL) KHTMLPart::completeURL(arg1); } - void protected_htmlError(int arg1,const TQString& arg2,const KURL& arg3) { + void protected_htmlError(int arg1,const TTQString& arg2,const KURL& arg3) { KHTMLPart::htmlError(arg1,arg2,arg3); return; } - void protected_customEvent(TQCustomEvent* arg1) { + void protected_customEvent(TTQCustomEvent* arg1) { KHTMLPart::customEvent(arg1); return; } @@ -58,45 +58,45 @@ public: bool protected_openFile() { return (bool) KHTMLPart::openFile(); } - void protected_urlSelected(const TQString& arg1,int arg2,int arg3,const TQString& arg4,KParts::URLArgs arg5) { + void protected_urlSelected(const TTQString& arg1,int arg2,int arg3,const TTQString& arg4,KParts::URLArgs arg5) { KHTMLPart::urlSelected(arg1,arg2,arg3,arg4,arg5); return; } - void protected_urlSelected(const TQString& arg1,int arg2,int arg3,const TQString& arg4) { + void protected_urlSelected(const TTQString& arg1,int arg2,int arg3,const TTQString& arg4) { KHTMLPart::urlSelected(arg1,arg2,arg3,arg4); return; } - KParts::ReadOnlyPart* protected_createPart(TQWidget* arg1,const char* arg2,TQObject* arg3,const char* arg4,const TQString& arg5,TQString& arg6,TQStringList& arg7,const TQStringList& arg8) { + KParts::ReadOnlyPart* protected_createPart(TTQWidget* arg1,const char* arg2,TTQObject* arg3,const char* arg4,const TTQString& arg5,TTQString& arg6,TTQStringList& arg7,const TTQStringList& arg8) { return (KParts::ReadOnlyPart*) KHTMLPart::createPart(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); } - bool protected_pluginPageQuestionAsked(const TQString& arg1) { + bool protected_pluginPageQuestionAsked(const TTQString& arg1) { return (bool) KHTMLPart::pluginPageQuestionAsked(arg1); } - void protected_setPluginPageQuestionAsked(const TQString& arg1) { + void protected_setPluginPageQuestionAsked(const TTQString& arg1) { KHTMLPart::setPluginPageQuestionAsked(arg1); return; } - bool protected_doOpenStream(const TQString& arg1) { + bool protected_doOpenStream(const TTQString& arg1) { return (bool) KHTMLPart::doOpenStream(arg1); } - bool protected_doWriteStream(const TQByteArray& arg1) { + bool protected_doWriteStream(const TTQByteArray& arg1) { return (bool) KHTMLPart::doWriteStream(arg1); } bool protected_doCloseStream() { return (bool) KHTMLPart::doCloseStream(); } ~KHTMLPartJBridge() {QtSupport::qtKeyDeleted(this);} - void removeChild(TQObject* arg1) { - if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TQObject")) { - TQObject::removeChild(arg1); + void removeChild(TTQObject* arg1) { + if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TTQObject")) { + TTQObject::removeChild(arg1); } return; } bool doCloseStream() { return QtSupport::booleanDelegate(this,"doCloseStream"); } - void restoreState(TQDataStream& arg1) { - if (!QtSupport::eventDelegate(this,"restoreState",(void*)&arg1,"org.kde.qt.TQDataStream")) { + void restoreState(TTQDataStream& arg1) { + if (!QtSupport::eventDelegate(this,"restoreState",(void*)&arg1,"org.kde.qt.TTQDataStream")) { KHTMLPart::restoreState(arg1); } return; @@ -125,21 +125,21 @@ public: } return; } - void setWidget(TQWidget* arg1) { - if (!QtSupport::eventDelegate(this,"setWidget",(void*)arg1,"org.kde.qt.TQWidget")) { + void setWidget(TTQWidget* arg1) { + if (!QtSupport::eventDelegate(this,"setWidget",(void*)arg1,"org.kde.qt.TTQWidget")) { Part::setWidget(arg1); } return; } - void customEvent(TQCustomEvent* arg1) { - if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TQCustomEvent")) { + void customEvent(TTQCustomEvent* arg1) { + if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TTQCustomEvent")) { KHTMLPart::customEvent(arg1); } return; } - void timerEvent(TQTimerEvent* arg1) { - if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TQTimerEvent")) { - TQObject::timerEvent(arg1); + void timerEvent(TTQTimerEvent* arg1) { + if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TTQTimerEvent")) { + TTQObject::timerEvent(arg1); } return; } @@ -149,14 +149,14 @@ public: } return; } - void childEvent(TQChildEvent* arg1) { - if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TQChildEvent")) { - TQObject::childEvent(arg1); + void childEvent(TTQChildEvent* arg1) { + if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TTQChildEvent")) { + TTQObject::childEvent(arg1); } return; } - void embed(TQWidget* arg1) { - if (!QtSupport::eventDelegate(this,"embed",(void*)arg1,"org.kde.qt.TQWidget")) { + void embed(TTQWidget* arg1) { + if (!QtSupport::eventDelegate(this,"embed",(void*)arg1,"org.kde.qt.TTQWidget")) { Part::embed(arg1); } return; @@ -176,8 +176,8 @@ public: } return; } - void saveState(TQDataStream& arg1) { - if (!QtSupport::eventDelegate(this,"saveState",(void*)&arg1,"org.kde.qt.TQDataStream")) { + void saveState(TTQDataStream& arg1) { + if (!QtSupport::eventDelegate(this,"saveState",(void*)&arg1,"org.kde.qt.TTQDataStream")) { KHTMLPart::saveState(arg1); } return; @@ -185,15 +185,15 @@ public: bool openFile() { return QtSupport::booleanDelegate(this,"openFile"); } - void insertChild(TQObject* arg1) { - if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TQObject")) { - TQObject::insertChild(arg1); + void insertChild(TTQObject* arg1) { + if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TTQObject")) { + TTQObject::insertChild(arg1); } return; } - bool eventFilter(TQObject* object,TQEvent* event) { + bool eventFilter(TTQObject* object,TTQEvent* event) { if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KHTMLPart",object,event)) { - return TQObject::eventFilter(object,event); + return TTQObject::eventFilter(object,event); } else { return TRUE; } @@ -231,9 +231,9 @@ Java_org_kde_koala_KHTMLPart_backgroundURL(JNIEnv* env, jobject obj) JNIEXPORT jstring JNICALL Java_org_kde_koala_KHTMLPart_baseTarget(JNIEnv* env, jobject obj) { - TQString _qstring; + TTQString _qstring; _qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->baseTarget(); - return QtSupport::fromQString(env, &_qstring); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jobject JNICALL @@ -310,22 +310,22 @@ Java_org_kde_koala_KHTMLPart_closeURL(JNIEnv* env, jobject obj) JNIEXPORT jobject JNICALL Java_org_kde_koala_KHTMLPart_completeURL(JNIEnv* env, jobject obj, jstring url) { -static TQString* _qstring_url = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_completeURL((const TQString&)*(TQString*) QtSupport::toQString(env, url, &_qstring_url))), "org.kde.koala.KURL", TRUE); +static TTQString* _qstring_url = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_completeURL((const TTQString&)*(TTQString*) QtSupport::toTQString(env, url, &_qstring_url))), "org.kde.koala.KURL", TRUE); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_koala_KHTMLPart_createPart(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetName, jobject parent, jstring name, jstring mimetype, jobject serviceName, jobjectArray serviceTypes, jobjectArray params) { -static TQCString* _qstring_widgetName = 0; -static TQCString* _qstring_name = 0; -static TQString* _qstring_mimetype = 0; -static TQString* _qstring_serviceName = 0; -static TQStringList* _qlist_serviceTypes = 0; -static TQStringList* _qlist_params = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_createPart((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toQString(env, mimetype, &_qstring_mimetype), (TQString&)*(TQString*) QtSupport::toQStringFromStringBuffer(env, serviceName, &_qstring_serviceName), (TQStringList&)*(TQStringList*) QtSupport::toQStringList(env, serviceTypes, &_qlist_serviceTypes), (const TQStringList&)*(TQStringList*) QtSupport::toQStringList(env, params, &_qlist_params)), "org.kde.koala.ReadOnlyPart"); - QtSupport::fromQStringToStringBuffer(env, _qstring_serviceName, serviceName); +static TTQCString* _qstring_widgetName = 0; +static TTQCString* _qstring_name = 0; +static TTQString* _qstring_mimetype = 0; +static TTQString* _qstring_serviceName = 0; +static TTQStringList* _qlist_serviceTypes = 0; +static TTQStringList* _qlist_params = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_createPart((TTQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (TTQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, mimetype, &_qstring_mimetype), (TTQString&)*(TTQString*) QtSupport::toTQStringFromStringBuffer(env, serviceName, &_qstring_serviceName), (TTQStringList&)*(TTQStringList*) QtSupport::toTQStringList(env, serviceTypes, &_qlist_serviceTypes), (const TTQStringList&)*(TTQStringList*) QtSupport::toTQStringList(env, params, &_qlist_params)), "org.kde.koala.ReadOnlyPart"); + QtSupport::fromTQStringToStringBuffer(env, _qstring_serviceName, serviceName); return xret; } @@ -339,16 +339,16 @@ Java_org_kde_koala_KHTMLPart_currentFrame(JNIEnv* env, jobject obj) JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_customEvent(JNIEnv* env, jobject obj, jobject event) { - ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_customEvent((TQCustomEvent*) QtSupport::getQt(env, event)); + ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_customEvent((TTQCustomEvent*) QtSupport::getQt(env, event)); return; } JNIEXPORT jstring JNICALL Java_org_kde_koala_KHTMLPart_dcopObjectId(JNIEnv* env, jobject obj) { - TQCString _qstring; + TTQCString _qstring; _qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->dcopObjectId(); - return QtSupport::fromQCString(env, &_qstring); + return QtSupport::fromTQCString(env, &_qstring); } JNIEXPORT void JNICALL @@ -375,25 +375,25 @@ Java_org_kde_koala_KHTMLPart_doCloseStream(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_koala_KHTMLPart_doOpenStream(JNIEnv* env, jobject obj, jstring mimeType) { -static TQString* _qstring_mimeType = 0; - jboolean xret = (jboolean) ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_doOpenStream((const TQString&)*(TQString*) QtSupport::toQString(env, mimeType, &_qstring_mimeType)); +static TTQString* _qstring_mimeType = 0; + jboolean xret = (jboolean) ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_doOpenStream((const TTQString&)*(TTQString*) QtSupport::toTQString(env, mimeType, &_qstring_mimeType)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KHTMLPart_doWriteStream(JNIEnv* env, jobject obj, jbyteArray data) { -static TQByteArray* _qbyteArray_data = 0; - jboolean xret = (jboolean) ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_doWriteStream((const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data)); +static TTQByteArray* _qbyteArray_data = 0; + jboolean xret = (jboolean) ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_doWriteStream((const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data)); return xret; } JNIEXPORT jstring JNICALL Java_org_kde_koala_KHTMLPart_documentSource(JNIEnv* env, jobject obj) { - TQString _qstring; + TTQString _qstring; _qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->documentSource(); - return QtSupport::fromQString(env, &_qstring); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jobject JNICALL @@ -434,9 +434,9 @@ Java_org_kde_koala_KHTMLPart_enablePlugins(JNIEnv* env, jobject obj, jboolean e) JNIEXPORT jstring JNICALL Java_org_kde_koala_KHTMLPart_encoding(JNIEnv* env, jobject obj) { - TQString _qstring; + TTQString _qstring; _qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->encoding(); - return QtSupport::fromQString(env, &_qstring); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT void JNICALL @@ -449,8 +449,8 @@ Java_org_kde_koala_KHTMLPart_end(JNIEnv* env, jobject obj) JNIEXPORT jobject JNICALL Java_org_kde_koala_KHTMLPart_executeScript(JNIEnv* env, jobject obj, jobject n, jstring script) { -static TQString* _qstring_script = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((KHTMLPart*) QtSupport::getQt(env, obj))->executeScript((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, n), (const TQString&)*(TQString*) QtSupport::toQString(env, script, &_qstring_script))), "org.kde.qt.TQVariant", TRUE); +static TTQString* _qstring_script = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQVariant(((KHTMLPart*) QtSupport::getQt(env, obj))->executeScript((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, n), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, script, &_qstring_script))), "org.kde.qt.TTQVariant", TRUE); return xret; } @@ -467,24 +467,24 @@ Java_org_kde_koala_KHTMLPart_finalize(JNIEnv* env, jobject obj) JNIEXPORT jobject JNICALL Java_org_kde_koala_KHTMLPart_findFrameParent(JNIEnv* env, jobject obj, jobject callingPart, jstring f) { -static TQString* _qstring_f = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->findFrameParent((KParts::ReadOnlyPart*) QtSupport::getQt(env, callingPart), (const TQString&)*(TQString*) QtSupport::toQString(env, f, &_qstring_f)), "org.kde.koala.KHTMLPart"); +static TTQString* _qstring_f = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->findFrameParent((KParts::ReadOnlyPart*) QtSupport::getQt(env, callingPart), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, f, &_qstring_f)), "org.kde.koala.KHTMLPart"); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_koala_KHTMLPart_findFramePart(JNIEnv* env, jobject obj, jstring f) { -static TQString* _qstring_f = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->findFramePart((const TQString&)*(TQString*) QtSupport::toQString(env, f, &_qstring_f)), "org.kde.koala.ReadOnlyPart"); +static TTQString* _qstring_f = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->findFramePart((const TTQString&)*(TTQString*) QtSupport::toTQString(env, f, &_qstring_f)), "org.kde.koala.ReadOnlyPart"); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_koala_KHTMLPart_findFrame(JNIEnv* env, jobject obj, jstring f) { -static TQString* _qstring_f = 0; - jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->findFrame((const TQString&)*(TQString*) QtSupport::toQString(env, f, &_qstring_f)), "org.kde.koala.KHTMLPart"); +static TTQString* _qstring_f = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->findFrame((const TTQString&)*(TTQString*) QtSupport::toTQString(env, f, &_qstring_f)), "org.kde.koala.KHTMLPart"); return xret; } @@ -519,24 +519,24 @@ Java_org_kde_koala_KHTMLPart_findText__(JNIEnv* env, jobject obj) JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_findText__Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring str, jlong options) { -static TQString* _qstring_str = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->findText((const TQString&)*(TQString*) QtSupport::toQString(env, str, &_qstring_str), (long) options); +static TTQString* _qstring_str = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->findText((const TTQString&)*(TTQString*) QtSupport::toTQString(env, str, &_qstring_str), (long) options); return; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_findText__Ljava_lang_String_2JLorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jstring str, jlong options, jobject parent) { -static TQString* _qstring_str = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->findText((const TQString&)*(TQString*) QtSupport::toQString(env, str, &_qstring_str), (long) options, (TQWidget*) QtSupport::getQt(env, parent)); +static TTQString* _qstring_str = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->findText((const TTQString&)*(TTQString*) QtSupport::toTQString(env, str, &_qstring_str), (long) options, (TTQWidget*) QtSupport::getQt(env, parent)); return; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_findText__Ljava_lang_String_2JLorg_kde_qt_QWidget_2Lorg_kde_koala_KFindDialog_2(JNIEnv* env, jobject obj, jstring str, jlong options, jobject parent, jobject findDialog) { -static TQString* _qstring_str = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->findText((const TQString&)*(TQString*) QtSupport::toQString(env, str, &_qstring_str), (long) options, (TQWidget*) QtSupport::getQt(env, parent), (KFindDialog*) QtSupport::getQt(env, findDialog)); +static TTQString* _qstring_str = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->findText((const TTQString&)*(TTQString*) QtSupport::toTQString(env, str, &_qstring_str), (long) options, (TTQWidget*) QtSupport::getQt(env, parent), (KFindDialog*) QtSupport::getQt(env, findDialog)); return; } @@ -550,24 +550,24 @@ Java_org_kde_koala_KHTMLPart_formNotification(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_koala_KHTMLPart_frameExists(JNIEnv* env, jobject obj, jstring frameName) { -static TQString* _qstring_frameName = 0; - jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->frameExists((const TQString&)*(TQString*) QtSupport::toQString(env, frameName, &_qstring_frameName)); +static TTQString* _qstring_frameName = 0; + jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->frameExists((const TTQString&)*(TTQString*) QtSupport::toTQString(env, frameName, &_qstring_frameName)); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_koala_KHTMLPart_frameNames(JNIEnv* env, jobject obj) { - TQStringList _qlist; + TTQStringList _qlist; _qlist = ((KHTMLPart*) QtSupport::getQt(env, obj))->frameNames(); - return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist); + return (jobject) QtSupport::arrayWithTQStringList(env, (TTQStringList*) &_qlist); } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KHTMLPart_gotoAnchor(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->gotoAnchor((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name)); +static TTQString* _qstring_name = 0; + jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->gotoAnchor((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); return xret; } @@ -602,8 +602,8 @@ Java_org_kde_koala_KHTMLPart_htmlDocument(JNIEnv* env, jobject obj) JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_htmlError(JNIEnv* env, jobject obj, jint errorCode, jstring text, jobject reqUrl) { -static TQString* _qstring_text = 0; - ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_htmlError((int) errorCode, (const TQString&)*(TQString*) QtSupport::toQString(env, text, &_qstring_text), (const KURL&)*(const KURL*) QtSupport::getQt(env, reqUrl)); +static TTQString* _qstring_text = 0; + ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_htmlError((int) errorCode, (const TTQString&)*(TTQString*) QtSupport::toTQString(env, text, &_qstring_text), (const KURL&)*(const KURL*) QtSupport::getQt(env, reqUrl)); return; } @@ -658,31 +658,31 @@ Java_org_kde_koala_KHTMLPart_javaEnabled(JNIEnv* env, jobject obj) JNIEXPORT jstring JNICALL Java_org_kde_koala_KHTMLPart_jsDefaultStatusBarText(JNIEnv* env, jobject obj) { - TQString _qstring; + TTQString _qstring; _qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->jsDefaultStatusBarText(); - return QtSupport::fromQString(env, &_qstring); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KHTMLPart_jsStatusBarText(JNIEnv* env, jobject obj) { - TQString _qstring; + TTQString _qstring; _qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->jsStatusBarText(); - return QtSupport::fromQString(env, &_qstring); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KHTMLPart_lastModified(JNIEnv* env, jobject obj) { - TQString _qstring; + TTQString _qstring; _qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->lastModified(); - return QtSupport::fromQString(env, &_qstring); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jobject JNICALL Java_org_kde_koala_KHTMLPart_metaObject(JNIEnv* env, jobject obj) { - jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TQMetaObject"); + jobject xret = QtSupport::objectForQtKey(env, (void*)((KHTMLPart*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TTQMetaObject"); return xret; } @@ -717,7 +717,7 @@ JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_koala_KHTMLView_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject view, jobject parent) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KHTMLPartJBridge((KHTMLView*) QtSupport::getQt(env, view), (TQObject*) QtSupport::getQt(env, parent))); + QtSupport::setQt(env, obj, new KHTMLPartJBridge((KHTMLView*) QtSupport::getQt(env, view), (TTQObject*) QtSupport::getQt(env, parent))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -726,9 +726,9 @@ Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_koala_KHTMLView_2Lorg_kde_qt JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_koala_KHTMLView_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject view, jobject parent, jstring name) { -static TQCString* _qstring_name = 0; +static TTQCString* _qstring_name = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KHTMLPartJBridge((KHTMLView*) QtSupport::getQt(env, view), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name))); + QtSupport::setQt(env, obj, new KHTMLPartJBridge((KHTMLView*) QtSupport::getQt(env, view), (TTQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -737,9 +737,9 @@ static TQCString* _qstring_name = 0; JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_koala_KHTMLView_2Lorg_kde_qt_QObject_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject view, jobject parent, jstring name, jint prof) { -static TQCString* _qstring_name = 0; +static TTQCString* _qstring_name = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KHTMLPartJBridge((KHTMLView*) QtSupport::getQt(env, view), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (KHTMLPart::GUIProfile) prof)); + QtSupport::setQt(env, obj, new KHTMLPartJBridge((KHTMLView*) QtSupport::getQt(env, view), (TTQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (KHTMLPart::GUIProfile) prof)); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -749,7 +749,7 @@ JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jobject parentWidget) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KHTMLPartJBridge((TQWidget*) QtSupport::getQt(env, parentWidget))); + QtSupport::setQt(env, obj, new KHTMLPartJBridge((TTQWidget*) QtSupport::getQt(env, parentWidget))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -758,9 +758,9 @@ Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_qt_QWidget_2(JNIEnv* env, jo JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetname) { -static TQCString* _qstring_widgetname = 0; +static TTQCString* _qstring_widgetname = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KHTMLPartJBridge((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetname, &_qstring_widgetname))); + QtSupport::setQt(env, obj, new KHTMLPartJBridge((TTQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetname, &_qstring_widgetname))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -769,9 +769,9 @@ static TQCString* _qstring_widgetname = 0; JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetname, jobject parent) { -static TQCString* _qstring_widgetname = 0; +static TTQCString* _qstring_widgetname = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KHTMLPartJBridge((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetname, &_qstring_widgetname), (TQObject*) QtSupport::getQt(env, parent))); + QtSupport::setQt(env, obj, new KHTMLPartJBridge((TTQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetname, &_qstring_widgetname), (TTQObject*) QtSupport::getQt(env, parent))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -780,10 +780,10 @@ static TQCString* _qstring_widgetname = 0; JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetname, jobject parent, jstring name) { -static TQCString* _qstring_widgetname = 0; -static TQCString* _qstring_name = 0; +static TTQCString* _qstring_widgetname = 0; +static TTQCString* _qstring_name = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KHTMLPartJBridge((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetname, &_qstring_widgetname), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name))); + QtSupport::setQt(env, obj, new KHTMLPartJBridge((TTQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetname, &_qstring_widgetname), (TTQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -792,10 +792,10 @@ static TQCString* _qstring_name = 0; JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_newKHTMLPart__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetname, jobject parent, jstring name, jint prof) { -static TQCString* _qstring_widgetname = 0; -static TQCString* _qstring_name = 0; +static TTQCString* _qstring_widgetname = 0; +static TTQCString* _qstring_name = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KHTMLPartJBridge((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetname, &_qstring_widgetname), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (KHTMLPart::GUIProfile) prof)); + QtSupport::setQt(env, obj, new KHTMLPartJBridge((TTQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetname, &_qstring_widgetname), (TTQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (KHTMLPart::GUIProfile) prof)); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -846,22 +846,22 @@ Java_org_kde_koala_KHTMLPart_openURL(JNIEnv* env, jobject obj, jobject url) JNIEXPORT jstring JNICALL Java_org_kde_koala_KHTMLPart_pageReferrer(JNIEnv* env, jobject obj) { - TQString _qstring; + TTQString _qstring; _qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->pageReferrer(); - return QtSupport::fromQString(env, &_qstring); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_paint__Lorg_kde_qt_QPainter_2Lorg_kde_qt_QRect_2(JNIEnv* env, jobject obj, jobject arg1, jobject arg2) { - ((KHTMLPart*) QtSupport::getQt(env, obj))->paint((TQPainter*) QtSupport::getQt(env, arg1), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg2)); + ((KHTMLPart*) QtSupport::getQt(env, obj))->paint((TTQPainter*) QtSupport::getQt(env, arg1), (const TTQRect&)*(const TTQRect*) QtSupport::getQt(env, arg2)); return; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_paint__Lorg_kde_qt_QPainter_2Lorg_kde_qt_QRect_2I(JNIEnv* env, jobject obj, jobject arg1, jobject arg2, jint arg3) { - ((KHTMLPart*) QtSupport::getQt(env, obj))->paint((TQPainter*) QtSupport::getQt(env, arg1), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg2), (int) arg3); + ((KHTMLPart*) QtSupport::getQt(env, obj))->paint((TTQPainter*) QtSupport::getQt(env, arg1), (const TTQRect&)*(const TTQRect*) QtSupport::getQt(env, arg2), (int) arg3); return; } @@ -869,7 +869,7 @@ JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_paint__Lorg_kde_qt_QPainter_2Lorg_kde_qt_QRect_2I_3Z(JNIEnv* env, jobject obj, jobject arg1, jobject arg2, jint arg3, jbooleanArray arg4) { bool* _bool_arg4 = QtSupport::toBooleanPtr(env, arg4); - ((KHTMLPart*) QtSupport::getQt(env, obj))->paint((TQPainter*) QtSupport::getQt(env, arg1), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg2), (int) arg3, (bool*) _bool_arg4); + ((KHTMLPart*) QtSupport::getQt(env, obj))->paint((TTQPainter*) QtSupport::getQt(env, arg1), (const TTQRect&)*(const TTQRect*) QtSupport::getQt(env, arg2), (int) arg3, (bool*) _bool_arg4); env->SetBooleanArrayRegion(arg4, 0, 1, (jboolean*) _bool_arg4); return; } @@ -891,8 +891,8 @@ Java_org_kde_koala_KHTMLPart_partManager(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_koala_KHTMLPart_pluginPageQuestionAsked(JNIEnv* env, jobject obj, jstring mimetype) { -static TQString* _qstring_mimetype = 0; - jboolean xret = (jboolean) ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_pluginPageQuestionAsked((const TQString&)*(TQString*) QtSupport::toQString(env, mimetype, &_qstring_mimetype)); +static TTQString* _qstring_mimetype = 0; + jboolean xret = (jboolean) ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_pluginPageQuestionAsked((const TTQString&)*(TTQString*) QtSupport::toTQString(env, mimetype, &_qstring_mimetype)); return xret; } @@ -906,18 +906,18 @@ Java_org_kde_koala_KHTMLPart_pluginsEnabled(JNIEnv* env, jobject obj) JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_preloadScript(JNIEnv* env, jobject obj, jstring url, jstring script) { -static TQString* _qstring_url = 0; -static TQString* _qstring_script = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->preloadScript((const TQString&)*(TQString*) QtSupport::toQString(env, url, &_qstring_url), (const TQString&)*(TQString*) QtSupport::toQString(env, script, &_qstring_script)); +static TTQString* _qstring_url = 0; +static TTQString* _qstring_script = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->preloadScript((const TTQString&)*(TTQString*) QtSupport::toTQString(env, url, &_qstring_url), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, script, &_qstring_script)); return; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_preloadStyleSheet(JNIEnv* env, jobject obj, jstring url, jstring stylesheet) { -static TQString* _qstring_url = 0; -static TQString* _qstring_stylesheet = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->preloadStyleSheet((const TQString&)*(TQString*) QtSupport::toQString(env, url, &_qstring_url), (const TQString&)*(TQString*) QtSupport::toQString(env, stylesheet, &_qstring_stylesheet)); +static TTQString* _qstring_url = 0; +static TTQString* _qstring_stylesheet = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->preloadStyleSheet((const TTQString&)*(TTQString*) QtSupport::toTQString(env, url, &_qstring_url), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, stylesheet, &_qstring_stylesheet)); return; } @@ -931,15 +931,15 @@ Java_org_kde_koala_KHTMLPart_prevAnchor(JNIEnv* env, jobject obj) JNIEXPORT jstring JNICALL Java_org_kde_koala_KHTMLPart_referrer(JNIEnv* env, jobject obj) { - TQString _qstring; + TTQString _qstring; _qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->referrer(); - return QtSupport::fromQString(env, &_qstring); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_restoreState(JNIEnv* env, jobject obj, jobject stream) { - ((KHTMLPart*) QtSupport::getQt(env, obj))->restoreState((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, stream)); + ((KHTMLPart*) QtSupport::getQt(env, obj))->restoreState((TTQDataStream&)*(TTQDataStream*) QtSupport::getQt(env, stream)); return; } @@ -953,23 +953,23 @@ Java_org_kde_koala_KHTMLPart_restored(JNIEnv* env, jobject obj) JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_saveState(JNIEnv* env, jobject obj, jobject stream) { - ((KHTMLPart*) QtSupport::getQt(env, obj))->saveState((TQDataStream&)*(TQDataStream*) QtSupport::getQt(env, stream)); + ((KHTMLPart*) QtSupport::getQt(env, obj))->saveState((TTQDataStream&)*(TTQDataStream*) QtSupport::getQt(env, stream)); return; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_scheduleRedirection__ILjava_lang_String_2(JNIEnv* env, jobject obj, jint delay, jstring url) { -static TQString* _qstring_url = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->scheduleRedirection((int) delay, (const TQString&)*(TQString*) QtSupport::toQString(env, url, &_qstring_url)); +static TTQString* _qstring_url = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->scheduleRedirection((int) delay, (const TTQString&)*(TTQString*) QtSupport::toTQString(env, url, &_qstring_url)); return; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_scheduleRedirection__ILjava_lang_String_2Z(JNIEnv* env, jobject obj, jint delay, jstring url, jboolean lockHistory) { -static TQString* _qstring_url = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->scheduleRedirection((int) delay, (const TQString&)*(TQString*) QtSupport::toQString(env, url, &_qstring_url), (bool) lockHistory); +static TTQString* _qstring_url = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->scheduleRedirection((int) delay, (const TTQString&)*(TTQString*) QtSupport::toTQString(env, url, &_qstring_url), (bool) lockHistory); return; } @@ -983,17 +983,17 @@ Java_org_kde_koala_KHTMLPart_selectAll(JNIEnv* env, jobject obj) JNIEXPORT jstring JNICALL Java_org_kde_koala_KHTMLPart_selectedTextAsHTML(JNIEnv* env, jobject obj) { - TQString _qstring; + TTQString _qstring; _qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->selectedTextAsHTML(); - return QtSupport::fromQString(env, &_qstring); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KHTMLPart_selectedText(JNIEnv* env, jobject obj) { - TQString _qstring; + TTQString _qstring; _qstring = ((KHTMLPart*) QtSupport::getQt(env, obj))->selectedText(); - return QtSupport::fromQString(env, &_qstring); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jobject JNICALL @@ -1062,8 +1062,8 @@ Java_org_kde_koala_KHTMLPart_setCaretVisible(JNIEnv* env, jobject obj, jboolean JNIEXPORT jboolean JNICALL Java_org_kde_koala_KHTMLPart_setCharset(JNIEnv* env, jobject obj, jstring arg1, jboolean arg2) { -static TQString* _qstring_arg1 = 0; - jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->setCharset((const TQString&)*(TQString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (bool) arg2); +static TTQString* _qstring_arg1 = 0; + jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->setCharset((const TTQString&)*(TTQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1), (bool) arg2); return xret; } @@ -1084,24 +1084,24 @@ Java_org_kde_koala_KHTMLPart_setEditable(JNIEnv* env, jobject obj, jboolean enab JNIEXPORT jboolean JNICALL Java_org_kde_koala_KHTMLPart_setEncoding__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->setEncoding((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name)); +static TTQString* _qstring_name = 0; + jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->setEncoding((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KHTMLPart_setEncoding__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring name, jboolean override) { -static TQString* _qstring_name = 0; - jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->setEncoding((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name), (bool) override); +static TTQString* _qstring_name = 0; + jboolean xret = (jboolean) ((KHTMLPart*) QtSupport::getQt(env, obj))->setEncoding((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name), (bool) override); return xret; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_setFixedFont(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->setFixedFont((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name)); +static TTQString* _qstring_name = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->setFixedFont((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); return; } @@ -1115,16 +1115,16 @@ Java_org_kde_koala_KHTMLPart_setFormNotification(JNIEnv* env, jobject obj, jint JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_setJSDefaultStatusBarText(JNIEnv* env, jobject obj, jstring text) { -static TQString* _qstring_text = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->setJSDefaultStatusBarText((const TQString&)*(TQString*) QtSupport::toQString(env, text, &_qstring_text)); +static TTQString* _qstring_text = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->setJSDefaultStatusBarText((const TTQString&)*(TTQString*) QtSupport::toTQString(env, text, &_qstring_text)); return; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_setJSStatusBarText(JNIEnv* env, jobject obj, jstring text) { -static TQString* _qstring_text = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->setJSStatusBarText((const TQString&)*(TQString*) QtSupport::toQString(env, text, &_qstring_text)); +static TTQString* _qstring_text = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->setJSStatusBarText((const TTQString&)*(TTQString*) QtSupport::toTQString(env, text, &_qstring_text)); return; } @@ -1159,8 +1159,8 @@ Java_org_kde_koala_KHTMLPart_setOnlyLocalReferences(JNIEnv* env, jobject obj, jb JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_setPluginPageQuestionAsked(JNIEnv* env, jobject obj, jstring mimetype) { -static TQString* _qstring_mimetype = 0; - ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_setPluginPageQuestionAsked((const TQString&)*(TQString*) QtSupport::toQString(env, mimetype, &_qstring_mimetype)); +static TTQString* _qstring_mimetype = 0; + ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_setPluginPageQuestionAsked((const TTQString&)*(TTQString*) QtSupport::toTQString(env, mimetype, &_qstring_mimetype)); return; } @@ -1181,8 +1181,8 @@ Java_org_kde_koala_KHTMLPart_setSelection(JNIEnv* env, jobject obj, jobject arg1 JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_setStandardFont(JNIEnv* env, jobject obj, jstring name) { -static TQString* _qstring_name = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->setStandardFont((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name)); +static TTQString* _qstring_name = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->setStandardFont((const TTQString&)*(TTQString*) QtSupport::toTQString(env, name, &_qstring_name)); return; } @@ -1203,15 +1203,15 @@ Java_org_kde_koala_KHTMLPart_setSuppressedPopupIndicator(JNIEnv* env, jobject ob JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_setURLCursor(JNIEnv* env, jobject obj, jobject c) { - ((KHTMLPart*) QtSupport::getQt(env, obj))->setURLCursor((const TQCursor&)*(const TQCursor*) QtSupport::getQt(env, c)); + ((KHTMLPart*) QtSupport::getQt(env, obj))->setURLCursor((const TTQCursor&)*(const TTQCursor*) QtSupport::getQt(env, c)); return; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_setUserStyleSheet__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring styleSheet) { -static TQString* _qstring_styleSheet = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->setUserStyleSheet((const TQString&)*(TQString*) QtSupport::toQString(env, styleSheet, &_qstring_styleSheet)); +static TTQString* _qstring_styleSheet = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->setUserStyleSheet((const TTQString&)*(TTQString*) QtSupport::toTQString(env, styleSheet, &_qstring_styleSheet)); return; } @@ -1267,36 +1267,36 @@ Java_org_kde_koala_KHTMLPart_stopAnimations(JNIEnv* env, jobject obj) JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_submitFormProxy__Ljava_lang_String_2Ljava_lang_String_2_3BLjava_lang_String_2(JNIEnv* env, jobject obj, jstring action, jstring url, jbyteArray formData, jstring target) { -static TQCString* _qstring_action = 0; -static TQString* _qstring_url = 0; -static TQByteArray* _qbyteArray_formData = 0; -static TQString* _qstring_target = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->submitFormProxy((const char*) QtSupport::toCharString(env, action, &_qstring_action), (const TQString&)*(TQString*) QtSupport::toQString(env, url, &_qstring_url), (const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, formData, &_qbyteArray_formData), (const TQString&)*(TQString*) QtSupport::toQString(env, target, &_qstring_target)); +static TTQCString* _qstring_action = 0; +static TTQString* _qstring_url = 0; +static TTQByteArray* _qbyteArray_formData = 0; +static TTQString* _qstring_target = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->submitFormProxy((const char*) QtSupport::toCharString(env, action, &_qstring_action), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, url, &_qstring_url), (const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, formData, &_qbyteArray_formData), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, target, &_qstring_target)); return; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_submitFormProxy__Ljava_lang_String_2Ljava_lang_String_2_3BLjava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring action, jstring url, jbyteArray formData, jstring target, jstring contentType) { -static TQCString* _qstring_action = 0; -static TQString* _qstring_url = 0; -static TQByteArray* _qbyteArray_formData = 0; -static TQString* _qstring_target = 0; -static TQString* _qstring_contentType = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->submitFormProxy((const char*) QtSupport::toCharString(env, action, &_qstring_action), (const TQString&)*(TQString*) QtSupport::toQString(env, url, &_qstring_url), (const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, formData, &_qbyteArray_formData), (const TQString&)*(TQString*) QtSupport::toQString(env, target, &_qstring_target), (const TQString&)*(TQString*) QtSupport::toQString(env, contentType, &_qstring_contentType)); +static TTQCString* _qstring_action = 0; +static TTQString* _qstring_url = 0; +static TTQByteArray* _qbyteArray_formData = 0; +static TTQString* _qstring_target = 0; +static TTQString* _qstring_contentType = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->submitFormProxy((const char*) QtSupport::toCharString(env, action, &_qstring_action), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, url, &_qstring_url), (const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, formData, &_qbyteArray_formData), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, target, &_qstring_target), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, contentType, &_qstring_contentType)); return; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_submitFormProxy__Ljava_lang_String_2Ljava_lang_String_2_3BLjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring action, jstring url, jbyteArray formData, jstring target, jstring contentType, jstring boundary) { -static TQCString* _qstring_action = 0; -static TQString* _qstring_url = 0; -static TQByteArray* _qbyteArray_formData = 0; -static TQString* _qstring_target = 0; -static TQString* _qstring_contentType = 0; -static TQString* _qstring_boundary = 0; - ((KHTMLPart*) QtSupport::getQt(env, obj))->submitFormProxy((const char*) QtSupport::toCharString(env, action, &_qstring_action), (const TQString&)*(TQString*) QtSupport::toQString(env, url, &_qstring_url), (const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, formData, &_qbyteArray_formData), (const TQString&)*(TQString*) QtSupport::toQString(env, target, &_qstring_target), (const TQString&)*(TQString*) QtSupport::toQString(env, contentType, &_qstring_contentType), (const TQString&)*(TQString*) QtSupport::toQString(env, boundary, &_qstring_boundary)); +static TTQCString* _qstring_action = 0; +static TTQString* _qstring_url = 0; +static TTQByteArray* _qbyteArray_formData = 0; +static TTQString* _qstring_target = 0; +static TTQString* _qstring_contentType = 0; +static TTQString* _qstring_boundary = 0; + ((KHTMLPart*) QtSupport::getQt(env, obj))->submitFormProxy((const char*) QtSupport::toCharString(env, action, &_qstring_action), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, url, &_qstring_url), (const TTQByteArray&)*(TTQByteArray*) QtSupport::toTQByteArray(env, formData, &_qbyteArray_formData), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, target, &_qstring_target), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, contentType, &_qstring_contentType), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, boundary, &_qstring_boundary)); return; } @@ -1310,25 +1310,25 @@ Java_org_kde_koala_KHTMLPart_toplevelURL(JNIEnv* env, jobject obj) JNIEXPORT jobject JNICALL Java_org_kde_koala_KHTMLPart_urlCursor(JNIEnv* env, jobject obj) { - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQCursor(((KHTMLPart*) QtSupport::getQt(env, obj))->urlCursor()), "org.kde.qt.TQCursor", TRUE); + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQCursor(((KHTMLPart*) QtSupport::getQt(env, obj))->urlCursor()), "org.kde.qt.TTQCursor", TRUE); return xret; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_urlSelected__Ljava_lang_String_2IILjava_lang_String_2(JNIEnv* env, jobject obj, jstring url, jint button, jint state, jstring _target) { -static TQString* _qstring_url = 0; -static TQString* _qstring__target = 0; - ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_urlSelected((const TQString&)*(TQString*) QtSupport::toQString(env, url, &_qstring_url), (int) button, (int) state, (const TQString&)*(TQString*) QtSupport::toQString(env, _target, &_qstring__target)); +static TTQString* _qstring_url = 0; +static TTQString* _qstring__target = 0; + ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_urlSelected((const TTQString&)*(TTQString*) QtSupport::toTQString(env, url, &_qstring_url), (int) button, (int) state, (const TTQString&)*(TTQString*) QtSupport::toTQString(env, _target, &_qstring__target)); return; } JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_urlSelected__Ljava_lang_String_2IILjava_lang_String_2Lorg_kde_koala_URLArgs_2(JNIEnv* env, jobject obj, jstring url, jint button, jint state, jstring _target, jobject args) { -static TQString* _qstring_url = 0; -static TQString* _qstring__target = 0; - ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_urlSelected((const TQString&)*(TQString*) QtSupport::toQString(env, url, &_qstring_url), (int) button, (int) state, (const TQString&)*(TQString*) QtSupport::toQString(env, _target, &_qstring__target), (KParts::URLArgs)*(KParts::URLArgs*) QtSupport::getQt(env, args)); +static TTQString* _qstring_url = 0; +static TTQString* _qstring__target = 0; + ((KHTMLPartJBridge*) QtSupport::getQt(env, obj))->protected_urlSelected((const TTQString&)*(TTQString*) QtSupport::toTQString(env, url, &_qstring_url), (int) button, (int) state, (const TTQString&)*(TTQString*) QtSupport::toTQString(env, _target, &_qstring__target), (KParts::URLArgs)*(KParts::URLArgs*) QtSupport::getQt(env, args)); return; } @@ -1342,7 +1342,7 @@ Java_org_kde_koala_KHTMLPart_view(JNIEnv* env, jobject obj) JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_write__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str) { -static TQCString* _qstring_str = 0; +static TTQCString* _qstring_str = 0; ((KHTMLPart*) QtSupport::getQt(env, obj))->write((const char*) QtSupport::toCharString(env, str, &_qstring_str)); return; } @@ -1350,7 +1350,7 @@ static TQCString* _qstring_str = 0; JNIEXPORT void JNICALL Java_org_kde_koala_KHTMLPart_write__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring str, jint len) { -static TQCString* _qstring_str = 0; +static TTQCString* _qstring_str = 0; ((KHTMLPart*) QtSupport::getQt(env, obj))->write((const char*) QtSupport::toCharString(env, str, &_qstring_str), (int) len); return; } |