summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/KReplace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/kdejava/KReplace.cpp')
-rw-r--r--kdejava/koala/kdejava/KReplace.cpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/kdejava/koala/kdejava/KReplace.cpp b/kdejava/koala/kdejava/KReplace.cpp
index 22c65227..84ce3731 100644
--- a/kdejava/koala/kdejava/KReplace.cpp
+++ b/kdejava/koala/kdejava/KReplace.cpp
@@ -11,9 +11,9 @@
class KReplaceJBridge : public KReplace
{
public:
- 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) {};
+ 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) {};
void public_resetCounts() {
KReplace::resetCounts();
return;
@@ -47,39 +47,39 @@ public:
}
return;
}
- 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;
}
- 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.KReplace",object,event)) {
- return TQObject::eventFilter(object,event);
+ return TTQObject::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.TQMetaObject");
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((KReplace*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TTQMetaObject");
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 TQString* _qstring_pattern = 0;
-static TQString* _qstring_replacement = 0;
+static TTQString* _qstring_pattern = 0;
+static TTQString* _qstring_replacement = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new KReplaceJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, pattern, &_qstring_pattern), (const TQString&)*(TQString*) QtSupport::toQString(env, replacement, &_qstring_replacement), (long) options));
+ 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::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -153,10 +153,10 @@ static TQString* _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 TQString* _qstring_pattern = 0;
-static TQString* _qstring_replacement = 0;
+static TTQString* _qstring_pattern = 0;
+static TTQString* _qstring_replacement = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new KReplaceJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, pattern, &_qstring_pattern), (const TQString&)*(TQString*) QtSupport::toQString(env, replacement, &_qstring_replacement), (long) options, (TQWidget*) QtSupport::getQt(env, parent)));
+ 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::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -165,10 +165,10 @@ static TQString* _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 TQString* _qstring_pattern = 0;
-static TQString* _qstring_replacement = 0;
+static TTQString* _qstring_pattern = 0;
+static TTQString* _qstring_replacement = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new KReplaceJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, pattern, &_qstring_pattern), (const TQString&)*(TQString*) QtSupport::toQString(env, replacement, &_qstring_replacement), (long) options, (TQWidget*) QtSupport::getQt(env, parent), (TQWidget*) QtSupport::getQt(env, replaceDialog)));
+ 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::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -206,12 +206,12 @@ 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 TQString* _qstring_text = 0;
-static TQString* _qstring_pattern = 0;
-static TQString* _qstring_replacement = 0;
+static TTQString* _qstring_text = 0;
+static TTQString* _qstring_pattern = 0;
+static TTQString* _qstring_replacement = 0;
int* _int_replacedLength = QtSupport::toIntPtr(env, replacedLength);
- jint xret = (jint) KReplaceJBridge::replace((TQString&)*(TQString*) QtSupport::toQStringFromStringBuffer(env, text, &_qstring_text), (const TQString&)*(TQString*) QtSupport::toQString(env, pattern, &_qstring_pattern), (const TQString&)*(TQString*) QtSupport::toQString(env, replacement, &_qstring_replacement), (int) index, (long) options, (int*) _int_replacedLength);
- QtSupport::fromQStringToStringBuffer(env, _qstring_text, text);
+ 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);
+ QtSupport::fromTQStringToStringBuffer(env, _qstring_text, text);
env->SetIntArrayRegion(replacedLength, 0, 1, (jint *) _int_replacedLength);
return xret;
}
@@ -220,11 +220,11 @@ 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 TQString* _qstring_text = 0;
-static TQString* _qstring_replacement = 0;
+static TTQString* _qstring_text = 0;
+static TTQString* _qstring_replacement = 0;
int* _int_replacedLength = QtSupport::toIntPtr(env, replacedLength);
- jint xret = (jint) KReplaceJBridge::replace((TQString&)*(TQString*) QtSupport::toQStringFromStringBuffer(env, text, &_qstring_text), (const TQRegExp&)*(const TQRegExp*) QtSupport::getQt(env, pattern), (const TQString&)*(TQString*) QtSupport::toQString(env, replacement, &_qstring_replacement), (int) index, (long) options, (int*) _int_replacedLength);
- QtSupport::fromQStringToStringBuffer(env, _qstring_text, text);
+ 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);
+ QtSupport::fromTQStringToStringBuffer(env, _qstring_text, text);
env->SetIntArrayRegion(replacedLength, 0, 1, (jint *) _int_replacedLength);
return xret;
}