/***************************************************************************
                            qt_QDockWindow.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_QDockWindow.h"
}

#include <qdockwindow.h>

class QDockWindowBridge : public QDockWindow
{
public:
	QDockWindowBridge(Place p, QWidget* parent, const char* name, WFlags f) : QDockWindow(p, parent, name, f) {}
	~QDockWindowBridge() {}
	bool  protected_event(QEvent* e) {
		return (bool ) QDockWindow::event(e);
	}
	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")) {
			QDockWindow::resizeEvent(e);
		}
		return;
	}
};

qt_QDockWindow * qt_new_QDockWindow(int p, qt_QWidget * parent, char* name, int f){
	return (qt_QDockWindow *) new QDockWindowBridge((QDockWindow::Place)p, (QWidget*)parent, (char*)name, (QWidget::WFlags)f);
}
void qt_del_QDockWindow( qt_QDockWindow* p ){
	delete (QDockWindowBridge*) p;
}
void qt_QDockWindow_setWidget( qt_QDockWindow* instPointer,qt_QWidget * w){
	((QDockWindowBridge*)instPointer)->setWidget((QWidget*)w);
	return;
}
qt_QWidget * qt_QDockWindow_widget( qt_QDockWindow* instPointer){
	return (qt_QWidget *) ((QDockWindowBridge*)instPointer)->widget();
}
int qt_QDockWindow_place( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->place();
}
qt_QDockArea* qt_QDockWindow_area( qt_QDockWindow* instPointer){
	return (qt_QDockArea*) ((QDockWindowBridge*)instPointer)->area();
}
void qt_QDockWindow_setCloseMode( qt_QDockWindow* instPointer,int m){
	((QDockWindowBridge*)instPointer)->setCloseMode((int)m);
	return;
}
int qt_QDockWindow_isCloseEnabled( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->isCloseEnabled();
}
int qt_QDockWindow_closeMode( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->closeMode();
}
void qt_QDockWindow_setResizeEnabled( qt_QDockWindow* instPointer,int b){
	((QDockWindowBridge*)instPointer)->setResizeEnabled((bool)b);
	return;
}
void qt_QDockWindow_setMovingEnabled( qt_QDockWindow* instPointer,int b){
	((QDockWindowBridge*)instPointer)->setMovingEnabled((bool)b);
	return;
}
int qt_QDockWindow_isResizeEnabled( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->isResizeEnabled();
}
int qt_QDockWindow_isMovingEnabled( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->isMovingEnabled();
}
void qt_QDockWindow_setHorizontallyStretchable( qt_QDockWindow* instPointer,int b){
	((QDockWindowBridge*)instPointer)->setHorizontallyStretchable((bool)b);
	return;
}
void qt_QDockWindow_setVerticallyStretchable( qt_QDockWindow* instPointer,int b){
	((QDockWindowBridge*)instPointer)->setVerticallyStretchable((bool)b);
	return;
}
int qt_QDockWindow_isHorizontallyStretchable( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->isHorizontallyStretchable();
}
int qt_QDockWindow_isVerticallyStretchable( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->isVerticallyStretchable();
}
void qt_QDockWindow_setHorizontalStretchable( qt_QDockWindow* instPointer,int b){
	((QDockWindowBridge*)instPointer)->setHorizontalStretchable((bool)b);
	return;
}
void qt_QDockWindow_setVerticalStretchable( qt_QDockWindow* instPointer,int b){
	((QDockWindowBridge*)instPointer)->setVerticalStretchable((bool)b);
	return;
}
int qt_QDockWindow_isHorizontalStretchable( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->isHorizontalStretchable();
}
int qt_QDockWindow_isVerticalStretchable( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->isVerticalStretchable();
}
int qt_QDockWindow_isStretchable( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->isStretchable();
}
void qt_QDockWindow_setOffset( qt_QDockWindow* instPointer,int o){
	((QDockWindowBridge*)instPointer)->setOffset((int)o);
	return;
}
int qt_QDockWindow_offset( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->offset();
}
void qt_QDockWindow_setFixedExtentWidth( qt_QDockWindow* instPointer,int w){
	((QDockWindowBridge*)instPointer)->setFixedExtentWidth((int)w);
	return;
}
void qt_QDockWindow_setFixedExtentHeight( qt_QDockWindow* instPointer,int h){
	((QDockWindowBridge*)instPointer)->setFixedExtentHeight((int)h);
	return;
}
qt_QSize * qt_QDockWindow_fixedExtent( qt_QDockWindow* instPointer){
	QSize _s= ((QDockWindowBridge*)instPointer)->fixedExtent();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void qt_QDockWindow_setNewLine( qt_QDockWindow* instPointer,int b){
	((QDockWindowBridge*)instPointer)->setNewLine((bool)b);
	return;
}
int qt_QDockWindow_newLine( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->newLine();
}
int qt_QDockWindow_orientation( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->orientation();
}
qt_QSize * qt_QDockWindow_sizeHint( qt_QDockWindow* instPointer){
	QSize _s= ((QDockWindowBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QDockWindow_minimumSize( qt_QDockWindow* instPointer){
	QSize _s= ((QDockWindowBridge*)instPointer)->minimumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QDockWindow_minimumSizeHint( qt_QDockWindow* instPointer){
	QSize _s= ((QDockWindowBridge*)instPointer)->minimumSizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QBoxLayout* qt_QDockWindow_boxLayout( qt_QDockWindow* instPointer){
	return (qt_QBoxLayout*) ((QDockWindowBridge*)instPointer)->boxLayout();
}
void qt_QDockWindow_setOpaqueMoving( qt_QDockWindow* instPointer,int b){
	((QDockWindowBridge*)instPointer)->setOpaqueMoving((bool)b);
	return;
}
int qt_QDockWindow_opaqueMoving( qt_QDockWindow* instPointer){
	return (int) ((QDockWindowBridge*)instPointer)->opaqueMoving();
}
int qt_QDockWindow_eventFilter( qt_QDockWindow* instPointer,qt_QObject * o, qt_QEvent * e){
	return (int) ((QDockWindowBridge*)instPointer)->eventFilter((QObject*)o, (QEvent*)e);
}
qt_QString * qt_QDockWindow_caption( qt_QDockWindow* instPointer){
	return (qt_QString *)new QString(((QDockWindowBridge*)instPointer)->caption());
}
void qt_QDockWindow_undock( qt_QDockWindow* instPointer,qt_QWidget * w){
	((QDockWindowBridge*)instPointer)->undock((QWidget*)w);
	return;
}
void qt_QDockWindow_undock1( qt_QDockWindow* instPointer){
	((QDockWindowBridge*)instPointer)->undock();
	return;
}
void qt_QDockWindow_dock( qt_QDockWindow* instPointer){
	((QDockWindowBridge*)instPointer)->dock();
	return;
}
void qt_QDockWindow_setOrientation( qt_QDockWindow* instPointer,int o){
	((QDockWindowBridge*)instPointer)->setOrientation((Qt::Orientation)o);
	return;
}
void qt_QDockWindow_setCaption( qt_QDockWindow* instPointer,qt_QString * s){
	((QDockWindowBridge*)instPointer)->setCaption((QString&)* (QString*)s);
	return;
}
int qt_QDockWindow_event( qt_QDockWindow* instPointer,qt_QEvent * e){
	return (int) ((QDockWindowBridge*)instPointer)->protected_event((QEvent*)e);
}
