~ubuntu-branches/ubuntu/hardy/qgis/hardy

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
** QgsNorthArrowPlugin meta object code from reading C++ file 'plugin.h'
3
 
**
4
 
** Created: Fri Nov 4 14:26:06 2005
5
 
**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.3.4   edited Jan 21 18:14 $)
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.4. 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 *QgsNorthArrowPlugin::className() const
23
 
{
24
 
    return "QgsNorthArrowPlugin";
25
 
}
26
 
 
27
 
QMetaObject *QgsNorthArrowPlugin::metaObj = 0;
28
 
static QMetaObjectCleanUp cleanUp_QgsNorthArrowPlugin( "QgsNorthArrowPlugin", &QgsNorthArrowPlugin::staticMetaObject );
29
 
 
30
 
#ifndef QT_NO_TRANSLATION
31
 
QString QgsNorthArrowPlugin::tr( const char *s, const char *c )
32
 
{
33
 
    if ( qApp )
34
 
        return qApp->translate( "QgsNorthArrowPlugin", s, c, QApplication::DefaultCodec );
35
 
    else
36
 
        return QString::fromLatin1( s );
37
 
}
38
 
#ifndef QT_NO_TRANSLATION_UTF8
39
 
QString QgsNorthArrowPlugin::trUtf8( const char *s, const char *c )
40
 
{
41
 
    if ( qApp )
42
 
        return qApp->translate( "QgsNorthArrowPlugin", 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* QgsNorthArrowPlugin::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 = {"projectRead", 0, 0 };
57
 
    static const QUMethod slot_2 = {"run", 0, 0 };
58
 
    static const QUParameter param_slot_3[] = {
59
 
        { 0, &static_QUType_ptr, "QPainter", QUParameter::In }
60
 
    };
61
 
    static const QUMethod slot_3 = {"renderNorthArrow", 1, param_slot_3 };
62
 
    static const QUParameter param_slot_4[] = {
63
 
        { 0, &static_QUType_int, 0, QUParameter::In }
64
 
    };
65
 
    static const QUMethod slot_4 = {"rotationChanged", 1, param_slot_4 };
66
 
    static const QUMethod slot_5 = {"refreshCanvas", 0, 0 };
67
 
    static const QUMethod slot_6 = {"unload", 0, 0 };
68
 
    static const QUMethod slot_7 = {"help", 0, 0 };
69
 
    static const QUParameter param_slot_8[] = {
70
 
        { 0, &static_QUType_QString, 0, QUParameter::In }
71
 
    };
72
 
    static const QUMethod slot_8 = {"setPlacement", 1, param_slot_8 };
73
 
    static const QUParameter param_slot_9[] = {
74
 
        { 0, &static_QUType_bool, 0, QUParameter::In }
75
 
    };
76
 
    static const QUMethod slot_9 = {"setEnabled", 1, param_slot_9 };
77
 
    static const QUParameter param_slot_10[] = {
78
 
        { 0, &static_QUType_bool, 0, QUParameter::In }
79
 
    };
80
 
    static const QUMethod slot_10 = {"setAutomatic", 1, param_slot_10 };
81
 
    static const QUParameter param_slot_11[] = {
82
 
        { 0, &static_QUType_bool, 0, QUParameter::Out }
83
 
    };
84
 
    static const QUMethod slot_11 = {"calculateNorthDirection", 1, param_slot_11 };
85
 
    static const QMetaData slot_tbl[] = {
86
 
        { "initGui()", &slot_0, QMetaData::Public },
87
 
        { "projectRead()", &slot_1, QMetaData::Public },
88
 
        { "run()", &slot_2, QMetaData::Public },
89
 
        { "renderNorthArrow(QPainter*)", &slot_3, QMetaData::Public },
90
 
        { "rotationChanged(int)", &slot_4, QMetaData::Public },
91
 
        { "refreshCanvas()", &slot_5, QMetaData::Public },
92
 
        { "unload()", &slot_6, QMetaData::Public },
93
 
        { "help()", &slot_7, QMetaData::Public },
94
 
        { "setPlacement(QString)", &slot_8, QMetaData::Public },
95
 
        { "setEnabled(bool)", &slot_9, QMetaData::Public },
96
 
        { "setAutomatic(bool)", &slot_10, QMetaData::Public },
97
 
        { "calculateNorthDirection()", &slot_11, QMetaData::Public }
98
 
    };
99
 
    metaObj = QMetaObject::new_metaobject(
100
 
        "QgsNorthArrowPlugin", parentObject,
101
 
        slot_tbl, 12,
102
 
        0, 0,
103
 
#ifndef QT_NO_PROPERTIES
104
 
        0, 0,
105
 
        0, 0,
106
 
#endif // QT_NO_PROPERTIES
107
 
        0, 0 );
108
 
    cleanUp_QgsNorthArrowPlugin.setMetaObject( metaObj );
109
 
    return metaObj;
110
 
}
111
 
 
112
 
void* QgsNorthArrowPlugin::qt_cast( const char* clname )
113
 
{
114
 
    if ( !qstrcmp( clname, "QgsNorthArrowPlugin" ) )
115
 
        return this;
116
 
    if ( !qstrcmp( clname, "QgisPlugin" ) )
117
 
        return (QgisPlugin*)this;
118
 
    return QObject::qt_cast( clname );
119
 
}
120
 
 
121
 
bool QgsNorthArrowPlugin::qt_invoke( int _id, QUObject* _o )
122
 
{
123
 
    switch ( _id - staticMetaObject()->slotOffset() ) {
124
 
    case 0: initGui(); break;
125
 
    case 1: projectRead(); break;
126
 
    case 2: run(); break;
127
 
    case 3: renderNorthArrow((QPainter*)static_QUType_ptr.get(_o+1)); break;
128
 
    case 4: rotationChanged((int)static_QUType_int.get(_o+1)); break;
129
 
    case 5: refreshCanvas(); break;
130
 
    case 6: unload(); break;
131
 
    case 7: help(); break;
132
 
    case 8: setPlacement((QString)static_QUType_QString.get(_o+1)); break;
133
 
    case 9: setEnabled((bool)static_QUType_bool.get(_o+1)); break;
134
 
    case 10: setAutomatic((bool)static_QUType_bool.get(_o+1)); break;
135
 
    case 11: static_QUType_bool.set(_o,calculateNorthDirection()); break;
136
 
    default:
137
 
        return QObject::qt_invoke( _id, _o );
138
 
    }
139
 
    return TRUE;
140
 
}
141
 
 
142
 
bool QgsNorthArrowPlugin::qt_emit( int _id, QUObject* _o )
143
 
{
144
 
    return QObject::qt_emit(_id,_o);
145
 
}
146
 
#ifndef QT_NO_PROPERTIES
147
 
 
148
 
bool QgsNorthArrowPlugin::qt_property( int id, int f, QVariant* v)
149
 
{
150
 
    return QObject::qt_property( id, f, v);
151
 
}
152
 
 
153
 
bool QgsNorthArrowPlugin::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
154
 
#endif // QT_NO_PROPERTIES