/***************************************************************************
                            qt_QFileDialog.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, 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 "qt_QFileDialog.h"
}

#include <qfiledialog.h>

class QFileDialogBridge : public QFileDialog
{
public:
	QFileDialogBridge(const QString& dirName, const QString& filter, QWidget* parent, const char* name, bool modal) : QFileDialog(dirName, filter, parent, name, modal) {}
	QFileDialogBridge(QWidget* parent, const char* name, bool modal) : QFileDialog(parent, name, modal) {}
	~QFileDialogBridge() {}
	void protected_addWidgets(QLabel* arg1, QWidget* arg2, QPushButton* arg3) {
		QFileDialog::addWidgets(arg1, arg2, arg3);
		return;
	}
	void protected_addToolButton(QButton* b, bool separator) {
		QFileDialog::addToolButton(b, separator);
		return;
	}
	void protected_addLeftWidget(QWidget* w) {
		QFileDialog::addLeftWidget(w);
		return;
	}
	void protected_addRightWidget(QWidget* w) {
		QFileDialog::addRightWidget(w);
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			QFileDialog::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyReleaseEvent", arg1, "QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusOutEvent", arg1, "QFocusEvent")) {
			QWidget::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragMoveEvent", arg1, "QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "leaveEvent", arg1, "QEvent")) {
			QWidget::leaveEvent(arg1);
		}
		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")) {
			QWidget::showEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contextMenuEvent", arg1, "QContextMenuEvent")) {
			QDialog::contextMenuEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mousePressEvent", arg1, "QMouseEvent")) {
			QWidget::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 mouseReleaseEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseReleaseEvent", arg1, "QMouseEvent")) {
			QWidget::mouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseDoubleClickEvent", arg1, "QMouseEvent")) {
			QWidget::mouseDoubleClickEvent(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 focusInEvent(QFocusEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusInEvent", arg1, "QFocusEvent")) {
			QWidget::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imEndEvent", arg1, "QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dropEvent", arg1, "QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragEnterEvent", arg1, "QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseMoveEvent", arg1, "QMouseEvent")) {
			QWidget::mouseMoveEvent(arg1);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "moveEvent", arg1, "QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "wheelEvent", arg1, "QWheelEvent")) {
			QWidget::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "hideEvent", arg1, "QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		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")) {
			QDialog::closeEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "paintEvent", arg1, "QPaintEvent")) {
			QWidget::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "resizeEvent", arg1, "QResizeEvent")) {
			QFileDialog::resizeEvent(arg1);
		}
		return;
	}
};

qt_QFileDialog * qt_new_QFileDialog(qt_QString * dirName, qt_QString * filter, qt_QWidget * parent, char* name, int modal){
	return (qt_QFileDialog *) new QFileDialogBridge((QString&)* (QString*)dirName, (QString&)* (QString*)filter, (QWidget*)parent, (char*)name, (bool)modal);
}
qt_QFileDialog * qt_new_QFileDialog1(qt_QWidget * parent, char* name, int modal){
	return (qt_QFileDialog *) new QFileDialogBridge((QWidget*)parent, (char*)name, (bool)modal);
}
void qt_del_QFileDialog( qt_QFileDialog* p ){
	delete (QFileDialogBridge*) p;
}
qt_QString * qt_QFileDialog_selectedFile( qt_QFileDialog* instPointer){
	return (qt_QString *)new QString(((QFileDialogBridge*)instPointer)->selectedFile());
}
qt_QString * qt_QFileDialog_selectedFilter( qt_QFileDialog* instPointer){
	return (qt_QString *)new QString(((QFileDialogBridge*)instPointer)->selectedFilter());
}
void qt_QFileDialog_setSelectedFilter( qt_QFileDialog* instPointer,qt_QString * arg1){
	((QFileDialogBridge*)instPointer)->setSelectedFilter((QString&)* (QString*)arg1);
	return;
}
void qt_QFileDialog_setSelectedFilter1( qt_QFileDialog* instPointer,int arg1){
	((QFileDialogBridge*)instPointer)->setSelectedFilter((int)arg1);
	return;
}
void qt_QFileDialog_setSelection( qt_QFileDialog* instPointer,qt_QString * arg1){
	((QFileDialogBridge*)instPointer)->setSelection((QString&)* (QString*)arg1);
	return;
}
void qt_QFileDialog_selectAll( qt_QFileDialog* instPointer,int b){
	((QFileDialogBridge*)instPointer)->selectAll((bool)b);
	return;
}
qt_QStringList* qt_QFileDialog_selectedFiles( qt_QFileDialog* instPointer){
	return (qt_QStringList*)new QStringList(((QFileDialogBridge*)instPointer)->selectedFiles());
}
qt_QString * qt_QFileDialog_dirPath( qt_QFileDialog* instPointer){
	return (qt_QString *)new QString(((QFileDialogBridge*)instPointer)->dirPath());
}
void qt_QFileDialog_setDir( qt_QFileDialog* instPointer,qt_QDir * arg1){
	((QFileDialogBridge*)instPointer)->setDir((QDir&)* (QDir*)arg1);
	return;
}
qt_QDir * qt_QFileDialog_dir( qt_QFileDialog* instPointer){
	return (qt_QDir *) ((QFileDialogBridge*)instPointer)->dir();
}
void qt_QFileDialog_setShowHiddenFiles( qt_QFileDialog* instPointer,int s){
	((QFileDialogBridge*)instPointer)->setShowHiddenFiles((bool)s);
	return;
}
int qt_QFileDialog_showHiddenFiles( qt_QFileDialog* instPointer){
	return (int) ((QFileDialogBridge*)instPointer)->showHiddenFiles();
}
void qt_QFileDialog_rereadDir( qt_QFileDialog* instPointer){
	((QFileDialogBridge*)instPointer)->rereadDir();
	return;
}
void qt_QFileDialog_resortDir( qt_QFileDialog* instPointer){
	((QFileDialogBridge*)instPointer)->resortDir();
	return;
}
void qt_QFileDialog_setMode( qt_QFileDialog* instPointer,int arg1){
	((QFileDialogBridge*)instPointer)->setMode((QFileDialog::Mode)arg1);
	return;
}
int qt_QFileDialog_mode( qt_QFileDialog* instPointer){
	return (int) ((QFileDialogBridge*)instPointer)->mode();
}
void qt_QFileDialog_setViewMode( qt_QFileDialog* instPointer,int m){
	((QFileDialogBridge*)instPointer)->setViewMode((QFileDialog::ViewMode)m);
	return;
}
int qt_QFileDialog_viewMode( qt_QFileDialog* instPointer){
	return (int) ((QFileDialogBridge*)instPointer)->viewMode();
}
void qt_QFileDialog_setPreviewMode( qt_QFileDialog* instPointer,int m){
	((QFileDialogBridge*)instPointer)->setPreviewMode((QFileDialog::PreviewMode)m);
	return;
}
int qt_QFileDialog_previewMode( qt_QFileDialog* instPointer){
	return (int) ((QFileDialogBridge*)instPointer)->previewMode();
}
int qt_QFileDialog_eventFilter( qt_QFileDialog* instPointer,qt_QObject * arg1, qt_QEvent * arg2){
	return (int) ((QFileDialogBridge*)instPointer)->eventFilter((QObject*)arg1, (QEvent*)arg2);
}
int qt_QFileDialog_isInfoPreviewEnabled( qt_QFileDialog* instPointer){
	return (int) ((QFileDialogBridge*)instPointer)->isInfoPreviewEnabled();
}
int qt_QFileDialog_isContentsPreviewEnabled( qt_QFileDialog* instPointer){
	return (int) ((QFileDialogBridge*)instPointer)->isContentsPreviewEnabled();
}
void qt_QFileDialog_setInfoPreviewEnabled( qt_QFileDialog* instPointer,int arg1){
	((QFileDialogBridge*)instPointer)->setInfoPreviewEnabled((bool)arg1);
	return;
}
void qt_QFileDialog_setContentsPreviewEnabled( qt_QFileDialog* instPointer,int arg1){
	((QFileDialogBridge*)instPointer)->setContentsPreviewEnabled((bool)arg1);
	return;
}
void qt_QFileDialog_setInfoPreview( qt_QFileDialog* instPointer,qt_QWidget * w, qt_QFilePreview* preview){
	((QFileDialogBridge*)instPointer)->setInfoPreview((QWidget*)w, (QFilePreview*)preview);
	return;
}
void qt_QFileDialog_setContentsPreview( qt_QFileDialog* instPointer,qt_QWidget * w, qt_QFilePreview* preview){
	((QFileDialogBridge*)instPointer)->setContentsPreview((QWidget*)w, (QFilePreview*)preview);
	return;
}
qt_QUrl* qt_QFileDialog_url( qt_QFileDialog* instPointer){
	return (qt_QUrl*)new QUrl(((QFileDialogBridge*)instPointer)->url());
}
void qt_QFileDialog_addFilter( qt_QFileDialog* instPointer,qt_QString * filter){
	((QFileDialogBridge*)instPointer)->addFilter((QString&)* (QString*)filter);
	return;
}
void qt_QFileDialog_done( qt_QFileDialog* instPointer,int arg1){
	((QFileDialogBridge*)instPointer)->done((int)arg1);
	return;
}
void qt_QFileDialog_setDir1( qt_QFileDialog* instPointer,qt_QString * arg1){
	((QFileDialogBridge*)instPointer)->setDir((QString&)* (QString*)arg1);
	return;
}
void qt_QFileDialog_setUrl( qt_QFileDialog* instPointer,qt_QUrlOperator* url){
	((QFileDialogBridge*)instPointer)->setUrl((QUrlOperator&)* (QUrlOperator*)url);
	return;
}
void qt_QFileDialog_setFilter( qt_QFileDialog* instPointer,qt_QString * arg1){
	((QFileDialogBridge*)instPointer)->setFilter((QString&)* (QString*)arg1);
	return;
}
void qt_QFileDialog_setFilters( qt_QFileDialog* instPointer,qt_QString * arg1){
	((QFileDialogBridge*)instPointer)->setFilters((QString&)* (QString*)arg1);
	return;
}
void qt_QFileDialog_setFilters1( qt_QFileDialog* instPointer,char** arg1){
	((QFileDialogBridge*)instPointer)->setFilters((const char**)arg1);
	return;
}
void qt_QFileDialog_setFilters2( qt_QFileDialog* instPointer,qt_QStringList* arg1){
	((QFileDialogBridge*)instPointer)->setFilters((QStringList&)* (QStringList*)arg1);
	return;
}
qt_QString * qt_QFileDialog_getOpenFileName( qt_QString * initially, qt_QString * filter, qt_QWidget * parent, char* name, qt_QString * caption, qt_QString* selectedFilter, int resolveSymlinks){
	return (qt_QString *)new QString(QFileDialogBridge::getOpenFileName((QString&)* (QString*)initially, (QString&)* (QString*)filter, (QWidget*)parent, (char*)name, (QString&)* (QString*)caption, (QString*)selectedFilter, (bool)resolveSymlinks));
}
qt_QString * qt_QFileDialog_getSaveFileName( qt_QString * initially, qt_QString * filter, qt_QWidget * parent, char* name, qt_QString * caption, qt_QString* selectedFilter, int resolveSymlinks){
	return (qt_QString *)new QString(QFileDialogBridge::getSaveFileName((QString&)* (QString*)initially, (QString&)* (QString*)filter, (QWidget*)parent, (char*)name, (QString&)* (QString*)caption, (QString*)selectedFilter, (bool)resolveSymlinks));
}
qt_QString * qt_QFileDialog_getExistingDirectory( qt_QString * dir, qt_QWidget * parent, char* name, qt_QString * caption, int dirOnly, int resolveSymlinks){
	return (qt_QString *)new QString(QFileDialogBridge::getExistingDirectory((QString&)* (QString*)dir, (QWidget*)parent, (char*)name, (QString&)* (QString*)caption, (bool)dirOnly, (bool)resolveSymlinks));
}
qt_QStringList* qt_QFileDialog_getOpenFileNames( qt_QString * filter, qt_QString * dir, qt_QWidget * parent, char* name, qt_QString * caption, qt_QString* selectedFilter, int resolveSymlinks){
	return (qt_QStringList*)new QStringList(QFileDialogBridge::getOpenFileNames((QString&)* (QString*)filter, (QString&)* (QString*)dir, (QWidget*)parent, (char*)name, (QString&)* (QString*)caption, (QString*)selectedFilter, (bool)resolveSymlinks));
}
void qt_QFileDialog_setIconProvider( qt_QFileIconProvider* arg1){
	QFileDialogBridge::setIconProvider((QFileIconProvider*)arg1);
	return;
}
qt_QFileIconProvider* qt_QFileDialog_iconProvider( ){
	return (qt_QFileIconProvider*) QFileDialogBridge::iconProvider();
}
void qt_QFileDialog_addWidgets( qt_QFileDialog* instPointer,qt_QLabel * arg1, qt_QWidget * arg2, qt_QPushButton* arg3){
	((QFileDialogBridge*)instPointer)->protected_addWidgets((QLabel*)arg1, (QWidget*)arg2, (QPushButton*)arg3);
	return;
}
void qt_QFileDialog_addToolButton( qt_QFileDialog* instPointer,qt_QButton * b, int separator){
	((QFileDialogBridge*)instPointer)->protected_addToolButton((QButton*)b, (bool)separator);
	return;
}
void qt_QFileDialog_addLeftWidget( qt_QFileDialog* instPointer,qt_QWidget * w){
	((QFileDialogBridge*)instPointer)->protected_addLeftWidget((QWidget*)w);
	return;
}
void qt_QFileDialog_addRightWidget( qt_QFileDialog* instPointer,qt_QWidget * w){
	((QFileDialogBridge*)instPointer)->protected_addRightWidget((QWidget*)w);
	return;
}
