/***************************************************************************
                            qt_QToolBar.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_QToolBar.h"
}

#include <qtoolbar.h>

class QToolBarBridge : public QToolBar
{
public:
	QToolBarBridge(const QString& label, QMainWindow* arg1, ToolBarDock arg2, bool newLine, const char* name) : QToolBar(label, arg1, arg2, newLine, name) {}
	QToolBarBridge(const QString& label, QMainWindow* arg1, QWidget* arg2, bool newLine, const char* name, WFlags f) : QToolBar(label, arg1, arg2, newLine, name, f) {}
	QToolBarBridge(QMainWindow* parent, const char* name) : QToolBar(parent, name) {}
	~QToolBarBridge() {}
	void protected_styleChange(QStyle& arg1) {
		QToolBar::styleChange(arg1);
		return;
	}
	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* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "showEvent", e, "QShowEvent")) {
			QDockWindow::showEvent(e);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contextMenuEvent", e, "QContextMenuEvent")) {
			QDockWindow::contextMenuEvent(e);
		}
		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* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "hideEvent", e, "QHideEvent")) {
			QDockWindow::hideEvent(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 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 resizeEvent(QResizeEvent* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "resizeEvent", e, "QResizeEvent")) {
			QToolBar::resizeEvent(e);
		}
		return;
	}
};

qt_QToolBar * qt_new_QToolBar(qt_QString * label, qt_QMainWindow* arg1, int arg2, int newLine, char* name){
	return (qt_QToolBar *) new QToolBarBridge((QString&)* (QString*)label, (QMainWindow*)arg1, (Qt::ToolBarDock)arg2, (bool)newLine, (char*)name);
}
qt_QToolBar * qt_new_QToolBar1(qt_QString * label, qt_QMainWindow* arg1, qt_QWidget * arg2, int newLine, char* name, int f){
	return (qt_QToolBar *) new QToolBarBridge((QString&)* (QString*)label, (QMainWindow*)arg1, (QWidget*)arg2, (bool)newLine, (char*)name, (QWidget::WFlags)f);
}
qt_QToolBar * qt_new_QToolBar2(qt_QMainWindow* parent, char* name){
	return (qt_QToolBar *) new QToolBarBridge((QMainWindow*)parent, (char*)name);
}
void qt_del_QToolBar( qt_QToolBar* p ){
	delete (QToolBarBridge*) p;
}
void qt_QToolBar_addSeparator( qt_QToolBar* instPointer){
	((QToolBarBridge*)instPointer)->addSeparator();
	return;
}
void qt_QToolBar_show( qt_QToolBar* instPointer){
	((QToolBarBridge*)instPointer)->show();
	return;
}
void qt_QToolBar_hide( qt_QToolBar* instPointer){
	((QToolBarBridge*)instPointer)->hide();
	return;
}
qt_QMainWindow* qt_QToolBar_mainWindow( qt_QToolBar* instPointer){
	return (qt_QMainWindow*) ((QToolBarBridge*)instPointer)->mainWindow();
}
void qt_QToolBar_setStretchableWidget( qt_QToolBar* instPointer,qt_QWidget * arg1){
	((QToolBarBridge*)instPointer)->setStretchableWidget((QWidget*)arg1);
	return;
}
int qt_QToolBar_event( qt_QToolBar* instPointer,qt_QEvent * e){
	return (int) ((QToolBarBridge*)instPointer)->event((QEvent*)e);
}
void qt_QToolBar_setLabel( qt_QToolBar* instPointer,qt_QString * arg1){
	((QToolBarBridge*)instPointer)->setLabel((QString&)* (QString*)arg1);
	return;
}
qt_QString * qt_QToolBar_label( qt_QToolBar* instPointer){
	return (qt_QString *)new QString(((QToolBarBridge*)instPointer)->label());
}
void qt_QToolBar_clear( qt_QToolBar* instPointer){
	((QToolBarBridge*)instPointer)->clear();
	return;
}
qt_QSize * qt_QToolBar_minimumSize( qt_QToolBar* instPointer){
	QSize _s= ((QToolBarBridge*)instPointer)->minimumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QToolBar_minimumSizeHint( qt_QToolBar* instPointer){
	QSize _s= ((QToolBarBridge*)instPointer)->minimumSizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void qt_QToolBar_setOrientation( qt_QToolBar* instPointer,int o){
	((QToolBarBridge*)instPointer)->setOrientation((Qt::Orientation)o);
	return;
}
void qt_QToolBar_setMinimumSize( qt_QToolBar* instPointer,int minw, int minh){
	((QToolBarBridge*)instPointer)->setMinimumSize((int)minw, (int)minh);
	return;
}
void qt_QToolBar_styleChange( qt_QToolBar* instPointer,qt_QStyle* arg1){
	((QToolBarBridge*)instPointer)->protected_styleChange((QStyle&)* (QStyle*)arg1);
	return;
}
