summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QTranslator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/QTranslator.cpp')
-rw-r--r--qtjava/javalib/qtjava/QTranslator.cpp206
1 files changed, 103 insertions, 103 deletions
diff --git a/qtjava/javalib/qtjava/QTranslator.cpp b/qtjava/javalib/qtjava/QTranslator.cpp
index 39d43434..69d6d39c 100644
--- a/qtjava/javalib/qtjava/QTranslator.cpp
+++ b/qtjava/javalib/qtjava/QTranslator.cpp
@@ -3,48 +3,48 @@
#include <tqtranslator.h>
#include <qtjava/QtSupport.h>
-#include <qtjava/QTranslator.h>
+#include <qtjava/TQTranslator.h>
-class QTranslatorJBridge : public QTranslator
+class TQTranslatorJBridge : public TQTranslator
{
public:
- QTranslatorJBridge(TQObject* arg1,const char* arg2) : QTranslator(arg1,arg2) {};
- QTranslatorJBridge(TQObject* arg1) : QTranslator(arg1) {};
- QTranslatorJBridge() : QTranslator() {};
- ~QTranslatorJBridge() {QtSupport::qtKeyDeleted(this);}
- void removeChild(TQObject* arg1) {
- if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TQObject")) {
- TQObject::removeChild(arg1);
+ TQTranslatorJBridge(TTQObject* arg1,const char* arg2) : TQTranslator(arg1,arg2) {};
+ TQTranslatorJBridge(TTQObject* 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);
}
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) {
- if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.QTranslator",object,event)) {
- return TQObject::eventFilter(object,event);
+ bool eventFilter(TTQObject* object,TTQEvent* event) {
+ if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.TQTranslator",object,event)) {
+ return TTQObject::eventFilter(object,event);
} else {
return TRUE;
}
@@ -55,33 +55,33 @@ JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTranslator_className(JNIEnv* env, jobject obj)
{
const char* _qstring;
- _qstring = ((QTranslator*) QtSupport::getQt(env, obj))->className();
+ _qstring = ((TQTranslator*) QtSupport::getQt(env, obj))->className();
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QTranslator_clear(JNIEnv* env, jobject obj)
{
- ((QTranslator*) QtSupport::getQt(env, obj))->clear();
+ ((TQTranslator*) QtSupport::getQt(env, obj))->clear();
return;
}
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 TQCString* _qstring_arg1 = 0;
-static TQCString* _qstring_arg2 = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->contains((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
+static TTQCString* _qstring_arg1 = 0;
+static TTQCString* _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;
}
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 TQCString* _qstring_arg1 = 0;
-static TQCString* _qstring_arg2 = 0;
-static TQCString* _qstring_comment = 0;
- jboolean xret = (jboolean) ((QTranslator*) 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));
+static TTQCString* _qstring_arg1 = 0;
+static TTQCString* _qstring_arg2 = 0;
+static TTQCString* _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;
}
@@ -95,8 +95,8 @@ Java_org_kde_qt_QTranslator_dispose(JNIEnv* env, jobject obj)
JNIEXPORT void JNICALL
Java_org_kde_qt_QTranslator_finalize(JNIEnv* env, jobject obj)
{
- if (QtSupport::allocatedInJavaWorld(env, obj) && ((QTranslator*)QtSupport::getQt(env, obj))->parent() == 0) {
- delete (QTranslator*)QtSupport::getQt(env, obj);
+ if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQTranslator*)QtSupport::getQt(env, obj))->parent() == 0) {
+ delete (TQTranslator*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
@@ -105,57 +105,57 @@ 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 TQCString* _qstring_arg1 = 0;
-static TQCString* _qstring_arg2 = 0;
- jobject xret = QtSupport::objectForQtKey(env, (void*)new QTranslatorMessage(((QTranslator*) QtSupport::getQt(env, obj))->findMessage((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2))), "org.kde.qt.QTranslatorMessage", TRUE);
+static TTQCString* _qstring_arg1 = 0;
+static TTQCString* _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;
}
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 TQCString* _qstring_arg1 = 0;
-static TQCString* _qstring_arg2 = 0;
-static TQCString* _qstring_arg3 = 0;
- jobject xret = QtSupport::objectForQtKey(env, (void*)new QTranslatorMessage(((QTranslator*) 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.QTranslatorMessage", TRUE);
+static TTQCString* _qstring_arg1 = 0;
+static TTQCString* _qstring_arg2 = 0;
+static TTQCString* _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;
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTranslator_find__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring context, jstring sourceText)
{
- TQString _qstring;
-static TQCString* _qstring_context = 0;
-static TQCString* _qstring_sourceText = 0;
- _qstring = ((QTranslator*) QtSupport::getQt(env, obj))->find((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText));
- return QtSupport::fromQString(env, &_qstring);
+ TTQString _qstring;
+static TTQCString* _qstring_context = 0;
+static TTQCString* _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);
}
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)
{
- TQString _qstring;
-static TQCString* _qstring_context = 0;
-static TQCString* _qstring_sourceText = 0;
-static TQCString* _qstring_comment = 0;
- _qstring = ((QTranslator*) 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::fromQString(env, &_qstring);
+ TTQString _qstring;
+static TTQCString* _qstring_context = 0;
+static TTQCString* _qstring_sourceText = 0;
+static TTQCString* _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);
}
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 TQCString* _qstring_context = 0;
-static TQCString* _qstring_sourceText = 0;
-static TQString* _qstring_translation = 0;
- ((QTranslator*) 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::toQString(env, translation, &_qstring_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));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QTranslator_insert__Lorg_kde_qt_QTranslatorMessage_2(JNIEnv* env, jobject obj, jobject arg1)
{
- ((QTranslator*) QtSupport::getQt(env, obj))->insert((const QTranslatorMessage&)*(const QTranslatorMessage*) QtSupport::getQt(env, arg1));
+ ((TQTranslator*) QtSupport::getQt(env, obj))->insert((const TQTranslatorMessage&)*(const TQTranslatorMessage*) QtSupport::getQt(env, arg1));
return;
}
@@ -168,89 +168,89 @@ Java_org_kde_qt_QTranslator_isDisposed(JNIEnv* env, jobject obj)
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTranslator_isEmpty(JNIEnv* env, jobject obj)
{
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->isEmpty();
+ jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->isEmpty();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTranslator_load__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
{
-static TQString* _qstring_filename = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toQString(env, filename, &_qstring_filename));
+static TTQString* _qstring_filename = 0;
+ jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const TTQString&)*(TTQString*) 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 TQString* _qstring_filename = 0;
-static TQString* _qstring_directory = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toQString(env, filename, &_qstring_filename), (const TQString&)*(TQString*) QtSupport::toQString(env, directory, &_qstring_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));
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 TQString* _qstring_filename = 0;
-static TQString* _qstring_directory = 0;
-static TQString* _qstring_search_delimiters = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toQString(env, filename, &_qstring_filename), (const TQString&)*(TQString*) QtSupport::toQString(env, directory, &_qstring_directory), (const TQString&)*(TQString*) QtSupport::toQString(env, search_delimiters, &_qstring_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));
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 TQString* _qstring_filename = 0;
-static TQString* _qstring_directory = 0;
-static TQString* _qstring_search_delimiters = 0;
-static TQString* _qstring_suffix = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toQString(env, filename, &_qstring_filename), (const TQString&)*(TQString*) QtSupport::toQString(env, directory, &_qstring_directory), (const TQString&)*(TQString*) QtSupport::toQString(env, search_delimiters, &_qstring_search_delimiters), (const TQString&)*(TQString*) QtSupport::toQString(env, suffix, &_qstring_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));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTranslator_load___3CI(JNIEnv* env, jobject obj, jcharArray data, jint len)
{
-static TQByteArray* _qbytearray_data = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const uchar*) QtSupport::toUcharArray(env, data, &_qbytearray_data), (int) len);
+static TTQByteArray* _qbytearray_data = 0;
+ jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->load((const uchar*) QtSupport::toUcharArray(env, data, &_qbytearray_data), (int) len);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTranslator_metaObject(JNIEnv* env, jobject obj)
{
- jobject xret = QtSupport::objectForQtKey(env, (void*)((QTranslator*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TQMetaObject");
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((TQTranslator*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TTQMetaObject");
return xret;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QTranslator_newQTranslator__(JNIEnv* env, jobject obj)
+Java_org_kde_qt_QTranslator_newTQTranslator__(JNIEnv* env, jobject obj)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QTranslatorJBridge());
+ QtSupport::setQt(env, obj, new TQTranslatorJBridge());
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QTranslator_newQTranslator__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
+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 QTranslatorJBridge((TQObject*) QtSupport::getQt(env, parent)));
+ QtSupport::setQt(env, obj, new TQTranslatorJBridge((TTQObject*) QtSupport::getQt(env, parent)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
-Java_org_kde_qt_QTranslator_newQTranslator__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
+Java_org_kde_qt_QTranslator_newTQTranslator__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, 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 QTranslatorJBridge((TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
+ QtSupport::setQt(env, obj, new TQTranslatorJBridge((TTQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -259,74 +259,74 @@ static TQCString* _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 TQCString* _qstring_context = 0;
-static TQCString* _qstring_sourceText = 0;
- ((QTranslator*) QtSupport::getQt(env, obj))->remove((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText));
+static TTQCString* _qstring_context = 0;
+static TTQCString* _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;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QTranslator_remove__Lorg_kde_qt_QTranslatorMessage_2(JNIEnv* env, jobject obj, jobject arg1)
{
- ((QTranslator*) QtSupport::getQt(env, obj))->remove((const QTranslatorMessage&)*(const QTranslatorMessage*) QtSupport::getQt(env, arg1));
+ ((TQTranslator*) QtSupport::getQt(env, obj))->remove((const TQTranslatorMessage&)*(const TQTranslatorMessage*) QtSupport::getQt(env, arg1));
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTranslator_save__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
{
-static TQString* _qstring_filename = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toQString(env, filename, &_qstring_filename));
+static TTQString* _qstring_filename = 0;
+ jboolean xret = (jboolean) ((TQTranslator*) QtSupport::getQt(env, obj))->save((const TTQString&)*(TTQString*) 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 TQString* _qstring_filename = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toQString(env, filename, &_qstring_filename), (QTranslator::SaveMode) 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);
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QTranslator_squeeze__(JNIEnv* env, jobject obj)
{
- ((QTranslator*) QtSupport::getQt(env, obj))->squeeze();
+ ((TQTranslator*) QtSupport::getQt(env, obj))->squeeze();
return;
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QTranslator_squeeze__I(JNIEnv* env, jobject obj, jint arg1)
{
- ((QTranslator*) QtSupport::getQt(env, obj))->squeeze((QTranslator::SaveMode) arg1);
+ ((TQTranslator*) QtSupport::getQt(env, obj))->squeeze((TQTranslator::SaveMode) arg1);
return;
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTranslator_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
- TQString _qstring;
+ TTQString _qstring;
(void) cls;
-static TQCString* _qstring_arg1 = 0;
- _qstring = QTranslatorJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
- return QtSupport::fromQString(env, &_qstring);
+static TTQCString* _qstring_arg1 = 0;
+ _qstring = TQTranslatorJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
+ return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTranslator_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
- TQString _qstring;
+ TTQString _qstring;
(void) cls;
-static TQCString* _qstring_arg1 = 0;
-static TQCString* _qstring_arg2 = 0;
- _qstring = QTranslatorJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
- return QtSupport::fromQString(env, &_qstring);
+static TTQCString* _qstring_arg1 = 0;
+static TTQCString* _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);
}
JNIEXPORT void JNICALL
Java_org_kde_qt_QTranslator_unsqueeze(JNIEnv* env, jobject obj)
{
- ((QTranslator*) QtSupport::getQt(env, obj))->unsqueeze();
+ ((TQTranslator*) QtSupport::getQt(env, obj))->unsqueeze();
return;
}