diff options
Diffstat (limited to 'qtjava/javalib/qtjava/QTranslator.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QTranslator.cpp | 140 |
1 files changed, 70 insertions, 70 deletions
diff --git a/qtjava/javalib/qtjava/QTranslator.cpp b/qtjava/javalib/qtjava/QTranslator.cpp index 69d6d39c..3e4f43e1 100644 --- a/qtjava/javalib/qtjava/QTranslator.cpp +++ b/qtjava/javalib/qtjava/QTranslator.cpp @@ -8,43 +8,43 @@ class TQTranslatorJBridge : public TQTranslator { public: - TQTranslatorJBridge(TTQObject* arg1,const char* arg2) : TQTranslator(arg1,arg2) {}; - TQTranslatorJBridge(TTQObject* arg1) : TQTranslator(arg1) {}; + TQTranslatorJBridge(TQObject* arg1,const char* arg2) : TQTranslator(arg1,arg2) {}; + TQTranslatorJBridge(TQObject* arg1) : TQTranslator(arg1) {}; TQTranslatorJBridge() : TQTranslator() {}; ~TQTranslatorJBridge() {QtSupport::qtKeyDeleted(this);} - 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.qt.TQTranslator",object,event)) { - return TTQObject::eventFilter(object,event); + return TQObject::eventFilter(object,event); } else { return TRUE; } @@ -69,8 +69,8 @@ Java_org_kde_qt_QTranslator_clear(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_qt_QTranslator_contains__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2) { -static TTQCString* _qstring_arg1 = 0; -static TTQCString* _qstring_arg2 = 0; +static TQCString* _qstring_arg1 = 0; +static TQCString* _qstring_arg2 = 0; jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->contains((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2)); return xret; } @@ -78,9 +78,9 @@ static TTQCString* _qstring_arg2 = 0; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QTranslator_contains__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring comment) { -static TTQCString* _qstring_arg1 = 0; -static TTQCString* _qstring_arg2 = 0; -static TTQCString* _qstring_comment = 0; +static TQCString* _qstring_arg1 = 0; +static TQCString* _qstring_arg2 = 0; +static TQCString* _qstring_comment = 0; jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->contains((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2), (const char*) QtSupport::toCharString(env, comment, &_qstring_comment)); return xret; } @@ -105,8 +105,8 @@ Java_org_kde_qt_QTranslator_finalize(JNIEnv* env, jobject obj) JNIEXPORT jobject JNICALL Java_org_kde_qt_QTranslator_findMessage__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2) { -static TTQCString* _qstring_arg1 = 0; -static TTQCString* _qstring_arg2 = 0; +static TQCString* _qstring_arg1 = 0; +static TQCString* _qstring_arg2 = 0; jobject xret = QtSupport::objectForQtKey(env, (void*)new TQTranslatorMessage(((TQTranslator*) QtSupport::getQt(env, obj))->findMessage((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2))), "org.kde.qt.TQTranslatorMessage", TRUE); return xret; } @@ -114,9 +114,9 @@ static TTQCString* _qstring_arg2 = 0; JNIEXPORT jobject JNICALL Java_org_kde_qt_QTranslator_findMessage__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2, jstring arg3) { -static TTQCString* _qstring_arg1 = 0; -static TTQCString* _qstring_arg2 = 0; -static TTQCString* _qstring_arg3 = 0; +static TQCString* _qstring_arg1 = 0; +static TQCString* _qstring_arg2 = 0; +static TQCString* _qstring_arg3 = 0; jobject xret = QtSupport::objectForQtKey(env, (void*)new TQTranslatorMessage(((TQTranslator*) QtSupport::getQt(env, obj))->findMessage((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2), (const char*) QtSupport::toCharString(env, arg3, &_qstring_arg3))), "org.kde.qt.TQTranslatorMessage", TRUE); return xret; } @@ -124,9 +124,9 @@ static TTQCString* _qstring_arg3 = 0; JNIEXPORT jstring JNICALL Java_org_kde_qt_QTranslator_find__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText) { - TTQString _qstring; -static TTQCString* _qstring_context = 0; -static TTQCString* _qstring_sourceText = 0; + TQString _qstring; +static TQCString* _qstring_context = 0; +static TQCString* _qstring_sourceText = 0; _qstring = ((TQTranslator*) QtSupport::getQt(env, obj))->find((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText)); return QtSupport::fromTQString(env, &_qstring); } @@ -134,10 +134,10 @@ static TTQCString* _qstring_sourceText = 0; JNIEXPORT jstring JNICALL Java_org_kde_qt_QTranslator_find__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText, jstring comment) { - TTQString _qstring; -static TTQCString* _qstring_context = 0; -static TTQCString* _qstring_sourceText = 0; -static TTQCString* _qstring_comment = 0; + TQString _qstring; +static TQCString* _qstring_context = 0; +static TQCString* _qstring_sourceText = 0; +static TQCString* _qstring_comment = 0; _qstring = ((TQTranslator*) QtSupport::getQt(env, obj))->find((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText), (const char*) QtSupport::toCharString(env, comment, &_qstring_comment)); return QtSupport::fromTQString(env, &_qstring); } @@ -145,10 +145,10 @@ static TTQCString* _qstring_comment = 0; JNIEXPORT void JNICALL Java_org_kde_qt_QTranslator_insert__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText, jstring translation) { -static TTQCString* _qstring_context = 0; -static TTQCString* _qstring_sourceText = 0; -static TTQString* _qstring_translation = 0; - ((TQTranslator*) QtSupport::getQt(env, obj))->insert((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, translation, &_qstring_translation)); +static TQCString* _qstring_context = 0; +static TQCString* _qstring_sourceText = 0; +static TQString* _qstring_translation = 0; + ((TQTranslator*) QtSupport::getQt(env, obj))->insert((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText), (const TQString&)*(TQString*) QtSupport::toTQString(env, translation, &_qstring_translation)); return; } @@ -175,45 +175,45 @@ Java_org_kde_qt_QTranslator_isEmpty(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_qt_QTranslator_load__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename) { -static TTQString* _qstring_filename = 0; - jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TTQString&)*(TTQString*) QtSupport::toTQString(env, filename, &_qstring_filename)); +static TQString* _qstring_filename = 0; + jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QTranslator_load__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename, jstring directory) { -static TTQString* _qstring_filename = 0; -static TTQString* _qstring_directory = 0; - jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TTQString&)*(TTQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, directory, &_qstring_directory)); +static TQString* _qstring_filename = 0; +static TQString* _qstring_directory = 0; + jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TQString&)*(TQString*) QtSupport::toTQString(env, directory, &_qstring_directory)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QTranslator_load__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename, jstring directory, jstring search_delimiters) { -static TTQString* _qstring_filename = 0; -static TTQString* _qstring_directory = 0; -static TTQString* _qstring_search_delimiters = 0; - jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TTQString&)*(TTQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, directory, &_qstring_directory), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, search_delimiters, &_qstring_search_delimiters)); +static TQString* _qstring_filename = 0; +static TQString* _qstring_directory = 0; +static TQString* _qstring_search_delimiters = 0; + jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TQString&)*(TQString*) QtSupport::toTQString(env, directory, &_qstring_directory), (const TQString&)*(TQString*) QtSupport::toTQString(env, search_delimiters, &_qstring_search_delimiters)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QTranslator_load__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename, jstring directory, jstring search_delimiters, jstring suffix) { -static TTQString* _qstring_filename = 0; -static TTQString* _qstring_directory = 0; -static TTQString* _qstring_search_delimiters = 0; -static TTQString* _qstring_suffix = 0; - jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TTQString&)*(TTQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, directory, &_qstring_directory), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, search_delimiters, &_qstring_search_delimiters), (const TTQString&)*(TTQString*) QtSupport::toTQString(env, suffix, &_qstring_suffix)); +static TQString* _qstring_filename = 0; +static TQString* _qstring_directory = 0; +static TQString* _qstring_search_delimiters = 0; +static TQString* _qstring_suffix = 0; + jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TQString&)*(TQString*) QtSupport::toTQString(env, directory, &_qstring_directory), (const TQString&)*(TQString*) QtSupport::toTQString(env, search_delimiters, &_qstring_search_delimiters), (const TQString&)*(TQString*) QtSupport::toTQString(env, suffix, &_qstring_suffix)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QTranslator_load___3CI(JNIEnv* env, jobject obj, jcharArray data, jint len) { -static TTQByteArray* _qbytearray_data = 0; +static TQByteArray* _qbytearray_data = 0; jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const uchar*) QtSupport::toUcharArray(env, data, &_qbytearray_data), (int) len); return xret; } @@ -221,7 +221,7 @@ static TTQByteArray* _qbytearray_data = 0; JNIEXPORT jobject JNICALL Java_org_kde_qt_QTranslator_metaObject(JNIEnv* env, jobject obj) { - jobject xret = QtSupport::objectForQtKey(env, (void*)((TQTranslator*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TTQMetaObject"); + jobject xret = QtSupport::objectForQtKey(env, (void*)((TQTranslator*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TQMetaObject"); return xret; } @@ -239,7 +239,7 @@ JNIEXPORT void JNICALL Java_org_kde_qt_QTranslator_newTQTranslator__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TQTranslatorJBridge((TTQObject*) QtSupport::getQt(env, parent))); + QtSupport::setQt(env, obj, new TQTranslatorJBridge((TQObject*) QtSupport::getQt(env, parent))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -248,9 +248,9 @@ Java_org_kde_qt_QTranslator_newTQTranslator__Lorg_kde_qt_QObject_2(JNIEnv* env, JNIEXPORT void JNICALL Java_org_kde_qt_QTranslator_newTQTranslator__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name) { -static TTQCString* _qstring_name = 0; +static TQCString* _qstring_name = 0; if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TQTranslatorJBridge((TTQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name))); + QtSupport::setQt(env, obj, new TQTranslatorJBridge((TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -259,8 +259,8 @@ static TTQCString* _qstring_name = 0; JNIEXPORT void JNICALL Java_org_kde_qt_QTranslator_remove__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText) { -static TTQCString* _qstring_context = 0; -static TTQCString* _qstring_sourceText = 0; +static TQCString* _qstring_context = 0; +static TQCString* _qstring_sourceText = 0; ((TQTranslator*) QtSupport::getQt(env, obj))->remove((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText)); return; } @@ -275,16 +275,16 @@ Java_org_kde_qt_QTranslator_remove__Lorg_kde_qt_QTranslatorMessage_2(JNIEnv* env JNIEXPORT jboolean JNICALL Java_org_kde_qt_QTranslator_save__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename) { -static TTQString* _qstring_filename = 0; - jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->save((const TTQString&)*(TTQString*) QtSupport::toTQString(env, filename, &_qstring_filename)); +static TQString* _qstring_filename = 0; + jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QTranslator_save__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring filename, jint mode) { -static TTQString* _qstring_filename = 0; - jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->save((const TTQString&)*(TTQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (TQTranslator::SaveMode) mode); +static TQString* _qstring_filename = 0; + jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (TQTranslator::SaveMode) mode); return xret; } @@ -305,9 +305,9 @@ Java_org_kde_qt_QTranslator_squeeze__I(JNIEnv* env, jobject obj, jint arg1) JNIEXPORT jstring JNICALL Java_org_kde_qt_QTranslator_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1) { - TTQString _qstring; + TQString _qstring; (void) cls; -static TTQCString* _qstring_arg1 = 0; +static TQCString* _qstring_arg1 = 0; _qstring = TQTranslatorJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1)); return QtSupport::fromTQString(env, &_qstring); } @@ -315,10 +315,10 @@ static TTQCString* _qstring_arg1 = 0; JNIEXPORT jstring JNICALL Java_org_kde_qt_QTranslator_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2) { - TTQString _qstring; + TQString _qstring; (void) cls; -static TTQCString* _qstring_arg1 = 0; -static TTQCString* _qstring_arg2 = 0; +static TQCString* _qstring_arg1 = 0; +static TQCString* _qstring_arg2 = 0; _qstring = TQTranslatorJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2)); return QtSupport::fromTQString(env, &_qstring); } |