diff options
Diffstat (limited to 'kdejava/koala/kdejava/KSpell.cpp')
-rw-r--r-- | kdejava/koala/kdejava/KSpell.cpp | 192 |
1 files changed, 96 insertions, 96 deletions
diff --git a/kdejava/koala/kdejava/KSpell.cpp b/kdejava/koala/kdejava/KSpell.cpp index 1c702a9a..24e7d060 100644 --- a/kdejava/koala/kdejava/KSpell.cpp +++ b/kdejava/koala/kdejava/KSpell.cpp @@ -11,27 +11,27 @@ class KSpellJBridge : public KSpell { public: - KSpellJBridge(TQWidget* arg1,const TQString& arg2,TQObject* arg3,const char* arg4,KSpellConfig* arg5,bool arg6,bool arg7) : KSpell(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {}; - KSpellJBridge(TQWidget* arg1,const TQString& arg2,TQObject* arg3,const char* arg4,KSpellConfig* arg5,bool arg6) : KSpell(arg1,arg2,arg3,arg4,arg5,arg6) {}; - KSpellJBridge(TQWidget* arg1,const TQString& arg2,TQObject* arg3,const char* arg4,KSpellConfig* arg5) : KSpell(arg1,arg2,arg3,arg4,arg5) {}; - KSpellJBridge(TQWidget* arg1,const TQString& arg2,TQObject* arg3,const char* arg4) : KSpell(arg1,arg2,arg3,arg4) {}; - KSpellJBridge(TQWidget* arg1,const TQString& arg2,TQObject* arg3,const char* arg4,KSpellConfig* arg5,bool arg6,bool arg7,KSpell::SpellerType arg8) : KSpell(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) {}; + KSpellJBridge(TTQWidget* arg1,const TTQString& arg2,TTQObject* arg3,const char* arg4,KSpellConfig* arg5,bool arg6,bool arg7) : KSpell(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {}; + KSpellJBridge(TTQWidget* arg1,const TTQString& arg2,TTQObject* arg3,const char* arg4,KSpellConfig* arg5,bool arg6) : KSpell(arg1,arg2,arg3,arg4,arg5,arg6) {}; + KSpellJBridge(TTQWidget* arg1,const TTQString& arg2,TTQObject* arg3,const char* arg4,KSpellConfig* arg5) : KSpell(arg1,arg2,arg3,arg4,arg5) {}; + KSpellJBridge(TTQWidget* arg1,const TTQString& arg2,TTQObject* arg3,const char* arg4) : KSpell(arg1,arg2,arg3,arg4) {}; + KSpellJBridge(TTQWidget* arg1,const TTQString& arg2,TTQObject* arg3,const char* arg4,KSpellConfig* arg5,bool arg6,bool arg7,KSpell::SpellerType arg8) : KSpell(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) {}; void public_cleanUp() { KSpell::cleanUp(); return; } - int protected_parseOneResponse(const TQString& arg1,TQString& arg2,TQStringList& arg3) { + int protected_parseOneResponse(const TTQString& arg1,TTQString& arg2,TTQStringList& arg3) { return (int) KSpell::parseOneResponse(arg1,arg2,arg3); } - TQString protected_funnyWord(const TQString& arg1) { - return (TQString) KSpell::funnyWord(arg1); + TTQString protected_funnyWord(const TTQString& arg1) { + return (TTQString) KSpell::funnyWord(arg1); } - void protected_dialog(const TQString& arg1,TQStringList& arg2,const char* arg3) { + void protected_dialog(const TTQString& arg1,TTQStringList& arg2,const char* arg3) { KSpell::dialog(arg1,arg2,arg3); return; } - TQString protected_replacement() { - return (TQString) KSpell::replacement(); + TTQString protected_replacement() { + return (TTQString) KSpell::replacement(); } void protected_setUpDialog(bool arg1) { KSpell::setUpDialog(arg1); @@ -45,16 +45,16 @@ public: KSpell::emitProgress(); return; } - bool protected_cleanFputs(const TQString& arg1,bool arg2) { + bool protected_cleanFputs(const TTQString& arg1,bool arg2) { return (bool) KSpell::cleanFputs(arg1,arg2); } - bool protected_cleanFputs(const TQString& arg1) { + bool protected_cleanFputs(const TTQString& arg1) { return (bool) KSpell::cleanFputs(arg1); } - bool protected_cleanFputsWord(const TQString& arg1,bool arg2) { + bool protected_cleanFputsWord(const TTQString& arg1,bool arg2) { return (bool) KSpell::cleanFputsWord(arg1,arg2); } - bool protected_cleanFputsWord(const TQString& arg1) { + bool protected_cleanFputsWord(const TTQString& arg1) { return (bool) KSpell::cleanFputsWord(arg1); } void protected_startIspell() { @@ -64,7 +64,7 @@ public: bool protected_writePersonalDictionary() { return (bool) KSpell::writePersonalDictionary(); } - void protected_initialize(TQWidget* arg1,const TQString& arg2,TQObject* arg3,const char* arg4,KSpellConfig* arg5,bool arg6,bool arg7,KSpell::SpellerType arg8) { + void protected_initialize(TTQWidget* arg1,const TTQString& arg2,TTQObject* arg3,const char* arg4,KSpellConfig* arg5,bool arg6,bool arg7,KSpell::SpellerType arg8) { KSpell::initialize(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); return; } @@ -133,27 +133,27 @@ public: return; } ~KSpellJBridge() {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; } - void customEvent(TQCustomEvent* arg1) { - if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TQCustomEvent")) { - TQObject::customEvent(arg1); + void customEvent(TTQCustomEvent* arg1) { + if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TTQCustomEvent")) { + TTQObject::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; } - 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; } @@ -163,15 +163,15 @@ public: } return; } - 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.KSpell",object,event)) { - return TQObject::eventFilter(object,event); + return TTQObject::eventFilter(object,event); } else { return TRUE; } @@ -188,8 +188,8 @@ Java_org_kde_koala_KSpell_KSpell2(JNIEnv* env, jobject obj, jobject arg1) JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_addPersonal(JNIEnv* env, jobject obj, jstring word) { -static TQString* _qstring_word = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->addPersonal((const TQString&)*(TQString*) QtSupport::toQString(env, word, &_qstring_word)); +static TTQString* _qstring_word = 0; + jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->addPersonal((const TTQString&)*(TTQString*) QtSupport::toTQString(env, word, &_qstring_word)); return xret; } @@ -238,16 +238,16 @@ Java_org_kde_koala_KSpell_checkListReplaceCurrent(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_checkList___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray _wordlist) { -static TQStringList* _qlist__wordlist = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkList((TQStringList*) QtSupport::toQStringList(env, _wordlist, &_qlist__wordlist)); +static TTQStringList* _qlist__wordlist = 0; + jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkList((TTQStringList*) QtSupport::toTQStringList(env, _wordlist, &_qlist__wordlist)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_checkList___3Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jobjectArray _wordlist, jboolean usedialog) { -static TQStringList* _qlist__wordlist = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkList((TQStringList*) QtSupport::toQStringList(env, _wordlist, &_qlist__wordlist), (bool) usedialog); +static TTQStringList* _qlist__wordlist = 0; + jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkList((TTQStringList*) QtSupport::toTQStringList(env, _wordlist, &_qlist__wordlist), (bool) usedialog); return xret; } @@ -275,40 +275,40 @@ Java_org_kde_koala_KSpell_checkWord3(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_checkWord__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _buffer) { -static TQString* _qstring__buffer = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkWord((const TQString&)*(TQString*) QtSupport::toQString(env, _buffer, &_qstring__buffer)); +static TTQString* _qstring__buffer = 0; + jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkWord((const TTQString&)*(TTQString*) QtSupport::toTQString(env, _buffer, &_qstring__buffer)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_checkWord__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring _buffer, jboolean usedialog) { -static TQString* _qstring__buffer = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkWord((const TQString&)*(TQString*) QtSupport::toQString(env, _buffer, &_qstring__buffer), (bool) usedialog); +static TTQString* _qstring__buffer = 0; + jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkWord((const TTQString&)*(TTQString*) QtSupport::toTQString(env, _buffer, &_qstring__buffer), (bool) usedialog); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_checkWord__Ljava_lang_String_2ZZ(JNIEnv* env, jobject obj, jstring buffer, jboolean _usedialog, jboolean suggest) { -static TQString* _qstring_buffer = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkWord((const TQString&)*(TQString*) QtSupport::toQString(env, buffer, &_qstring_buffer), (bool) _usedialog, (bool) suggest); +static TTQString* _qstring_buffer = 0; + jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->checkWord((const TTQString&)*(TTQString*) QtSupport::toTQString(env, buffer, &_qstring_buffer), (bool) _usedialog, (bool) suggest); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_check__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring _buffer) { -static TQString* _qstring__buffer = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->check((const TQString&)*(TQString*) QtSupport::toQString(env, _buffer, &_qstring__buffer)); +static TTQString* _qstring__buffer = 0; + jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->check((const TTQString&)*(TTQString*) QtSupport::toTQString(env, _buffer, &_qstring__buffer)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_check__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring _buffer, jboolean usedialog) { -static TQString* _qstring__buffer = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->check((const TQString&)*(TQString*) QtSupport::toQString(env, _buffer, &_qstring__buffer), (bool) usedialog); +static TTQString* _qstring__buffer = 0; + jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->check((const TTQString&)*(TTQString*) QtSupport::toTQString(env, _buffer, &_qstring__buffer), (bool) usedialog); return xret; } @@ -323,32 +323,32 @@ Java_org_kde_koala_KSpell_className(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_cleanFputsWord__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring s) { -static TQString* _qstring_s = 0; - jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_cleanFputsWord((const TQString&)*(TQString*) QtSupport::toQString(env, s, &_qstring_s)); +static TTQString* _qstring_s = 0; + jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_cleanFputsWord((const TTQString&)*(TTQString*) QtSupport::toTQString(env, s, &_qstring_s)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_cleanFputsWord__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring s, jboolean appendCR) { -static TQString* _qstring_s = 0; - jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_cleanFputsWord((const TQString&)*(TQString*) QtSupport::toQString(env, s, &_qstring_s), (bool) appendCR); +static TTQString* _qstring_s = 0; + jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_cleanFputsWord((const TTQString&)*(TTQString*) QtSupport::toTQString(env, s, &_qstring_s), (bool) appendCR); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_cleanFputs__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring s) { -static TQString* _qstring_s = 0; - jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_cleanFputs((const TQString&)*(TQString*) QtSupport::toQString(env, s, &_qstring_s)); +static TTQString* _qstring_s = 0; + jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_cleanFputs((const TTQString&)*(TTQString*) QtSupport::toTQString(env, s, &_qstring_s)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_cleanFputs__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring s, jboolean appendCR) { -static TQString* _qstring_s = 0; - jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_cleanFputs((const TQString&)*(TQString*) QtSupport::toQString(env, s, &_qstring_s), (bool) appendCR); +static TTQString* _qstring_s = 0; + jboolean xret = (jboolean) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_cleanFputs((const TTQString&)*(TTQString*) QtSupport::toTQString(env, s, &_qstring_s), (bool) appendCR); return xret; } @@ -369,10 +369,10 @@ Java_org_kde_koala_KSpell_dialog2(JNIEnv* env, jobject obj, jint dlgresult) JNIEXPORT void JNICALL Java_org_kde_koala_KSpell_dialog(JNIEnv* env, jobject obj, jstring word, jobjectArray sugg, jstring _slot) { -static TQString* _qstring_word = 0; -static TQStringList* _qlist_sugg = 0; -static TQCString* _qstring__slot = 0; - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_dialog((const TQString&)*(TQString*) QtSupport::toQString(env, word, &_qstring_word), (TQStringList&)*(TQStringList*) QtSupport::toQStringList(env, sugg, &_qlist_sugg), (const char*) QtSupport::toCharString(env, _slot, &_qstring__slot)); +static TTQString* _qstring_word = 0; +static TTQStringList* _qlist_sugg = 0; +static TTQCString* _qstring__slot = 0; + ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_dialog((const TTQString&)*(TTQString*) QtSupport::toTQString(env, word, &_qstring_word), (TTQStringList&)*(TTQStringList*) QtSupport::toTQStringList(env, sugg, &_qlist_sugg), (const char*) QtSupport::toCharString(env, _slot, &_qstring__slot)); return; } @@ -417,10 +417,10 @@ Java_org_kde_koala_KSpell_finalize(JNIEnv* env, jobject obj) JNIEXPORT jstring JNICALL Java_org_kde_koala_KSpell_funnyWord(JNIEnv* env, jobject obj, jstring word) { - TQString _qstring; -static TQString* _qstring_word = 0; - _qstring = ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_funnyWord((const TQString&)*(TQString*) QtSupport::toQString(env, word, &_qstring_word)); - return QtSupport::fromQString(env, &_qstring); + TTQString _qstring; +static TTQString* _qstring_word = 0; + _qstring = ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_funnyWord((const TTQString&)*(TTQString*) QtSupport::toTQString(env, word, &_qstring_word)); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jint JNICALL @@ -440,26 +440,26 @@ Java_org_kde_koala_KSpell_hide(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_koala_KSpell_ignore(JNIEnv* env, jobject obj, jstring word) { -static TQString* _qstring_word = 0; - jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->ignore((const TQString&)*(TQString*) QtSupport::toQString(env, word, &_qstring_word)); +static TTQString* _qstring_word = 0; + jboolean xret = (jboolean) ((KSpell*) QtSupport::getQt(env, obj))->ignore((const TTQString&)*(TTQString*) QtSupport::toTQString(env, word, &_qstring_word)); return xret; } JNIEXPORT void JNICALL Java_org_kde_koala_KSpell_initialize(JNIEnv* env, jobject obj, jobject _parent, jstring _caption, jobject arg3, jstring slot, jobject _ksc, jboolean _progressbar, jboolean _modal, jint type) { -static TQString* _qstring__caption = 0; -static TQCString* _qstring_slot = 0; - ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_initialize((TQWidget*) QtSupport::getQt(env, _parent), (const TQString&)*(TQString*) QtSupport::toQString(env, _caption, &_qstring__caption), (TQObject*) QtSupport::getQt(env, arg3), (const char*) QtSupport::toCharString(env, slot, &_qstring_slot), (KSpellConfig*) QtSupport::getQt(env, _ksc), (bool) _progressbar, (bool) _modal, (KSpell::SpellerType) type); +static TTQString* _qstring__caption = 0; +static TTQCString* _qstring_slot = 0; + ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_initialize((TTQWidget*) QtSupport::getQt(env, _parent), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, _caption, &_qstring__caption), (TTQObject*) QtSupport::getQt(env, arg3), (const char*) QtSupport::toCharString(env, slot, &_qstring_slot), (KSpellConfig*) QtSupport::getQt(env, _ksc), (bool) _progressbar, (bool) _modal, (KSpell::SpellerType) type); return; } JNIEXPORT jstring JNICALL Java_org_kde_koala_KSpell_intermediateBuffer(JNIEnv* env, jobject obj) { - TQString _qstring; + TTQString _qstring; _qstring = ((KSpell*) QtSupport::getQt(env, obj))->intermediateBuffer(); - return QtSupport::fromQString(env, &_qstring); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jboolean JNICALL @@ -471,7 +471,7 @@ Java_org_kde_koala_KSpell_isDisposed(JNIEnv* env, jobject obj) JNIEXPORT void JNICALL Java_org_kde_koala_KSpell_ispellErrors(JNIEnv* env, jobject obj, jobject arg1, jstring arg2, jint arg3) { -static TQCString* _qstring_arg2 = 0; +static TTQCString* _qstring_arg2 = 0; ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_ispellErrors((KProcess*) QtSupport::getQt(env, arg1), (char*) QtSupport::toCharString(env, arg2, &_qstring_arg2), (int) arg3); return; } @@ -500,7 +500,7 @@ Java_org_kde_koala_KSpell_lastPosition(JNIEnv* env, jobject obj) JNIEXPORT jobject JNICALL Java_org_kde_koala_KSpell_metaObject(JNIEnv* env, jobject obj) { - jobject xret = QtSupport::objectForQtKey(env, (void*)((KSpell*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TQMetaObject"); + jobject xret = QtSupport::objectForQtKey(env, (void*)((KSpell*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TTQMetaObject"); return xret; } @@ -508,9 +508,9 @@ JNIEXPORT jint JNICALL Java_org_kde_koala_KSpell_modalCheck(JNIEnv* env, jclass cls, jobject text, jobject kcs) { (void) cls; -static TQString* _qstring_text = 0; - jint xret = (jint) KSpellJBridge::modalCheck((TQString&)*(TQString*) QtSupport::toQStringFromStringBuffer(env, text, &_qstring_text), (KSpellConfig*) QtSupport::getQt(env, kcs)); - QtSupport::fromQStringToStringBuffer(env, _qstring_text, text); +static TTQString* _qstring_text = 0; + jint xret = (jint) KSpellJBridge::modalCheck((TTQString&)*(TTQString*) QtSupport::toTQStringFromStringBuffer(env, text, &_qstring_text), (KSpellConfig*) QtSupport::getQt(env, kcs)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_text, text); return xret; } @@ -524,9 +524,9 @@ Java_org_kde_koala_KSpell_moveDlg(JNIEnv* env, jobject obj, jint x, jint y) JNIEXPORT void JNICALL Java_org_kde_koala_KSpell_newKSpell__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring caption, jobject receiver, jstring slot) { -static TQString* _qstring_caption = 0; +static TTQString* _qstring_caption = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KSpellJBridge((TQWidget*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toQString(env, caption, &_qstring_caption), (TQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()")); + QtSupport::setQt(env, obj, new KSpellJBridge((TTQWidget*) QtSupport::getQt(env, parent), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, caption, &_qstring_caption), (TTQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()")); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -535,9 +535,9 @@ static TQString* _qstring_caption = 0; JNIEXPORT void JNICALL Java_org_kde_koala_KSpell_newKSpell__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KSpellConfig_2(JNIEnv* env, jobject obj, jobject parent, jstring caption, jobject receiver, jstring slot, jobject kcs) { -static TQString* _qstring_caption = 0; +static TTQString* _qstring_caption = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KSpellJBridge((TQWidget*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toQString(env, caption, &_qstring_caption), (TQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KSpellConfig*) QtSupport::getQt(env, kcs))); + QtSupport::setQt(env, obj, new KSpellJBridge((TTQWidget*) QtSupport::getQt(env, parent), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, caption, &_qstring_caption), (TTQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KSpellConfig*) QtSupport::getQt(env, kcs))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -546,9 +546,9 @@ static TQString* _qstring_caption = 0; JNIEXPORT void JNICALL Java_org_kde_koala_KSpell_newKSpell__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KSpellConfig_2Z(JNIEnv* env, jobject obj, jobject parent, jstring caption, jobject receiver, jstring slot, jobject kcs, jboolean progressbar) { -static TQString* _qstring_caption = 0; +static TTQString* _qstring_caption = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KSpellJBridge((TQWidget*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toQString(env, caption, &_qstring_caption), (TQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KSpellConfig*) QtSupport::getQt(env, kcs), (bool) progressbar)); + QtSupport::setQt(env, obj, new KSpellJBridge((TTQWidget*) QtSupport::getQt(env, parent), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, caption, &_qstring_caption), (TTQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KSpellConfig*) QtSupport::getQt(env, kcs), (bool) progressbar)); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -557,9 +557,9 @@ static TQString* _qstring_caption = 0; JNIEXPORT void JNICALL Java_org_kde_koala_KSpell_newKSpell__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KSpellConfig_2ZZ(JNIEnv* env, jobject obj, jobject parent, jstring caption, jobject receiver, jstring slot, jobject kcs, jboolean progressbar, jboolean modal) { -static TQString* _qstring_caption = 0; +static TTQString* _qstring_caption = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KSpellJBridge((TQWidget*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toQString(env, caption, &_qstring_caption), (TQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KSpellConfig*) QtSupport::getQt(env, kcs), (bool) progressbar, (bool) modal)); + QtSupport::setQt(env, obj, new KSpellJBridge((TTQWidget*) QtSupport::getQt(env, parent), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, caption, &_qstring_caption), (TTQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KSpellConfig*) QtSupport::getQt(env, kcs), (bool) progressbar, (bool) modal)); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -568,9 +568,9 @@ static TQString* _qstring_caption = 0; JNIEXPORT void JNICALL Java_org_kde_koala_KSpell_newKSpell__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2Lorg_kde_koala_KSpellConfig_2ZZI(JNIEnv* env, jobject obj, jobject parent, jstring caption, jobject receiver, jstring slot, jobject kcs, jboolean progressbar, jboolean modal, jint type) { -static TQString* _qstring_caption = 0; +static TTQString* _qstring_caption = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KSpellJBridge((TQWidget*) QtSupport::getQt(env, parent), (const TQString&)*(TQString*) QtSupport::toQString(env, caption, &_qstring_caption), (TQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KSpellConfig*) QtSupport::getQt(env, kcs), (bool) progressbar, (bool) modal, (KSpell::SpellerType) type)); + QtSupport::setQt(env, obj, new KSpellJBridge((TTQWidget*) QtSupport::getQt(env, parent), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, caption, &_qstring_caption), (TTQObject*) QtSupport::slotForReceiver(env, receiver, slot), "1invoke()", (KSpellConfig*) QtSupport::getQt(env, kcs), (bool) progressbar, (bool) modal, (KSpell::SpellerType) type)); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -579,20 +579,20 @@ static TQString* _qstring_caption = 0; JNIEXPORT jint JNICALL Java_org_kde_koala_KSpell_parseOneResponse(JNIEnv* env, jobject obj, jstring _buffer, jobject word, jobjectArray sugg) { -static TQString* _qstring__buffer = 0; -static TQString* _qstring_word = 0; -static TQStringList* _qlist_sugg = 0; - jint xret = (jint) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_parseOneResponse((const TQString&)*(TQString*) QtSupport::toQString(env, _buffer, &_qstring__buffer), (TQString&)*(TQString*) QtSupport::toQStringFromStringBuffer(env, word, &_qstring_word), (TQStringList&)*(TQStringList*) QtSupport::toQStringList(env, sugg, &_qlist_sugg)); - QtSupport::fromQStringToStringBuffer(env, _qstring_word, word); +static TTQString* _qstring__buffer = 0; +static TTQString* _qstring_word = 0; +static TTQStringList* _qlist_sugg = 0; + jint xret = (jint) ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_parseOneResponse((const TTQString&)*(TTQString*) QtSupport::toTQString(env, _buffer, &_qstring__buffer), (TTQString&)*(TTQString*) QtSupport::toTQStringFromStringBuffer(env, word, &_qstring_word), (TTQStringList&)*(TTQStringList*) QtSupport::toTQStringList(env, sugg, &_qlist_sugg)); + QtSupport::fromTQStringToStringBuffer(env, _qstring_word, word); return xret; } JNIEXPORT jstring JNICALL Java_org_kde_koala_KSpell_replacement(JNIEnv* env, jobject obj) { - TQString _qstring; + TTQString _qstring; _qstring = ((KSpellJBridge*) QtSupport::getQt(env, obj))->protected_replacement(); - return QtSupport::fromQString(env, &_qstring); + return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT void JNICALL @@ -668,9 +668,9 @@ Java_org_kde_koala_KSpell_suggestWord(JNIEnv* env, jobject obj, jobject arg1) JNIEXPORT jobject JNICALL Java_org_kde_koala_KSpell_suggestions(JNIEnv* env, jobject obj) { - TQStringList _qlist; + TTQStringList _qlist; _qlist = ((KSpell*) QtSupport::getQt(env, obj))->suggestions(); - return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist); + return (jobject) QtSupport::arrayWithTQStringList(env, (TTQStringList*) &_qlist); } JNIEXPORT jint JNICALL |