//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqwindowdefs.h>
#include <tqcolordialog.h>
#include <tqstring.h>
#include <tqcolor.h>

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QColorDialog_customColor(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQColorDialog::customColor((int) arg1);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QColorDialog_customCount(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQColorDialog::customCount();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QColorDialog_getColor__(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQColor(TQColorDialog::getColor()), "org.trinitydesktop.qt.TQColor", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QColorDialog_getColor__Lorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jclass cls, jobject init)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQColor(TQColorDialog::getColor((const TQColor&)*(const TQColor*) QtSupport::getQt(env, init))), "org.trinitydesktop.qt.TQColor", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QColorDialog_getColor__Lorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject init, jobject parent)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQColor(TQColorDialog::getColor((const TQColor&)*(const TQColor*) QtSupport::getQt(env, init), (TQWidget*) QtSupport::getQt(env, parent))), "org.trinitydesktop.qt.TQColor", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QColorDialog_getColor__Lorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject init, jobject parent, jstring name)
{
	(void) cls;
static TQCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQColor(TQColorDialog::getColor((const TQColor&)*(const TQColor*) QtSupport::getQt(env, init), (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name))), "org.trinitydesktop.qt.TQColor", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QColorDialog_getRgba__I(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQColorDialog::getRgba((TQRgb) arg1);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QColorDialog_getRgba__I_3Z(JNIEnv* env, jclass cls, jint arg1, jbooleanArray ok)
{
	(void) cls;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	jint xret = (jint) TQColorDialog::getRgba((TQRgb) arg1,  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QColorDialog_getRgba__I_3ZLorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jint arg1, jbooleanArray ok, jobject parent)
{
	(void) cls;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	jint xret = (jint) TQColorDialog::getRgba((TQRgb) arg1,  (bool*) _bool_ok, (TQWidget*) QtSupport::getQt(env, parent));
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QColorDialog_getRgba__I_3ZLorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jint arg1, jbooleanArray ok, jobject parent, jstring name)
{
	(void) cls;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
static TQCString* _qstring_name = 0;
	jint xret = (jint) TQColorDialog::getRgba((TQRgb) arg1,  (bool*) _bool_ok, (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name));
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QColorDialog_setCustomColor(JNIEnv* env, jclass cls, jint arg1, jint arg2)
{
	(void) cls;
	(void) env;
	TQColorDialog::setCustomColor((int) arg1, (TQRgb) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QColorDialog_setStandardColor(JNIEnv* env, jclass cls, jint arg1, jint arg2)
{
	(void) cls;
	(void) env;
	TQColorDialog::setStandardColor((int) arg1, (TQRgb) arg2);
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QColorDialog_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 = TQColorDialog::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

