diff options
Diffstat (limited to 'qtjava/javalib/qtjava/TQTab.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/TQTab.cpp | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/TQTab.cpp b/qtjava/javalib/qtjava/TQTab.cpp new file mode 100644 index 00000000..0f481b14 --- /dev/null +++ b/qtjava/javalib/qtjava/TQTab.cpp @@ -0,0 +1,156 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <tqrect.h> +#include <tqstring.h> +#include <tqtabbar.h> +#include <tqiconset.h> + +#include <qtjava/QtSupport.h> +#include <qtjava/TQTab.h> + +class TQTabJBridge : public TQTab +{ +public: + TQTabJBridge() : TQTab() {}; + TQTabJBridge(const TQString& arg1) : TQTab(arg1) {}; + TQTabJBridge(const TQIconSet& arg1,const TQString& arg2) : TQTab(arg1,arg2) {}; + TQTabJBridge(const TQIconSet& arg1) : TQTab(arg1) {}; + ~TQTabJBridge() {QtSupport::qtKeyDeleted(this);} +}; + +JNIEXPORT void JNICALL +Java_org_kde_qt_QTab_dispose(JNIEnv* env, jobject obj) +{ + Java_org_kde_qt_QTab_finalize(env, obj); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QTab_finalize(JNIEnv* env, jobject obj) +{ + if (QtSupport::allocatedInJavaWorld(env, obj)) { + delete (TQTab*)QtSupport::getQt(env, obj); + QtSupport::setQt(env, obj, 0); + } + return; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QTab_iconSet(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((TQTab*) QtSupport::getQt(env, obj))->iconSet(), "org.kde.qt.TQIconSet"); + return xret; +} + +JNIEXPORT jint JNICALL +Java_org_kde_qt_QTab_identifier(JNIEnv* env, jobject obj) +{ + jint xret = (jint) ((TQTab*) QtSupport::getQt(env, obj))->identifier(); + return xret; +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QTab_isDisposed(JNIEnv* env, jobject obj) +{ + return (QtSupport::getQt(env, obj) == 0); +} + +JNIEXPORT jboolean JNICALL +Java_org_kde_qt_QTab_isEnabled(JNIEnv* env, jobject obj) +{ + jboolean xret = (jboolean) ((TQTab*) QtSupport::getQt(env, obj))->isEnabled(); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QTab_newTQTab__(JNIEnv* env, jobject obj) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TQTabJBridge()); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QTab_newTQTab__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text) +{ +static TQString* _qstring_text = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TQTabJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QTab_newTQTab__Lorg_kde_qt_QIconSet_2(JNIEnv* env, jobject obj, jobject icon) +{ + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TQTabJBridge((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QTab_newTQTab__Lorg_kde_qt_QIconSet_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject icon, jstring text) +{ +static TQString* _qstring_text = 0; + if (QtSupport::getQt(env, obj) == 0) { + QtSupport::setQt(env, obj, new TQTabJBridge((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text))); + QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); + } + return; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QTab_rect(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQTab*) QtSupport::getQt(env, obj))->rect()), "org.kde.qt.TQRect", TRUE); + return xret; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QTab_setEnabled(JNIEnv* env, jobject obj, jboolean enable) +{ + ((TQTab*) QtSupport::getQt(env, obj))->setEnabled((bool) enable); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QTab_setIconSet(JNIEnv* env, jobject obj, jobject icon) +{ + ((TQTab*) QtSupport::getQt(env, obj))->setIconSet((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QTab_setIdentifier(JNIEnv* env, jobject obj, jint i) +{ + ((TQTab*) QtSupport::getQt(env, obj))->setIdentifier((int) i); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QTab_setRect(JNIEnv* env, jobject obj, jobject rect) +{ + ((TQTab*) QtSupport::getQt(env, obj))->setRect((const TQRect&)*(const TQRect*) QtSupport::getQt(env, rect)); + return; +} + +JNIEXPORT void JNICALL +Java_org_kde_qt_QTab_setText(JNIEnv* env, jobject obj, jstring text) +{ +static TQString* _qstring_text = 0; + ((TQTab*) QtSupport::getQt(env, obj))->setText((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text)); + return; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QTab_text(JNIEnv* env, jobject obj) +{ + TQString _qstring; + _qstring = ((TQTab*) QtSupport::getQt(env, obj))->text(); + return QtSupport::fromTQString(env, &_qstring); +} + |