diff options
Diffstat (limited to 'qtjava/javalib/qtjava/QFontDialog.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QFontDialog.cpp | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/QFontDialog.cpp b/qtjava/javalib/qtjava/QFontDialog.cpp new file mode 100644 index 00000000..396e3280 --- /dev/null +++ b/qtjava/javalib/qtjava/QFontDialog.cpp @@ -0,0 +1,106 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +#include <qfont.h> +#include <qstring.h> +#include <qfontdialog.h> + +#include <qtjava/QtSupport.h> +#include <qtjava/QFontDialog.h> + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QFontDialog_className(JNIEnv* env, jobject obj) +{ + const char* _qstring; + _qstring = ((QFontDialog*) QtSupport::getQt(env, obj))->className(); + return QtSupport::fromCharString(env, (char *) _qstring); +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QFontDialog_getFont___3Z(JNIEnv* env, jclass cls, jbooleanArray ok) +{ + (void) cls; + bool* _bool_ok = QtSupport::toBooleanPtr(env, ok); + jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(QFontDialog::getFont( (bool*) _bool_ok)), "org.kde.qt.QFont", TRUE); + env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QFontDialog_getFont___3ZLorg_kde_qt_QFont_2(JNIEnv* env, jclass cls, jbooleanArray ok, jobject def) +{ + (void) cls; + bool* _bool_ok = QtSupport::toBooleanPtr(env, ok); + jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(QFontDialog::getFont( (bool*) _bool_ok, (const QFont&)*(const QFont*) QtSupport::getQt(env, def))), "org.kde.qt.QFont", TRUE); + env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QFontDialog_getFont___3ZLorg_kde_qt_QFont_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jbooleanArray ok, jobject def, jobject parent) +{ + (void) cls; + bool* _bool_ok = QtSupport::toBooleanPtr(env, ok); + jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(QFontDialog::getFont( (bool*) _bool_ok, (const QFont&)*(const QFont*) QtSupport::getQt(env, def), (QWidget*) QtSupport::getQt(env, parent))), "org.kde.qt.QFont", TRUE); + env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QFontDialog_getFont___3ZLorg_kde_qt_QFont_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jbooleanArray ok, jobject def, jobject parent, jstring name) +{ + (void) cls; + bool* _bool_ok = QtSupport::toBooleanPtr(env, ok); +static QCString* _qstring_name = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(QFontDialog::getFont( (bool*) _bool_ok, (const QFont&)*(const QFont*) QtSupport::getQt(env, def), (QWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name))), "org.kde.qt.QFont", TRUE); + env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QFontDialog_getFont___3ZLorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jbooleanArray ok, jobject parent) +{ + (void) cls; + bool* _bool_ok = QtSupport::toBooleanPtr(env, ok); + jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(QFontDialog::getFont( (bool*) _bool_ok, (QWidget*) QtSupport::getQt(env, parent))), "org.kde.qt.QFont", TRUE); + env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QFontDialog_getFont___3ZLorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jbooleanArray ok, jobject parent, jstring name) +{ + (void) cls; + bool* _bool_ok = QtSupport::toBooleanPtr(env, ok); +static QCString* _qstring_name = 0; + jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(QFontDialog::getFont( (bool*) _bool_ok, (QWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name))), "org.kde.qt.QFont", TRUE); + env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok); + return xret; +} + +JNIEXPORT jobject JNICALL +Java_org_kde_qt_QFontDialog_metaObject(JNIEnv* env, jobject obj) +{ + jobject xret = QtSupport::objectForQtKey(env, (void*)((QFontDialog*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject"); + return xret; +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QFontDialog_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1) +{ + QString _qstring; + (void) cls; +static QCString* _qstring_arg1 = 0; + _qstring = QFontDialog::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1)); + return QtSupport::fromQString(env, &_qstring); +} + +JNIEXPORT jstring JNICALL +Java_org_kde_qt_QFontDialog_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2) +{ + QString _qstring; + (void) cls; +static QCString* _qstring_arg1 = 0; +static QCString* _qstring_arg2 = 0; + _qstring = QFontDialog::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2)); + return QtSupport::fromQString(env, &_qstring); +} + |