~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to plugins/grid_maker/plugin.moc.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Steve Halasz
  • Date: 2004-12-21 09:46:27 UTC
  • Revision ID: james.westby@ubuntu.com-20041221094627-r9lb6mlz2o3yp8gn
Tags: upstream-0.6.0
ImportĀ upstreamĀ versionĀ 0.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
** Plugin meta object code from reading C++ file 'plugin.h'
 
3
**
 
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 $)
 
6
**
 
7
** WARNING! All changes made in this file will be lost!
 
8
*****************************************************************************/
 
9
 
 
10
#undef QT_NO_COMPAT
 
11
#include "plugin.h"
 
12
#include <qmetaobject.h>
 
13
#include <qapplication.h>
 
14
 
 
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.)"
 
20
#endif
 
21
 
 
22
const char *Plugin::className() const
 
23
{
 
24
    return "Plugin";
 
25
}
 
26
 
 
27
QMetaObject *Plugin::metaObj = 0;
 
28
static QMetaObjectCleanUp cleanUp_Plugin( "Plugin", &Plugin::staticMetaObject );
 
29
 
 
30
#ifndef QT_NO_TRANSLATION
 
31
QString Plugin::tr( const char *s, const char *c )
 
32
{
 
33
    if ( qApp )
 
34
        return qApp->translate( "Plugin", s, c, QApplication::DefaultCodec );
 
35
    else
 
36
        return QString::fromLatin1( s );
 
37
}
 
38
#ifndef QT_NO_TRANSLATION_UTF8
 
39
QString Plugin::trUtf8( const char *s, const char *c )
 
40
{
 
41
    if ( qApp )
 
42
        return qApp->translate( "Plugin", s, c, QApplication::UnicodeUTF8 );
 
43
    else
 
44
        return QString::fromUtf8( s );
 
45
}
 
46
#endif // QT_NO_TRANSLATION_UTF8
 
47
 
 
48
#endif // QT_NO_TRANSLATION
 
49
 
 
50
QMetaObject* Plugin::staticMetaObject()
 
51
{
 
52
    if ( metaObj )
 
53
        return metaObj;
 
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 }
 
59
    };
 
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 }
 
65
    };
 
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 }
 
76
    };
 
77
    metaObj = QMetaObject::new_metaobject(
 
78
        "Plugin", parentObject,
 
79
        slot_tbl, 6,
 
80
        0, 0,
 
81
#ifndef QT_NO_PROPERTIES
 
82
        0, 0,
 
83
        0, 0,
 
84
#endif // QT_NO_PROPERTIES
 
85
        0, 0 );
 
86
    cleanUp_Plugin.setMetaObject( metaObj );
 
87
    return metaObj;
 
88
}
 
89
 
 
90
void* Plugin::qt_cast( const char* clname )
 
91
{
 
92
    if ( !qstrcmp( clname, "Plugin" ) )
 
93
        return this;
 
94
    if ( !qstrcmp( clname, "QgisPlugin" ) )
 
95
        return (QgisPlugin*)this;
 
96
    return QObject::qt_cast( clname );
 
97
}
 
98
 
 
99
bool Plugin::qt_invoke( int _id, QUObject* _o )
 
100
{
 
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;
 
108
    default:
 
109
        return QObject::qt_invoke( _id, _o );
 
110
    }
 
111
    return TRUE;
 
112
}
 
113
 
 
114
bool Plugin::qt_emit( int _id, QUObject* _o )
 
115
{
 
116
    return QObject::qt_emit(_id,_o);
 
117
}
 
118
#ifndef QT_NO_PROPERTIES
 
119
 
 
120
bool Plugin::qt_property( int id, int f, QVariant* v)
 
121
{
 
122
    return QObject::qt_property( id, f, v);
 
123
}
 
124
 
 
125
bool Plugin::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
 
126
#endif // QT_NO_PROPERTIES