/****************************************************************************
** GLLandscape meta object code from reading C++ file 'gllandscape.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/gllandscape.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 *GLLandscape::className() const
{
    return "GLLandscape";
}

QMetaObject *GLLandscape::metaObj = 0;
static QMetaObjectCleanUp cleanUp_GLLandscape( "GLLandscape", &GLLandscape::staticMetaObject );

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

#endif // QT_NO_TRANSLATION

QMetaObject* GLLandscape::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = QGLWidget::staticMetaObject();
    static const QUParameter param_slot_0[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_0 = {"rotateX", 1, param_slot_0 };
    static const QUParameter param_slot_1[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_1 = {"rotateY", 1, param_slot_1 };
    static const QUParameter param_slot_2[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_2 = {"rotateZ", 1, param_slot_2 };
    static const QUParameter param_slot_3[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_3 = {"zoom", 1, param_slot_3 };
    static const QUMethod slot_4 = {"fractalize", 0, 0 };
    static const QUMethod slot_5 = {"resetGrid", 0, 0 };
    static const QUParameter param_slot_6[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_6 = {"setWireframe", 1, param_slot_6 };
    static const QUParameter param_slot_7[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_7 = {"setFilled", 1, param_slot_7 };
    static const QUParameter param_slot_8[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_8 = {"setSmoothShaded", 1, param_slot_8 };
    static const QUParameter param_slot_9[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_9 = {"setLandscape", 1, param_slot_9 };
    static const QUParameter param_slot_10[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_10 = {"setGridSize", 1, param_slot_10 };
    static const QUParameter param_slot_11[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_11 = {"toggleWaveAnimation", 1, param_slot_11 };
    static const QMetaData slot_tbl[] = {
	{ "rotateX(int)", &slot_0, QMetaData::Public },
	{ "rotateY(int)", &slot_1, QMetaData::Public },
	{ "rotateZ(int)", &slot_2, QMetaData::Public },
	{ "zoom(int)", &slot_3, QMetaData::Public },
	{ "fractalize()", &slot_4, QMetaData::Public },
	{ "resetGrid()", &slot_5, QMetaData::Public },
	{ "setWireframe(int)", &slot_6, QMetaData::Public },
	{ "setFilled(int)", &slot_7, QMetaData::Public },
	{ "setSmoothShaded(int)", &slot_8, QMetaData::Public },
	{ "setLandscape(int)", &slot_9, QMetaData::Public },
	{ "setGridSize(int)", &slot_10, QMetaData::Public },
	{ "toggleWaveAnimation(bool)", &slot_11, QMetaData::Public }
    };
    static const QUParameter param_signal_0[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod signal_0 = {"rotatedX", 1, param_signal_0 };
    static const QUParameter param_signal_1[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod signal_1 = {"rotatedY", 1, param_signal_1 };
    static const QUParameter param_signal_2[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod signal_2 = {"rotatedZ", 1, param_signal_2 };
    static const QMetaData signal_tbl[] = {
	{ "rotatedX(int)", &signal_0, QMetaData::Public },
	{ "rotatedY(int)", &signal_1, QMetaData::Public },
	{ "rotatedZ(int)", &signal_2, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
	"GLLandscape", parentObject,
	slot_tbl, 12,
	signal_tbl, 3,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_GLLandscape.setMetaObject( metaObj );
    return metaObj;
}

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

// SIGNAL rotatedX
void GLLandscape::rotatedX( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}

// SIGNAL rotatedY
void GLLandscape::rotatedY( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 1, t0 );
}

// SIGNAL rotatedZ
void GLLandscape::rotatedZ( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 2, t0 );
}

bool GLLandscape::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: rotateX((int)static_QUType_int.get(_o+1)); break;
    case 1: rotateY((int)static_QUType_int.get(_o+1)); break;
    case 2: rotateZ((int)static_QUType_int.get(_o+1)); break;
    case 3: zoom((int)static_QUType_int.get(_o+1)); break;
    case 4: fractalize(); break;
    case 5: resetGrid(); break;
    case 6: setWireframe((int)static_QUType_int.get(_o+1)); break;
    case 7: setFilled((int)static_QUType_int.get(_o+1)); break;
    case 8: setSmoothShaded((int)static_QUType_int.get(_o+1)); break;
    case 9: setLandscape((int)static_QUType_int.get(_o+1)); break;
    case 10: setGridSize((int)static_QUType_int.get(_o+1)); break;
    case 11: toggleWaveAnimation((bool)static_QUType_bool.get(_o+1)); break;
    default:
	return QGLWidget::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool GLLandscape::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: rotatedX((int)static_QUType_int.get(_o+1)); break;
    case 1: rotatedY((int)static_QUType_int.get(_o+1)); break;
    case 2: rotatedZ((int)static_QUType_int.get(_o+1)); break;
    default:
	return QGLWidget::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

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

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