diff options
Diffstat (limited to 'qtjava/javalib/qtjava/QSize.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QSize.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/qtjava/javalib/qtjava/QSize.cpp b/qtjava/javalib/qtjava/QSize.cpp index e304496f..ed9799b4 100644 --- a/qtjava/javalib/qtjava/QSize.cpp +++ b/qtjava/javalib/qtjava/QSize.cpp @@ -3,20 +3,20 @@ #include <tqwindowdefs.h> #include <qtjava/QtSupport.h> -#include <qtjava/QSize.h> +#include <qtjava/TQSize.h> -class QSizeJBridge : public QSize +class TQSizeJBridge : public TQSize { public: - QSizeJBridge() : TQSize() {}; - QSizeJBridge(int arg1,int arg2) : TQSize(arg1,arg2) {}; - ~QSizeJBridge() {QtSupport::qtKeyDeleted(this);} + TQSizeJBridge() : TTQSize() {}; + TQSizeJBridge(int arg1,int arg2) : TTQSize(arg1,arg2) {}; + ~TQSizeJBridge() {QtSupport::qtKeyDeleted(this);} }; JNIEXPORT jobject JNICALL Java_org_kde_qt_QSize_boundedTo(JNIEnv* env, jobject obj, jobject arg1) { - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQSize*) QtSupport::getQt(env, obj))->boundedTo((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1))), "org.kde.qt.TQSize", TRUE); + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQSize(((TTQSize*) QtSupport::getQt(env, obj))->boundedTo((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, arg1))), "org.kde.qt.TTQSize", TRUE); return xret; } @@ -30,7 +30,7 @@ Java_org_kde_qt_QSize_dispose(JNIEnv* env, jobject obj) JNIEXPORT jobject JNICALL Java_org_kde_qt_QSize_expandedTo(JNIEnv* env, jobject obj, jobject arg1) { - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQSize*) QtSupport::getQt(env, obj))->expandedTo((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1))), "org.kde.qt.TQSize", TRUE); + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQSize(((TTQSize*) QtSupport::getQt(env, obj))->expandedTo((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, arg1))), "org.kde.qt.TTQSize", TRUE); return xret; } @@ -38,7 +38,7 @@ JNIEXPORT void JNICALL Java_org_kde_qt_QSize_finalize(JNIEnv* env, jobject obj) { if (QtSupport::allocatedInJavaWorld(env, obj)) { - delete (TQSize*)QtSupport::getQt(env, obj); + delete (TTQSize*)QtSupport::getQt(env, obj); QtSupport::setQt(env, obj, 0); } return; @@ -47,7 +47,7 @@ Java_org_kde_qt_QSize_finalize(JNIEnv* env, jobject obj) JNIEXPORT jint JNICALL Java_org_kde_qt_QSize_height(JNIEnv* env, jobject obj) { - jint xret = (jint) ((TQSize*) QtSupport::getQt(env, obj))->height(); + jint xret = (jint) ((TTQSize*) QtSupport::getQt(env, obj))->height(); return xret; } @@ -60,39 +60,39 @@ Java_org_kde_qt_QSize_isDisposed(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_qt_QSize_isEmpty(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQSize*) QtSupport::getQt(env, obj))->isEmpty(); + jboolean xret = (jboolean) ((TTQSize*) QtSupport::getQt(env, obj))->isEmpty(); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QSize_isNull(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQSize*) QtSupport::getQt(env, obj))->isNull(); + jboolean xret = (jboolean) ((TTQSize*) QtSupport::getQt(env, obj))->isNull(); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QSize_isValid(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQSize*) QtSupport::getQt(env, obj))->isValid(); + jboolean xret = (jboolean) ((TTQSize*) QtSupport::getQt(env, obj))->isValid(); return xret; } JNIEXPORT void JNICALL -Java_org_kde_qt_QSize_newQSize__(JNIEnv* env, jobject obj) +Java_org_kde_qt_QSize_newTQSize__(JNIEnv* env, jobject obj) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new QSizeJBridge()); + QtSupport::setQt(env, obj, new TQSizeJBridge()); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; } JNIEXPORT void JNICALL -Java_org_kde_qt_QSize_newQSize__II(JNIEnv* env, jobject obj, jint w, jint h) +Java_org_kde_qt_QSize_newTQSize__II(JNIEnv* env, jobject obj, jint w, jint h) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new QSizeJBridge((int) w, (int) h)); + QtSupport::setQt(env, obj, new TQSizeJBridge((int) w, (int) h)); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -101,98 +101,98 @@ Java_org_kde_qt_QSize_newQSize__II(JNIEnv* env, jobject obj, jint w, jint h) JNIEXPORT jobject JNICALL Java_org_kde_qt_QSize_op_1div_1assign__D(JNIEnv* env, jobject obj, jdouble c) { - jobject xret = QtSupport::objectForQtKey(env, (void*)(TQSize *) &((TQSize*) QtSupport::getQt(env, obj))->operator/=((double) c), "org.kde.qt.TQSize"); + jobject xret = QtSupport::objectForQtKey(env, (void*)(TTQSize *) &((TTQSize*) QtSupport::getQt(env, obj))->operator/=((double) c), "org.kde.qt.TTQSize"); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSize_op_1div_1assign__I(JNIEnv* env, jobject obj, jint c) { - jobject xret = QtSupport::objectForQtKey(env, (void*)(TQSize *) &((TQSize*) QtSupport::getQt(env, obj))->operator/=((int) c), "org.kde.qt.TQSize"); + jobject xret = QtSupport::objectForQtKey(env, (void*)(TTQSize *) &((TTQSize*) QtSupport::getQt(env, obj))->operator/=((int) c), "org.kde.qt.TTQSize"); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSize_op_1minus_1assign(JNIEnv* env, jobject obj, jobject arg1) { - jobject xret = QtSupport::objectForQtKey(env, (void*)(TQSize *) &((TQSize*) QtSupport::getQt(env, obj))->operator-=((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1)), "org.kde.qt.TQSize"); + jobject xret = QtSupport::objectForQtKey(env, (void*)(TTQSize *) &((TTQSize*) QtSupport::getQt(env, obj))->operator-=((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, arg1)), "org.kde.qt.TTQSize"); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSize_op_1mult_1assign__D(JNIEnv* env, jobject obj, jdouble c) { - jobject xret = QtSupport::objectForQtKey(env, (void*)(TQSize *) &((TQSize*) QtSupport::getQt(env, obj))->operator*=((double) c), "org.kde.qt.TQSize"); + jobject xret = QtSupport::objectForQtKey(env, (void*)(TTQSize *) &((TTQSize*) QtSupport::getQt(env, obj))->operator*=((double) c), "org.kde.qt.TTQSize"); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSize_op_1mult_1assign__I(JNIEnv* env, jobject obj, jint c) { - jobject xret = QtSupport::objectForQtKey(env, (void*)(TQSize *) &((TQSize*) QtSupport::getQt(env, obj))->operator*=((int) c), "org.kde.qt.TQSize"); + jobject xret = QtSupport::objectForQtKey(env, (void*)(TTQSize *) &((TTQSize*) QtSupport::getQt(env, obj))->operator*=((int) c), "org.kde.qt.TTQSize"); return xret; } JNIEXPORT jobject JNICALL Java_org_kde_qt_QSize_op_1plus_1assign(JNIEnv* env, jobject obj, jobject arg1) { - jobject xret = QtSupport::objectForQtKey(env, (void*)(TQSize *) &((TQSize*) QtSupport::getQt(env, obj))->operator+=((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1)), "org.kde.qt.TQSize"); + jobject xret = QtSupport::objectForQtKey(env, (void*)(TTQSize *) &((TTQSize*) QtSupport::getQt(env, obj))->operator+=((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, arg1)), "org.kde.qt.TTQSize"); return xret; } JNIEXPORT jshort JNICALL Java_org_kde_qt_QSize_rheight(JNIEnv* env, jobject obj) { - jshort xret = (jshort) ((TQSize*) QtSupport::getQt(env, obj))->rheight(); + jshort xret = (jshort) ((TTQSize*) QtSupport::getQt(env, obj))->rheight(); return xret; } JNIEXPORT jshort JNICALL Java_org_kde_qt_QSize_rwidth(JNIEnv* env, jobject obj) { - jshort xret = (jshort) ((TQSize*) QtSupport::getQt(env, obj))->rwidth(); + jshort xret = (jshort) ((TTQSize*) QtSupport::getQt(env, obj))->rwidth(); return xret; } JNIEXPORT void JNICALL Java_org_kde_qt_QSize_scale__III(JNIEnv* env, jobject obj, jint w, jint h, jint mode) { - ((TQSize*) QtSupport::getQt(env, obj))->scale((int) w, (int) h, (TQSize::ScaleMode) mode); + ((TTQSize*) QtSupport::getQt(env, obj))->scale((int) w, (int) h, (TTQSize::ScaleMode) mode); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSize_scale__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject s, jint mode) { - ((TQSize*) QtSupport::getQt(env, obj))->scale((const TQSize&)*(const TQSize*) QtSupport::getQt(env, s), (TQSize::ScaleMode) mode); + ((TTQSize*) QtSupport::getQt(env, obj))->scale((const TTQSize&)*(const TTQSize*) QtSupport::getQt(env, s), (TTQSize::ScaleMode) mode); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSize_setHeight(JNIEnv* env, jobject obj, jint h) { - ((TQSize*) QtSupport::getQt(env, obj))->setHeight((int) h); + ((TTQSize*) QtSupport::getQt(env, obj))->setHeight((int) h); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSize_setWidth(JNIEnv* env, jobject obj, jint w) { - ((TQSize*) QtSupport::getQt(env, obj))->setWidth((int) w); + ((TTQSize*) QtSupport::getQt(env, obj))->setWidth((int) w); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QSize_transpose(JNIEnv* env, jobject obj) { - ((TQSize*) QtSupport::getQt(env, obj))->transpose(); + ((TTQSize*) QtSupport::getQt(env, obj))->transpose(); return; } JNIEXPORT jint JNICALL Java_org_kde_qt_QSize_width(JNIEnv* env, jobject obj) { - jint xret = (jint) ((TQSize*) QtSupport::getQt(env, obj))->width(); + jint xret = (jint) ((TTQSize*) QtSupport::getQt(env, obj))->width(); return xret; } |