~ubuntu-branches/ubuntu/dapper/qgis/dapper

« back to all changes in this revision

Viewing changes to src/qgsmaplayerregistry.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
** QgsMapLayerRegistry meta object code from reading C++ file 'qgsmaplayerregistry.h'
 
3
**
 
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 $)
 
6
**
 
7
** WARNING! All changes made in this file will be lost!
 
8
*****************************************************************************/
 
9
 
 
10
#undef QT_NO_COMPAT
 
11
#include "qgsmaplayerregistry.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 *QgsMapLayerRegistry::className() const
 
23
{
 
24
    return "QgsMapLayerRegistry";
 
25
}
 
26
 
 
27
QMetaObject *QgsMapLayerRegistry::metaObj = 0;
 
28
static QMetaObjectCleanUp cleanUp_QgsMapLayerRegistry( "QgsMapLayerRegistry", &QgsMapLayerRegistry::staticMetaObject );
 
29
 
 
30
#ifndef QT_NO_TRANSLATION
 
31
QString QgsMapLayerRegistry::tr( const char *s, const char *c )
 
32
{
 
33
    if ( qApp )
 
34
        return qApp->translate( "QgsMapLayerRegistry", s, c, QApplication::DefaultCodec );
 
35
    else
 
36
        return QString::fromLatin1( s );
 
37
}
 
38
#ifndef QT_NO_TRANSLATION_UTF8
 
39
QString QgsMapLayerRegistry::trUtf8( const char *s, const char *c )
 
40
{
 
41
    if ( qApp )
 
42
        return qApp->translate( "QgsMapLayerRegistry", 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* QgsMapLayerRegistry::staticMetaObject()
 
51
{
 
52
    if ( metaObj )
 
53
        return metaObj;
 
54
    QMetaObject* parentObject = QObject::staticMetaObject();
 
55
    static const QUParameter param_signal_0[] = {
 
56
        { "theLayerId", &static_QUType_QString, 0, QUParameter::In }
 
57
    };
 
58
    static const QUMethod signal_0 = {"layerWillBeRemoved", 1, param_signal_0 };
 
59
    static const QUParameter param_signal_1[] = {
 
60
        { "theMapLayer", &static_QUType_ptr, "QgsMapLayer", QUParameter::In }
 
61
    };
 
62
    static const QUMethod signal_1 = {"layerWasAdded", 1, param_signal_1 };
 
63
    static const QUMethod signal_2 = {"removedAll", 0, 0 };
 
64
    static const QMetaData signal_tbl[] = {
 
65
        { "layerWillBeRemoved(QString)", &signal_0, QMetaData::Public },
 
66
        { "layerWasAdded(QgsMapLayer*)", &signal_1, QMetaData::Public },
 
67
        { "removedAll()", &signal_2, QMetaData::Public }
 
68
    };
 
69
    metaObj = QMetaObject::new_metaobject(
 
70
        "QgsMapLayerRegistry", parentObject,
 
71
        0, 0,
 
72
        signal_tbl, 3,
 
73
#ifndef QT_NO_PROPERTIES
 
74
        0, 0,
 
75
        0, 0,
 
76
#endif // QT_NO_PROPERTIES
 
77
        0, 0 );
 
78
    cleanUp_QgsMapLayerRegistry.setMetaObject( metaObj );
 
79
    return metaObj;
 
80
}
 
81
 
 
82
void* QgsMapLayerRegistry::qt_cast( const char* clname )
 
83
{
 
84
    if ( !qstrcmp( clname, "QgsMapLayerRegistry" ) )
 
85
        return this;
 
86
    return QObject::qt_cast( clname );
 
87
}
 
88
 
 
89
// SIGNAL layerWillBeRemoved
 
90
void QgsMapLayerRegistry::layerWillBeRemoved( QString t0 )
 
91
{
 
92
    activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
 
93
}
 
94
 
 
95
#include <qobjectdefs.h>
 
96
#include <qsignalslotimp.h>
 
97
 
 
98
// SIGNAL layerWasAdded
 
99
void QgsMapLayerRegistry::layerWasAdded( QgsMapLayer* t0 )
 
100
{
 
101
    if ( signalsBlocked() )
 
102
        return;
 
103
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 1 );
 
104
    if ( !clist )
 
105
        return;
 
106
    QUObject o[2];
 
107
    static_QUType_ptr.set(o+1,t0);
 
108
    activate_signal( clist, o );
 
109
}
 
110
 
 
111
// SIGNAL removedAll
 
112
void QgsMapLayerRegistry::removedAll()
 
113
{
 
114
    activate_signal( staticMetaObject()->signalOffset() + 2 );
 
115
}
 
116
 
 
117
bool QgsMapLayerRegistry::qt_invoke( int _id, QUObject* _o )
 
118
{
 
119
    return QObject::qt_invoke(_id,_o);
 
120
}
 
121
 
 
122
bool QgsMapLayerRegistry::qt_emit( int _id, QUObject* _o )
 
123
{
 
124
    switch ( _id - staticMetaObject()->signalOffset() ) {
 
125
    case 0: layerWillBeRemoved((QString)static_QUType_QString.get(_o+1)); break;
 
126
    case 1: layerWasAdded((QgsMapLayer*)static_QUType_ptr.get(_o+1)); break;
 
127
    case 2: removedAll(); break;
 
128
    default:
 
129
        return QObject::qt_emit(_id,_o);
 
130
    }
 
131
    return TRUE;
 
132
}
 
133
#ifndef QT_NO_PROPERTIES
 
134
 
 
135
bool QgsMapLayerRegistry::qt_property( int id, int f, QVariant* v)
 
136
{
 
137
    return QObject::qt_property( id, f, v);
 
138
}
 
139
 
 
140
bool QgsMapLayerRegistry::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
 
141
#endif // QT_NO_PROPERTIES