/***************************************************************************
                            QFontDialog.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 <qfontdialog.h>
#include <qstring.h>
#include <qcstring.h>

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFontDialog_getFont___3ZLorg_kde_qt_QFont_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jbooleanArray ok, jobject def, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
	bool		_ok;
	jboolean	_jok;
	jobject		result;
	result = (jobject) QtSupport::objectForQtKey(env, (void *)new  QFont (QFontDialog::getFont( &_ok, (QFont&) *(QFont *) QtSupport::getQt(env, def), (QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name))), "org.kde.qt.QFont", TRUE);
	_jok = (jboolean) _ok;	
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) &_jok);
	return result;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFontDialog_getFont___3ZLorg_kde_qt_QFont_2(JNIEnv *env, jclass obj, jbooleanArray ok, jobject def)
{
	bool		_ok;
	jboolean	_jok;
	jobject		result;
	result = (jobject) QtSupport::objectForQtKey(env, (void *)new QFont(QFontDialog::getFont( &_ok, (QFont&) *(QFont *) QtSupport::getQt(env, def), 0, 0)), "org.kde.qt.QFont", TRUE);
	_jok = (jboolean) _ok;	
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) &_jok);
	return result;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFontDialog_getFont___3ZLorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jbooleanArray ok, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
	bool		_ok;
	jboolean	_jok;
	jobject		result;
	result = (jobject) QtSupport::objectForQtKey(env, (void *)new  QFont (QFontDialog::getFont( &_ok, (QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name))), "org.kde.qt.QFont", TRUE);
	_jok = (jboolean) _ok;	
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) &_jok);
	return result;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFontDialog_getFont___3Z(JNIEnv *env, jclass obj, jbooleanArray ok)
{
	bool		_ok;
	jboolean	_jok;
	jobject		result;
	result = (jobject) QtSupport::objectForQtKey(env, (void *)new QFont(QFontDialog::getFont( &_ok, (QWidget*) 0, 0)), "org.kde.qt.QFont", TRUE);
	_jok = (jboolean) _ok;	
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) &_jok);
	return result;
}


