//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <tqstring.h>
#include <tqpoint.h>
#include <tqpalette.h>
#include <tqtooltip.h>
#include <tqfont.h>

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolTip_add__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject arg1, jstring arg2)
{
	(void) cls;
static TQString* _qstring_arg2 = 0;
	TQToolTip::add((TQWidget*) QtSupport::getQt(env, arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolTip_add__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QToolTipGroup_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject arg1, jstring arg2, jobject arg3, jstring arg4)
{
	(void) cls;
static TQString* _qstring_arg2 = 0;
static TQString* _qstring_arg4 = 0;
	TQToolTip::add((TQWidget*) QtSupport::getQt(env, arg1), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2), (TQToolTipGroup*) QtSupport::getQt(env, arg3), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg4, &_qstring_arg4));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolTip_add__Lorg_trinitydesktop_qt_QWidget_2Lorg_trinitydesktop_qt_QRect_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject arg1, jobject arg2, jstring arg3)
{
	(void) cls;
static TQString* _qstring_arg3 = 0;
	TQToolTip::add((TQWidget*) QtSupport::getQt(env, arg1), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg2), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg3, &_qstring_arg3));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolTip_add__Lorg_trinitydesktop_qt_QWidget_2Lorg_trinitydesktop_qt_QRect_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QToolTipGroup_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject arg1, jobject arg2, jstring arg3, jobject arg4, jstring arg5)
{
	(void) cls;
static TQString* _qstring_arg3 = 0;
static TQString* _qstring_arg5 = 0;
	TQToolTip::add((TQWidget*) QtSupport::getQt(env, arg1), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg2), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg3, &_qstring_arg3), (TQToolTipGroup*) QtSupport::getQt(env, arg4), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg5, &_qstring_arg5));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QToolTip_enabled(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) TQToolTip::enabled();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QToolTip_font(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQFont(TQToolTip::font()), "org.trinitydesktop.qt.TQFont", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QToolTip_group(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQToolTip*) QtSupport::getQt(env, obj))->group(), "org.trinitydesktop.qt.TQToolTipGroup");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolTip_hide(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQToolTip::hide();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QToolTip_isGloballyEnabled(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) TQToolTip::isGloballyEnabled();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QToolTip_palette(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPalette(TQToolTip::palette()), "org.trinitydesktop.qt.TQPalette", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QToolTip_parentWidget(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQToolTip*) QtSupport::getQt(env, obj))->parentWidget(), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolTip_remove__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	TQToolTip::remove((TQWidget*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolTip_remove__Lorg_trinitydesktop_qt_QWidget_2Lorg_trinitydesktop_qt_QRect_2(JNIEnv* env, jclass cls, jobject arg1, jobject arg2)
{
	(void) cls;
	TQToolTip::remove((TQWidget*) QtSupport::getQt(env, arg1), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolTip_setEnabled(JNIEnv* env, jclass cls, jboolean enable)
{
	(void) cls;
	(void) env;
	TQToolTip::setEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolTip_setFont(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	TQToolTip::setFont((const TQFont&)*(const TQFont*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolTip_setGloballyEnabled(JNIEnv* env, jclass cls, jboolean arg1)
{
	(void) cls;
	(void) env;
	TQToolTip::setGloballyEnabled((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolTip_setPalette(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	TQToolTip::setPalette((const TQPalette&)*(const TQPalette*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QToolTip_setWakeUpDelay(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	TQToolTip::setWakeUpDelay((int) arg1);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QToolTip_textFor__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject arg1)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TQToolTip::textFor((TQWidget*) QtSupport::getQt(env, arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QToolTip_textFor__Lorg_trinitydesktop_qt_QWidget_2Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jclass cls, jobject arg1, jobject pos)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TQToolTip::textFor((TQWidget*) QtSupport::getQt(env, arg1), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, pos));
	return QtSupport::fromTQString(env, &_qstring);
}

