1
/****************************************************************************
2
** QgisApp meta object code from reading C++ file 'qgisapp.h'
4
** Created: Fri Dec 17 09:40:20 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 *QgisApp::className() const
27
QMetaObject *QgisApp::metaObj = 0;
28
static QMetaObjectCleanUp cleanUp_QgisApp( "QgisApp", &QgisApp::staticMetaObject );
30
#ifndef QT_NO_TRANSLATION
31
QString QgisApp::tr( const char *s, const char *c )
34
return qApp->translate( "QgisApp", s, c, QApplication::DefaultCodec );
36
return QString::fromLatin1( s );
38
#ifndef QT_NO_TRANSLATION_UTF8
39
QString QgisApp::trUtf8( const char *s, const char *c )
42
return qApp->translate( "QgisApp", s, c, QApplication::UnicodeUTF8 );
44
return QString::fromUtf8( s );
46
#endif // QT_NO_TRANSLATION_UTF8
48
#endif // QT_NO_TRANSLATION
50
QMetaObject* QgisApp::staticMetaObject()
54
QMetaObject* parentObject = QgisAppBase::staticMetaObject();
55
static const QUParameter param_slot_0[] = {
56
{ "e", &static_QUType_ptr, "QKeyEvent", QUParameter::In }
58
static const QUMethod slot_0 = {"keyPressEvent", 1, param_slot_0 };
59
static const QUParameter param_slot_1[] = {
60
{ "i", &static_QUType_int, 0, QUParameter::In }
62
static const QUMethod slot_1 = {"menubar_highlighted", 1, param_slot_1 };
63
static const QUParameter param_slot_2[] = {
64
{ 0, &static_QUType_bool, 0, QUParameter::In }
66
static const QUMethod slot_2 = {"inOverview", 1, param_slot_2 };
67
static const QUParameter param_slot_3[] = {
68
{ 0, &static_QUType_ptr, "QgsPoint", QUParameter::InOut }
70
static const QUMethod slot_3 = {"showMouseCoordinate", 1, param_slot_3 };
71
static const QUParameter param_slot_4[] = {
72
{ 0, &static_QUType_ptr, "QgsPoint", QUParameter::InOut }
74
static const QUMethod slot_4 = {"showCapturePointCoordinate", 1, param_slot_4 };
75
static const QUParameter param_slot_5[] = {
76
{ "theScale", &static_QUType_QString, 0, QUParameter::In }
78
static const QUMethod slot_5 = {"showScale", 1, param_slot_5 };
79
static const QUParameter param_slot_6[] = {
80
{ 0, &static_QUType_ptr, "QListViewItem", QUParameter::In }
82
static const QUMethod slot_6 = {"layerProperties", 1, param_slot_6 };
83
static const QUMethod slot_7 = {"layerProperties", 0, 0 };
84
static const QUParameter param_slot_8[] = {
85
{ 0, &static_QUType_ptr, "QListViewItem", QUParameter::In },
86
{ 0, &static_QUType_varptr, "\x0e", QUParameter::In },
87
{ 0, &static_QUType_int, 0, QUParameter::In }
89
static const QUMethod slot_8 = {"rightClickLegendMenu", 3, param_slot_8 };
90
static const QUParameter param_slot_9[] = {
91
{ 0, &static_QUType_ptr, "QListViewItem", QUParameter::In }
93
static const QUMethod slot_9 = {"currentLayerChanged", 1, param_slot_9 };
94
static const QUMethod slot_10 = {"removeLayer", 0, 0 };
95
static const QUMethod slot_11 = {"zoomToLayerExtent", 0, 0 };
96
static const QUParameter param_slot_12[] = {
97
{ "thePluginDirString", &static_QUType_QString, 0, QUParameter::In }
99
static const QUMethod slot_12 = {"restoreSessionPlugins", 1, param_slot_12 };
100
static const QUMethod slot_13 = {"testPluginFunctions", 0, 0 };
101
static const QUMethod slot_14 = {"testMapLayerPlugins", 0, 0 };
102
static const QUMethod slot_15 = {"actionPluginManager_activated", 0, 0 };
103
static const QUParameter param_slot_16[] = {
104
{ "name", &static_QUType_QString, 0, QUParameter::In },
105
{ "description", &static_QUType_QString, 0, QUParameter::In },
106
{ "mFullPath", &static_QUType_QString, 0, QUParameter::In }
108
static const QUMethod slot_16 = {"loadPlugin", 3, param_slot_16 };
109
static const QUParameter param_slot_17[] = {
110
{ 0, &static_QUType_int, 0, QUParameter::Out },
111
{ "menuText", &static_QUType_QString, 0, QUParameter::In },
112
{ "menu", &static_QUType_ptr, "QPopupMenu", QUParameter::In }
114
static const QUMethod slot_17 = {"addPluginMenu", 3, param_slot_17 };
115
static const QUParameter param_slot_18[] = {
116
{ 0, &static_QUType_int, 0, QUParameter::Out },
117
{ "qAction", &static_QUType_ptr, "QAction", QUParameter::In }
119
static const QUMethod slot_18 = {"addPluginToolBarIcon", 2, param_slot_18 };
120
static const QUParameter param_slot_19[] = {
121
{ "qAction", &static_QUType_ptr, "QAction", QUParameter::In }
123
static const QUMethod slot_19 = {"removePluginToolBarIcon", 1, param_slot_19 };
124
static const QUMethod slot_20 = {"saveWindowState", 0, 0 };
125
static const QUMethod slot_21 = {"restoreWindowState", 0, 0 };
126
static const QUMethod slot_22 = {"fileSave", 0, 0 };
127
static const QUMethod slot_23 = {"fileSaveAs", 0, 0 };
128
static const QUMethod slot_24 = {"saveMapAsImage", 0, 0 };
129
static const QUMethod slot_25 = {"fileOpen", 0, 0 };
130
static const QUMethod slot_26 = {"fileNew", 0, 0 };
131
static const QUParameter param_slot_27[] = {
132
{ "thePromptToSaveFlag", &static_QUType_bool, 0, QUParameter::In }
134
static const QUMethod slot_27 = {"fileNew", 1, param_slot_27 };
135
static const QUMethod slot_28 = {"newVectorLayer", 0, 0 };
136
static const QUMethod slot_29 = {"filePrint", 0, 0 };
137
static const QUMethod slot_30 = {"addAllToOverview", 0, 0 };
138
static const QUMethod slot_31 = {"removeAllFromOverview", 0, 0 };
139
static const QUMethod slot_32 = {"hideAllLayers", 0, 0 };
140
static const QUMethod slot_33 = {"showAllLayers", 0, 0 };
141
static const QUMethod slot_34 = {"exportMapServer", 0, 0 };
142
static const QUParameter param_slot_35[] = {
143
{ 0, &static_QUType_ptr, "QgsMapLayer", QUParameter::Out }
145
static const QUMethod slot_35 = {"activeLayer", 1, param_slot_35 };
146
static const QUParameter param_slot_36[] = {
147
{ 0, &static_QUType_QString, 0, QUParameter::Out }
149
static const QUMethod slot_36 = {"activeLayerSource", 1, param_slot_36 };
150
static const QUMethod slot_37 = {"helpContents", 0, 0 };
151
static const QUMethod slot_38 = {"helpQgisHomePage", 0, 0 };
152
static const QUMethod slot_39 = {"helpQgisSourceForge", 0, 0 };
153
static const QUParameter param_slot_40[] = {
154
{ "url", &static_QUType_QString, 0, QUParameter::In }
156
static const QUMethod slot_40 = {"openURL", 1, param_slot_40 };
157
static const QUParameter param_slot_41[] = {
158
{ "url", &static_QUType_QString, 0, QUParameter::In },
159
{ "useQgisDocDirectory", &static_QUType_bool, 0, QUParameter::In }
161
static const QUMethod slot_41 = {"openURL", 2, param_slot_41 };
162
static const QUMethod slot_42 = {"checkQgisVersion", 0, 0 };
163
static const QUMethod slot_43 = {"options", 0, 0 };
164
static const QUMethod slot_44 = {"whatsThis", 0, 0 };
165
static const QUMethod slot_45 = {"menuMapByName", 0, 0 };
166
static const QUMethod slot_46 = {"menuMapById", 0, 0 };
167
static const QUMethod slot_47 = {"populateMenuMaps", 0, 0 };
168
static const QUMethod slot_48 = {"socketConnected", 0, 0 };
169
static const QUMethod slot_49 = {"socketConnectionClosed", 0, 0 };
170
static const QUMethod slot_50 = {"socketReadyRead", 0, 0 };
171
static const QUParameter param_slot_51[] = {
172
{ "e", &static_QUType_int, 0, QUParameter::In }
174
static const QUMethod slot_51 = {"socketError", 1, param_slot_51 };
175
static const QUMethod slot_52 = {"projectProperties", 0, 0 };
176
static const QUParameter param_slot_53[] = {
177
{ 0, &static_QUType_ptr, "QgsLegend", QUParameter::In }
179
static const QUMethod slot_53 = {"setOverviewZOrder", 1, param_slot_53 };
180
static const QUMethod slot_54 = {"killSplashScreen", 0, 0 };
181
static const QUParameter param_slot_55[] = {
182
{ "theProgress", &static_QUType_int, 0, QUParameter::In },
183
{ "theTotalSteps", &static_QUType_int, 0, QUParameter::In }
185
static const QUMethod slot_55 = {"showProgress", 2, param_slot_55 };
186
static const QUParameter param_slot_56[] = {
187
{ "theExtents", &static_QUType_ptr, "QgsRect", QUParameter::In }
189
static const QUMethod slot_56 = {"showExtents", 1, param_slot_56 };
190
static const QUParameter param_slot_57[] = {
191
{ "theMessage", &static_QUType_QString, 0, QUParameter::In }
193
static const QUMethod slot_57 = {"showStatusMessage", 1, param_slot_57 };
194
static const QUParameter param_slot_58[] = {
195
{ "theLayerId", &static_QUType_QString, 0, QUParameter::In },
196
{ "theVisibilityFlag", &static_QUType_bool, 0, QUParameter::In }
198
static const QUMethod slot_58 = {"setLayerOverviewStatus", 2, param_slot_58 };
199
static const QUParameter param_slot_59[] = {
200
{ 0, &static_QUType_ptr, "QPainter", QUParameter::In }
202
static const QUMethod slot_59 = {"drawExtentRectangle", 1, param_slot_59 };
203
static const QMetaData slot_tbl[] = {
204
{ "keyPressEvent(QKeyEvent*)", &slot_0, QMetaData::Private },
205
{ "menubar_highlighted(int)", &slot_1, QMetaData::Private },
206
{ "inOverview(bool)", &slot_2, QMetaData::Private },
207
{ "showMouseCoordinate(QgsPoint&)", &slot_3, QMetaData::Private },
208
{ "showCapturePointCoordinate(QgsPoint&)", &slot_4, QMetaData::Private },
209
{ "showScale(QString)", &slot_5, QMetaData::Private },
210
{ "layerProperties(QListViewItem*)", &slot_6, QMetaData::Private },
211
{ "layerProperties()", &slot_7, QMetaData::Private },
212
{ "rightClickLegendMenu(QListViewItem*,const QPoint&,int)", &slot_8, QMetaData::Private },
213
{ "currentLayerChanged(QListViewItem*)", &slot_9, QMetaData::Private },
214
{ "removeLayer()", &slot_10, QMetaData::Private },
215
{ "zoomToLayerExtent()", &slot_11, QMetaData::Private },
216
{ "restoreSessionPlugins(QString)", &slot_12, QMetaData::Private },
217
{ "testPluginFunctions()", &slot_13, QMetaData::Private },
218
{ "testMapLayerPlugins()", &slot_14, QMetaData::Private },
219
{ "actionPluginManager_activated()", &slot_15, QMetaData::Private },
220
{ "loadPlugin(QString,QString,QString)", &slot_16, QMetaData::Private },
221
{ "addPluginMenu(QString,QPopupMenu*)", &slot_17, QMetaData::Private },
222
{ "addPluginToolBarIcon(QAction*)", &slot_18, QMetaData::Private },
223
{ "removePluginToolBarIcon(QAction*)", &slot_19, QMetaData::Private },
224
{ "saveWindowState()", &slot_20, QMetaData::Private },
225
{ "restoreWindowState()", &slot_21, QMetaData::Private },
226
{ "fileSave()", &slot_22, QMetaData::Private },
227
{ "fileSaveAs()", &slot_23, QMetaData::Private },
228
{ "saveMapAsImage()", &slot_24, QMetaData::Private },
229
{ "fileOpen()", &slot_25, QMetaData::Private },
230
{ "fileNew()", &slot_26, QMetaData::Private },
231
{ "fileNew(bool)", &slot_27, QMetaData::Private },
232
{ "newVectorLayer()", &slot_28, QMetaData::Private },
233
{ "filePrint()", &slot_29, QMetaData::Private },
234
{ "addAllToOverview()", &slot_30, QMetaData::Private },
235
{ "removeAllFromOverview()", &slot_31, QMetaData::Private },
236
{ "hideAllLayers()", &slot_32, QMetaData::Private },
237
{ "showAllLayers()", &slot_33, QMetaData::Private },
238
{ "exportMapServer()", &slot_34, QMetaData::Private },
239
{ "activeLayer()", &slot_35, QMetaData::Private },
240
{ "activeLayerSource()", &slot_36, QMetaData::Private },
241
{ "helpContents()", &slot_37, QMetaData::Private },
242
{ "helpQgisHomePage()", &slot_38, QMetaData::Private },
243
{ "helpQgisSourceForge()", &slot_39, QMetaData::Private },
244
{ "openURL(QString)", &slot_40, QMetaData::Private },
245
{ "openURL(QString,bool)", &slot_41, QMetaData::Private },
246
{ "checkQgisVersion()", &slot_42, QMetaData::Private },
247
{ "options()", &slot_43, QMetaData::Private },
248
{ "whatsThis()", &slot_44, QMetaData::Private },
249
{ "menuMapByName()", &slot_45, QMetaData::Private },
250
{ "menuMapById()", &slot_46, QMetaData::Private },
251
{ "populateMenuMaps()", &slot_47, QMetaData::Private },
252
{ "socketConnected()", &slot_48, QMetaData::Private },
253
{ "socketConnectionClosed()", &slot_49, QMetaData::Private },
254
{ "socketReadyRead()", &slot_50, QMetaData::Private },
255
{ "socketError(int)", &slot_51, QMetaData::Private },
256
{ "projectProperties()", &slot_52, QMetaData::Private },
257
{ "setOverviewZOrder(QgsLegend*)", &slot_53, QMetaData::Private },
258
{ "killSplashScreen()", &slot_54, QMetaData::Private },
259
{ "showProgress(int,int)", &slot_55, QMetaData::Public },
260
{ "showExtents(QgsRect)", &slot_56, QMetaData::Public },
261
{ "showStatusMessage(QString)", &slot_57, QMetaData::Public },
262
{ "setLayerOverviewStatus(QString,bool)", &slot_58, QMetaData::Public },
263
{ "drawExtentRectangle(QPainter*)", &slot_59, QMetaData::Public }
265
static const QUParameter param_signal_0[] = {
266
{ "e", &static_QUType_ptr, "QKeyEvent", QUParameter::In }
268
static const QUMethod signal_0 = {"keyPressed", 1, param_signal_0 };
269
static const QUMethod signal_1 = {"projectRead", 0, 0 };
270
static const QUMethod signal_2 = {"newProject", 0, 0 };
271
static const QMetaData signal_tbl[] = {
272
{ "keyPressed(QKeyEvent*)", &signal_0, QMetaData::Public },
273
{ "projectRead()", &signal_1, QMetaData::Public },
274
{ "newProject()", &signal_2, QMetaData::Public }
276
metaObj = QMetaObject::new_metaobject(
277
"QgisApp", parentObject,
280
#ifndef QT_NO_PROPERTIES
283
#endif // QT_NO_PROPERTIES
285
cleanUp_QgisApp.setMetaObject( metaObj );
289
void* QgisApp::qt_cast( const char* clname )
291
if ( !qstrcmp( clname, "QgisApp" ) )
293
return QgisAppBase::qt_cast( clname );
296
#include <qobjectdefs.h>
297
#include <qsignalslotimp.h>
300
void QgisApp::keyPressed( QKeyEvent* t0 )
302
if ( signalsBlocked() )
304
QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
308
static_QUType_ptr.set(o+1,t0);
309
activate_signal( clist, o );
312
// SIGNAL projectRead
313
void QgisApp::projectRead()
315
activate_signal( staticMetaObject()->signalOffset() + 1 );
319
void QgisApp::newProject()
321
activate_signal( staticMetaObject()->signalOffset() + 2 );
324
bool QgisApp::qt_invoke( int _id, QUObject* _o )
326
switch ( _id - staticMetaObject()->slotOffset() ) {
327
case 0: keyPressEvent((QKeyEvent*)static_QUType_ptr.get(_o+1)); break;
328
case 1: menubar_highlighted((int)static_QUType_int.get(_o+1)); break;
329
case 2: inOverview((bool)static_QUType_bool.get(_o+1)); break;
330
case 3: showMouseCoordinate((QgsPoint&)*((QgsPoint*)static_QUType_ptr.get(_o+1))); break;
331
case 4: showCapturePointCoordinate((QgsPoint&)*((QgsPoint*)static_QUType_ptr.get(_o+1))); break;
332
case 5: showScale((QString)static_QUType_QString.get(_o+1)); break;
333
case 6: layerProperties((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
334
case 7: layerProperties(); break;
335
case 8: rightClickLegendMenu((QListViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2)),(int)static_QUType_int.get(_o+3)); break;
336
case 9: currentLayerChanged((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
337
case 10: removeLayer(); break;
338
case 11: zoomToLayerExtent(); break;
339
case 12: restoreSessionPlugins((QString)static_QUType_QString.get(_o+1)); break;
340
case 13: testPluginFunctions(); break;
341
case 14: testMapLayerPlugins(); break;
342
case 15: actionPluginManager_activated(); break;
343
case 16: loadPlugin((QString)static_QUType_QString.get(_o+1),(QString)static_QUType_QString.get(_o+2),(QString)static_QUType_QString.get(_o+3)); break;
344
case 17: static_QUType_int.set(_o,addPluginMenu((QString)static_QUType_QString.get(_o+1),(QPopupMenu*)static_QUType_ptr.get(_o+2))); break;
345
case 18: static_QUType_int.set(_o,addPluginToolBarIcon((QAction*)static_QUType_ptr.get(_o+1))); break;
346
case 19: removePluginToolBarIcon((QAction*)static_QUType_ptr.get(_o+1)); break;
347
case 20: saveWindowState(); break;
348
case 21: restoreWindowState(); break;
349
case 22: fileSave(); break;
350
case 23: fileSaveAs(); break;
351
case 24: saveMapAsImage(); break;
352
case 25: fileOpen(); break;
353
case 26: fileNew(); break;
354
case 27: fileNew((bool)static_QUType_bool.get(_o+1)); break;
355
case 28: newVectorLayer(); break;
356
case 29: filePrint(); break;
357
case 30: addAllToOverview(); break;
358
case 31: removeAllFromOverview(); break;
359
case 32: hideAllLayers(); break;
360
case 33: showAllLayers(); break;
361
case 34: exportMapServer(); break;
362
case 35: static_QUType_ptr.set(_o,activeLayer()); break;
363
case 36: static_QUType_QString.set(_o,activeLayerSource()); break;
364
case 37: helpContents(); break;
365
case 38: helpQgisHomePage(); break;
366
case 39: helpQgisSourceForge(); break;
367
case 40: openURL((QString)static_QUType_QString.get(_o+1)); break;
368
case 41: openURL((QString)static_QUType_QString.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break;
369
case 42: checkQgisVersion(); break;
370
case 43: options(); break;
371
case 44: whatsThis(); break;
372
case 45: menuMapByName(); break;
373
case 46: menuMapById(); break;
374
case 47: populateMenuMaps(); break;
375
case 48: socketConnected(); break;
376
case 49: socketConnectionClosed(); break;
377
case 50: socketReadyRead(); break;
378
case 51: socketError((int)static_QUType_int.get(_o+1)); break;
379
case 52: projectProperties(); break;
380
case 53: setOverviewZOrder((QgsLegend*)static_QUType_ptr.get(_o+1)); break;
381
case 54: killSplashScreen(); break;
382
case 55: showProgress((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
383
case 56: showExtents((QgsRect)(*((QgsRect*)static_QUType_ptr.get(_o+1)))); break;
384
case 57: showStatusMessage((QString)static_QUType_QString.get(_o+1)); break;
385
case 58: setLayerOverviewStatus((QString)static_QUType_QString.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break;
386
case 59: drawExtentRectangle((QPainter*)static_QUType_ptr.get(_o+1)); break;
388
return QgisAppBase::qt_invoke( _id, _o );
393
bool QgisApp::qt_emit( int _id, QUObject* _o )
395
switch ( _id - staticMetaObject()->signalOffset() ) {
396
case 0: keyPressed((QKeyEvent*)static_QUType_ptr.get(_o+1)); break;
397
case 1: projectRead(); break;
398
case 2: newProject(); break;
400
return QgisAppBase::qt_emit(_id,_o);
404
#ifndef QT_NO_PROPERTIES
406
bool QgisApp::qt_property( int id, int f, QVariant* v)
408
return QgisAppBase::qt_property( id, f, v);
411
bool QgisApp::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
412
#endif // QT_NO_PROPERTIES