/***************************************************************************
                            qt_QMotifPlusStyle.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_QMotifPlusStyle.h"
}

#include <qmotifplusstyle.h>

class QMotifPlusStyleBridge : public QMotifPlusStyle
{
public:
	QMotifPlusStyleBridge(bool hoveringHighlight) : QMotifPlusStyle(hoveringHighlight) {}
	~QMotifPlusStyleBridge() {}
	bool  protected_eventFilter(QObject* arg1, QEvent* arg2) {
		return (bool ) QMotifPlusStyle::eventFilter(arg1, arg2);
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

qt_QMotifPlusStyle * qt_new_QMotifPlusStyle(int hoveringHighlight){
	return (qt_QMotifPlusStyle *) new QMotifPlusStyleBridge((bool)hoveringHighlight);
}
void qt_del_QMotifPlusStyle( qt_QMotifPlusStyle* p ){
	delete (QMotifPlusStyleBridge*) p;
}
void qt_QMotifPlusStyle_polish( qt_QMotifPlusStyle* instPointer,qt_QPalette * pal){
	((QMotifPlusStyleBridge*)instPointer)->polish((QPalette&)* (QPalette*)pal);
	return;
}
void qt_QMotifPlusStyle_polish1( qt_QMotifPlusStyle* instPointer,qt_QWidget * widget){
	((QMotifPlusStyleBridge*)instPointer)->polish((QWidget*)widget);
	return;
}
void qt_QMotifPlusStyle_unPolish( qt_QMotifPlusStyle* instPointer,qt_QWidget * widget){
	((QMotifPlusStyleBridge*)instPointer)->unPolish((QWidget*)widget);
	return;
}
void qt_QMotifPlusStyle_polish2( qt_QMotifPlusStyle* instPointer,qt_QApplication* app){
	((QMotifPlusStyleBridge*)instPointer)->polish((QApplication*)app);
	return;
}
void qt_QMotifPlusStyle_unPolish1( qt_QMotifPlusStyle* instPointer,qt_QApplication* app){
	((QMotifPlusStyleBridge*)instPointer)->unPolish((QApplication*)app);
	return;
}
void qt_QMotifPlusStyle_drawPrimitive( qt_QMotifPlusStyle* instPointer,int pe, qt_QPainter * p, qt_QRect* r, qt_QColorGroup * cg, int flags, int arg1){
	((QMotifPlusStyleBridge*)instPointer)->drawPrimitive((QStyle::PrimitiveElement)pe, (QPainter*)p, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)flags, (QStyleOption&)arg1);
	return;
}
void qt_QMotifPlusStyle_drawControl( qt_QMotifPlusStyle* instPointer,int element, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, qt_QColorGroup * cg, int how, int arg1){
	((QMotifPlusStyleBridge*)instPointer)->drawControl((QStyle::ControlElement)element, (QPainter*)p, (QWidget*)widget, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)how, (QStyleOption&)arg1);
	return;
}
qt_QRect* qt_QMotifPlusStyle_subRect( qt_QMotifPlusStyle* instPointer,int r, qt_QWidget * widget){
	QRect _r= ((QMotifPlusStyleBridge*)instPointer)->subRect((QStyle::SubRect)r, (QWidget*)widget);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
void qt_QMotifPlusStyle_drawComplexControl( qt_QMotifPlusStyle* instPointer,int control, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, qt_QColorGroup * cg, int how, int controls, int active, int arg1){
	((QMotifPlusStyleBridge*)instPointer)->drawComplexControl((QStyle::ComplexControl)control, (QPainter*)p, (QWidget*)widget, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)how, (QStyle::SCFlags)controls, (QStyle::SCFlags)active, (QStyleOption&)arg1);
	return;
}
qt_QRect* qt_QMotifPlusStyle_querySubControlMetrics( qt_QMotifPlusStyle* instPointer,int control, qt_QWidget * widget, int subcontrol, int arg1){
	QRect _r= ((QMotifPlusStyleBridge*)instPointer)->querySubControlMetrics((QStyle::ComplexControl)control, (QWidget*)widget, (QStyle::SubControl)subcontrol, (QStyleOption&)arg1);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
int qt_QMotifPlusStyle_pixelMetric( qt_QMotifPlusStyle* instPointer,int metric, qt_QWidget * widget){
	return (int) ((QMotifPlusStyleBridge*)instPointer)->pixelMetric((QStyle::PixelMetric)metric, (QWidget*)widget);
}
//int qt_QMotifPlusStyle_styleHint( qt_QMotifPlusStyle* instPointer,int sh, qt_QWidget * arg1, int arg2, qt_QStyleHintReturn* arg3){
//	return (int) ((QMotifPlusStyleBridge*)instPointer)->styleHint((QStyle::StyleHint)sh, (QWidget*)arg1, (QStyleOption&)arg2, (QStyleHintReturn*)arg3);
//}
int qt_QMotifPlusStyle_eventFilter( qt_QMotifPlusStyle* instPointer,qt_QObject * arg1, qt_QEvent * arg2){
	return (int) ((QMotifPlusStyleBridge*)instPointer)->protected_eventFilter((QObject*)arg1, (QEvent*)arg2);
}
