/***************************************************************************
                            qt_QTabWidget.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_QTabWidget.h"
}

#include <qtabwidget.h>

class QTabWidgetBridge : public QTabWidget
{
public:
	QTabWidgetBridge(QWidget* parent, const char* name, WFlags f) : QTabWidget(parent, name, f) {}
	~QTabWidgetBridge() {}
	void protected_setTabBar(QTabBar* arg1) {
		QTabWidget::setTabBar(arg1);
		return;
	}
	QTabBar*  protected_tabBar() {
		return (QTabBar* ) QTabWidget::tabBar();
	}
	void protected_styleChange(QStyle& arg1) {
		QTabWidget::styleChange(arg1);
		return;
	}
	void protected_updateMask() {
		QTabWidget::updateMask();
		return;
	}
	bool  protected_eventFilter(QObject* arg1, QEvent* arg2) {
		return (bool ) QTabWidget::eventFilter(arg1, arg2);
	}
	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")) {
			QTabWidget::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")) {
			QTabWidget::resizeEvent(arg1);
		}
		return;
	}
};

qt_QTabWidget * qt_new_QTabWidget(qt_QWidget * parent, char* name, int f){
	return (qt_QTabWidget *) new QTabWidgetBridge((QWidget*)parent, (char*)name, (QWidget::WFlags)f);
}
void qt_del_QTabWidget( qt_QTabWidget* p ){
	delete (QTabWidgetBridge*) p;
}
void qt_QTabWidget_addTab( qt_QTabWidget* instPointer,qt_QWidget * arg1, qt_QString * arg2){
	((QTabWidgetBridge*)instPointer)->addTab((QWidget*)arg1, (QString&)* (QString*)arg2);
	return;
}
void qt_QTabWidget_addTab1( qt_QTabWidget* instPointer,qt_QWidget * child, qt_QIconSet* iconset, qt_QString * label){
	((QTabWidgetBridge*)instPointer)->addTab((QWidget*)child, (QIconSet&)* (QIconSet*)iconset, (QString&)* (QString*)label);
	return;
}
void qt_QTabWidget_addTab2( qt_QTabWidget* instPointer,qt_QWidget * arg1, qt_QTab* arg2){
	((QTabWidgetBridge*)instPointer)->addTab((QWidget*)arg1, (QTab*)arg2);
	return;
}
void qt_QTabWidget_insertTab( qt_QTabWidget* instPointer,qt_QWidget * arg1, qt_QString * arg2, int index){
	((QTabWidgetBridge*)instPointer)->insertTab((QWidget*)arg1, (QString&)* (QString*)arg2, (int)index);
	return;
}
void qt_QTabWidget_insertTab1( qt_QTabWidget* instPointer,qt_QWidget * child, qt_QIconSet* iconset, qt_QString * label, int index){
	((QTabWidgetBridge*)instPointer)->insertTab((QWidget*)child, (QIconSet&)* (QIconSet*)iconset, (QString&)* (QString*)label, (int)index);
	return;
}
void qt_QTabWidget_insertTab2( qt_QTabWidget* instPointer,qt_QWidget * arg1, qt_QTab* arg2, int index){
	((QTabWidgetBridge*)instPointer)->insertTab((QWidget*)arg1, (QTab*)arg2, (int)index);
	return;
}
void qt_QTabWidget_changeTab( qt_QTabWidget* instPointer,qt_QWidget * arg1, qt_QString * arg2){
	((QTabWidgetBridge*)instPointer)->changeTab((QWidget*)arg1, (QString&)* (QString*)arg2);
	return;
}
void qt_QTabWidget_changeTab1( qt_QTabWidget* instPointer,qt_QWidget * child, qt_QIconSet* iconset, qt_QString * label){
	((QTabWidgetBridge*)instPointer)->changeTab((QWidget*)child, (QIconSet&)* (QIconSet*)iconset, (QString&)* (QString*)label);
	return;
}
int qt_QTabWidget_isTabEnabled( qt_QTabWidget* instPointer,qt_QWidget * arg1){
	return (int) ((QTabWidgetBridge*)instPointer)->isTabEnabled((QWidget*)arg1);
}
void qt_QTabWidget_setTabEnabled( qt_QTabWidget* instPointer,qt_QWidget * arg1, int arg2){
	((QTabWidgetBridge*)instPointer)->setTabEnabled((QWidget*)arg1, (bool)arg2);
	return;
}
qt_QString * qt_QTabWidget_tabLabel( qt_QTabWidget* instPointer,qt_QWidget * arg1){
	return (qt_QString *)new QString(((QTabWidgetBridge*)instPointer)->tabLabel((QWidget*)arg1));
}
void qt_QTabWidget_setTabLabel( qt_QTabWidget* instPointer,qt_QWidget * p, qt_QString * l){
	((QTabWidgetBridge*)instPointer)->setTabLabel((QWidget*)p, (QString&)* (QString*)l);
	return;
}
qt_QIconSet* qt_QTabWidget_tabIconSet( qt_QTabWidget* instPointer,qt_QWidget * w){
	return (qt_QIconSet*)new QIconSet(((QTabWidgetBridge*)instPointer)->tabIconSet((QWidget*)w));
}
void qt_QTabWidget_setTabIconSet( qt_QTabWidget* instPointer,qt_QWidget * w, qt_QIconSet* iconset){
	((QTabWidgetBridge*)instPointer)->setTabIconSet((QWidget*)w, (QIconSet&)* (QIconSet*)iconset);
	return;
}
void qt_QTabWidget_removeTabToolTip( qt_QTabWidget* instPointer,qt_QWidget * w){
	((QTabWidgetBridge*)instPointer)->removeTabToolTip((QWidget*)w);
	return;
}
void qt_QTabWidget_setTabToolTip( qt_QTabWidget* instPointer,qt_QWidget * w, qt_QString * tip){
	((QTabWidgetBridge*)instPointer)->setTabToolTip((QWidget*)w, (QString&)* (QString*)tip);
	return;
}
qt_QString * qt_QTabWidget_tabToolTip( qt_QTabWidget* instPointer,qt_QWidget * w){
	return (qt_QString *)new QString(((QTabWidgetBridge*)instPointer)->tabToolTip((QWidget*)w));
}
qt_QWidget * qt_QTabWidget_currentPage( qt_QTabWidget* instPointer){
	return (qt_QWidget *) ((QTabWidgetBridge*)instPointer)->currentPage();
}
qt_QWidget * qt_QTabWidget_page( qt_QTabWidget* instPointer,int arg1){
	return (qt_QWidget *) ((QTabWidgetBridge*)instPointer)->page((int)arg1);
}
qt_QString * qt_QTabWidget_label( qt_QTabWidget* instPointer,int arg1){
	return (qt_QString *)new QString(((QTabWidgetBridge*)instPointer)->label((int)arg1));
}
int qt_QTabWidget_currentPageIndex( qt_QTabWidget* instPointer){
	return (int) ((QTabWidgetBridge*)instPointer)->currentPageIndex();
}
int qt_QTabWidget_indexOf( qt_QTabWidget* instPointer,qt_QWidget * arg1){
	return (int) ((QTabWidgetBridge*)instPointer)->indexOf((QWidget*)arg1);
}
qt_QSize * qt_QTabWidget_sizeHint( qt_QTabWidget* instPointer){
	QSize _s= ((QTabWidgetBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QTabWidget_minimumSizeHint( qt_QTabWidget* instPointer){
	QSize _s= ((QTabWidgetBridge*)instPointer)->minimumSizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
int qt_QTabWidget_tabPosition( qt_QTabWidget* instPointer){
	return (int) ((QTabWidgetBridge*)instPointer)->tabPosition();
}
void qt_QTabWidget_setTabPosition( qt_QTabWidget* instPointer,int arg1){
	((QTabWidgetBridge*)instPointer)->setTabPosition((QTabWidget::TabPosition)arg1);
	return;
}
int qt_QTabWidget_tabShape( qt_QTabWidget* instPointer){
	return (int) ((QTabWidgetBridge*)instPointer)->tabShape();
}
void qt_QTabWidget_setTabShape( qt_QTabWidget* instPointer,int s){
	((QTabWidgetBridge*)instPointer)->setTabShape((QTabWidget::TabShape)s);
	return;
}
int qt_QTabWidget_margin( qt_QTabWidget* instPointer){
	return (int) ((QTabWidgetBridge*)instPointer)->margin();
}
void qt_QTabWidget_setMargin( qt_QTabWidget* instPointer,int arg1){
	((QTabWidgetBridge*)instPointer)->setMargin((int)arg1);
	return;
}
int qt_QTabWidget_count( qt_QTabWidget* instPointer){
	return (int) ((QTabWidgetBridge*)instPointer)->count();
}
void qt_QTabWidget_setCurrentPage( qt_QTabWidget* instPointer,int arg1){
	((QTabWidgetBridge*)instPointer)->setCurrentPage((int)arg1);
	return;
}
void qt_QTabWidget_showPage( qt_QTabWidget* instPointer,qt_QWidget * arg1){
	((QTabWidgetBridge*)instPointer)->showPage((QWidget*)arg1);
	return;
}
void qt_QTabWidget_removePage( qt_QTabWidget* instPointer,qt_QWidget * arg1){
	((QTabWidgetBridge*)instPointer)->removePage((QWidget*)arg1);
	return;
}
void qt_QTabWidget_setTabBar( qt_QTabWidget* instPointer,qt_QTabBar* arg1){
	((QTabWidgetBridge*)instPointer)->protected_setTabBar((QTabBar*)arg1);
	return;
}
qt_QTabBar* qt_QTabWidget_tabBar( qt_QTabWidget* instPointer){
	return (qt_QTabBar*) ((QTabWidgetBridge*)instPointer)->protected_tabBar();
}
void qt_QTabWidget_styleChange( qt_QTabWidget* instPointer,qt_QStyle* arg1){
	((QTabWidgetBridge*)instPointer)->protected_styleChange((QStyle&)* (QStyle*)arg1);
	return;
}
void qt_QTabWidget_updateMask( qt_QTabWidget* instPointer){
	((QTabWidgetBridge*)instPointer)->protected_updateMask();
	return;
}
int qt_QTabWidget_eventFilter( qt_QTabWidget* instPointer,qt_QObject * arg1, qt_QEvent * arg2){
	return (int) ((QTabWidgetBridge*)instPointer)->protected_eventFilter((QObject*)arg1, (QEvent*)arg2);
}
