/***************************************************************************
                            KFileTreeView.cpp -  description
                             -------------------
    begin                : Fri Mar 15 15:14:30 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Fri Mar 15 15:14:30 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 <kfiletreeview.h>
#include <qstring.h>
#include <qcstring.h>

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

class KFileTreeViewJBridge : public KFileTreeView
{
public:
	KFileTreeViewJBridge(QWidget* parent, const char* name) : KFileTreeView(parent, name) {}
	~KFileTreeViewJBridge() {QtSupport::qtKeyDeleted(this);}
	 bool  protected_acceptDrag(QDropEvent* event) {
		return ( bool ) KFileTreeView::acceptDrag(event);
	}
	 QDragObject *  protected_dragObject() {
		return ( QDragObject * ) KFileTreeView::dragObject();
	}
	void protected_startAnimation(KFileTreeViewItem* item, const char* iconBaseName, uint iconCount) {
		KFileTreeView::startAnimation(item, iconBaseName, iconCount);
		return;
	}
	void protected_stopAnimation(KFileTreeViewItem* item) {
		KFileTreeView::stopAnimation(item);
		return;
	}
	void protected_contentsDragEnterEvent(QDragEnterEvent* e) {
		KFileTreeView::contentsDragEnterEvent(e);
		return;
	}
	void protected_contentsDragMoveEvent(QDragMoveEvent* e) {
		KFileTreeView::contentsDragMoveEvent(e);
		return;
	}
	void protected_contentsDragLeaveEvent(QDragLeaveEvent* e) {
		KFileTreeView::contentsDragLeaveEvent(e);
		return;
	}
	void protected_contentsDropEvent(QDropEvent* ev) {
		KFileTreeView::contentsDropEvent(ev);
		return;
	}
	void protected_slotNewTreeViewItems(KFileTreeBranch* arg1, const KFileTreeViewItemList& arg2) {
		KFileTreeView::slotNewTreeViewItems(arg1, arg2);
		return;
	}
	void protected_slotSetNextUrlToSelect(const KURL& url) {
		KFileTreeView::slotSetNextUrlToSelect(url);
		return;
	}
	 QPixmap  protected_itemIcon(KFileTreeViewItem* arg1, int gap) {
		return ( QPixmap ) KFileTreeView::itemIcon(arg1, gap);
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", arg1, "org.kde.qt.QKeyEvent")) {
			KListView::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyReleaseEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* fe) {
		if (! QtSupport::eventDelegate(this, "focusOutEvent", fe, "org.kde.qt.QFocusEvent")) {
			KListView::focusOutEvent(fe);
		}
		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* e) {
		if (! QtSupport::eventDelegate(this, "leaveEvent", e, "org.kde.qt.QEvent")) {
			KListView::leaveEvent(e);
		}
		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")) {
			QListView::showEvent(arg1);
		}
		return;
	}
	void contentsContextMenuEvent(QContextMenuEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsContextMenuEvent", e, "org.kde.qt.QContextMenuEvent")) {
			QListView::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* arg1) {
		if (! QtSupport::eventDelegate(this, "enterEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void contentsDropEvent(QDropEvent* ev) {
		if (! QtSupport::eventDelegate(this, "contentsDropEvent", ev, "org.kde.qt.QDropEvent")) {
			KFileTreeView::contentsDropEvent(ev);
		}
		return;
	}
	void focusInEvent(QFocusEvent* fe) {
		if (! QtSupport::eventDelegate(this, "focusInEvent", fe, "org.kde.qt.QFocusEvent")) {
			KListView::focusInEvent(fe);
		}
		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")) {
			KFileTreeView::contentsDragLeaveEvent(e);
		}
		return;
	}
	bool customWhatsThis() {
		return QtSupport::booleanDelegate(this, "customWhatsThis");
	}
	void fileManagerKeyPressEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "fileManagerKeyPressEvent", arg1, "org.kde.qt.QKeyEvent")) {
			KListView::fileManagerKeyPressEvent(arg1);
		}
		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")) {
			KListView::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")) {
			KFileTreeView::contentsDragMoveEvent(e);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "moveEvent", arg1, "org.kde.qt.QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void contentsMouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contentsMouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			KListView::contentsMouseReleaseEvent(arg1);
		}
		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")) {
			KFileTreeView::contentsDragEnterEvent(e);
		}
		return;
	}
	void contentsMouseMoveEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsMouseMoveEvent", e, "org.kde.qt.QMouseEvent")) {
			KListView::contentsMouseMoveEvent(e);
		}
		return;
	}
	void contentsMousePressEvent(QMouseEvent* e) {
		if (! QtSupport::eventDelegate(this, "contentsMousePressEvent", e, "org.kde.qt.QMouseEvent")) {
			KListView::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")) {
			KListView::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* e) {
		if (! QtSupport::eventDelegate(this, "viewportResizeEvent", e, "org.kde.qt.QResizeEvent")) {
			KListView::viewportResizeEvent(e);
		}
		return;
	}
	void resizeEvent(QResizeEvent* e) {
		if (! QtSupport::eventDelegate(this, "resizeEvent", e, "org.kde.qt.QResizeEvent")) {
			QListView::resizeEvent(e);
		}
		return;
	}
};


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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeView_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KFileTreeView_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileTreeView_currentKFileTreeViewItem(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KFileTreeView*) QtSupport::getQt(env, obj))->currentKFileTreeViewItem(), "org.kde.koala.KFileTreeViewItem");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileTreeView_currentURL(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KURL (((KFileTreeView*) QtSupport::getQt(env, obj))->currentURL()), "org.kde.koala.KURL", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileTreeView_addBranch__Lorg_kde_koala_KURL_2Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jobject path, jstring name, jboolean showHidden)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KFileTreeView*) QtSupport::getQt(env, obj))->addBranch((KURL&) *(KURL *) QtSupport::getQt(env, path), (QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (bool) showHidden), "org.kde.koala.KFileTreeBranch");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileTreeView_addBranch__Lorg_kde_koala_KURL_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject path, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KFileTreeView*) QtSupport::getQt(env, obj))->addBranch((KURL&) *(KURL *) QtSupport::getQt(env, path), (QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), false), "org.kde.koala.KFileTreeBranch");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileTreeView_addBranch__Lorg_kde_koala_KURL_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2Z(JNIEnv *env, jobject obj, jobject path, jstring name, jobject pix, jboolean showHidden)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KFileTreeView*) QtSupport::getQt(env, obj))->addBranch((KURL&) *(KURL *) QtSupport::getQt(env, path), (QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pix), (bool) showHidden), "org.kde.koala.KFileTreeBranch");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileTreeView_addBranch__Lorg_kde_koala_KURL_2Ljava_lang_String_2Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jobject path, jstring name, jobject pix)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KFileTreeView*) QtSupport::getQt(env, obj))->addBranch((KURL&) *(KURL *) QtSupport::getQt(env, path), (QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (QPixmap&) *(QPixmap *) QtSupport::getQt(env, pix), false), "org.kde.koala.KFileTreeBranch");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileTreeView_addBranch__Lorg_kde_koala_KFileTreeBranch_2(JNIEnv *env, jobject obj, jobject arg1)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KFileTreeView*) QtSupport::getQt(env, obj))->addBranch((KFileTreeBranch*) QtSupport::getQt(env, arg1)), "org.kde.koala.KFileTreeBranch");
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileTreeView_removeBranch(JNIEnv *env, jobject obj, jobject branch)
{
	return (jboolean) ((KFileTreeView*) QtSupport::getQt(env, obj))->removeBranch((KFileTreeBranch*) QtSupport::getQt(env, branch));
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileTreeView_branch(JNIEnv *env, jobject obj, jstring searchName)
{
static QString * _qstring_searchName = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KFileTreeView*) QtSupport::getQt(env, obj))->branch((QString&) * (QString *) QtSupport::toQString(env, searchName, &_qstring_searchName)), "org.kde.koala.KFileTreeBranch");
}

//JNIEXPORT  JNICALL
//Java_org_kde_koala_KFileTreeView_branches(JNIEnv *env, jobject obj)
//{
//	return () ((KFileTreeView*) QtSupport::getQt(env, obj))->branches();
//}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeView_setDirOnlyMode(JNIEnv *env, jobject obj, jobject brnch, jboolean arg1)
{
	((KFileTreeView*) QtSupport::getQt(env, obj))->setDirOnlyMode((KFileTreeBranch*) QtSupport::getQt(env, brnch), (bool) arg1);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileTreeView_findItem__Lorg_kde_koala_KFileTreeBranch_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject brnch, jstring relUrl)
{
static QString * _qstring_relUrl = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KFileTreeView*) QtSupport::getQt(env, obj))->findItem((KFileTreeBranch*) QtSupport::getQt(env, brnch), (QString&) * (QString *) QtSupport::toQString(env, relUrl, &_qstring_relUrl)), "org.kde.koala.KFileTreeViewItem");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileTreeView_findItem__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring branchName, jstring relUrl)
{
static QString * _qstring_relUrl = 0;
static QString * _qstring_branchName = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KFileTreeView*) QtSupport::getQt(env, obj))->findItem((QString&) * (QString *) QtSupport::toQString(env, branchName, &_qstring_branchName), (QString&) * (QString *) QtSupport::toQString(env, relUrl, &_qstring_relUrl)), "org.kde.koala.KFileTreeViewItem");
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileTreeView_showFolderOpenPixmap(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KFileTreeView*) QtSupport::getQt(env, obj))->showFolderOpenPixmap();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeView_setShowFolderOpenPixmap__Z(JNIEnv *env, jobject obj, jboolean showIt)
{
	((KFileTreeView*) QtSupport::getQt(env, obj))->setShowFolderOpenPixmap((bool) showIt);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeView_setShowFolderOpenPixmap__(JNIEnv *env, jobject obj)
{
	((KFileTreeView*) QtSupport::getQt(env, obj))->setShowFolderOpenPixmap(true);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileTreeView_acceptDrag(JNIEnv *env, jobject obj, jobject event)
{
	return (jboolean) ((KFileTreeViewJBridge*) QtSupport::getQt(env, obj))->protected_acceptDrag((QDropEvent*) QtSupport::getQt(env, event));
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeView_startAnimation__Lorg_kde_koala_KFileTreeViewItem_2Ljava_lang_String_2I(JNIEnv *env, jobject obj, jobject item, jstring iconBaseName, jint iconCount)
{
static QCString * _qstring_iconBaseName = 0;
	((KFileTreeViewJBridge*) QtSupport::getQt(env, obj))->protected_startAnimation((KFileTreeViewItem*) QtSupport::getQt(env, item), (char*) QtSupport::toCharString(env, iconBaseName, &_qstring_iconBaseName), (uint) iconCount);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeView_startAnimation__Lorg_kde_koala_KFileTreeViewItem_2(JNIEnv *env, jobject obj, jobject item)
{
	((KFileTreeViewJBridge*) QtSupport::getQt(env, obj))->protected_startAnimation((KFileTreeViewItem*) QtSupport::getQt(env, item), "kde", 6);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeView_stopAnimation(JNIEnv *env, jobject obj, jobject item)
{
	((KFileTreeViewJBridge*) QtSupport::getQt(env, obj))->protected_stopAnimation((KFileTreeViewItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeView_contentsDragEnterEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KFileTreeViewJBridge*) QtSupport::getQt(env, obj))->protected_contentsDragEnterEvent((QDragEnterEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeView_contentsDragMoveEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KFileTreeViewJBridge*) QtSupport::getQt(env, obj))->protected_contentsDragMoveEvent((QDragMoveEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeView_contentsDragLeaveEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KFileTreeViewJBridge*) QtSupport::getQt(env, obj))->protected_contentsDragLeaveEvent((QDragLeaveEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeView_contentsDropEvent(JNIEnv *env, jobject obj, jobject ev)
{
	((KFileTreeViewJBridge*) QtSupport::getQt(env, obj))->protected_contentsDropEvent((QDropEvent*) QtSupport::getQt(env, ev));
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KFileTreeView_slotNewTreeViewItems(JNIEnv *env, jobject obj, jobject arg1, j arg2)
//{
//	((KFileTreeViewJBridge*) QtSupport::getQt(env, obj))->protected_slotNewTreeViewItems((KFileTreeBranch*) QtSupport::getQt(env, arg1), (KFileTreeViewItemList) arg2);
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileTreeView_slotSetNextUrlToSelect(JNIEnv *env, jobject obj, jobject url)
{
	((KFileTreeViewJBridge*) QtSupport::getQt(env, obj))->protected_slotSetNextUrlToSelect((KURL&) *(KURL *) QtSupport::getQt(env, url));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileTreeView_itemIcon__Lorg_kde_koala_KFileTreeViewItem_2I(JNIEnv *env, jobject obj, jobject arg1, jint gap)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QPixmap (((KFileTreeViewJBridge*) QtSupport::getQt(env, obj))->protected_itemIcon((KFileTreeViewItem*) QtSupport::getQt(env, arg1), (int) gap)), "org.kde.qt.QPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileTreeView_itemIcon__Lorg_kde_koala_KFileTreeViewItem_2(JNIEnv *env, jobject obj, jobject arg1)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QPixmap(((KFileTreeViewJBridge*) QtSupport::getQt(env, obj))->protected_itemIcon((KFileTreeViewItem*) QtSupport::getQt(env, arg1), 0)), "org.kde.qt.QPixmap", TRUE);
}

