diff options
Diffstat (limited to 'kdejava/koala/kdejava/KReplace.cpp')
-rw-r--r-- | kdejava/koala/kdejava/KReplace.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/kdejava/koala/kdejava/KReplace.cpp b/kdejava/koala/kdejava/KReplace.cpp index 84ce3731..9d1782aa 100644 --- a/kdejava/koala/kdejava/KReplace.cpp +++ b/kdejava/koala/kdejava/KReplace.cpp @@ -11,9 +11,9 @@ class KReplaceJBridge : public KReplace { public: - KReplaceJBridge(const TTQString& arg1,const TTQString& arg2,long arg3,TTQWidget* arg4) : KReplace(arg1,arg2,arg3,arg4) {}; - KReplaceJBridge(const TTQString& arg1,const TTQString& arg2,long arg3) : KReplace(arg1,arg2,arg3) {}; - KReplaceJBridge(const TTQString& arg1,const TTQString& arg2,long arg3,TTQWidget* arg4,TTQWidget* arg5) : KReplace(arg1,arg2,arg3,arg4,arg5) {}; + KReplaceJBridge(const TQString& arg1,const TQString& arg2,long arg3,TQWidget* arg4) : KReplace(arg1,arg2,arg3,arg4) {}; + KReplaceJBridge(const TQString& arg1,const TQString& arg2,long arg3) : KReplace(arg1,arg2,arg3) {}; + KReplaceJBridge(const TQString& arg1,const TQString& arg2,long arg3,TQWidget* arg4,TQWidget* arg5) : KReplace(arg1,arg2,arg3,arg4,arg5) {}; void public_resetCounts() { KReplace::resetCounts(); return; @@ -47,39 +47,39 @@ public: } return; } - void removeChild(TTQObject* arg1) { - if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TTQObject")) { - TTQObject::removeChild(arg1); + void removeChild(TQObject* arg1) { + if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TQObject")) { + TQObject::removeChild(arg1); } return; } - void customEvent(TTQCustomEvent* arg1) { - if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TTQCustomEvent")) { - TTQObject::customEvent(arg1); + void customEvent(TQCustomEvent* arg1) { + if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TQCustomEvent")) { + TQObject::customEvent(arg1); } return; } - void timerEvent(TTQTimerEvent* arg1) { - if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TTQTimerEvent")) { - TTQObject::timerEvent(arg1); + void timerEvent(TQTimerEvent* arg1) { + if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TQTimerEvent")) { + TQObject::timerEvent(arg1); } return; } - void childEvent(TTQChildEvent* arg1) { - if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TTQChildEvent")) { - TTQObject::childEvent(arg1); + void childEvent(TQChildEvent* arg1) { + if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TQChildEvent")) { + TQObject::childEvent(arg1); } return; } - void insertChild(TTQObject* arg1) { - if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TTQObject")) { - TTQObject::insertChild(arg1); + void insertChild(TQObject* arg1) { + if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TQObject")) { + TQObject::insertChild(arg1); } return; } - bool eventFilter(TTQObject* object,TTQEvent* event) { + bool eventFilter(TQObject* object,TQEvent* event) { if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KReplace",object,event)) { - return TTQObject::eventFilter(object,event); + return TQObject::eventFilter(object,event); } else { return TRUE; } @@ -134,17 +134,17 @@ Java_org_kde_koala_KReplace_isDisposed(JNIEnv* env, jobject obj) JNIEXPORT jobject JNICALL Java_org_kde_koala_KReplace_metaObject(JNIEnv* env, jobject obj) { - jobject xret = QtSupport::objectForQtKey(env, (void*)((KReplace*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TTQMetaObject"); + jobject xret = QtSupport::objectForQtKey(env, (void*)((KReplace*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TQMetaObject"); return xret; } JNIEXPORT void JNICALL Java_org_kde_koala_KReplace_newKReplace__Ljava_lang_String_2Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring pattern, jstring replacement, jlong options) { -static TTQString* _qstring_pattern = 0; -static TTQString* _qstring_replacement = 0; +static TQString* _qstring_pattern = 0; +static TQString* _qstring_replacement = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KReplaceJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, pattern, &_qstring_pattern), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, replacement, &_qstring_replacement), (long) options)); + QtSupport::setQt(env, obj, new KReplaceJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, pattern, &_qstring_pattern), (const TQString&)*(TQString*) QtSupport::toTQString(env, replacement, &_qstring_replacement), (long) options)); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -153,10 +153,10 @@ static TTQString* _qstring_replacement = 0; JNIEXPORT void JNICALL Java_org_kde_koala_KReplace_newKReplace__Ljava_lang_String_2Ljava_lang_String_2JLorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jstring pattern, jstring replacement, jlong options, jobject parent) { -static TTQString* _qstring_pattern = 0; -static TTQString* _qstring_replacement = 0; +static TQString* _qstring_pattern = 0; +static TQString* _qstring_replacement = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KReplaceJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, pattern, &_qstring_pattern), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, replacement, &_qstring_replacement), (long) options, (TTQWidget*) QtSupport::getQt(env, parent))); + QtSupport::setQt(env, obj, new KReplaceJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, pattern, &_qstring_pattern), (const TQString&)*(TQString*) QtSupport::toTQString(env, replacement, &_qstring_replacement), (long) options, (TQWidget*) QtSupport::getQt(env, parent))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -165,10 +165,10 @@ static TTQString* _qstring_replacement = 0; JNIEXPORT void JNICALL Java_org_kde_koala_KReplace_newKReplace__Ljava_lang_String_2Ljava_lang_String_2JLorg_kde_qt_QWidget_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jstring pattern, jstring replacement, jlong options, jobject parent, jobject replaceDialog) { -static TTQString* _qstring_pattern = 0; -static TTQString* _qstring_replacement = 0; +static TQString* _qstring_pattern = 0; +static TQString* _qstring_replacement = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new KReplaceJBridge((const TTQString&)*(TTQString*) QtSupport::toTQString(env, pattern, &_qstring_pattern), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, replacement, &_qstring_replacement), (long) options, (TTQWidget*) QtSupport::getQt(env, parent), (TTQWidget*) QtSupport::getQt(env, replaceDialog))); + QtSupport::setQt(env, obj, new KReplaceJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, pattern, &_qstring_pattern), (const TQString&)*(TQString*) QtSupport::toTQString(env, replacement, &_qstring_replacement), (long) options, (TQWidget*) QtSupport::getQt(env, parent), (TQWidget*) QtSupport::getQt(env, replaceDialog))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -206,11 +206,11 @@ JNIEXPORT jint JNICALL Java_org_kde_koala_KReplace_replace__Ljava_lang_StringBuffer_2Ljava_lang_String_2Ljava_lang_String_2IJ_3I(JNIEnv* env, jclass cls, jobject text, jstring pattern, jstring replacement, jint index, jlong options, jintArray replacedLength) { (void) cls; -static TTQString* _qstring_text = 0; -static TTQString* _qstring_pattern = 0; -static TTQString* _qstring_replacement = 0; +static TQString* _qstring_text = 0; +static TQString* _qstring_pattern = 0; +static TQString* _qstring_replacement = 0; int* _int_replacedLength = QtSupport::toIntPtr(env, replacedLength); - jint xret = (jint) KReplaceJBridge::replace((TTQString&)*(TTQString*) QtSupport::toTQStringFromStringBuffer(env, text, &_qstring_text), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, pattern, &_qstring_pattern), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, replacement, &_qstring_replacement), (int) index, (long) options, (int*) _int_replacedLength); + jint xret = (jint) KReplaceJBridge::replace((TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, text, &_qstring_text), (const TQString&)*(TQString*) QtSupport::toTQString(env, pattern, &_qstring_pattern), (const TQString&)*(TQString*) QtSupport::toTQString(env, replacement, &_qstring_replacement), (int) index, (long) options, (int*) _int_replacedLength); QtSupport::fromTQStringToStringBuffer(env, _qstring_text, text); env->SetIntArrayRegion(replacedLength, 0, 1, (jint *) _int_replacedLength); return xret; @@ -220,10 +220,10 @@ JNIEXPORT jint JNICALL Java_org_kde_koala_KReplace_replace__Ljava_lang_StringBuffer_2Lorg_kde_qt_QRegExp_2Ljava_lang_String_2IJ_3I(JNIEnv* env, jclass cls, jobject text, jobject pattern, jstring replacement, jint index, jlong options, jintArray replacedLength) { (void) cls; -static TTQString* _qstring_text = 0; -static TTQString* _qstring_replacement = 0; +static TQString* _qstring_text = 0; +static TQString* _qstring_replacement = 0; int* _int_replacedLength = QtSupport::toIntPtr(env, replacedLength); - jint xret = (jint) KReplaceJBridge::replace((TTQString&)*(TTQString*) QtSupport::toTQStringFromStringBuffer(env, text, &_qstring_text), (const TTQRegExp&)*(const TTQRegExp*) QtSupport::getQt(env, pattern), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, replacement, &_qstring_replacement), (int) index, (long) options, (int*) _int_replacedLength); + jint xret = (jint) KReplaceJBridge::replace((TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, text, &_qstring_text), (const TQRegExp&)*(const TQRegExp*) QtSupport::getQt(env, pattern), (const TQString&)*(TQString*) QtSupport::toTQString(env, replacement, &_qstring_replacement), (int) index, (long) options, (int*) _int_replacedLength); QtSupport::fromTQStringToStringBuffer(env, _qstring_text, text); env->SetIntArrayRegion(replacedLength, 0, 1, (jint *) _int_replacedLength); return xret; |