diff options
Diffstat (limited to 'qtjava/javalib/qtjava/QGLFormat.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QGLFormat.cpp | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/qtjava/javalib/qtjava/QGLFormat.cpp b/qtjava/javalib/qtjava/QGLFormat.cpp index eb83dc56..032c4c5d 100644 --- a/qtjava/javalib/qtjava/QGLFormat.cpp +++ b/qtjava/javalib/qtjava/QGLFormat.cpp @@ -2,28 +2,28 @@ #include <tqgl.h> #include <qtjava/QtSupport.h> -#include <qtjava/QGLFormat.h> +#include <qtjava/TQGLFormat.h> -class QGLFormatJBridge : public QGLFormat +class TQGLFormatJBridge : public TQGLFormat { public: - QGLFormatJBridge() : TQGLFormat() {}; - QGLFormatJBridge(int arg1,int arg2) : TQGLFormat(arg1,arg2) {}; - QGLFormatJBridge(int arg1) : TQGLFormat(arg1) {}; - ~QGLFormatJBridge() {QtSupport::qtKeyDeleted(this);} + TQGLFormatJBridge() : TTQGLFormat() {}; + TQGLFormatJBridge(int arg1,int arg2) : TTQGLFormat(arg1,arg2) {}; + TQGLFormatJBridge(int arg1) : TTQGLFormat(arg1) {}; + ~TQGLFormatJBridge() {QtSupport::qtKeyDeleted(this);} }; JNIEXPORT jboolean JNICALL Java_org_kde_qt_QGLFormat_accum(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQGLFormat*) QtSupport::getQt(env, obj))->accum(); + jboolean xret = (jboolean) ((TTQGLFormat*) QtSupport::getQt(env, obj))->accum(); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QGLFormat_alpha(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQGLFormat*) QtSupport::getQt(env, obj))->alpha(); + jboolean xret = (jboolean) ((TTQGLFormat*) QtSupport::getQt(env, obj))->alpha(); return xret; } @@ -31,7 +31,7 @@ JNIEXPORT jobject JNICALL Java_org_kde_qt_QGLFormat_defaultFormat(JNIEnv* env, jclass cls) { (void) cls; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQGLFormat(QGLFormatJBridge::defaultFormat()), "org.kde.qt.TQGLFormat", TRUE); + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQGLFormat(TQGLFormatJBridge::defaultFormat()), "org.kde.qt.TTQGLFormat", TRUE); return xret; } @@ -39,21 +39,21 @@ JNIEXPORT jobject JNICALL Java_org_kde_qt_QGLFormat_defaultOverlayFormat(JNIEnv* env, jclass cls) { (void) cls; - jobject xret = QtSupport::objectForQtKey(env, (void*)new TQGLFormat(QGLFormatJBridge::defaultOverlayFormat()), "org.kde.qt.TQGLFormat", TRUE); + jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQGLFormat(TQGLFormatJBridge::defaultOverlayFormat()), "org.kde.qt.TTQGLFormat", TRUE); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QGLFormat_depth(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQGLFormat*) QtSupport::getQt(env, obj))->depth(); + jboolean xret = (jboolean) ((TTQGLFormat*) QtSupport::getQt(env, obj))->depth(); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QGLFormat_directRendering(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQGLFormat*) QtSupport::getQt(env, obj))->directRendering(); + jboolean xret = (jboolean) ((TTQGLFormat*) QtSupport::getQt(env, obj))->directRendering(); return xret; } @@ -67,7 +67,7 @@ Java_org_kde_qt_QGLFormat_dispose(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_qt_QGLFormat_doubleBuffer(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQGLFormat*) QtSupport::getQt(env, obj))->doubleBuffer(); + jboolean xret = (jboolean) ((TTQGLFormat*) QtSupport::getQt(env, obj))->doubleBuffer(); return xret; } @@ -75,7 +75,7 @@ JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_finalize(JNIEnv* env, jobject obj) { if (QtSupport::allocatedInJavaWorld(env, obj)) { - delete (TQGLFormat*)QtSupport::getQt(env, obj); + delete (TTQGLFormat*)QtSupport::getQt(env, obj); QtSupport::setQt(env, obj, 0); } return; @@ -86,7 +86,7 @@ Java_org_kde_qt_QGLFormat_hasOpenGLOverlays(JNIEnv* env, jclass cls) { (void) cls; (void) env; - jboolean xret = (jboolean) QGLFormatJBridge::hasOpenGLOverlays(); + jboolean xret = (jboolean) TQGLFormatJBridge::hasOpenGLOverlays(); return xret; } @@ -95,14 +95,14 @@ Java_org_kde_qt_QGLFormat_hasOpenGL(JNIEnv* env, jclass cls) { (void) cls; (void) env; - jboolean xret = (jboolean) QGLFormatJBridge::hasOpenGL(); + jboolean xret = (jboolean) TQGLFormatJBridge::hasOpenGL(); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QGLFormat_hasOverlay(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQGLFormat*) QtSupport::getQt(env, obj))->hasOverlay(); + jboolean xret = (jboolean) ((TTQGLFormat*) QtSupport::getQt(env, obj))->hasOverlay(); return xret; } @@ -113,30 +113,30 @@ Java_org_kde_qt_QGLFormat_isDisposed(JNIEnv* env, jobject obj) } JNIEXPORT void JNICALL -Java_org_kde_qt_QGLFormat_newQGLFormat__(JNIEnv* env, jobject obj) +Java_org_kde_qt_QGLFormat_newTQGLFormat__(JNIEnv* env, jobject obj) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new QGLFormatJBridge()); + QtSupport::setQt(env, obj, new TQGLFormatJBridge()); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; } JNIEXPORT void JNICALL -Java_org_kde_qt_QGLFormat_newQGLFormat__I(JNIEnv* env, jobject obj, jint options) +Java_org_kde_qt_QGLFormat_newTQGLFormat__I(JNIEnv* env, jobject obj, jint options) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new QGLFormatJBridge((int) options)); + QtSupport::setQt(env, obj, new TQGLFormatJBridge((int) options)); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; } JNIEXPORT void JNICALL -Java_org_kde_qt_QGLFormat_newQGLFormat__II(JNIEnv* env, jobject obj, jint options, jint plane) +Java_org_kde_qt_QGLFormat_newTQGLFormat__II(JNIEnv* env, jobject obj, jint options, jint plane) { if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new QGLFormatJBridge((int) options, (int) plane)); + QtSupport::setQt(env, obj, new TQGLFormatJBridge((int) options, (int) plane)); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -145,28 +145,28 @@ Java_org_kde_qt_QGLFormat_newQGLFormat__II(JNIEnv* env, jobject obj, jint option JNIEXPORT jint JNICALL Java_org_kde_qt_QGLFormat_plane(JNIEnv* env, jobject obj) { - jint xret = (jint) ((TQGLFormat*) QtSupport::getQt(env, obj))->plane(); + jint xret = (jint) ((TTQGLFormat*) QtSupport::getQt(env, obj))->plane(); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QGLFormat_rgba(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQGLFormat*) QtSupport::getQt(env, obj))->rgba(); + jboolean xret = (jboolean) ((TTQGLFormat*) QtSupport::getQt(env, obj))->rgba(); return xret; } JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setAccum(JNIEnv* env, jobject obj, jboolean enable) { - ((TQGLFormat*) QtSupport::getQt(env, obj))->setAccum((bool) enable); + ((TTQGLFormat*) QtSupport::getQt(env, obj))->setAccum((bool) enable); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setAlpha(JNIEnv* env, jobject obj, jboolean enable) { - ((TQGLFormat*) QtSupport::getQt(env, obj))->setAlpha((bool) enable); + ((TTQGLFormat*) QtSupport::getQt(env, obj))->setAlpha((bool) enable); return; } @@ -174,7 +174,7 @@ JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setDefaultFormat(JNIEnv* env, jclass cls, jobject f) { (void) cls; - QGLFormatJBridge::setDefaultFormat((const TQGLFormat&)*(const TQGLFormat*) QtSupport::getQt(env, f)); + TQGLFormatJBridge::setDefaultFormat((const TTQGLFormat&)*(const TTQGLFormat*) QtSupport::getQt(env, f)); return; } @@ -182,91 +182,91 @@ JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setDefaultOverlayFormat(JNIEnv* env, jclass cls, jobject f) { (void) cls; - QGLFormatJBridge::setDefaultOverlayFormat((const TQGLFormat&)*(const TQGLFormat*) QtSupport::getQt(env, f)); + TQGLFormatJBridge::setDefaultOverlayFormat((const TTQGLFormat&)*(const TTQGLFormat*) QtSupport::getQt(env, f)); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setDepth(JNIEnv* env, jobject obj, jboolean enable) { - ((TQGLFormat*) QtSupport::getQt(env, obj))->setDepth((bool) enable); + ((TTQGLFormat*) QtSupport::getQt(env, obj))->setDepth((bool) enable); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setDirectRendering(JNIEnv* env, jobject obj, jboolean enable) { - ((TQGLFormat*) QtSupport::getQt(env, obj))->setDirectRendering((bool) enable); + ((TTQGLFormat*) QtSupport::getQt(env, obj))->setDirectRendering((bool) enable); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setDoubleBuffer(JNIEnv* env, jobject obj, jboolean enable) { - ((TQGLFormat*) QtSupport::getQt(env, obj))->setDoubleBuffer((bool) enable); + ((TTQGLFormat*) QtSupport::getQt(env, obj))->setDoubleBuffer((bool) enable); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setOption(JNIEnv* env, jobject obj, jint opt) { - ((TQGLFormat*) QtSupport::getQt(env, obj))->setOption((TQGL::FormatOption) opt); + ((TTQGLFormat*) QtSupport::getQt(env, obj))->setOption((TTQGL::FormatOption) opt); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setOverlay(JNIEnv* env, jobject obj, jboolean enable) { - ((TQGLFormat*) QtSupport::getQt(env, obj))->setOverlay((bool) enable); + ((TTQGLFormat*) QtSupport::getQt(env, obj))->setOverlay((bool) enable); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setPlane(JNIEnv* env, jobject obj, jint plane) { - ((TQGLFormat*) QtSupport::getQt(env, obj))->setPlane((int) plane); + ((TTQGLFormat*) QtSupport::getQt(env, obj))->setPlane((int) plane); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setRgba(JNIEnv* env, jobject obj, jboolean enable) { - ((TQGLFormat*) QtSupport::getQt(env, obj))->setRgba((bool) enable); + ((TTQGLFormat*) QtSupport::getQt(env, obj))->setRgba((bool) enable); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setStencil(JNIEnv* env, jobject obj, jboolean enable) { - ((TQGLFormat*) QtSupport::getQt(env, obj))->setStencil((bool) enable); + ((TTQGLFormat*) QtSupport::getQt(env, obj))->setStencil((bool) enable); return; } JNIEXPORT void JNICALL Java_org_kde_qt_QGLFormat_setStereo(JNIEnv* env, jobject obj, jboolean enable) { - ((TQGLFormat*) QtSupport::getQt(env, obj))->setStereo((bool) enable); + ((TTQGLFormat*) QtSupport::getQt(env, obj))->setStereo((bool) enable); return; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QGLFormat_stencil(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQGLFormat*) QtSupport::getQt(env, obj))->stencil(); + jboolean xret = (jboolean) ((TTQGLFormat*) QtSupport::getQt(env, obj))->stencil(); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QGLFormat_stereo(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((TQGLFormat*) QtSupport::getQt(env, obj))->stereo(); + jboolean xret = (jboolean) ((TTQGLFormat*) QtSupport::getQt(env, obj))->stereo(); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QGLFormat_testOption(JNIEnv* env, jobject obj, jint opt) { - jboolean xret = (jboolean) ((TQGLFormat*) QtSupport::getQt(env, obj))->testOption((TQGL::FormatOption) opt); + jboolean xret = (jboolean) ((TTQGLFormat*) QtSupport::getQt(env, obj))->testOption((TTQGL::FormatOption) opt); return xret; } |