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

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

class QIconViewJBridge : public QIconView
{
public:
	QIconViewJBridge(QWidget* parent, const char* name, WFlags f) : QIconView(parent, name, f) {}
	~QIconViewJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_drawContents(QPainter* p, int cx, int cy, int cw, int ch) {
		QIconView::drawContents(p, cx, cy, cw, ch);
		return;
	}
	void protected_drawRubber(QPainter* p) {
		QIconView::drawRubber(p);
		return;
	}
	 QDragObject * protected_dragObject() {
		return ( QDragObject *) QIconView::dragObject();
	}
	void protected_startDrag() {
		QIconView::startDrag();
		return;
	}
	void protected_insertInGrid(QIconViewItem* item) {
		QIconView::insertInGrid(item);
		return;
	}
	void protected_drawBackground(QPainter* p, const QRect& r) {
		QIconView::drawBackground(p, r);
		return;
	}
	void protected_emitSelectionChanged(QIconViewItem* i) {
		QIconView::emitSelectionChanged(i);
		return;
	}
	void protected_emitRenamed(QIconViewItem* item) {
		QIconView::emitRenamed(item);
		return;
	}
	QIconViewItem * protected_makeRowLayout(QIconViewItem* begin, int& y, bool& changed) {
		return (QIconViewItem *) QIconView::makeRowLayout(begin, y, changed);
	}
	void protected_styleChange(QStyle& arg1) {
		QIconView::styleChange(arg1);
		return;
	}
	void protected_windowActivationChange(bool arg1) {
		QIconView::windowActivationChange(arg1);
		return;
	}
	void protected_doAutoScroll() {
		QIconView::doAutoScroll();
		return;
	}
	void protected_adjustItems() {
		QIconView::adjustItems();
		return;
	}
	void protected_slotUpdate() {
		QIconView::slotUpdate();
		return;
	}
	void keyPressEvent(QKeyEvent* e) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", e, "org.kde.qt.QKeyEvent")) {
			QIconView::keyPressEvent(e);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyReleaseEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* e) {
		if (! QtSupport::eventDelegate(this, "focusOutEvent", e, "org.kde.qt.QFocusEvent")) {
			QIconView::focusOutEvent(e);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "childEvent", arg1, "org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void viewportDragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QScrollView::viewportDragMoveEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void contentsWheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsWheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QScrollView::contentsWheelEvent(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 contentsContextMenuEvent(QContextMenuEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsContextMenuEvent", e, "org.kde.qt.QContextMenuEvent")) {
			QIconView::contentsContextMenuEvent(e);
		}
		return;
	}
	void viewportContextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportContextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QScrollView::viewportContextMenuEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QScrollView::contextMenuEvent(arg1);
		}
		return;
	}
	void viewportMousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::viewportMousePressEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::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 viewportMouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::viewportMouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::mouseReleaseEvent(arg1);
		}
		return;
	}
	void viewportMouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::viewportMouseDoubleClickEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void viewportDragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QScrollView::viewportDragLeaveEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* e) {
		if (! QtSupport::eventDelegate(this, "enterEvent", e, "org.kde.qt.QEvent")) {
			QIconView::enterEvent(e);
		}
		return;
	}
	void contentsDropEvent(QDropEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsDropEvent", e, "org.kde.qt.QDropEvent")) {
			QIconView::contentsDropEvent(e);
		}
		return;
	}
	void focusInEvent(QFocusEvent* e) {
		if (! QtSupport::eventDelegate(this, "focusInEvent", e, "org.kde.qt.QFocusEvent")) {
			QIconView::focusInEvent(e);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imEndEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void contentsDragLeaveEvent(QDragLeaveEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsDragLeaveEvent", e, "org.kde.qt.QDragLeaveEvent")) {
			QIconView::contentsDragLeaveEvent(e);
		}
		return;
	}
	void viewportDropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QScrollView::viewportDropEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void contentsMouseDoubleClickEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsMouseDoubleClickEvent", e, "org.kde.qt.QMouseEvent")) {
			QIconView::contentsMouseDoubleClickEvent(e);
		}
		return;
	}
	void viewportDragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportDragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QScrollView::viewportDragEnterEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void viewportMouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportMouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::viewportMouseMoveEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QScrollView::mouseMoveEvent(arg1);
		}
		return;
	}
	void contentsDragMoveEvent(QDragMoveEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsDragMoveEvent", e, "org.kde.qt.QDragMoveEvent")) {
			QIconView::contentsDragMoveEvent(e);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "moveEvent", arg1, "org.kde.qt.QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void contentsMouseReleaseEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsMouseReleaseEvent", e, "org.kde.qt.QMouseEvent")) {
			QIconView::contentsMouseReleaseEvent(e);
		}
		return;
	}
	void viewportWheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportWheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QScrollView::viewportWheelEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "wheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QScrollView::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "hideEvent", arg1, "org.kde.qt.QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void contentsDragEnterEvent(QDragEnterEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsDragEnterEvent", e, "org.kde.qt.QDragEnterEvent")) {
			QIconView::contentsDragEnterEvent(e);
		}
		return;
	}
	void contentsMouseMoveEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsMouseMoveEvent", e, "org.kde.qt.QMouseEvent")) {
			QIconView::contentsMouseMoveEvent(e);
		}
		return;
	}
	void contentsMousePressEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsMousePressEvent", e, "org.kde.qt.QMouseEvent")) {
			QIconView::contentsMousePressEvent(e);
		}
		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 viewportPaintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportPaintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QScrollView::viewportPaintEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "paintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QFrame::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void viewportResizeEvent(QResizeEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "viewportResizeEvent", arg1, "org.kde.qt.QResizeEvent")) {
			QScrollView::viewportResizeEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* e) {
		if (! QtSupport::eventDelegate(this, "resizeEvent", e, "org.kde.qt.QResizeEvent")) {
			QIconView::resizeEvent(e);
		}
		return;
	}
};


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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_insertItem__Lorg_kde_qt_QIconViewItem_2Lorg_kde_qt_QIconViewItem_2(JNIEnv *env, jobject obj, jobject item, jobject after)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconViewItem*) QtSupport::getQt(env, item), (QIconViewItem*) QtSupport::getQt(env, after));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_insertItem__Lorg_kde_qt_QIconViewItem_2(JNIEnv *env, jobject obj, jobject item)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->insertItem((QIconViewItem*) QtSupport::getQt(env, item), 0L);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_takeItem(JNIEnv *env, jobject obj, jobject item)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->takeItem((QIconViewItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QIconView_index(JNIEnv *env, jobject obj, jobject item)
{
	return (jint) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->index((QIconViewItem*) QtSupport::getQt(env, item));
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QIconView_firstItem(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QIconViewJBridge*) QtSupport::getQt(env, obj))->firstItem(), "org.kde.qt.QIconViewItem");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QIconView_lastItem(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QIconViewJBridge*) QtSupport::getQt(env, obj))->lastItem(), "org.kde.qt.QIconViewItem");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QIconView_currentItem(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QIconViewJBridge*) QtSupport::getQt(env, obj))->currentItem(), "org.kde.qt.QIconViewItem");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setCurrentItem(JNIEnv *env, jobject obj, jobject item)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setCurrentItem((QIconViewItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setSelected__Lorg_kde_qt_QIconViewItem_2ZZ(JNIEnv *env, jobject obj, jobject item, jboolean s, jboolean cb)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setSelected((QIconViewItem*) QtSupport::getQt(env, item), (bool) s, (bool) cb);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setSelected__Lorg_kde_qt_QIconViewItem_2Z(JNIEnv *env, jobject obj, jobject item, jboolean s)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setSelected((QIconViewItem*) QtSupport::getQt(env, item), (bool) s, FALSE);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QIconView_count(JNIEnv *env, jobject obj)
{
	return (jint) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->count();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_showEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->showEvent((QShowEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setSelectionMode(JNIEnv *env, jobject obj, jint m)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setSelectionMode((QIconView::SelectionMode) m);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QIconView_selectionMode(JNIEnv *env, jobject obj)
{
	return (jint) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->selectionMode();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QIconView_findItem__Lorg_kde_qt_QPoint_2(JNIEnv *env, jobject obj, jobject pos)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QIconViewJBridge*) QtSupport::getQt(env, obj))->findItem((QPoint&) *(QPoint *) QtSupport::getQt(env, pos)), "org.kde.qt.QIconViewItem");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QIconView_findItem__Ljava_lang_String_2I(JNIEnv *env, jobject obj, jstring text, jint compare)
{
static QString * _qstring_text = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QIconViewJBridge*) QtSupport::getQt(env, obj))->findItem((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), (QIconView::ComparisonFlags) compare), "org.kde.qt.QIconViewItem");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QIconView_findItem__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring text)
{
static QString * _qstring_text = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QIconViewJBridge*) QtSupport::getQt(env, obj))->findItem((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text), QIconView::BeginsWith), "org.kde.qt.QIconViewItem");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_selectAll(JNIEnv *env, jobject obj, jboolean select)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->selectAll((bool) select);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_clearSelection(JNIEnv *env, jobject obj)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->clearSelection();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_invertSelection(JNIEnv *env, jobject obj)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->invertSelection();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_repaintItem(JNIEnv *env, jobject obj, jobject item)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->repaintItem((QIconViewItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_ensureItemVisible(JNIEnv *env, jobject obj, jobject item)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->ensureItemVisible((QIconViewItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QIconView_findFirstVisibleItem(JNIEnv *env, jobject obj, jobject r)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QIconViewJBridge*) QtSupport::getQt(env, obj))->findFirstVisibleItem((QRect&) *(QRect *) QtSupport::getQt(env, r)), "org.kde.qt.QIconViewItem");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QIconView_findLastVisibleItem(JNIEnv *env, jobject obj, jobject r)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QIconViewJBridge*) QtSupport::getQt(env, obj))->findLastVisibleItem((QRect&) *(QRect *) QtSupport::getQt(env, r)), "org.kde.qt.QIconViewItem");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_clear(JNIEnv *env, jobject obj)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setGridX(JNIEnv *env, jobject obj, jint rx)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setGridX((int) rx);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setGridY(JNIEnv *env, jobject obj, jint ry)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setGridY((int) ry);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QIconView_gridX(JNIEnv *env, jobject obj)
{
	return (jint) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->gridX();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QIconView_gridY(JNIEnv *env, jobject obj)
{
	return (jint) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->gridY();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setSpacing(JNIEnv *env, jobject obj, jint sp)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setSpacing((int) sp);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QIconView_spacing(JNIEnv *env, jobject obj)
{
	return (jint) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->spacing();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setItemTextPos(JNIEnv *env, jobject obj, jint pos)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setItemTextPos((QIconView::ItemTextPos) pos);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QIconView_itemTextPos(JNIEnv *env, jobject obj)
{
	return (jint) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->itemTextPos();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setItemTextBackground(JNIEnv *env, jobject obj, jobject b)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setItemTextBackground((QBrush&) *(QBrush *) QtSupport::getQt(env, b));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QIconView_itemTextBackground(JNIEnv *env, jobject obj)
{
	QBrush _b= ((QIconViewJBridge*) QtSupport::getQt(env, obj))->itemTextBackground();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QBrush(_b.color(),_b.style()), "org.kde.qt.QBrush", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setArrangement(JNIEnv *env, jobject obj, jint am)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setArrangement((QIconView::Arrangement) am);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QIconView_arrangement(JNIEnv *env, jobject obj)
{
	return (jint) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->arrangement();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setResizeMode(JNIEnv *env, jobject obj, jint am)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setResizeMode((QIconView::ResizeMode) am);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QIconView_resizeMode(JNIEnv *env, jobject obj)
{
	return (jint) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->resizeMode();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setMaxItemWidth(JNIEnv *env, jobject obj, jint w)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setMaxItemWidth((int) w);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QIconView_maxItemWidth(JNIEnv *env, jobject obj)
{
	return (jint) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->maxItemWidth();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setMaxItemTextLength(JNIEnv *env, jobject obj, jint w)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setMaxItemTextLength((int) w);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QIconView_maxItemTextLength(JNIEnv *env, jobject obj)
{
	return (jint) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->maxItemTextLength();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setAutoArrange(JNIEnv *env, jobject obj, jboolean b)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setAutoArrange((bool) b);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QIconView_autoArrange(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->autoArrange();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setShowToolTips(JNIEnv *env, jobject obj, jboolean b)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setShowToolTips((bool) b);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QIconView_showToolTips(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->showToolTips();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setSorting__ZZ(JNIEnv *env, jobject obj, jboolean sort, jboolean ascending)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setSorting((bool) sort, (bool) ascending);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setSorting__Z(JNIEnv *env, jobject obj, jboolean sort)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setSorting((bool) sort, TRUE);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QIconView_sorting(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->sorting();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QIconView_sortDirection(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->sortDirection();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setItemsMovable(JNIEnv *env, jobject obj, jboolean b)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setItemsMovable((bool) b);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QIconView_itemsMovable(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->itemsMovable();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setWordWrapIconText(JNIEnv *env, jobject obj, jboolean b)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setWordWrapIconText((bool) b);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QIconView_wordWrapIconText(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->wordWrapIconText();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QIconView_eventFilter(JNIEnv *env, jobject obj, jobject o, jobject arg1)
{
	return (jboolean) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->eventFilter((QObject*) QtSupport::getQt(env, o), (QEvent*) QtSupport::getQt(env, arg1));
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QIconView_minimumSizeHint(JNIEnv *env, jobject obj)
{
	QSize _s= ((QIconViewJBridge*) 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_qt_QIconView_sizeHint(JNIEnv *env, jobject obj)
{
	QSize _s= ((QIconViewJBridge*) QtSupport::getQt(env, obj))->sizeHint();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSize(_s.width(),_s.height()), "org.kde.qt.QSize", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_sort__Z(JNIEnv *env, jobject obj, jboolean ascending)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->sort((bool) ascending);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_sort__(JNIEnv *env, jobject obj)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->sort(TRUE);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setFont(JNIEnv *env, jobject obj, jobject arg1)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setFont((QFont&) *(QFont *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setPalette(JNIEnv *env, jobject obj, jobject arg1)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setPalette((QPalette&) *(QPalette *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QIconView_isRenaming(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QIconViewJBridge*) QtSupport::getQt(env, obj))->isRenaming();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_arrangeItemsInGrid__Lorg_kde_qt_QSize_2Z(JNIEnv *env, jobject obj, jobject grid, jboolean update)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->arrangeItemsInGrid((QSize&) *(QSize *) QtSupport::getQt(env, grid), (bool) update);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_arrangeItemsInGrid__Lorg_kde_qt_QSize_2(JNIEnv *env, jobject obj, jobject grid)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->arrangeItemsInGrid((QSize&) *(QSize *) QtSupport::getQt(env, grid), TRUE);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_arrangeItemsInGrid__Z(JNIEnv *env, jobject obj, jboolean update)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->arrangeItemsInGrid((bool) update);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_arrangeItemsInGrid__(JNIEnv *env, jobject obj)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->arrangeItemsInGrid(TRUE);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_setContentsPos(JNIEnv *env, jobject obj, jint x, jint y)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->setContentsPos((int) x, (int) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_updateContents(JNIEnv *env, jobject obj)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->updateContents();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_drawContents(JNIEnv *env, jobject obj, jobject p, jint cx, jint cy, jint cw, jint ch)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_drawContents((QPainter*) QtSupport::getQt(env, p), (int) cx, (int) cy, (int) cw, (int) ch);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_drawRubber(JNIEnv *env, jobject obj, jobject p)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_drawRubber((QPainter*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QIconView_dragObject(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_dragObject(), "org.kde.qt.QDragObject");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_startDrag(JNIEnv *env, jobject obj)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_startDrag();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_insertInGrid(JNIEnv *env, jobject obj, jobject item)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_insertInGrid((QIconViewItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_drawBackground(JNIEnv *env, jobject obj, jobject p, jobject r)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_drawBackground((QPainter*) QtSupport::getQt(env, p), (QRect&) *(QRect *) QtSupport::getQt(env, r));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_emitSelectionChanged__Lorg_kde_qt_QIconViewItem_2(JNIEnv *env, jobject obj, jobject i)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_emitSelectionChanged((QIconViewItem*) QtSupport::getQt(env, i));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_emitSelectionChanged__(JNIEnv *env, jobject obj)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_emitSelectionChanged(0);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_emitRenamed(JNIEnv *env, jobject obj, jobject item)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_emitRenamed((QIconViewItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QIconView_makeRowLayout(JNIEnv *env, jobject obj, jobject begin, jint y, jboolean changed)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_makeRowLayout((QIconViewItem*) QtSupport::getQt(env, begin), (int&) * (int *) y, (bool&) * (bool *) changed), "org.kde.qt.QIconViewItem");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_styleChange(JNIEnv *env, jobject obj, jobject arg1)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_styleChange((QStyle&) *(QStyle *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_windowActivationChange(JNIEnv *env, jobject obj, jboolean arg1)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_windowActivationChange((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_doAutoScroll(JNIEnv *env, jobject obj)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_doAutoScroll();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_adjustItems(JNIEnv *env, jobject obj)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_adjustItems();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QIconView_slotUpdate(JNIEnv *env, jobject obj)
{
	((QIconViewJBridge*) QtSupport::getQt(env, obj))->protected_slotUpdate();
	return;
}

