⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moc_gllandscape.cpp

📁 It is very for you to learn QT, trust me!
💻 CPP
字号:
/****************************************************************************
** GLLandscape meta object code from reading C++ file 'gllandscape.h'
**
** Created: ??? ?? 3 00:16:34 2005
**      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.1. 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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -