//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqfont.h>
#include <tqstring.h>
#include <tqfontdialog.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQFontDialog.h>

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QFontDialog_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQFontDialog*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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 TQFont(TQFontDialog::getFont( (bool*) _bool_ok)), "org.trinitydesktop.qt.TQFont", true);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontDialog_getFont___3ZLorg_trinitydesktop_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 TQFont(TQFontDialog::getFont( (bool*) _bool_ok, (const TQFont&)*(const TQFont*) QtSupport::getQt(env, def))), "org.trinitydesktop.qt.TQFont", true);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontDialog_getFont___3ZLorg_trinitydesktop_qt_QFont_2Lorg_trinitydesktop_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 TQFont(TQFontDialog::getFont( (bool*) _bool_ok, (const TQFont&)*(const TQFont*) QtSupport::getQt(env, def), (TQWidget*) QtSupport::getQt(env, parent))), "org.trinitydesktop.qt.TQFont", true);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontDialog_getFont___3ZLorg_trinitydesktop_qt_QFont_2Lorg_trinitydesktop_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 TQCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFont(TQFontDialog::getFont( (bool*) _bool_ok, (const TQFont&)*(const TQFont*) QtSupport::getQt(env, def), (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name))), "org.trinitydesktop.qt.TQFont", true);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontDialog_getFont___3ZLorg_trinitydesktop_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 TQFont(TQFontDialog::getFont( (bool*) _bool_ok, (TQWidget*) QtSupport::getQt(env, parent))), "org.trinitydesktop.qt.TQFont", true);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontDialog_getFont___3ZLorg_trinitydesktop_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 TQCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFont(TQFontDialog::getFont( (bool*) _bool_ok, (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name))), "org.trinitydesktop.qt.TQFont", true);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QFontDialog_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQFontDialog*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QFontDialog_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQFontDialog::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QFontDialog_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQFontDialog::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

