/***************************************************************************
                            kde_KJanusWidget.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 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_KJanusWidget.h"
}

#include <kjanuswidget.h>

class KJanusWidgetBridge : public KJanusWidget
{
public:
	KJanusWidgetBridge(QWidget* parent, const char* name, int face) : KJanusWidget(parent, name, face) {}
	~KJanusWidgetBridge() {}
	 bool  protected_eventFilter(QObject* o, QEvent* e) {
		return ( bool ) KJanusWidget::eventFilter(o, e);
	}
	bool  protected_showPage(QWidget* w) {
		return (bool ) KJanusWidget::showPage(w);
	}
	void protected_addPageWidget(QFrame* page, const QStringList& items, const QString& header, const QPixmap& pixmap) {
		KJanusWidget::addPageWidget(page, items, header, pixmap);
		return;
	}
	void protected_InsertTreeListItem(const QStringList& items, const QPixmap& pixmap, QFrame* page) {
		KJanusWidget::InsertTreeListItem(items, pixmap, page);
		return;
	}
	QWidget * protected_FindParent() {
		return (QWidget *) KJanusWidget::FindParent();
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			QWidget::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")) {
			KJanusWidget::showEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contextMenuEvent", arg1, "QContextMenuEvent")) {
			QWidget::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")) {
			QWidget::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")) {
			QWidget::resizeEvent(arg1);
		}
		return;
	}
};

kde_KJanusWidget * kde_new_KJanusWidget(qt_QWidget * parent, char* name, int face){
	return (kde_KJanusWidget *) new KJanusWidgetBridge((QWidget*)parent, (char*)name, (int)face);
}
void kde_del_KJanusWidget( kde_KJanusWidget* p ){
	delete (KJanusWidgetBridge*) p;
}
int kde_KJanusWidget_showPage( kde_KJanusWidget* instPointer,int index){
	return (int) ((KJanusWidgetBridge*)instPointer)->showPage((int)index);
}
int kde_KJanusWidget_activePageIndex( kde_KJanusWidget* instPointer){
	return (int) ((KJanusWidgetBridge*)instPointer)->activePageIndex();
}
int kde_KJanusWidget_isValid( kde_KJanusWidget* instPointer){
	return (int) ((KJanusWidgetBridge*)instPointer)->isValid();
}
int kde_KJanusWidget_face( kde_KJanusWidget* instPointer){
	return (int) ((KJanusWidgetBridge*)instPointer)->face();
}
qt_QSize * kde_KJanusWidget_minimumSizeHint( kde_KJanusWidget* instPointer){
	QSize _s= ((KJanusWidgetBridge*)instPointer)->minimumSizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * kde_KJanusWidget_sizeHint( kde_KJanusWidget* instPointer){
	QSize _s= ((KJanusWidgetBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QFrame* kde_KJanusWidget_plainPage( kde_KJanusWidget* instPointer){
	return (qt_QFrame*) ((KJanusWidgetBridge*)instPointer)->plainPage();
}
qt_QFrame* kde_KJanusWidget_addPage( kde_KJanusWidget* instPointer,qt_QString * item, qt_QString * header, qt_QPixmap * pixmap){
	return (qt_QFrame*) ((KJanusWidgetBridge*)instPointer)->addPage((QString&)* (QString*)item, (QString&)* (QString*)header, (QPixmap&)* (QPixmap*)pixmap);
}
qt_QFrame* kde_KJanusWidget_addPage1( kde_KJanusWidget* instPointer,qt_QStringList* items, qt_QString * header, qt_QPixmap * pixmap){
	return (qt_QFrame*) ((KJanusWidgetBridge*)instPointer)->addPage((QStringList&)* (QStringList*)items, (QString&)* (QString*)header, (QPixmap&)* (QPixmap*)pixmap);
}
qt_QVBox* kde_KJanusWidget_addVBoxPage( kde_KJanusWidget* instPointer,qt_QString * item, qt_QString * header, qt_QPixmap * pixmap){
	return (qt_QVBox*) ((KJanusWidgetBridge*)instPointer)->addVBoxPage((QString&)* (QString*)item, (QString&)* (QString*)header, (QPixmap&)* (QPixmap*)pixmap);
}
qt_QVBox* kde_KJanusWidget_addVBoxPage1( kde_KJanusWidget* instPointer,qt_QStringList* items, qt_QString * header, qt_QPixmap * pixmap){
	return (qt_QVBox*) ((KJanusWidgetBridge*)instPointer)->addVBoxPage((QStringList&)* (QStringList*)items, (QString&)* (QString*)header, (QPixmap&)* (QPixmap*)pixmap);
}
qt_QHBox* kde_KJanusWidget_addHBoxPage( kde_KJanusWidget* instPointer,qt_QString * itemName, qt_QString * header, qt_QPixmap * pixmap){
	return (qt_QHBox*) ((KJanusWidgetBridge*)instPointer)->addHBoxPage((QString&)* (QString*)itemName, (QString&)* (QString*)header, (QPixmap&)* (QPixmap*)pixmap);
}
qt_QHBox* kde_KJanusWidget_addHBoxPage1( kde_KJanusWidget* instPointer,qt_QStringList* items, qt_QString * header, qt_QPixmap * pixmap){
	return (qt_QHBox*) ((KJanusWidgetBridge*)instPointer)->addHBoxPage((QStringList&)* (QStringList*)items, (QString&)* (QString*)header, (QPixmap&)* (QPixmap*)pixmap);
}
qt_QGrid* kde_KJanusWidget_addGridPage( kde_KJanusWidget* instPointer,int n, int dir, qt_QString * itemName, qt_QString * header, qt_QPixmap * pixmap){
	return (qt_QGrid*) ((KJanusWidgetBridge*)instPointer)->addGridPage((int)n, (Qt::Orientation)dir, (QString&)* (QString*)itemName, (QString&)* (QString*)header, (QPixmap&)* (QPixmap*)pixmap);
}
qt_QGrid* kde_KJanusWidget_addGridPage1( kde_KJanusWidget* instPointer,int n, int dir, qt_QStringList* items, qt_QString * header, qt_QPixmap * pixmap){
	return (qt_QGrid*) ((KJanusWidgetBridge*)instPointer)->addGridPage((int)n, (Qt::Orientation)dir, (QStringList&)* (QStringList*)items, (QString&)* (QString*)header, (QPixmap&)* (QPixmap*)pixmap);
}
int kde_KJanusWidget_pageIndex( kde_KJanusWidget* instPointer,qt_QWidget * widget){
	return (int) ((KJanusWidgetBridge*)instPointer)->pageIndex((QWidget*)widget);
}
int kde_KJanusWidget_setSwallowedWidget( kde_KJanusWidget* instPointer,qt_QWidget * widget){
	return (int) ((KJanusWidgetBridge*)instPointer)->setSwallowedWidget((QWidget*)widget);
}
void kde_KJanusWidget_setTreeListAutoResize( kde_KJanusWidget* instPointer,int state){
	((KJanusWidgetBridge*)instPointer)->setTreeListAutoResize((bool)state);
	return;
}
void kde_KJanusWidget_setShowIconsInTreeList( kde_KJanusWidget* instPointer,int state){
	((KJanusWidgetBridge*)instPointer)->setShowIconsInTreeList((bool)state);
	return;
}
void kde_KJanusWidget_setRootIsDecorated( kde_KJanusWidget* instPointer,int state){
	((KJanusWidgetBridge*)instPointer)->setRootIsDecorated((bool)state);
	return;
}
void kde_KJanusWidget_setIconListAllVisible( kde_KJanusWidget* instPointer,int state){
	((KJanusWidgetBridge*)instPointer)->setIconListAllVisible((bool)state);
	return;
}
void kde_KJanusWidget_setFolderIcon( kde_KJanusWidget* instPointer,qt_QStringList* path, qt_QPixmap * pixmap){
	((KJanusWidgetBridge*)instPointer)->setFolderIcon((QStringList&)* (QStringList*)path, (QPixmap&)* (QPixmap*)pixmap);
	return;
}
void kde_KJanusWidget_setFocus( kde_KJanusWidget* instPointer){
	((KJanusWidgetBridge*)instPointer)->setFocus();
	return;
}
int kde_KJanusWidget_eventFilter( kde_KJanusWidget* instPointer,qt_QObject * o, qt_QEvent * e){
	return (int) ((KJanusWidgetBridge*)instPointer)->protected_eventFilter((QObject*)o, (QEvent*)e);
}
int kde_KJanusWidget_showPage1( kde_KJanusWidget* instPointer,qt_QWidget * w){
	return (int) ((KJanusWidgetBridge*)instPointer)->protected_showPage((QWidget*)w);
}
void kde_KJanusWidget_addPageWidget( kde_KJanusWidget* instPointer,qt_QFrame* page, qt_QStringList* items, qt_QString * header, qt_QPixmap * pixmap){
	((KJanusWidgetBridge*)instPointer)->protected_addPageWidget((QFrame*)page, (QStringList&)* (QStringList*)items, (QString&)* (QString*)header, (QPixmap&)* (QPixmap*)pixmap);
	return;
}
void kde_KJanusWidget_InsertTreeListItem( kde_KJanusWidget* instPointer,qt_QStringList* items, qt_QPixmap * pixmap, qt_QFrame* page){
	((KJanusWidgetBridge*)instPointer)->protected_InsertTreeListItem((QStringList&)* (QStringList*)items, (QPixmap&)* (QPixmap*)pixmap, (QFrame*)page);
	return;
}
qt_QWidget * kde_KJanusWidget_FindParent( kde_KJanusWidget* instPointer){
	return (qt_QWidget *) ((KJanusWidgetBridge*)instPointer)->protected_FindParent();
}
