/****************************************************************************
** GLControlWidget meta object code from reading C++ file 'glcontrolwidget.h'
**
** Created: Tue Aug 28 10:53:48 2007
**      by: The Qt MOC ($Id: $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "../../../opengl/glcontrolwidget.h"
#include <qmetaobject.h>
#include <qapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.3.3. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

const char *GLControlWidget::className() const
{
    return "GLControlWidget";
}

QMetaObject *GLControlWidget::metaObj = 0;
static QMetaObjectCleanUp cleanUp_GLControlWidget( "GLControlWidget", &GLControlWidget::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString GLControlWidget::tr( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "GLControlWidget", s, c, QApplication::DefaultCodec );
    else
	return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString GLControlWidget::trUtf8( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "GLControlWidget", s, c, QApplication::UnicodeUTF8 );
    else
	return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* GLControlWidget::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = QGLWidget::staticMetaObject();
    static const QUParameter param_slot_0[] = {
	{ "degrees", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_0 = {"setXRotation", 1, param_slot_0 };
    static const QUParameter param_slot_1[] = {
	{ "degrees", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_1 = {"setYRotation", 1, param_slot_1 };
    static const QUParameter param_slot_2[] = {
	{ "degrees", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_2 = {"setZRotation", 1, param_slot_2 };
    static const QUParameter param_slot_3[] = {
	{ "s", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_3 = {"setScale", 1, param_slot_3 };
    static const QUParameter param_slot_4[] = {
	{ "x", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_4 = {"setXTrans", 1, param_slot_4 };
    static const QUParameter param_slot_5[] = {
	{ "y", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_5 = {"setYTrans", 1, param_slot_5 };
    static const QUParameter param_slot_6[] = {
	{ "z", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_6 = {"setZTrans", 1, param_slot_6 };
    static const QUParameter param_slot_7[] = {
	{ "x", &static_QUType_double, 0, QUParameter::In },
	{ "y", &static_QUType_double, 0, QUParameter::In },
	{ "z", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_7 = {"setRotationImpulse", 3, param_slot_7 };
    static const QUParameter param_slot_8[] = {
	{ "x", &static_QUType_double, 0, QUParameter::In },
	{ "y", &static_QUType_double, 0, QUParameter::In },
	{ "z", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_8 = {"setTranslationImpulse", 3, param_slot_8 };
    static const QUMethod slot_9 = {"drawText", 0, 0 };
    static const QUMethod slot_10 = {"animate", 0, 0 };
    static const QMetaData slot_tbl[] = {
	{ "setXRotation(double)", &slot_0, QMetaData::Public },
	{ "setYRotation(double)", &slot_1, QMetaData::Public },
	{ "setZRotation(double)", &slot_2, QMetaData::Public },
	{ "setScale(double)", &slot_3, QMetaData::Public },
	{ "setXTrans(double)", &slot_4, QMetaData::Public },
	{ "setYTrans(double)", &slot_5, QMetaData::Public },
	{ "setZTrans(double)", &slot_6, QMetaData::Public },
	{ "setRotationImpulse(double,double,double)", &slot_7, QMetaData::Public },
	{ "setTranslationImpulse(double,double,double)", &slot_8, QMetaData::Public },
	{ "drawText()", &slot_9, QMetaData::Public },
	{ "animate()", &slot_10, QMetaData::Protected }
    };
    metaObj = QMetaObject::new_metaobject(
	"GLControlWidget", parentObject,
	slot_tbl, 11,
	0, 0,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_GLControlWidget.setMetaObject( metaObj );
    return metaObj;
}

void* GLControlWidget::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "GLControlWidget" ) )
	return this;
    return QGLWidget::qt_cast( clname );
}

bool GLControlWidget::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setXRotation((double)static_QUType_double.get(_o+1)); break;
    case 1: setYRotation((double)static_QUType_double.get(_o+1)); break;
    case 2: setZRotation((double)static_QUType_double.get(_o+1)); break;
    case 3: setScale((double)static_QUType_double.get(_o+1)); break;
    case 4: setXTrans((double)static_QUType_double.get(_o+1)); break;
    case 5: setYTrans((double)static_QUType_double.get(_o+1)); break;
    case 6: setZTrans((double)static_QUType_double.get(_o+1)); break;
    case 7: setRotationImpulse((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2),(double)static_QUType_double.get(_o+3)); break;
    case 8: setTranslationImpulse((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2),(double)static_QUType_double.get(_o+3)); break;
    case 9: drawText(); break;
    case 10: animate(); break;
    default:
	return QGLWidget::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool GLControlWidget::qt_emit( int _id, QUObject* _o )
{
    return QGLWidget::qt_emit(_id,_o);
}
#ifndef QT_NO_PROPERTIES

bool GLControlWidget::qt_property( int id, int f, QVariant* v)
{
    return QGLWidget::qt_property( id, f, v);
}

bool GLControlWidget::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES
