~ubuntu-branches/ubuntu/lucid/qt-x11-free/lucid

« back to all changes in this revision

Viewing changes to src/.moc/debug-shared-mt/moc_qmainwindow.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2009-11-09 14:37:51 UTC
  • mfrom: (0.32.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091109143751-ocohpw4y0j4yi20w
Tags: 3:3.3.8-b-6ubuntu1
* Merge with Debian, remaining changes:
 - Add kubuntu_06_fglrx_0_size_screen.dpatch work around fglrx reporting a 0 size screen.
   Closes https://bugs.launchpad.net/ubuntu/+source/qt-x11-free/+bug/81686
 - Add kubuntu_09_flickerfree_qiconview.dpatch to add
   double-buffering for the icon redraw - prevents flicker on window
   redrawing (LP: #209227)
 - No firebird/ibase build (remove build-dep, control entry, ibase
   ./configure option), firebird is not in Ubuntu main
 - Add debian/qt_plugins_3.3rc and debian/qtrc to set default style to plastique, edit libqt3-mt.install to install them

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
** QMainWindow meta object code from reading C++ file 'qmainwindow.h'
3
 
**
4
 
** Created: Mon Jan 21 16:30:49 2008
5
 
**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.3.8   edited Feb 2 14:59 $)
6
 
**
7
 
** WARNING! All changes made in this file will be lost!
8
 
*****************************************************************************/
9
 
 
10
 
#undef QT_NO_COMPAT
11
 
#include "../../widgets/qmainwindow.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.8b. 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
 
#include <qvariant.h>
23
 
const char *QMainWindow::className() const
24
 
{
25
 
    return "QMainWindow";
26
 
}
27
 
 
28
 
QMetaObject *QMainWindow::metaObj = 0;
29
 
static QMetaObjectCleanUp cleanUp_QMainWindow( "QMainWindow", &QMainWindow::staticMetaObject );
30
 
 
31
 
#ifndef QT_NO_TRANSLATION
32
 
QString QMainWindow::tr( const char *s, const char *c )
33
 
{
34
 
    if ( qApp )
35
 
        return qApp->translate( "QMainWindow", s, c, QApplication::DefaultCodec );
36
 
    else
37
 
        return QString::fromLatin1( s );
38
 
}
39
 
#ifndef QT_NO_TRANSLATION_UTF8
40
 
QString QMainWindow::trUtf8( const char *s, const char *c )
41
 
{
42
 
    if ( qApp )
43
 
        return qApp->translate( "QMainWindow", s, c, QApplication::UnicodeUTF8 );
44
 
    else
45
 
        return QString::fromUtf8( s );
46
 
}
47
 
#endif // QT_NO_TRANSLATION_UTF8
48
 
 
49
 
#endif // QT_NO_TRANSLATION
50
 
 
51
 
QMetaObject* QMainWindow::staticMetaObject()
52
 
{
53
 
    if ( metaObj )
54
 
        return metaObj;
55
 
    QMetaObject* parentObject = QWidget::staticMetaObject();
56
 
    static const QUParameter param_slot_0[] = {
57
 
        { 0, &static_QUType_bool, 0, QUParameter::In }
58
 
    };
59
 
    static const QUMethod slot_0 = {"setRightJustification", 1, param_slot_0 };
60
 
    static const QUParameter param_slot_1[] = {
61
 
        { 0, &static_QUType_bool, 0, QUParameter::In }
62
 
    };
63
 
    static const QUMethod slot_1 = {"setUsesBigPixmaps", 1, param_slot_1 };
64
 
    static const QUParameter param_slot_2[] = {
65
 
        { 0, &static_QUType_bool, 0, QUParameter::In }
66
 
    };
67
 
    static const QUMethod slot_2 = {"setUsesTextLabel", 1, param_slot_2 };
68
 
    static const QUParameter param_slot_3[] = {
69
 
        { 0, &static_QUType_bool, 0, QUParameter::In }
70
 
    };
71
 
    static const QUMethod slot_3 = {"setDockWindowsMovable", 1, param_slot_3 };
72
 
    static const QUParameter param_slot_4[] = {
73
 
        { 0, &static_QUType_bool, 0, QUParameter::In }
74
 
    };
75
 
    static const QUMethod slot_4 = {"setOpaqueMoving", 1, param_slot_4 };
76
 
    static const QUParameter param_slot_5[] = {
77
 
        { 0, &static_QUType_bool, 0, QUParameter::In }
78
 
    };
79
 
    static const QUMethod slot_5 = {"setDockMenuEnabled", 1, param_slot_5 };
80
 
    static const QUMethod slot_6 = {"whatsThis", 0, 0 };
81
 
    static const QUParameter param_slot_7[] = {
82
 
        { "dw", &static_QUType_ptr, "QDockWindow", QUParameter::In },
83
 
        { "a", &static_QUType_bool, 0, QUParameter::In }
84
 
    };
85
 
    static const QUMethod slot_7 = {"setAppropriate", 2, param_slot_7 };
86
 
    static const QUMethod slot_8 = {"customize", 0, 0 };
87
 
    static const QUParameter param_slot_9[] = {
88
 
        { 0, &static_QUType_bool, 0, QUParameter::In }
89
 
    };
90
 
    static const QUMethod slot_9 = {"setToolBarsMovable", 1, param_slot_9 };
91
 
    static const QUMethod slot_10 = {"setUpLayout", 0, 0 };
92
 
    static const QUParameter param_slot_11[] = {
93
 
        { 0, &static_QUType_bool, 0, QUParameter::Out },
94
 
        { "globalPos", &static_QUType_varptr, "\x0e", QUParameter::In }
95
 
    };
96
 
    static const QUMethod slot_11 = {"showDockMenu", 2, param_slot_11 };
97
 
    static const QUMethod slot_12 = {"menuAboutToShow", 0, 0 };
98
 
    static const QUMethod slot_13 = {"slotPlaceChanged", 0, 0 };
99
 
    static const QUMethod slot_14 = {"doLineUp", 0, 0 };
100
 
    static const QMetaData slot_tbl[] = {
101
 
        { "setRightJustification(bool)", &slot_0, QMetaData::Public },
102
 
        { "setUsesBigPixmaps(bool)", &slot_1, QMetaData::Public },
103
 
        { "setUsesTextLabel(bool)", &slot_2, QMetaData::Public },
104
 
        { "setDockWindowsMovable(bool)", &slot_3, QMetaData::Public },
105
 
        { "setOpaqueMoving(bool)", &slot_4, QMetaData::Public },
106
 
        { "setDockMenuEnabled(bool)", &slot_5, QMetaData::Public },
107
 
        { "whatsThis()", &slot_6, QMetaData::Public },
108
 
        { "setAppropriate(QDockWindow*,bool)", &slot_7, QMetaData::Public },
109
 
        { "customize()", &slot_8, QMetaData::Public },
110
 
        { "setToolBarsMovable(bool)", &slot_9, QMetaData::Public },
111
 
        { "setUpLayout()", &slot_10, QMetaData::Protected },
112
 
        { "showDockMenu(const QPoint&)", &slot_11, QMetaData::Protected },
113
 
        { "menuAboutToShow()", &slot_12, QMetaData::Protected },
114
 
        { "slotPlaceChanged()", &slot_13, QMetaData::Private },
115
 
        { "doLineUp()", &slot_14, QMetaData::Private }
116
 
    };
117
 
    static const QUParameter param_signal_0[] = {
118
 
        { 0, &static_QUType_bool, 0, QUParameter::In }
119
 
    };
120
 
    static const QUMethod signal_0 = {"pixmapSizeChanged", 1, param_signal_0 };
121
 
    static const QUParameter param_signal_1[] = {
122
 
        { 0, &static_QUType_bool, 0, QUParameter::In }
123
 
    };
124
 
    static const QUMethod signal_1 = {"usesTextLabelChanged", 1, param_signal_1 };
125
 
    static const QUParameter param_signal_2[] = {
126
 
        { 0, &static_QUType_ptr, "QDockWindow", QUParameter::In }
127
 
    };
128
 
    static const QUMethod signal_2 = {"dockWindowPositionChanged", 1, param_signal_2 };
129
 
    static const QUParameter param_signal_3[] = {
130
 
        { 0, &static_QUType_ptr, "QToolBar", QUParameter::In }
131
 
    };
132
 
    static const QUMethod signal_3 = {"toolBarPositionChanged", 1, param_signal_3 };
133
 
    static const QMetaData signal_tbl[] = {
134
 
        { "pixmapSizeChanged(bool)", &signal_0, QMetaData::Public },
135
 
        { "usesTextLabelChanged(bool)", &signal_1, QMetaData::Public },
136
 
        { "dockWindowPositionChanged(QDockWindow*)", &signal_2, QMetaData::Public },
137
 
        { "toolBarPositionChanged(QToolBar*)", &signal_3, QMetaData::Public }
138
 
    };
139
 
#ifndef QT_NO_PROPERTIES
140
 
    static const QMetaProperty props_tbl[5] = {
141
 
        { "bool","rightJustification", 0x12001103, &QMainWindow::metaObj, 0, -1 },
142
 
        { "bool","usesBigPixmaps", 0x12000103, &QMainWindow::metaObj, 0, -1 },
143
 
        { "bool","usesTextLabel", 0x12000103, &QMainWindow::metaObj, 0, -1 },
144
 
        { "bool","dockWindowsMovable", 0x12000103, &QMainWindow::metaObj, 0, -1 },
145
 
        { "bool","opaqueMoving", 0x12000103, &QMainWindow::metaObj, 0, -1 }
146
 
    };
147
 
#endif // QT_NO_PROPERTIES
148
 
    metaObj = QMetaObject::new_metaobject(
149
 
        "QMainWindow", parentObject,
150
 
        slot_tbl, 15,
151
 
        signal_tbl, 4,
152
 
#ifndef QT_NO_PROPERTIES
153
 
        props_tbl, 5,
154
 
        0, 0,
155
 
#endif // QT_NO_PROPERTIES
156
 
        0, 0 );
157
 
    cleanUp_QMainWindow.setMetaObject( metaObj );
158
 
    return metaObj;
159
 
}
160
 
 
161
 
void* QMainWindow::qt_cast( const char* clname )
162
 
{
163
 
    if ( !qstrcmp( clname, "QMainWindow" ) )
164
 
        return this;
165
 
    return QWidget::qt_cast( clname );
166
 
}
167
 
 
168
 
// SIGNAL pixmapSizeChanged
169
 
void QMainWindow::pixmapSizeChanged( bool t0 )
170
 
{
171
 
    activate_signal_bool( staticMetaObject()->signalOffset() + 0, t0 );
172
 
}
173
 
 
174
 
// SIGNAL usesTextLabelChanged
175
 
void QMainWindow::usesTextLabelChanged( bool t0 )
176
 
{
177
 
    activate_signal_bool( staticMetaObject()->signalOffset() + 1, t0 );
178
 
}
179
 
 
180
 
#include <qobjectdefs.h>
181
 
#include <qsignalslotimp.h>
182
 
 
183
 
// SIGNAL dockWindowPositionChanged
184
 
void QMainWindow::dockWindowPositionChanged( QDockWindow* t0 )
185
 
{
186
 
    if ( signalsBlocked() )
187
 
        return;
188
 
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 2 );
189
 
    if ( !clist )
190
 
        return;
191
 
    QUObject o[2];
192
 
    static_QUType_ptr.set(o+1,t0);
193
 
    activate_signal( clist, o );
194
 
}
195
 
 
196
 
// SIGNAL toolBarPositionChanged
197
 
void QMainWindow::toolBarPositionChanged( QToolBar* t0 )
198
 
{
199
 
    if ( signalsBlocked() )
200
 
        return;
201
 
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 3 );
202
 
    if ( !clist )
203
 
        return;
204
 
    QUObject o[2];
205
 
    static_QUType_ptr.set(o+1,t0);
206
 
    activate_signal( clist, o );
207
 
}
208
 
 
209
 
bool QMainWindow::qt_invoke( int _id, QUObject* _o )
210
 
{
211
 
    switch ( _id - staticMetaObject()->slotOffset() ) {
212
 
    case 0: setRightJustification((bool)static_QUType_bool.get(_o+1)); break;
213
 
    case 1: setUsesBigPixmaps((bool)static_QUType_bool.get(_o+1)); break;
214
 
    case 2: setUsesTextLabel((bool)static_QUType_bool.get(_o+1)); break;
215
 
    case 3: setDockWindowsMovable((bool)static_QUType_bool.get(_o+1)); break;
216
 
    case 4: setOpaqueMoving((bool)static_QUType_bool.get(_o+1)); break;
217
 
    case 5: setDockMenuEnabled((bool)static_QUType_bool.get(_o+1)); break;
218
 
    case 6: whatsThis(); break;
219
 
    case 7: setAppropriate((QDockWindow*)static_QUType_ptr.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break;
220
 
    case 8: customize(); break;
221
 
    case 9: setToolBarsMovable((bool)static_QUType_bool.get(_o+1)); break;
222
 
    case 10: setUpLayout(); break;
223
 
    case 11: static_QUType_bool.set(_o,showDockMenu((const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+1)))); break;
224
 
    case 12: menuAboutToShow(); break;
225
 
    case 13: slotPlaceChanged(); break;
226
 
    case 14: doLineUp(); break;
227
 
    default:
228
 
        return QWidget::qt_invoke( _id, _o );
229
 
    }
230
 
    return TRUE;
231
 
}
232
 
 
233
 
bool QMainWindow::qt_emit( int _id, QUObject* _o )
234
 
{
235
 
    switch ( _id - staticMetaObject()->signalOffset() ) {
236
 
    case 0: pixmapSizeChanged((bool)static_QUType_bool.get(_o+1)); break;
237
 
    case 1: usesTextLabelChanged((bool)static_QUType_bool.get(_o+1)); break;
238
 
    case 2: dockWindowPositionChanged((QDockWindow*)static_QUType_ptr.get(_o+1)); break;
239
 
    case 3: toolBarPositionChanged((QToolBar*)static_QUType_ptr.get(_o+1)); break;
240
 
    default:
241
 
        return QWidget::qt_emit(_id,_o);
242
 
    }
243
 
    return TRUE;
244
 
}
245
 
#ifndef QT_NO_PROPERTIES
246
 
 
247
 
bool QMainWindow::qt_property( int id, int f, QVariant* v)
248
 
{
249
 
    switch ( id - staticMetaObject()->propertyOffset() ) {
250
 
    case 0: switch( f ) {
251
 
        case 0: setRightJustification(v->asBool()); break;
252
 
        case 1: *v = QVariant( this->rightJustification(), 0 ); break;
253
 
        case 4: case 5: break;
254
 
        default: return FALSE;
255
 
    } break;
256
 
    case 1: switch( f ) {
257
 
        case 0: setUsesBigPixmaps(v->asBool()); break;
258
 
        case 1: *v = QVariant( this->usesBigPixmaps(), 0 ); break;
259
 
        case 3: case 4: case 5: break;
260
 
        default: return FALSE;
261
 
    } break;
262
 
    case 2: switch( f ) {
263
 
        case 0: setUsesTextLabel(v->asBool()); break;
264
 
        case 1: *v = QVariant( this->usesTextLabel(), 0 ); break;
265
 
        case 3: case 4: case 5: break;
266
 
        default: return FALSE;
267
 
    } break;
268
 
    case 3: switch( f ) {
269
 
        case 0: setDockWindowsMovable(v->asBool()); break;
270
 
        case 1: *v = QVariant( this->dockWindowsMovable(), 0 ); break;
271
 
        case 3: case 4: case 5: break;
272
 
        default: return FALSE;
273
 
    } break;
274
 
    case 4: switch( f ) {
275
 
        case 0: setOpaqueMoving(v->asBool()); break;
276
 
        case 1: *v = QVariant( this->opaqueMoving(), 0 ); break;
277
 
        case 3: case 4: case 5: break;
278
 
        default: return FALSE;
279
 
    } break;
280
 
    default:
281
 
        return QWidget::qt_property( id, f, v );
282
 
    }
283
 
    return TRUE;
284
 
}
285
 
 
286
 
bool QMainWindow::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
287
 
#endif // QT_NO_PROPERTIES