/***************************************************************************
                            KGlobalSettings.cpp -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, 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 <kglobalsettings.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KGlobalSettings.h>

JNIEXPORT jint JNICALL
Java_org_kde_koala_KGlobalSettings_dndEventDelay(JNIEnv *env, jclass obj)
{
	return (jint) KGlobalSettings::dndEventDelay();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KGlobalSettings_singleClick(JNIEnv *env, jclass obj)
{
	return (jboolean) KGlobalSettings::singleClick();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KGlobalSettings_insertTearOffHandle(JNIEnv *env, jclass obj)
{
	return (jboolean) KGlobalSettings::insertTearOffHandle();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KGlobalSettings_changeCursorOverIcon(JNIEnv *env, jclass obj)
{
	return (jboolean) KGlobalSettings::changeCursorOverIcon();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KGlobalSettings_visualActivate(JNIEnv *env, jclass obj)
{
	return (jboolean) KGlobalSettings::visualActivate();
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KGlobalSettings_visualActivateSpeed(JNIEnv *env, jclass obj)
{
	return (jint) KGlobalSettings::visualActivateSpeed();
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KGlobalSettings_autoSelectDelay(JNIEnv *env, jclass obj)
{
	return (jint) KGlobalSettings::autoSelectDelay();
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KGlobalSettings_contextMenuKey(JNIEnv *env, jclass obj)
{
	return (jint) KGlobalSettings::contextMenuKey();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KGlobalSettings_showContextMenusOnPress(JNIEnv *env, jclass obj)
{
	return (jboolean) KGlobalSettings::showContextMenusOnPress();
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KGlobalSettings_completionMode(JNIEnv *env, jclass obj)
{
	return (jint) KGlobalSettings::completionMode();
}

//JNIEXPORT  JNICALL
//Java_org_kde_koala_KGlobalSettings_mouseSettings(JNIEnv *env, jclass obj)
//{
//	return () KGlobalSettings::mouseSettings();
//}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KGlobalSettings_desktopPath(JNIEnv *env, jclass obj)
{
	QString  _qstring;
	_qstring = KGlobalSettings::desktopPath();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KGlobalSettings_autostartPath(JNIEnv *env, jclass obj)
{
	QString  _qstring;
	_qstring = KGlobalSettings::autostartPath();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KGlobalSettings_trashPath(JNIEnv *env, jclass obj)
{
	QString  _qstring;
	_qstring = KGlobalSettings::trashPath();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KGlobalSettings_documentPath(JNIEnv *env, jclass obj)
{
	QString  _qstring;
	_qstring = KGlobalSettings::documentPath();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_toolBarHighlightColor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::toolBarHighlightColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_inactiveTitleColor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::inactiveTitleColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_inactiveTextColor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::inactiveTextColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_activeTitleColor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::activeTitleColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_activeTextColor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::activeTextColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KGlobalSettings_contrast(JNIEnv *env, jclass obj)
{
	return (jint) KGlobalSettings::contrast();
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_baseColor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::baseColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_textColor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::textColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_linkColor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::linkColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_visitedLinkColor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::visitedLinkColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_highlightedTextColor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::highlightedTextColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_highlightColor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::highlightColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_alternateBackgroundColor(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::alternateBackgroundColor()), "org.kde.qt.QColor", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KGlobalSettings_calculateAlternateBackgroundColor(JNIEnv *env, jclass obj, jobject base)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QColor (KGlobalSettings::calculateAlternateBackgroundColor((QColor&) *(QColor *) QtSupport::getQt(env, base))), "org.kde.qt.QColor", TRUE);
}

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

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

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

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

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

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

