/***************************************************************************
                            kde_KFileIconView.cpp -  description
                             -------------------
    begin                : Sun Nov 24 16:54:36 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Nov 24 16:54:36 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_KFileIconView.h"
}

#include <kfileiconview.h>

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

kde_KFileIconView * kde_new_KFileIconView(qt_QWidget * parent, char* name){
	return (kde_KFileIconView *) new KFileIconViewBridge((QWidget*)parent, (char*)name);
}
void kde_del_KFileIconView( kde_KFileIconView* p ){
	delete (KFileIconViewBridge*) p;
}
qt_QWidget * kde_KFileIconView_widget( kde_KFileIconView* instPointer){
	return (qt_QWidget *) ((KFileIconViewBridge*)instPointer)->widget();
}
void kde_KFileIconView_clearView( kde_KFileIconView* instPointer){
	((KFileIconViewBridge*)instPointer)->clearView();
	return;
}
void kde_KFileIconView_setAutoUpdate( kde_KFileIconView* instPointer,int arg1){
	((KFileIconViewBridge*)instPointer)->setAutoUpdate((bool)arg1);
	return;
}
void kde_KFileIconView_updateView( kde_KFileIconView* instPointer,int arg1){
	((KFileIconViewBridge*)instPointer)->updateView((bool)arg1);
	return;
}
void kde_KFileIconView_updateView1( kde_KFileIconView* instPointer,kde_KFileItem* arg1){
	((KFileIconViewBridge*)instPointer)->updateView((KFileItem*)arg1);
	return;
}
void kde_KFileIconView_removeItem( kde_KFileIconView* instPointer,kde_KFileItem* arg1){
	((KFileIconViewBridge*)instPointer)->removeItem((KFileItem*)arg1);
	return;
}
void kde_KFileIconView_listingCompleted( kde_KFileIconView* instPointer){
	((KFileIconViewBridge*)instPointer)->listingCompleted();
	return;
}
void kde_KFileIconView_insertItem( kde_KFileIconView* instPointer,kde_KFileItem* i){
	((KFileIconViewBridge*)instPointer)->insertItem((KFileItem*)i);
	return;
}
void kde_KFileIconView_setSelectionMode( kde_KFileIconView* instPointer,int sm){
	((KFileIconViewBridge*)instPointer)->setSelectionMode((KFile::SelectionMode)sm);
	return;
}
void kde_KFileIconView_setSelected( kde_KFileIconView* instPointer,kde_KFileItem* arg1, int arg2){
	((KFileIconViewBridge*)instPointer)->setSelected((KFileItem*)arg1, (bool)arg2);
	return;
}
int kde_KFileIconView_isSelected( kde_KFileIconView* instPointer,kde_KFileItem* i){
	return (int) ((KFileIconViewBridge*)instPointer)->isSelected((KFileItem*)i);
}
void kde_KFileIconView_clearSelection( kde_KFileIconView* instPointer){
	((KFileIconViewBridge*)instPointer)->clearSelection();
	return;
}
void kde_KFileIconView_selectAll( kde_KFileIconView* instPointer){
	((KFileIconViewBridge*)instPointer)->selectAll();
	return;
}
void kde_KFileIconView_invertSelection( kde_KFileIconView* instPointer){
	((KFileIconViewBridge*)instPointer)->invertSelection();
	return;
}
void kde_KFileIconView_setCurrentItem( kde_KFileIconView* instPointer,kde_KFileItem* arg1){
	((KFileIconViewBridge*)instPointer)->setCurrentItem((KFileItem*)arg1);
	return;
}
kde_KFileItem* kde_KFileIconView_currentFileItem( kde_KFileIconView* instPointer){
	return (kde_KFileItem*) ((KFileIconViewBridge*)instPointer)->currentFileItem();
}
kde_KFileItem* kde_KFileIconView_firstFileItem( kde_KFileIconView* instPointer){
	return (kde_KFileItem*) ((KFileIconViewBridge*)instPointer)->firstFileItem();
}
kde_KFileItem* kde_KFileIconView_nextItem( kde_KFileIconView* instPointer,kde_KFileItem* arg1){
	return (kde_KFileItem*) ((KFileIconViewBridge*)instPointer)->nextItem((KFileItem*)arg1);
}
kde_KFileItem* kde_KFileIconView_prevItem( kde_KFileIconView* instPointer,kde_KFileItem* arg1){
	return (kde_KFileItem*) ((KFileIconViewBridge*)instPointer)->prevItem((KFileItem*)arg1);
}
void kde_KFileIconView_setIconSize( kde_KFileIconView* instPointer,int size){
	((KFileIconViewBridge*)instPointer)->setIconSize((int)size);
	return;
}
void kde_KFileIconView_setPreviewSize( kde_KFileIconView* instPointer,int size){
	((KFileIconViewBridge*)instPointer)->setPreviewSize((int)size);
	return;
}
int kde_KFileIconView_iconSize( kde_KFileIconView* instPointer){
	return (int) ((KFileIconViewBridge*)instPointer)->iconSize();
}
void kde_KFileIconView_ensureItemVisible( kde_KFileIconView* instPointer,kde_KFileItem* arg1){
	((KFileIconViewBridge*)instPointer)->ensureItemVisible((KFileItem*)arg1);
	return;
}
void kde_KFileIconView_setSorting( kde_KFileIconView* instPointer,int sort){
	((KFileIconViewBridge*)instPointer)->setSorting((QDir::SortSpec)sort);
	return;
}
void kde_KFileIconView_readConfig( kde_KFileIconView* instPointer,kde_KConfig* arg1, qt_QString * group){
	((KFileIconViewBridge*)instPointer)->readConfig((KConfig*)arg1, (QString&)* (QString*)group);
	return;
}
void kde_KFileIconView_writeConfig( kde_KFileIconView* instPointer,kde_KConfig* arg1, qt_QString * group){
	((KFileIconViewBridge*)instPointer)->writeConfig((KConfig*)arg1, (QString&)* (QString*)group);
	return;
}
void kde_KFileIconView_mimeTypeDeterminationFinished( kde_KFileIconView* instPointer){
	((KFileIconViewBridge*)instPointer)->mimeTypeDeterminationFinished();
	return;
}
void kde_KFileIconView_determineIcon( kde_KFileIconView* instPointer,kde_KFileIconViewItem* item){
	((KFileIconViewBridge*)instPointer)->determineIcon((KFileIconViewItem*)item);
	return;
}
qt_QScrollView* kde_KFileIconView_scrollWidget( kde_KFileIconView* instPointer){
	return (qt_QScrollView*) ((KFileIconViewBridge*)instPointer)->scrollWidget();
}
void kde_KFileIconView_showPreviews( kde_KFileIconView* instPointer){
	((KFileIconViewBridge*)instPointer)->showPreviews();
	return;
}
void kde_KFileIconView_arrangeItemsInGrid( kde_KFileIconView* instPointer,int updated){
	((KFileIconViewBridge*)instPointer)->arrangeItemsInGrid((bool)updated);
	return;
}
int kde_KFileIconView_eventFilter( kde_KFileIconView* instPointer,qt_QObject * o, qt_QEvent * e){
	return (int) ((KFileIconViewBridge*)instPointer)->protected_eventFilter((QObject*)o, (QEvent*)e);
}
void kde_KFileIconView_virtual_hook( kde_KFileIconView* instPointer,int identifier, void* data){
	((KFileIconViewBridge*)instPointer)->protected_virtual_hook((int)identifier, (void*)data);
	return;
}
kde_KFileView* kde_KFileIconView_KFileView(kde_KFileIconView* instPointer){
	return (kde_KFileView*) (KFileView *) (KFileIconView *) instPointer;
}
kde_KIconView* kde_KFileIconView_KIconView(kde_KFileIconView* instPointer){
	return (kde_KIconView*) (KIconView *) (KFileIconView *) instPointer;
}
