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

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

class KJanusWidgetJBridge : public KJanusWidget
{
public:
	KJanusWidgetJBridge(QWidget* parent, const char* name, int face) : KJanusWidget(parent, name, face) {}
	~KJanusWidgetJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_showEvent(QShowEvent* arg1) {
		KJanusWidget::showEvent(arg1);
		return;
	}
	 bool  protected_eventFilter(QObject* o, QEvent* e) {
		return ( bool ) KJanusWidget::eventFilter(o, e);
	}
	bool  protected_showPage(QWidget* w) {
		return (bool ) KJanusWidget::showPage(w);
	}
	void protected_addPageWidget(QFrame* page, const QStringList& items, const QString& header, const QPixmap& pixmap) {
		KJanusWidget::addPageWidget(page, items, header, pixmap);
		return;
	}
	void protected_InsertTreeListItem(const QStringList& items, const QPixmap& pixmap, QFrame* page) {
		KJanusWidget::InsertTreeListItem(items, pixmap, page);
		return;
	}
	QWidget * protected_FindParent() {
		return (QWidget *) KJanusWidget::FindParent();
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyReleaseEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusOutEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QWidget::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "childEvent", arg1, "org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "leaveEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::leaveEvent(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "tabletEvent", arg1, "org.kde.qt.QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "showEvent", arg1, "org.kde.qt.QShowEvent")) {
			KJanusWidget::showEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QWidget::contextMenuEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mousePressEvent(arg1);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imComposeEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "customEvent", arg1, "org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "enterEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusInEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QWidget::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imEndEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseMoveEvent(arg1);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "moveEvent", arg1, "org.kde.qt.QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "wheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QWidget::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "hideEvent", arg1, "org.kde.qt.QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imStartEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void closeEvent(QCloseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "closeEvent", arg1, "org.kde.qt.QCloseEvent")) {
			QWidget::closeEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "paintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QWidget::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "resizeEvent", arg1, "org.kde.qt.QResizeEvent")) {
			QWidget::resizeEvent(arg1);
		}
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_koala_KJanusWidget_newKJanusWidget__Lorg_kde_qt_QWidget_2Ljava_lang_String_2I(JNIEnv *env, jobject obj, jobject parent, jstring name, jint face)
{
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KJanusWidgetJBridge((QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name), (int) face));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KJanusWidget_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KJanusWidget*)QtSupport::getQt(env, obj))->parentWidget(TRUE) == (QWidget *) 0) {
		delete (KJanusWidget*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KJanusWidget_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KJanusWidget_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KJanusWidget_isDisposed(JNIEnv *env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KJanusWidget_showPage__I(JNIEnv *env, jobject obj, jint index)
{
	return (jboolean) ((KJanusWidget*) QtSupport::getQt(env, obj))->showPage((int) index);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KJanusWidget_activePageIndex(JNIEnv *env, jobject obj)
{
	return (jint) ((KJanusWidget*) QtSupport::getQt(env, obj))->activePageIndex();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KJanusWidget_isValid(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KJanusWidget*) QtSupport::getQt(env, obj))->isValid();
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KJanusWidget_face(JNIEnv *env, jobject obj)
{
	return (jint) ((KJanusWidget*) QtSupport::getQt(env, obj))->face();
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_minimumSizeHint(JNIEnv *env, jobject obj)
{
	QSize _s= ((KJanusWidget*) QtSupport::getQt(env, obj))->minimumSizeHint();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSize(_s.width(),_s.height()), "org.kde.qt.QSize", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_sizeHint(JNIEnv *env, jobject obj)
{
	QSize _s= ((KJanusWidget*) QtSupport::getQt(env, obj))->sizeHint();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSize(_s.width(),_s.height()), "org.kde.qt.QSize", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_plainPage(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->plainPage(), "org.kde.qt.QFrame");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addPage__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jstring item, jstring header, jobject pixmap)
{
static QString * _qstring_header = 0;
static QString * _qstring_item = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addPage((QString&) * (QString *) QtSupport::toQString(env, item, &_qstring_item), (QString&) * (QString *) QtSupport::toQString(env, header, &_qstring_header), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap)), "org.kde.qt.QFrame");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addPage__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring item)
{
static QString * _qstring_item = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addPage((QString&) * (QString *) QtSupport::toQString(env, item, &_qstring_item), QString::null, QPixmap()), "org.kde.qt.QFrame");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addPage___3Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jobjectArray items, jstring header, jobject pixmap)
{
static QString * _qstring_header = 0;
static QStringList * _qlist_items = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addPage((QStringList&) * (QStringList *) QtSupport::toQStringList(env, items, &_qlist_items), (QString&) * (QString *) QtSupport::toQString(env, header, &_qstring_header), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap)), "org.kde.qt.QFrame");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addPage___3Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray items)
{
static QStringList * _qlist_items = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addPage((QStringList&) * (QStringList *) QtSupport::toQStringList(env, items, &_qlist_items), QString::null, QPixmap()), "org.kde.qt.QFrame");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addVBoxPage__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jstring item, jstring header, jobject pixmap)
{
static QString * _qstring_header = 0;
static QString * _qstring_item = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addVBoxPage((QString&) * (QString *) QtSupport::toQString(env, item, &_qstring_item), (QString&) * (QString *) QtSupport::toQString(env, header, &_qstring_header), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap)), "org.kde.qt.QVBox");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addVBoxPage__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring item)
{
static QString * _qstring_item = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addVBoxPage((QString&) * (QString *) QtSupport::toQString(env, item, &_qstring_item), QString::null, QPixmap()), "org.kde.qt.QVBox");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addVBoxPage___3Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jobjectArray items, jstring header, jobject pixmap)
{
static QString * _qstring_header = 0;
static QStringList * _qlist_items = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addVBoxPage((QStringList&) * (QStringList *) QtSupport::toQStringList(env, items, &_qlist_items), (QString&) * (QString *) QtSupport::toQString(env, header, &_qstring_header), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap)), "org.kde.qt.QVBox");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addVBoxPage___3Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray items)
{
static QStringList * _qlist_items = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addVBoxPage((QStringList&) * (QStringList *) QtSupport::toQStringList(env, items, &_qlist_items), QString::null, QPixmap()), "org.kde.qt.QVBox");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addHBoxPage__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jstring itemName, jstring header, jobject pixmap)
{
static QString * _qstring_header = 0;
static QString * _qstring_itemName = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addHBoxPage((QString&) * (QString *) QtSupport::toQString(env, itemName, &_qstring_itemName), (QString&) * (QString *) QtSupport::toQString(env, header, &_qstring_header), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap)), "org.kde.qt.QHBox");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addHBoxPage__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring itemName)
{
static QString * _qstring_itemName = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addHBoxPage((QString&) * (QString *) QtSupport::toQString(env, itemName, &_qstring_itemName), QString::null, QPixmap()), "org.kde.qt.QHBox");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addHBoxPage___3Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jobjectArray items, jstring header, jobject pixmap)
{
static QString * _qstring_header = 0;
static QStringList * _qlist_items = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addHBoxPage((QStringList&) * (QStringList *) QtSupport::toQStringList(env, items, &_qlist_items), (QString&) * (QString *) QtSupport::toQString(env, header, &_qstring_header), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap)), "org.kde.qt.QHBox");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addHBoxPage___3Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray items)
{
static QStringList * _qlist_items = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addHBoxPage((QStringList&) * (QStringList *) QtSupport::toQStringList(env, items, &_qlist_items), QString::null, QPixmap()), "org.kde.qt.QHBox");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addGridPage__IILjava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jint n, jint dir, jstring itemName, jstring header, jobject pixmap)
{
static QString * _qstring_header = 0;
static QString * _qstring_itemName = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addGridPage((int) n, (Qt::Orientation) dir, (QString&) * (QString *) QtSupport::toQString(env, itemName, &_qstring_itemName), (QString&) * (QString *) QtSupport::toQString(env, header, &_qstring_header), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap)), "org.kde.qt.QGrid");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addGridPage__IILjava_lang_String_2(JNIEnv *env, jobject obj, jint n, jint dir, jstring itemName)
{
static QString * _qstring_itemName = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addGridPage((int) n, (Qt::Orientation) dir, (QString&) * (QString *) QtSupport::toQString(env, itemName, &_qstring_itemName), QString::null, QPixmap()), "org.kde.qt.QGrid");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addGridPage__II_3Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jint n, jint dir, jobjectArray items, jstring header, jobject pixmap)
{
static QString * _qstring_header = 0;
static QStringList * _qlist_items = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addGridPage((int) n, (Qt::Orientation) dir, (QStringList&) * (QStringList *) QtSupport::toQStringList(env, items, &_qlist_items), (QString&) * (QString *) QtSupport::toQString(env, header, &_qstring_header), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap)), "org.kde.qt.QGrid");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KJanusWidget_addGridPage__II_3Ljava_lang_String_2(JNIEnv *env, jobject obj, jint n, jint dir, jobjectArray items)
{
static QStringList * _qlist_items = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KJanusWidget*) QtSupport::getQt(env, obj))->addGridPage((int) n, (Qt::Orientation) dir, (QStringList&) * (QStringList *) QtSupport::toQStringList(env, items, &_qlist_items), QString::null, QPixmap()), "org.kde.qt.QGrid");
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KJanusWidget_pageIndex(JNIEnv *env, jobject obj, jobject widget)
{
	return (jint) ((KJanusWidget*) QtSupport::getQt(env, obj))->pageIndex((QWidget*) QtSupport::getQt(env, widget));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KJanusWidget_setSwallowedWidget(JNIEnv *env, jobject obj, jobject widget)
{
	return (jboolean) ((KJanusWidget*) QtSupport::getQt(env, obj))->setSwallowedWidget((QWidget*) QtSupport::getQt(env, widget));
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KJanusWidget_setTreeListAutoResize(JNIEnv *env, jobject obj, jboolean state)
{
	((KJanusWidget*) QtSupport::getQt(env, obj))->setTreeListAutoResize((bool) state);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KJanusWidget_setShowIconsInTreeList(JNIEnv *env, jobject obj, jboolean state)
{
	((KJanusWidget*) QtSupport::getQt(env, obj))->setShowIconsInTreeList((bool) state);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KJanusWidget_setRootIsDecorated(JNIEnv *env, jobject obj, jboolean state)
{
	((KJanusWidget*) QtSupport::getQt(env, obj))->setRootIsDecorated((bool) state);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KJanusWidget_setIconListAllVisible(JNIEnv *env, jobject obj, jboolean state)
{
	((KJanusWidget*) QtSupport::getQt(env, obj))->setIconListAllVisible((bool) state);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KJanusWidget_setFolderIcon(JNIEnv *env, jobject obj, jobjectArray path, jobject pixmap)
{
static QStringList * _qlist_path = 0;
	((KJanusWidget*) QtSupport::getQt(env, obj))->setFolderIcon((QStringList&) * (QStringList *) QtSupport::toQStringList(env, path, &_qlist_path), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KJanusWidget_setFocus(JNIEnv *env, jobject obj)
{
	((KJanusWidget*) QtSupport::getQt(env, obj))->setFocus();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KJanusWidget_showEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KJanusWidgetJBridge*) QtSupport::getQt(env, obj))->protected_showEvent((QShowEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KJanusWidget_eventFilter(JNIEnv *env, jobject obj, jobject o, jobject e)
{
	return (jboolean) ((KJanusWidgetJBridge*) QtSupport::getQt(env, obj))->protected_eventFilter((QObject*) QtSupport::getQt(env, o), (QEvent*) QtSupport::getQt(env, e));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KJanusWidget_showPage__Lorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jobject w)
{
	return (jboolean) ((KJanusWidgetJBridge*) QtSupport::getQt(env, obj))->protected_showPage((QWidget*) QtSupport::getQt(env, w));
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KJanusWidget_addPageWidget(JNIEnv *env, jobject obj, jobject page, jobjectArray items, jstring header, jobject pixmap)
{
static QString * _qstring_header = 0;
static QStringList * _qlist_items = 0;
	((KJanusWidgetJBridge*) QtSupport::getQt(env, obj))->protected_addPageWidget((QFrame*) QtSupport::getQt(env, page), (QStringList&) * (QStringList *) QtSupport::toQStringList(env, items, &_qlist_items), (QString&) * (QString *) QtSupport::toQString(env, header, &_qstring_header), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KJanusWidget_InsertTreeListItem(JNIEnv *env, jobject obj, jobjectArray items, jobject pixmap, jobject page)
{
static QStringList * _qlist_items = 0;
	((KJanusWidgetJBridge*) QtSupport::getQt(env, obj))->protected_InsertTreeListItem((QStringList&) * (QStringList *) QtSupport::toQStringList(env, items, &_qlist_items), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pixmap), (QFrame*) QtSupport::getQt(env, page));
	return;
}

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

