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

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

class QListBoxPixmapJBridge : public QListBoxPixmap
{
public:
	QListBoxPixmapJBridge(QListBox* listbox, const QPixmap& arg1) : QListBoxPixmap(listbox, arg1) {}
	QListBoxPixmapJBridge(const QPixmap& arg1) : QListBoxPixmap(arg1) {}
	QListBoxPixmapJBridge(QListBox* listbox, const QPixmap& pix, QListBoxItem* after) : QListBoxPixmap(listbox, pix, after) {}
	QListBoxPixmapJBridge(QListBox* listbox, const QPixmap& arg1, const QString& arg2) : QListBoxPixmap(listbox, arg1, arg2) {}
	QListBoxPixmapJBridge(const QPixmap& arg1, const QString& arg2) : QListBoxPixmap(arg1, arg2) {}
	QListBoxPixmapJBridge(QListBox* listbox, const QPixmap& pix, const QString& arg1, QListBoxItem* after) : QListBoxPixmap(listbox, pix, arg1, after) {}
	~QListBoxPixmapJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_paint(QPainter* arg1) {
		QListBoxPixmap::paint(arg1);
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_qt_QListBoxPixmap_newQListBoxPixmap__Lorg_kde_qt_QListBox_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jobject listbox, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QListBoxPixmapJBridge((QListBox*) QtSupport::getQt(env, listbox), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QListBoxPixmap_newQListBoxPixmap__Lorg_kde_qt_QListBox_2Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QListBoxItem_2(JNIEnv *env, jobject obj, jobject listbox, jobject pix, jobject after)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QListBoxPixmapJBridge((QListBox*) QtSupport::getQt(env, listbox), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pix), (QListBoxItem*) QtSupport::getQt(env, after)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QListBoxPixmap_newQListBoxPixmap__Lorg_kde_qt_QListBox_2Lorg_kde_qt_QPixmap_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject listbox, jobject arg1, jstring arg2)
{
static QString * _qstring_arg2 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QListBoxPixmapJBridge((QListBox*) QtSupport::getQt(env, listbox), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QListBoxPixmap_newQListBoxPixmap__Lorg_kde_qt_QPixmap_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject arg1, jstring arg2)
{
static QString * _qstring_arg2 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QListBoxPixmapJBridge((QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg1), (QString&) * (QString *) QtSupport::toQString(env, arg2, &_qstring_arg2)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QListBoxPixmap_newQListBoxPixmap__Lorg_kde_qt_QListBox_2Lorg_kde_qt_QPixmap_2Ljava_lang_String_2Lorg_kde_qt_QListBoxItem_2(JNIEnv *env, jobject obj, jobject listbox, jobject pix, jstring arg1, jobject after)
{
static QString * _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QListBoxPixmapJBridge((QListBox*) QtSupport::getQt(env, listbox), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pix), (QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1), (QListBoxItem*) QtSupport::getQt(env, after)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QListBoxPixmap_pixmap(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QListBoxPixmapJBridge*) QtSupport::getQt(env, obj))->pixmap(), "org.kde.qt.QPixmap");
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QListBoxPixmap_height(JNIEnv *env, jobject obj, jobject arg1)
{
	return (jint) ((QListBoxPixmapJBridge*) QtSupport::getQt(env, obj))->height((QListBox*) QtSupport::getQt(env, arg1));
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QListBoxPixmap_width(JNIEnv *env, jobject obj, jobject arg1)
{
	return (jint) ((QListBoxPixmapJBridge*) QtSupport::getQt(env, obj))->width((QListBox*) QtSupport::getQt(env, arg1));
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QListBoxPixmap_rtti(JNIEnv *env, jobject obj)
{
	return (jint) ((QListBoxPixmapJBridge*) QtSupport::getQt(env, obj))->rtti();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QListBoxPixmap_paint(JNIEnv *env, jobject obj, jobject arg1)
{
	((QListBoxPixmapJBridge*) QtSupport::getQt(env, obj))->protected_paint((QPainter*) QtSupport::getQt(env, arg1));
	return;
}

