/***************************************************************************
                            QToolTip.cpp -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <qtooltip.h>
#include <qstring.h>
#include <qcstring.h>

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QToolTip_parentWidget(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QToolTip*) QtSupport::getQt(env, obj))->parentWidget(), "org.kde.qt.QWidget");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QToolTip_group(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QToolTip*) QtSupport::getQt(env, obj))->group(), "org.kde.qt.QToolTipGroup");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_add__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jobject arg1, jstring arg2)
{
static QString * _qstring_arg2 = 0;
	QToolTip::add((QWidget*) QtSupport::getQt(env, arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_add__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QToolTipGroup_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jobject arg1, jstring arg2, jobject arg3, jstring arg4)
{
static QString * _qstring_arg4 = 0;
static QString * _qstring_arg2 = 0;
	QToolTip::add((QWidget*) QtSupport::getQt(env, arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2), (QToolTipGroup*) QtSupport::getQt(env, arg3), (QString&) * (QString *) QtSupport::toQString(env, arg4, &_qstring_arg4));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_remove__Lorg_kde_qt_QWidget_2(JNIEnv *env, jclass obj, jobject arg1)
{
	QToolTip::remove((QWidget*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_add__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QRect_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jobject arg1, jobject arg2, jstring arg3)
{
static QString * _qstring_arg3 = 0;
	QToolTip::add((QWidget*) QtSupport::getQt(env, arg1), (QRect&) *(QRect *) QtSupport::getQt(env, arg2), (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_add__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QRect_2Ljava_lang_String_2Lorg_kde_qt_QToolTipGroup_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jobject arg1, jobject arg2, jstring arg3, jobject arg4, jstring arg5)
{
static QString * _qstring_arg5 = 0;
static QString * _qstring_arg3 = 0;
	QToolTip::add((QWidget*) QtSupport::getQt(env, arg1), (QRect&) *(QRect *) QtSupport::getQt(env, arg2), (QString&) * (QString *) QtSupport::toQString(env, arg3, &_qstring_arg3), (QToolTipGroup*) QtSupport::getQt(env, arg4), (QString&) * (QString *) QtSupport::toQString(env, arg5, &_qstring_arg5));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_remove__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QRect_2(JNIEnv *env, jclass obj, jobject arg1, jobject arg2)
{
	QToolTip::remove((QWidget*) QtSupport::getQt(env, arg1), (QRect&) *(QRect *) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QToolTip_textFor(JNIEnv *env, jclass obj, jobject arg1, jobject pos)
{
	QString  _qstring;
	_qstring = QToolTip::textFor((QWidget*) QtSupport::getQt(env, arg1), (QPoint&) *(QPoint *) QtSupport::getQt(env, pos));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_hide(JNIEnv *env, jclass obj)
{
	QToolTip::hide();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QToolTip_font(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QFont (QToolTip::font()), "org.kde.qt.QFont", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_setFont(JNIEnv *env, jclass obj, jobject arg1)
{
	QToolTip::setFont((QFont&) *(QFont *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QToolTip_palette(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPalette (QToolTip::palette()), "org.kde.qt.QPalette", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_setPalette(JNIEnv *env, jclass obj, jobject arg1)
{
	QToolTip::setPalette((QPalette&) *(QPalette *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_setEnabled(JNIEnv *env, jclass obj, jboolean enable)
{
	QToolTip::setEnabled((bool) enable);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QToolTip_enabled(JNIEnv *env, jclass obj)
{
	return (jboolean) QToolTip::enabled();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_setGloballyEnabled(JNIEnv *env, jclass obj, jboolean arg1)
{
	QToolTip::setGloballyEnabled((bool) arg1);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QToolTip_isGloballyEnabled(JNIEnv *env, jclass obj)
{
	return (jboolean) QToolTip::isGloballyEnabled();
}

