Logo Search packages:      
Sourcecode: qgis version File versions

qgisapp.moc.cpp

/****************************************************************************
** QgisApp meta object code from reading C++ file 'qgisapp.h'
**
** Created: Fri Dec 17 09:40:20 2004
**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.3.3   edited Aug 5 16:40 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "qgisapp.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.3. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

const char *QgisApp::className() const
{
    return "QgisApp";
}

QMetaObject *QgisApp::metaObj = 0;
static QMetaObjectCleanUp cleanUp_QgisApp( "QgisApp", &QgisApp::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString QgisApp::tr( const char *s, const char *c )
{
    if ( qApp )
      return qApp->translate( "QgisApp", s, c, QApplication::DefaultCodec );
    else
      return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString QgisApp::trUtf8( const char *s, const char *c )
{
    if ( qApp )
      return qApp->translate( "QgisApp", s, c, QApplication::UnicodeUTF8 );
    else
      return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* QgisApp::staticMetaObject()
{
    if ( metaObj )
      return metaObj;
    QMetaObject* parentObject = QgisAppBase::staticMetaObject();
    static const QUParameter param_slot_0[] = {
      { "e", &static_QUType_ptr, "QKeyEvent", QUParameter::In }
    };
    static const QUMethod slot_0 = {"keyPressEvent", 1, param_slot_0 };
    static const QUParameter param_slot_1[] = {
      { "i", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_1 = {"menubar_highlighted", 1, param_slot_1 };
    static const QUParameter param_slot_2[] = {
      { 0, &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_2 = {"inOverview", 1, param_slot_2 };
    static const QUParameter param_slot_3[] = {
      { 0, &static_QUType_ptr, "QgsPoint", QUParameter::InOut }
    };
    static const QUMethod slot_3 = {"showMouseCoordinate", 1, param_slot_3 };
    static const QUParameter param_slot_4[] = {
      { 0, &static_QUType_ptr, "QgsPoint", QUParameter::InOut }
    };
    static const QUMethod slot_4 = {"showCapturePointCoordinate", 1, param_slot_4 };
    static const QUParameter param_slot_5[] = {
      { "theScale", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_5 = {"showScale", 1, param_slot_5 };
    static const QUParameter param_slot_6[] = {
      { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In }
    };
    static const QUMethod slot_6 = {"layerProperties", 1, param_slot_6 };
    static const QUMethod slot_7 = {"layerProperties", 0, 0 };
    static const QUParameter param_slot_8[] = {
      { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In },
      { 0, &static_QUType_varptr, "\x0e", QUParameter::In },
      { 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_8 = {"rightClickLegendMenu", 3, param_slot_8 };
    static const QUParameter param_slot_9[] = {
      { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In }
    };
    static const QUMethod slot_9 = {"currentLayerChanged", 1, param_slot_9 };
    static const QUMethod slot_10 = {"removeLayer", 0, 0 };
    static const QUMethod slot_11 = {"zoomToLayerExtent", 0, 0 };
    static const QUParameter param_slot_12[] = {
      { "thePluginDirString", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_12 = {"restoreSessionPlugins", 1, param_slot_12 };
    static const QUMethod slot_13 = {"testPluginFunctions", 0, 0 };
    static const QUMethod slot_14 = {"testMapLayerPlugins", 0, 0 };
    static const QUMethod slot_15 = {"actionPluginManager_activated", 0, 0 };
    static const QUParameter param_slot_16[] = {
      { "name", &static_QUType_QString, 0, QUParameter::In },
      { "description", &static_QUType_QString, 0, QUParameter::In },
      { "mFullPath", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_16 = {"loadPlugin", 3, param_slot_16 };
    static const QUParameter param_slot_17[] = {
      { 0, &static_QUType_int, 0, QUParameter::Out },
      { "menuText", &static_QUType_QString, 0, QUParameter::In },
      { "menu", &static_QUType_ptr, "QPopupMenu", QUParameter::In }
    };
    static const QUMethod slot_17 = {"addPluginMenu", 3, param_slot_17 };
    static const QUParameter param_slot_18[] = {
      { 0, &static_QUType_int, 0, QUParameter::Out },
      { "qAction", &static_QUType_ptr, "QAction", QUParameter::In }
    };
    static const QUMethod slot_18 = {"addPluginToolBarIcon", 2, param_slot_18 };
    static const QUParameter param_slot_19[] = {
      { "qAction", &static_QUType_ptr, "QAction", QUParameter::In }
    };
    static const QUMethod slot_19 = {"removePluginToolBarIcon", 1, param_slot_19 };
    static const QUMethod slot_20 = {"saveWindowState", 0, 0 };
    static const QUMethod slot_21 = {"restoreWindowState", 0, 0 };
    static const QUMethod slot_22 = {"fileSave", 0, 0 };
    static const QUMethod slot_23 = {"fileSaveAs", 0, 0 };
    static const QUMethod slot_24 = {"saveMapAsImage", 0, 0 };
    static const QUMethod slot_25 = {"fileOpen", 0, 0 };
    static const QUMethod slot_26 = {"fileNew", 0, 0 };
    static const QUParameter param_slot_27[] = {
      { "thePromptToSaveFlag", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_27 = {"fileNew", 1, param_slot_27 };
    static const QUMethod slot_28 = {"newVectorLayer", 0, 0 };
    static const QUMethod slot_29 = {"filePrint", 0, 0 };
    static const QUMethod slot_30 = {"addAllToOverview", 0, 0 };
    static const QUMethod slot_31 = {"removeAllFromOverview", 0, 0 };
    static const QUMethod slot_32 = {"hideAllLayers", 0, 0 };
    static const QUMethod slot_33 = {"showAllLayers", 0, 0 };
    static const QUMethod slot_34 = {"exportMapServer", 0, 0 };
    static const QUParameter param_slot_35[] = {
      { 0, &static_QUType_ptr, "QgsMapLayer", QUParameter::Out }
    };
    static const QUMethod slot_35 = {"activeLayer", 1, param_slot_35 };
    static const QUParameter param_slot_36[] = {
      { 0, &static_QUType_QString, 0, QUParameter::Out }
    };
    static const QUMethod slot_36 = {"activeLayerSource", 1, param_slot_36 };
    static const QUMethod slot_37 = {"helpContents", 0, 0 };
    static const QUMethod slot_38 = {"helpQgisHomePage", 0, 0 };
    static const QUMethod slot_39 = {"helpQgisSourceForge", 0, 0 };
    static const QUParameter param_slot_40[] = {
      { "url", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_40 = {"openURL", 1, param_slot_40 };
    static const QUParameter param_slot_41[] = {
      { "url", &static_QUType_QString, 0, QUParameter::In },
      { "useQgisDocDirectory", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_41 = {"openURL", 2, param_slot_41 };
    static const QUMethod slot_42 = {"checkQgisVersion", 0, 0 };
    static const QUMethod slot_43 = {"options", 0, 0 };
    static const QUMethod slot_44 = {"whatsThis", 0, 0 };
    static const QUMethod slot_45 = {"menuMapByName", 0, 0 };
    static const QUMethod slot_46 = {"menuMapById", 0, 0 };
    static const QUMethod slot_47 = {"populateMenuMaps", 0, 0 };
    static const QUMethod slot_48 = {"socketConnected", 0, 0 };
    static const QUMethod slot_49 = {"socketConnectionClosed", 0, 0 };
    static const QUMethod slot_50 = {"socketReadyRead", 0, 0 };
    static const QUParameter param_slot_51[] = {
      { "e", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_51 = {"socketError", 1, param_slot_51 };
    static const QUMethod slot_52 = {"projectProperties", 0, 0 };
    static const QUParameter param_slot_53[] = {
      { 0, &static_QUType_ptr, "QgsLegend", QUParameter::In }
    };
    static const QUMethod slot_53 = {"setOverviewZOrder", 1, param_slot_53 };
    static const QUMethod slot_54 = {"killSplashScreen", 0, 0 };
    static const QUParameter param_slot_55[] = {
      { "theProgress", &static_QUType_int, 0, QUParameter::In },
      { "theTotalSteps", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_55 = {"showProgress", 2, param_slot_55 };
    static const QUParameter param_slot_56[] = {
      { "theExtents", &static_QUType_ptr, "QgsRect", QUParameter::In }
    };
    static const QUMethod slot_56 = {"showExtents", 1, param_slot_56 };
    static const QUParameter param_slot_57[] = {
      { "theMessage", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_57 = {"showStatusMessage", 1, param_slot_57 };
    static const QUParameter param_slot_58[] = {
      { "theLayerId", &static_QUType_QString, 0, QUParameter::In },
      { "theVisibilityFlag", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_58 = {"setLayerOverviewStatus", 2, param_slot_58 };
    static const QUParameter param_slot_59[] = {
      { 0, &static_QUType_ptr, "QPainter", QUParameter::In }
    };
    static const QUMethod slot_59 = {"drawExtentRectangle", 1, param_slot_59 };
    static const QMetaData slot_tbl[] = {
      { "keyPressEvent(QKeyEvent*)", &slot_0, QMetaData::Private },
      { "menubar_highlighted(int)", &slot_1, QMetaData::Private },
      { "inOverview(bool)", &slot_2, QMetaData::Private },
      { "showMouseCoordinate(QgsPoint&)", &slot_3, QMetaData::Private },
      { "showCapturePointCoordinate(QgsPoint&)", &slot_4, QMetaData::Private },
      { "showScale(QString)", &slot_5, QMetaData::Private },
      { "layerProperties(QListViewItem*)", &slot_6, QMetaData::Private },
      { "layerProperties()", &slot_7, QMetaData::Private },
      { "rightClickLegendMenu(QListViewItem*,const QPoint&,int)", &slot_8, QMetaData::Private },
      { "currentLayerChanged(QListViewItem*)", &slot_9, QMetaData::Private },
      { "removeLayer()", &slot_10, QMetaData::Private },
      { "zoomToLayerExtent()", &slot_11, QMetaData::Private },
      { "restoreSessionPlugins(QString)", &slot_12, QMetaData::Private },
      { "testPluginFunctions()", &slot_13, QMetaData::Private },
      { "testMapLayerPlugins()", &slot_14, QMetaData::Private },
      { "actionPluginManager_activated()", &slot_15, QMetaData::Private },
      { "loadPlugin(QString,QString,QString)", &slot_16, QMetaData::Private },
      { "addPluginMenu(QString,QPopupMenu*)", &slot_17, QMetaData::Private },
      { "addPluginToolBarIcon(QAction*)", &slot_18, QMetaData::Private },
      { "removePluginToolBarIcon(QAction*)", &slot_19, QMetaData::Private },
      { "saveWindowState()", &slot_20, QMetaData::Private },
      { "restoreWindowState()", &slot_21, QMetaData::Private },
      { "fileSave()", &slot_22, QMetaData::Private },
      { "fileSaveAs()", &slot_23, QMetaData::Private },
      { "saveMapAsImage()", &slot_24, QMetaData::Private },
      { "fileOpen()", &slot_25, QMetaData::Private },
      { "fileNew()", &slot_26, QMetaData::Private },
      { "fileNew(bool)", &slot_27, QMetaData::Private },
      { "newVectorLayer()", &slot_28, QMetaData::Private },
      { "filePrint()", &slot_29, QMetaData::Private },
      { "addAllToOverview()", &slot_30, QMetaData::Private },
      { "removeAllFromOverview()", &slot_31, QMetaData::Private },
      { "hideAllLayers()", &slot_32, QMetaData::Private },
      { "showAllLayers()", &slot_33, QMetaData::Private },
      { "exportMapServer()", &slot_34, QMetaData::Private },
      { "activeLayer()", &slot_35, QMetaData::Private },
      { "activeLayerSource()", &slot_36, QMetaData::Private },
      { "helpContents()", &slot_37, QMetaData::Private },
      { "helpQgisHomePage()", &slot_38, QMetaData::Private },
      { "helpQgisSourceForge()", &slot_39, QMetaData::Private },
      { "openURL(QString)", &slot_40, QMetaData::Private },
      { "openURL(QString,bool)", &slot_41, QMetaData::Private },
      { "checkQgisVersion()", &slot_42, QMetaData::Private },
      { "options()", &slot_43, QMetaData::Private },
      { "whatsThis()", &slot_44, QMetaData::Private },
      { "menuMapByName()", &slot_45, QMetaData::Private },
      { "menuMapById()", &slot_46, QMetaData::Private },
      { "populateMenuMaps()", &slot_47, QMetaData::Private },
      { "socketConnected()", &slot_48, QMetaData::Private },
      { "socketConnectionClosed()", &slot_49, QMetaData::Private },
      { "socketReadyRead()", &slot_50, QMetaData::Private },
      { "socketError(int)", &slot_51, QMetaData::Private },
      { "projectProperties()", &slot_52, QMetaData::Private },
      { "setOverviewZOrder(QgsLegend*)", &slot_53, QMetaData::Private },
      { "killSplashScreen()", &slot_54, QMetaData::Private },
      { "showProgress(int,int)", &slot_55, QMetaData::Public },
      { "showExtents(QgsRect)", &slot_56, QMetaData::Public },
      { "showStatusMessage(QString)", &slot_57, QMetaData::Public },
      { "setLayerOverviewStatus(QString,bool)", &slot_58, QMetaData::Public },
      { "drawExtentRectangle(QPainter*)", &slot_59, QMetaData::Public }
    };
    static const QUParameter param_signal_0[] = {
      { "e", &static_QUType_ptr, "QKeyEvent", QUParameter::In }
    };
    static const QUMethod signal_0 = {"keyPressed", 1, param_signal_0 };
    static const QUMethod signal_1 = {"projectRead", 0, 0 };
    static const QUMethod signal_2 = {"newProject", 0, 0 };
    static const QMetaData signal_tbl[] = {
      { "keyPressed(QKeyEvent*)", &signal_0, QMetaData::Public },
      { "projectRead()", &signal_1, QMetaData::Public },
      { "newProject()", &signal_2, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
      "QgisApp", parentObject,
      slot_tbl, 60,
      signal_tbl, 3,
#ifndef QT_NO_PROPERTIES
      0, 0,
      0, 0,
#endif // QT_NO_PROPERTIES
      0, 0 );
    cleanUp_QgisApp.setMetaObject( metaObj );
    return metaObj;
}

void* QgisApp::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "QgisApp" ) )
      return this;
    return QgisAppBase::qt_cast( clname );
}

#include <qobjectdefs.h>
#include <qsignalslotimp.h>

// SIGNAL keyPressed
00300 void QgisApp::keyPressed( QKeyEvent* t0 )
{
    if ( signalsBlocked() )
      return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
      return;
    QUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    activate_signal( clist, o );
}

// SIGNAL projectRead
00313 void QgisApp::projectRead()
{
    activate_signal( staticMetaObject()->signalOffset() + 1 );
}

// SIGNAL newProject
00319 void QgisApp::newProject()
{
    activate_signal( staticMetaObject()->signalOffset() + 2 );
}

bool QgisApp::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: keyPressEvent((QKeyEvent*)static_QUType_ptr.get(_o+1)); break;
    case 1: menubar_highlighted((int)static_QUType_int.get(_o+1)); break;
    case 2: inOverview((bool)static_QUType_bool.get(_o+1)); break;
    case 3: showMouseCoordinate((QgsPoint&)*((QgsPoint*)static_QUType_ptr.get(_o+1))); break;
    case 4: showCapturePointCoordinate((QgsPoint&)*((QgsPoint*)static_QUType_ptr.get(_o+1))); break;
    case 5: showScale((QString)static_QUType_QString.get(_o+1)); break;
    case 6: layerProperties((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 7: layerProperties(); break;
    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;
    case 9: currentLayerChanged((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 10: removeLayer(); break;
    case 11: zoomToLayerExtent(); break;
    case 12: restoreSessionPlugins((QString)static_QUType_QString.get(_o+1)); break;
    case 13: testPluginFunctions(); break;
    case 14: testMapLayerPlugins(); break;
    case 15: actionPluginManager_activated(); break;
    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;
    case 17: static_QUType_int.set(_o,addPluginMenu((QString)static_QUType_QString.get(_o+1),(QPopupMenu*)static_QUType_ptr.get(_o+2))); break;
    case 18: static_QUType_int.set(_o,addPluginToolBarIcon((QAction*)static_QUType_ptr.get(_o+1))); break;
    case 19: removePluginToolBarIcon((QAction*)static_QUType_ptr.get(_o+1)); break;
    case 20: saveWindowState(); break;
    case 21: restoreWindowState(); break;
    case 22: fileSave(); break;
    case 23: fileSaveAs(); break;
    case 24: saveMapAsImage(); break;
    case 25: fileOpen(); break;
    case 26: fileNew(); break;
    case 27: fileNew((bool)static_QUType_bool.get(_o+1)); break;
    case 28: newVectorLayer(); break;
    case 29: filePrint(); break;
    case 30: addAllToOverview(); break;
    case 31: removeAllFromOverview(); break;
    case 32: hideAllLayers(); break;
    case 33: showAllLayers(); break;
    case 34: exportMapServer(); break;
    case 35: static_QUType_ptr.set(_o,activeLayer()); break;
    case 36: static_QUType_QString.set(_o,activeLayerSource()); break;
    case 37: helpContents(); break;
    case 38: helpQgisHomePage(); break;
    case 39: helpQgisSourceForge(); break;
    case 40: openURL((QString)static_QUType_QString.get(_o+1)); break;
    case 41: openURL((QString)static_QUType_QString.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break;
    case 42: checkQgisVersion(); break;
    case 43: options(); break;
    case 44: whatsThis(); break;
    case 45: menuMapByName(); break;
    case 46: menuMapById(); break;
    case 47: populateMenuMaps(); break;
    case 48: socketConnected(); break;
    case 49: socketConnectionClosed(); break;
    case 50: socketReadyRead(); break;
    case 51: socketError((int)static_QUType_int.get(_o+1)); break;
    case 52: projectProperties(); break;
    case 53: setOverviewZOrder((QgsLegend*)static_QUType_ptr.get(_o+1)); break;
    case 54: killSplashScreen(); break;
    case 55: showProgress((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 56: showExtents((QgsRect)(*((QgsRect*)static_QUType_ptr.get(_o+1)))); break;
    case 57: showStatusMessage((QString)static_QUType_QString.get(_o+1)); break;
    case 58: setLayerOverviewStatus((QString)static_QUType_QString.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break;
    case 59: drawExtentRectangle((QPainter*)static_QUType_ptr.get(_o+1)); break;
    default:
      return QgisAppBase::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool QgisApp::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: keyPressed((QKeyEvent*)static_QUType_ptr.get(_o+1)); break;
    case 1: projectRead(); break;
    case 2: newProject(); break;
    default:
      return QgisAppBase::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

bool QgisApp::qt_property( int id, int f, QVariant* v)
{
    return QgisAppBase::qt_property( id, f, v);
}

bool QgisApp::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES

Generated by  Doxygen 1.6.0   Back to index