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.cpp144
1 files changed, 72 insertions, 72 deletions
diff --git a/qtjava/javalib/qtjava/QTranslator.cpp b/qtjava/javalib/qtjava/QTranslator.cpp
index 584fab04..39d43434 100644
--- a/qtjava/javalib/qtjava/QTranslator.cpp
+++ b/qtjava/javalib/qtjava/QTranslator.cpp
@@ -1,6 +1,6 @@
//Auto-generated by kalyptus. DO NOT EDIT.
-#include <qstring.h>
-#include <qtranslator.h>
+#include <tqstring.h>
+#include <tqtranslator.h>
#include <qtjava/QtSupport.h>
#include <qtjava/QTranslator.h>
@@ -8,43 +8,43 @@
class QTranslatorJBridge : public QTranslator
{
public:
- QTranslatorJBridge(QObject* arg1,const char* arg2) : QTranslator(arg1,arg2) {};
- QTranslatorJBridge(QObject* arg1) : QTranslator(arg1) {};
+ QTranslatorJBridge(TQObject* arg1,const char* arg2) : QTranslator(arg1,arg2) {};
+ QTranslatorJBridge(TQObject* arg1) : QTranslator(arg1) {};
QTranslatorJBridge() : QTranslator() {};
~QTranslatorJBridge() {QtSupport::qtKeyDeleted(this);}
- void removeChild(QObject* arg1) {
- if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
- QObject::removeChild(arg1);
+ void removeChild(TQObject* arg1) {
+ if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TQObject")) {
+ TQObject::removeChild(arg1);
}
return;
}
- void customEvent(QCustomEvent* arg1) {
- if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
- QObject::customEvent(arg1);
+ void customEvent(TQCustomEvent* arg1) {
+ if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TQCustomEvent")) {
+ TQObject::customEvent(arg1);
}
return;
}
- void timerEvent(QTimerEvent* arg1) {
- if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
- QObject::timerEvent(arg1);
+ void timerEvent(TQTimerEvent* arg1) {
+ if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TQTimerEvent")) {
+ TQObject::timerEvent(arg1);
}
return;
}
- void childEvent(QChildEvent* arg1) {
- if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
- QObject::childEvent(arg1);
+ void childEvent(TQChildEvent* arg1) {
+ if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TQChildEvent")) {
+ TQObject::childEvent(arg1);
}
return;
}
- void insertChild(QObject* arg1) {
- if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
- QObject::insertChild(arg1);
+ void insertChild(TQObject* arg1) {
+ if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TQObject")) {
+ TQObject::insertChild(arg1);
}
return;
}
- bool eventFilter(QObject* object,QEvent* event) {
+ bool eventFilter(TQObject* object,TQEvent* event) {
if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.QTranslator",object,event)) {
- return QObject::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 QCString* _qstring_arg1 = 0;
-static QCString* _qstring_arg2 = 0;
+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));
return xret;
}
@@ -78,9 +78,9 @@ static QCString* _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 QCString* _qstring_arg1 = 0;
-static QCString* _qstring_arg2 = 0;
-static QCString* _qstring_comment = 0;
+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));
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 QCString* _qstring_arg1 = 0;
-static QCString* _qstring_arg2 = 0;
+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);
return xret;
}
@@ -114,9 +114,9 @@ static QCString* _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 QCString* _qstring_arg1 = 0;
-static QCString* _qstring_arg2 = 0;
-static QCString* _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 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);
return xret;
}
@@ -124,9 +124,9 @@ static QCString* _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)
{
- QString _qstring;
-static QCString* _qstring_context = 0;
-static QCString* _qstring_sourceText = 0;
+ 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);
}
@@ -134,10 +134,10 @@ static QCString* _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)
{
- QString _qstring;
-static QCString* _qstring_context = 0;
-static QCString* _qstring_sourceText = 0;
-static QCString* _qstring_comment = 0;
+ 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);
}
@@ -145,10 +145,10 @@ static QCString* _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 QCString* _qstring_context = 0;
-static QCString* _qstring_sourceText = 0;
-static QString* _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 QString&)*(QString*) QtSupport::toQString(env, translation, &_qstring_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));
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 QString* _qstring_filename = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename));
+static TQString* _qstring_filename = 0;
+ jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toQString(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 QString* _qstring_filename = 0;
-static QString* _qstring_directory = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (const QString&)*(QString*) QtSupport::toQString(env, directory, &_qstring_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));
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 QString* _qstring_filename = 0;
-static QString* _qstring_directory = 0;
-static QString* _qstring_search_delimiters = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (const QString&)*(QString*) QtSupport::toQString(env, directory, &_qstring_directory), (const QString&)*(QString*) QtSupport::toQString(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) ((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));
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 QString* _qstring_filename = 0;
-static QString* _qstring_directory = 0;
-static QString* _qstring_search_delimiters = 0;
-static QString* _qstring_suffix = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (const QString&)*(QString*) QtSupport::toQString(env, directory, &_qstring_directory), (const QString&)*(QString*) QtSupport::toQString(env, search_delimiters, &_qstring_search_delimiters), (const QString&)*(QString*) QtSupport::toQString(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) ((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));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTranslator_load___3CI(JNIEnv* env, jobject obj, jcharArray data, jint len)
{
-static QByteArray* _qbytearray_data = 0;
+static TQByteArray* _qbytearray_data = 0;
jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->load((const uchar*) QtSupport::toUcharArray(env, data, &_qbytearray_data), (int) len);
return xret;
}
@@ -221,7 +221,7 @@ static QByteArray* _qbytearray_data = 0;
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.QMetaObject");
+ jobject xret = QtSupport::objectForQtKey(env, (void*)((QTranslator*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.TQMetaObject");
return xret;
}
@@ -239,7 +239,7 @@ JNIEXPORT void JNICALL
Java_org_kde_qt_QTranslator_newQTranslator__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
{
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QTranslatorJBridge((QObject*) QtSupport::getQt(env, parent)));
+ QtSupport::setQt(env, obj, new QTranslatorJBridge((TQObject*) QtSupport::getQt(env, parent)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
@@ -248,9 +248,9 @@ Java_org_kde_qt_QTranslator_newQTranslator__Lorg_kde_qt_QObject_2(JNIEnv* env, j
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)
{
-static QCString* _qstring_name = 0;
+static TQCString* _qstring_name = 0;
if (QtSupport::getQt(env, obj) == 0) {
- QtSupport::setQt(env, obj, new QTranslatorJBridge((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
+ QtSupport::setQt(env, obj, new QTranslatorJBridge((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 QCString* _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 QCString* _qstring_context = 0;
-static QCString* _qstring_sourceText = 0;
+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));
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 QString* _qstring_filename = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->save((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename));
+static TQString* _qstring_filename = 0;
+ jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toQString(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 QString* _qstring_filename = 0;
- jboolean xret = (jboolean) ((QTranslator*) QtSupport::getQt(env, obj))->save((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (QTranslator::SaveMode) 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);
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)
{
- QString _qstring;
+ TQString _qstring;
(void) cls;
-static QCString* _qstring_arg1 = 0;
+static TQCString* _qstring_arg1 = 0;
_qstring = QTranslatorJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
return QtSupport::fromQString(env, &_qstring);
}
@@ -315,10 +315,10 @@ static QCString* _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)
{
- QString _qstring;
+ TQString _qstring;
(void) cls;
-static QCString* _qstring_arg1 = 0;
-static QCString* _qstring_arg2 = 0;
+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);
}