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

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

class QColorGroupJBridge : public QColorGroup
{
public:
	QColorGroupJBridge() : QColorGroup() {}
	QColorGroupJBridge(const QColor& foreground, const QColor& button, const QColor& light, const QColor& dark, const QColor& mid, const QColor& text, const QColor& base) : QColorGroup(foreground, button, light, dark, mid, text, base) {}
	QColorGroupJBridge(const QBrush& foreground, const QBrush& button, const QBrush& light, const QBrush& dark, const QBrush& mid, const QBrush& text, const QBrush& bright_text, const QBrush& base, const QBrush& background) : QColorGroup(foreground, button, light, dark, mid, text, bright_text, base, background) {}
	QColorGroupJBridge(const QColorGroup& arg1) : QColorGroup(arg1) {}
	~QColorGroupJBridge() {QtSupport::qtKeyDeleted(this);}
};


JNIEXPORT void JNICALL
Java_org_kde_qt_QColorGroup_newQColorGroup__(JNIEnv *env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QColorGroupJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColorGroup_newQColorGroup__Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2(JNIEnv *env, jobject obj, jobject foreground, jobject button, jobject light, jobject dark, jobject mid, jobject text, jobject base)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QColorGroupJBridge((QColor&) *(QColor *) QtSupport::getQt(env, foreground), (QColor&) *(QColor *) QtSupport::getQt(env, button), (QColor&) *(QColor *) QtSupport::getQt(env, light), (QColor&) *(QColor *) QtSupport::getQt(env, dark), (QColor&) *(QColor *) QtSupport::getQt(env, mid), (QColor&) *(QColor *) QtSupport::getQt(env, text), (QColor&) *(QColor *) QtSupport::getQt(env, base)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColorGroup_newQColorGroup__Lorg_kde_qt_QBrush_2Lorg_kde_qt_QBrush_2Lorg_kde_qt_QBrush_2Lorg_kde_qt_QBrush_2Lorg_kde_qt_QBrush_2Lorg_kde_qt_QBrush_2Lorg_kde_qt_QBrush_2Lorg_kde_qt_QBrush_2Lorg_kde_qt_QBrush_2(JNIEnv *env, jobject obj, jobject foreground, jobject button, jobject light, jobject dark, jobject mid, jobject text, jobject bright_text, jobject base, jobject background)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QColorGroupJBridge((QBrush&) *(QBrush *) QtSupport::getQt(env, foreground), (QBrush&) *(QBrush *) QtSupport::getQt(env, button), (QBrush&) *(QBrush *) QtSupport::getQt(env, light), (QBrush&) *(QBrush *) QtSupport::getQt(env, dark), (QBrush&) *(QBrush *) QtSupport::getQt(env, mid), (QBrush&) *(QBrush *) QtSupport::getQt(env, text), (QBrush&) *(QBrush *) QtSupport::getQt(env, bright_text), (QBrush&) *(QBrush *) QtSupport::getQt(env, base), (QBrush&) *(QBrush *) QtSupport::getQt(env, background)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColorGroup_newQColorGroup__Lorg_kde_qt_QColorGroup_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QColorGroupJBridge((QColorGroup&) *(QColorGroup *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColorGroup_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QColorGroup*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_color(JNIEnv *env, jobject obj, jint arg1)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->color((QColorGroup::ColorRole) arg1), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_brush(JNIEnv *env, jobject obj, jint arg1)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QBrush *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->brush((QColorGroup::ColorRole) arg1), "org.kde.qt.QBrush");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColorGroup_setColor(JNIEnv *env, jobject obj, jint arg1, jobject arg2)
{
	((QColorGroupJBridge*) QtSupport::getQt(env, obj))->setColor((QColorGroup::ColorRole) arg1, (QColor&) *(QColor *) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColorGroup_setBrush(JNIEnv *env, jobject obj, jint arg1, jobject arg2)
{
	((QColorGroupJBridge*) QtSupport::getQt(env, obj))->setBrush((QColorGroup::ColorRole) arg1, (QBrush&) *(QBrush *) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_foreground(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->foreground(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_button(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->button(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_light(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->light(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_dark(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->dark(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_mid(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->mid(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_text(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->text(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_base(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->base(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_background(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->background(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_midlight(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->midlight(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_brightText(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->brightText(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_buttonText(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->buttonText(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_shadow(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->shadow(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_highlight(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->highlight(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_highlightedText(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->highlightedText(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_link(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->link(), "org.kde.qt.QColor");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColorGroup_linkVisited(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(QColor *) &((QColorGroupJBridge*) QtSupport::getQt(env, obj))->linkVisited(), "org.kde.qt.QColor");
}

