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

« back to all changes in this revision

Viewing changes to src/qgslegend.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
 
** QgsLegend meta object code from reading C++ file 'qgslegend.h'
3
 
**
4
 
** Created: Fri Nov 4 14:08:55 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 "qgslegend.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 *QgsLegend::className() const
23
 
{
24
 
    return "QgsLegend";
25
 
}
26
 
 
27
 
QMetaObject *QgsLegend::metaObj = 0;
28
 
static QMetaObjectCleanUp cleanUp_QgsLegend( "QgsLegend", &QgsLegend::staticMetaObject );
29
 
 
30
 
#ifndef QT_NO_TRANSLATION
31
 
QString QgsLegend::tr( const char *s, const char *c )
32
 
{
33
 
    if ( qApp )
34
 
        return qApp->translate( "QgsLegend", s, c, QApplication::DefaultCodec );
35
 
    else
36
 
        return QString::fromLatin1( s );
37
 
}
38
 
#ifndef QT_NO_TRANSLATION_UTF8
39
 
QString QgsLegend::trUtf8( const char *s, const char *c )
40
 
{
41
 
    if ( qApp )
42
 
        return qApp->translate( "QgsLegend", 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* QgsLegend::staticMetaObject()
51
 
{
52
 
    if ( metaObj )
53
 
        return metaObj;
54
 
    QMetaObject* parentObject = QListView::staticMetaObject();
55
 
    static const QUParameter param_slot_0[] = {
56
 
        { "layer", &static_QUType_ptr, "QgsMapLayer", QUParameter::In }
57
 
    };
58
 
    static const QUMethod slot_0 = {"addLayer", 1, param_slot_0 };
59
 
    static const QUParameter param_slot_1[] = {
60
 
        { "layer_key", &static_QUType_QString, 0, QUParameter::In }
61
 
    };
62
 
    static const QUMethod slot_1 = {"removeLayer", 1, param_slot_1 };
63
 
    static const QUMethod slot_2 = {"removeAll", 0, 0 };
64
 
    static const QUParameter param_slot_3[] = {
65
 
        { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In }
66
 
    };
67
 
    static const QUMethod slot_3 = {"updateLegendItem", 1, param_slot_3 };
68
 
    static const QMetaData slot_tbl[] = {
69
 
        { "addLayer(QgsMapLayer*)", &slot_0, QMetaData::Public },
70
 
        { "removeLayer(QString)", &slot_1, QMetaData::Public },
71
 
        { "removeAll()", &slot_2, QMetaData::Public },
72
 
        { "updateLegendItem(QListViewItem*)", &slot_3, QMetaData::Public }
73
 
    };
74
 
    static const QUParameter param_signal_0[] = {
75
 
        { "lv", &static_QUType_ptr, "QgsLegend", QUParameter::In }
76
 
    };
77
 
    static const QUMethod signal_0 = {"zOrderChanged", 1, param_signal_0 };
78
 
    static const QUParameter param_signal_1[] = {
79
 
        { "layer_key", &static_QUType_QString, 0, QUParameter::In }
80
 
    };
81
 
    static const QUMethod signal_1 = {"layerRemoved", 1, param_signal_1 };
82
 
    static const QMetaData signal_tbl[] = {
83
 
        { "zOrderChanged(QgsLegend*)", &signal_0, QMetaData::Private },
84
 
        { "layerRemoved(QString)", &signal_1, QMetaData::Private }
85
 
    };
86
 
    metaObj = QMetaObject::new_metaobject(
87
 
        "QgsLegend", parentObject,
88
 
        slot_tbl, 4,
89
 
        signal_tbl, 2,
90
 
#ifndef QT_NO_PROPERTIES
91
 
        0, 0,
92
 
        0, 0,
93
 
#endif // QT_NO_PROPERTIES
94
 
        0, 0 );
95
 
    cleanUp_QgsLegend.setMetaObject( metaObj );
96
 
    return metaObj;
97
 
}
98
 
 
99
 
void* QgsLegend::qt_cast( const char* clname )
100
 
{
101
 
    if ( !qstrcmp( clname, "QgsLegend" ) )
102
 
        return this;
103
 
    return QListView::qt_cast( clname );
104
 
}
105
 
 
106
 
#include <qobjectdefs.h>
107
 
#include <qsignalslotimp.h>
108
 
 
109
 
// SIGNAL zOrderChanged
110
 
void QgsLegend::zOrderChanged( QgsLegend* t0 )
111
 
{
112
 
    if ( signalsBlocked() )
113
 
        return;
114
 
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
115
 
    if ( !clist )
116
 
        return;
117
 
    QUObject o[2];
118
 
    static_QUType_ptr.set(o+1,t0);
119
 
    activate_signal( clist, o );
120
 
}
121
 
 
122
 
// SIGNAL layerRemoved
123
 
void QgsLegend::layerRemoved( QString t0 )
124
 
{
125
 
    activate_signal( staticMetaObject()->signalOffset() + 1, t0 );
126
 
}
127
 
 
128
 
bool QgsLegend::qt_invoke( int _id, QUObject* _o )
129
 
{
130
 
    switch ( _id - staticMetaObject()->slotOffset() ) {
131
 
    case 0: addLayer((QgsMapLayer*)static_QUType_ptr.get(_o+1)); break;
132
 
    case 1: removeLayer((QString)static_QUType_QString.get(_o+1)); break;
133
 
    case 2: removeAll(); break;
134
 
    case 3: updateLegendItem((QListViewItem*)static_QUType_ptr.get(_o+1)); break;
135
 
    default:
136
 
        return QListView::qt_invoke( _id, _o );
137
 
    }
138
 
    return TRUE;
139
 
}
140
 
 
141
 
bool QgsLegend::qt_emit( int _id, QUObject* _o )
142
 
{
143
 
    switch ( _id - staticMetaObject()->signalOffset() ) {
144
 
    case 0: zOrderChanged((QgsLegend*)static_QUType_ptr.get(_o+1)); break;
145
 
    case 1: layerRemoved((QString)static_QUType_QString.get(_o+1)); break;
146
 
    default:
147
 
        return QListView::qt_emit(_id,_o);
148
 
    }
149
 
    return TRUE;
150
 
}
151
 
#ifndef QT_NO_PROPERTIES
152
 
 
153
 
bool QgsLegend::qt_property( int id, int f, QVariant* v)
154
 
{
155
 
    return QListView::qt_property( id, f, v);
156
 
}
157
 
 
158
 
bool QgsLegend::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
159
 
#endif // QT_NO_PROPERTIES