1
/****************************************************************************
2
** Plugin meta object code from reading C++ file 'plugin.h'
4
** Created: Tue Nov 30 19:34:56 2004
5
** by: The Qt MOC ($Id: qt/moc_yacc.cpp 3.3.3 edited Aug 5 16:40 $)
7
** WARNING! All changes made in this file will be lost!
8
*****************************************************************************/
12
#include <qmetaobject.h>
13
#include <qapplication.h>
15
#include <private/qucomextra_p.h>
16
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
17
#error "This file was generated using the moc from 3.3.3. It"
18
#error "cannot be used with the include files from this version of Qt."
19
#error "(The moc has changed too much.)"
22
const char *Plugin::className() const
27
QMetaObject *Plugin::metaObj = 0;
28
static QMetaObjectCleanUp cleanUp_Plugin( "Plugin", &Plugin::staticMetaObject );
30
#ifndef QT_NO_TRANSLATION
31
QString Plugin::tr( const char *s, const char *c )
34
return qApp->translate( "Plugin", s, c, QApplication::DefaultCodec );
36
return QString::fromLatin1( s );
38
#ifndef QT_NO_TRANSLATION_UTF8
39
QString Plugin::trUtf8( const char *s, const char *c )
42
return qApp->translate( "Plugin", s, c, QApplication::UnicodeUTF8 );
44
return QString::fromUtf8( s );
46
#endif // QT_NO_TRANSLATION_UTF8
48
#endif // QT_NO_TRANSLATION
50
QMetaObject* Plugin::staticMetaObject()
54
QMetaObject* parentObject = QObject::staticMetaObject();
55
static const QUMethod slot_0 = {"initGui", 0, 0 };
56
static const QUMethod slot_1 = {"run", 0, 0 };
57
static const QUParameter param_slot_2[] = {
58
{ 0, &static_QUType_QString, 0, QUParameter::In }
60
static const QUMethod slot_2 = {"drawRasterLayer", 1, param_slot_2 };
61
static const QUParameter param_slot_3[] = {
62
{ 0, &static_QUType_QString, 0, QUParameter::In },
63
{ 0, &static_QUType_QString, 0, QUParameter::In },
64
{ 0, &static_QUType_QString, 0, QUParameter::In }
66
static const QUMethod slot_3 = {"drawVectorLayer", 3, param_slot_3 };
67
static const QUMethod slot_4 = {"unload", 0, 0 };
68
static const QUMethod slot_5 = {"help", 0, 0 };
69
static const QMetaData slot_tbl[] = {
70
{ "initGui()", &slot_0, QMetaData::Public },
71
{ "run()", &slot_1, QMetaData::Public },
72
{ "drawRasterLayer(QString)", &slot_2, QMetaData::Public },
73
{ "drawVectorLayer(QString,QString,QString)", &slot_3, QMetaData::Public },
74
{ "unload()", &slot_4, QMetaData::Public },
75
{ "help()", &slot_5, QMetaData::Public }
77
metaObj = QMetaObject::new_metaobject(
78
"Plugin", parentObject,
81
#ifndef QT_NO_PROPERTIES
84
#endif // QT_NO_PROPERTIES
86
cleanUp_Plugin.setMetaObject( metaObj );
90
void* Plugin::qt_cast( const char* clname )
92
if ( !qstrcmp( clname, "Plugin" ) )
94
if ( !qstrcmp( clname, "QgisPlugin" ) )
95
return (QgisPlugin*)this;
96
return QObject::qt_cast( clname );
99
bool Plugin::qt_invoke( int _id, QUObject* _o )
101
switch ( _id - staticMetaObject()->slotOffset() ) {
102
case 0: initGui(); break;
103
case 1: run(); break;
104
case 2: drawRasterLayer((QString)static_QUType_QString.get(_o+1)); break;
105
case 3: drawVectorLayer((QString)static_QUType_QString.get(_o+1),(QString)static_QUType_QString.get(_o+2),(QString)static_QUType_QString.get(_o+3)); break;
106
case 4: unload(); break;
107
case 5: help(); break;
109
return QObject::qt_invoke( _id, _o );
114
bool Plugin::qt_emit( int _id, QUObject* _o )
116
return QObject::qt_emit(_id,_o);
118
#ifndef QT_NO_PROPERTIES
120
bool Plugin::qt_property( int id, int f, QVariant* v)
122
return QObject::qt_property( id, f, v);
125
bool Plugin::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
126
#endif // QT_NO_PROPERTIES