/***************************************************************************
                            kde_KFileTreeView.cpp -  description
                             -------------------
    begin                : Tue Mar 19 20:11:49 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Mar 19 20:11:49 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_KFileTreeView.h"
}

#include <kfiletreeview.h>

class KFileTreeViewBridge : public KFileTreeView
{
public:
	KFileTreeViewBridge(QWidget* parent, const char* name) : KFileTreeView(parent, name) {}
	~KFileTreeViewBridge() {}
	 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_virtual_hook(int id, void* data) {
		KFileTreeView::virtual_hook(id, data);
		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 (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			KListView::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyReleaseEvent", arg1, "QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* fe) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusOutEvent", fe, "QFocusEvent")) {
			KListView::focusOutEvent(fe);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void viewportDragMoveEvent(QDragMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportDragMoveEvent", arg1, "QDragMoveEvent")) {
			QScrollView::viewportDragMoveEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragMoveEvent", arg1, "QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void contentsWheelEvent(QWheelEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsWheelEvent", arg1, "QWheelEvent")) {
			QScrollView::contentsWheelEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "leaveEvent", e, "QEvent")) {
			KListView::leaveEvent(e);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "tabletEvent", arg1, "QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "showEvent", arg1, "QShowEvent")) {
			QListView::showEvent(arg1);
		}
		return;
	}
	void contentsContextMenuEvent(QContextMenuEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsContextMenuEvent", e, "QContextMenuEvent")) {
			QListView::contentsContextMenuEvent(e);
		}
		return;
	}
	void viewportContextMenuEvent(QContextMenuEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportContextMenuEvent", arg1, "QContextMenuEvent")) {
			QScrollView::viewportContextMenuEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contextMenuEvent", arg1, "QContextMenuEvent")) {
			QScrollView::contextMenuEvent(arg1);
		}
		return;
	}
	void viewportMousePressEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportMousePressEvent", arg1, "QMouseEvent")) {
			QScrollView::viewportMousePressEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mousePressEvent", arg1, "QMouseEvent")) {
			QScrollView::mousePressEvent(arg1);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imComposeEvent", arg1, "QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void viewportMouseReleaseEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportMouseReleaseEvent", arg1, "QMouseEvent")) {
			QScrollView::viewportMouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseReleaseEvent", arg1, "QMouseEvent")) {
			QScrollView::mouseReleaseEvent(arg1);
		}
		return;
	}
	void viewportMouseDoubleClickEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportMouseDoubleClickEvent", arg1, "QMouseEvent")) {
			QScrollView::viewportMouseDoubleClickEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseDoubleClickEvent", arg1, "QMouseEvent")) {
			QScrollView::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void viewportDragLeaveEvent(QDragLeaveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportDragLeaveEvent", arg1, "QDragLeaveEvent")) {
			QScrollView::viewportDragLeaveEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragLeaveEvent", arg1, "QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "enterEvent", arg1, "QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void contentsDropEvent(QDropEvent* ev) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsDropEvent", ev, "QDropEvent")) {
			KFileTreeView::contentsDropEvent(ev);
		}
		return;
	}
	void focusInEvent(QFocusEvent* fe) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusInEvent", fe, "QFocusEvent")) {
			KListView::focusInEvent(fe);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imEndEvent", arg1, "QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void contentsDragLeaveEvent(QDragLeaveEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsDragLeaveEvent", e, "QDragLeaveEvent")) {
			KFileTreeView::contentsDragLeaveEvent(e);
		}
		return;
	}
	void fileManagerKeyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "fileManagerKeyPressEvent", arg1, "QKeyEvent")) {
			KListView::fileManagerKeyPressEvent(arg1);
		}
		return;
	}
	void viewportDropEvent(QDropEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportDropEvent", arg1, "QDropEvent")) {
			QScrollView::viewportDropEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dropEvent", arg1, "QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void contentsMouseDoubleClickEvent(QMouseEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsMouseDoubleClickEvent", e, "QMouseEvent")) {
			KListView::contentsMouseDoubleClickEvent(e);
		}
		return;
	}
	void viewportDragEnterEvent(QDragEnterEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportDragEnterEvent", arg1, "QDragEnterEvent")) {
			QScrollView::viewportDragEnterEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragEnterEvent", arg1, "QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void viewportMouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportMouseMoveEvent", arg1, "QMouseEvent")) {
			QScrollView::viewportMouseMoveEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseMoveEvent", arg1, "QMouseEvent")) {
			QScrollView::mouseMoveEvent(arg1);
		}
		return;
	}
	void contentsDragMoveEvent(QDragMoveEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsDragMoveEvent", e, "QDragMoveEvent")) {
			KFileTreeView::contentsDragMoveEvent(e);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "moveEvent", arg1, "QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void contentsMouseReleaseEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsMouseReleaseEvent", arg1, "QMouseEvent")) {
			KListView::contentsMouseReleaseEvent(arg1);
		}
		return;
	}
	void viewportWheelEvent(QWheelEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportWheelEvent", arg1, "QWheelEvent")) {
			QScrollView::viewportWheelEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "wheelEvent", arg1, "QWheelEvent")) {
			QScrollView::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "hideEvent", arg1, "QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void contentsDragEnterEvent(QDragEnterEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsDragEnterEvent", e, "QDragEnterEvent")) {
			KFileTreeView::contentsDragEnterEvent(e);
		}
		return;
	}
	void contentsMouseMoveEvent(QMouseEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsMouseMoveEvent", e, "QMouseEvent")) {
			KListView::contentsMouseMoveEvent(e);
		}
		return;
	}
	void contentsMousePressEvent(QMouseEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contentsMousePressEvent", e, "QMouseEvent")) {
			KListView::contentsMousePressEvent(e);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imStartEvent", arg1, "QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void closeEvent(QCloseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "closeEvent", arg1, "QCloseEvent")) {
			QWidget::closeEvent(arg1);
		}
		return;
	}
	void viewportPaintEvent(QPaintEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportPaintEvent", arg1, "QPaintEvent")) {
			KListView::viewportPaintEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "paintEvent", arg1, "QPaintEvent")) {
			QFrame::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void viewportResizeEvent(QResizeEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "viewportResizeEvent", e, "QResizeEvent")) {
			KListView::viewportResizeEvent(e);
		}
		return;
	}
	void resizeEvent(QResizeEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "resizeEvent", e, "QResizeEvent")) {
			QListView::resizeEvent(e);
		}
		return;
	}
};

kde_KFileTreeView * kde_new_KFileTreeView(qt_QWidget * parent, char* name){
	return (kde_KFileTreeView *) new KFileTreeViewBridge((QWidget*)parent, (char*)name);
}
void kde_del_KFileTreeView( kde_KFileTreeView* p ){
	delete (KFileTreeViewBridge*) p;
}
kde_KFileTreeViewItem* kde_KFileTreeView_currentKFileTreeViewItem( kde_KFileTreeView* instPointer){
	return (kde_KFileTreeViewItem*) ((KFileTreeViewBridge*)instPointer)->currentKFileTreeViewItem();
}
kde_KURL* kde_KFileTreeView_currentURL( kde_KFileTreeView* instPointer){
	return (kde_KURL*)new KURL(((KFileTreeViewBridge*)instPointer)->currentURL());
}
kde_KFileTreeBranch* kde_KFileTreeView_addBranch( kde_KFileTreeView* instPointer,kde_KURL* path, qt_QString * name, int showHidden){
	return (kde_KFileTreeBranch*) ((KFileTreeViewBridge*)instPointer)->addBranch((KURL&)* (KURL*)path, (QString&)* (QString*)name, (bool)showHidden);
}
kde_KFileTreeBranch* kde_KFileTreeView_addBranch1( kde_KFileTreeView* instPointer,kde_KURL* path, qt_QString * name, qt_QPixmap * pix, int showHidden){
	return (kde_KFileTreeBranch*) ((KFileTreeViewBridge*)instPointer)->addBranch((KURL&)* (KURL*)path, (QString&)* (QString*)name, (QPixmap&)* (QPixmap*)pix, (bool)showHidden);
}
kde_KFileTreeBranch* kde_KFileTreeView_addBranch2( kde_KFileTreeView* instPointer,kde_KFileTreeBranch* arg1){
	return (kde_KFileTreeBranch*) ((KFileTreeViewBridge*)instPointer)->addBranch((KFileTreeBranch*)arg1);
}
int kde_KFileTreeView_removeBranch( kde_KFileTreeView* instPointer,kde_KFileTreeBranch* branch){
	return (int) ((KFileTreeViewBridge*)instPointer)->removeBranch((KFileTreeBranch*)branch);
}
kde_KFileTreeBranch* kde_KFileTreeView_branch( kde_KFileTreeView* instPointer,qt_QString * searchName){
	return (kde_KFileTreeBranch*) ((KFileTreeViewBridge*)instPointer)->branch((QString&)* (QString*)searchName);
}
KFileTreeBranchList& kde_KFileTreeView_branches( kde_KFileTreeView* instPointer){
	return (KFileTreeBranchList&) ((KFileTreeViewBridge*)instPointer)->branches();
}
void kde_KFileTreeView_setDirOnlyMode( kde_KFileTreeView* instPointer,kde_KFileTreeBranch* brnch, int arg1){
	((KFileTreeViewBridge*)instPointer)->setDirOnlyMode((KFileTreeBranch*)brnch, (bool)arg1);
	return;
}
kde_KFileTreeViewItem* kde_KFileTreeView_findItem( kde_KFileTreeView* instPointer,kde_KFileTreeBranch* brnch, qt_QString * relUrl){
	return (kde_KFileTreeViewItem*) ((KFileTreeViewBridge*)instPointer)->findItem((KFileTreeBranch*)brnch, (QString&)* (QString*)relUrl);
}
kde_KFileTreeViewItem* kde_KFileTreeView_findItem1( kde_KFileTreeView* instPointer,qt_QString * branchName, qt_QString * relUrl){
	return (kde_KFileTreeViewItem*) ((KFileTreeViewBridge*)instPointer)->findItem((QString&)* (QString*)branchName, (QString&)* (QString*)relUrl);
}
int kde_KFileTreeView_showFolderOpenPixmap( kde_KFileTreeView* instPointer){
	return (int) ((KFileTreeViewBridge*)instPointer)->showFolderOpenPixmap();
}
void kde_KFileTreeView_setShowFolderOpenPixmap( kde_KFileTreeView* instPointer,int showIt){
	((KFileTreeViewBridge*)instPointer)->setShowFolderOpenPixmap((bool)showIt);
	return;
}
int kde_KFileTreeView_acceptDrag( kde_KFileTreeView* instPointer,qt_QDropEvent* event){
	return (int) ((KFileTreeViewBridge*)instPointer)->protected_acceptDrag((QDropEvent*)event);
}
qt_QDragObject* kde_KFileTreeView_dragObject( kde_KFileTreeView* instPointer){
	return (qt_QDragObject*) ((KFileTreeViewBridge*)instPointer)->protected_dragObject();
}
void kde_KFileTreeView_startAnimation( kde_KFileTreeView* instPointer,kde_KFileTreeViewItem* item, char* iconBaseName, unsigned int iconCount){
	((KFileTreeViewBridge*)instPointer)->protected_startAnimation((KFileTreeViewItem*)item, (char*)iconBaseName, (uint)iconCount);
	return;
}
void kde_KFileTreeView_stopAnimation( kde_KFileTreeView* instPointer,kde_KFileTreeViewItem* item){
	((KFileTreeViewBridge*)instPointer)->protected_stopAnimation((KFileTreeViewItem*)item);
	return;
}
void kde_KFileTreeView_virtual_hook( kde_KFileTreeView* instPointer,int identifier, void* data){
	((KFileTreeViewBridge*)instPointer)->protected_virtual_hook((int)identifier, (void*)data);
	return;
}
void kde_KFileTreeView_slotNewTreeViewItems( kde_KFileTreeView* instPointer,kde_KFileTreeBranch* arg1, KFileTreeViewItemList arg2){
	((KFileTreeViewBridge*)instPointer)->protected_slotNewTreeViewItems((KFileTreeBranch*)arg1, (KFileTreeViewItemList&)arg2);
	return;
}
void kde_KFileTreeView_slotSetNextUrlToSelect( kde_KFileTreeView* instPointer,kde_KURL* url){
	((KFileTreeViewBridge*)instPointer)->protected_slotSetNextUrlToSelect((KURL&)* (KURL*)url);
	return;
}
qt_QPixmap * kde_KFileTreeView_itemIcon( kde_KFileTreeView* instPointer,kde_KFileTreeViewItem* arg1, int gap){
	return (qt_QPixmap *)new QPixmap(((KFileTreeViewBridge*)instPointer)->protected_itemIcon((KFileTreeViewItem*)arg1, (int)gap));
}
