1
/****************************************************************************
2
** QMainWindow meta object code from reading C++ file 'qmainwindow.h'
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 $)
7
** WARNING! All changes made in this file will be lost!
8
*****************************************************************************/
11
#include "../../widgets/qmainwindow.h"
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.8b. It"
18
#error "cannot be used with the include files from this version of Qt."
19
#error "(The moc has changed too much.)"
23
const char *QMainWindow::className() const
28
QMetaObject *QMainWindow::metaObj = 0;
29
static QMetaObjectCleanUp cleanUp_QMainWindow( "QMainWindow", &QMainWindow::staticMetaObject );
31
#ifndef QT_NO_TRANSLATION
32
QString QMainWindow::tr( const char *s, const char *c )
35
return qApp->translate( "QMainWindow", s, c, QApplication::DefaultCodec );
37
return QString::fromLatin1( s );
39
#ifndef QT_NO_TRANSLATION_UTF8
40
QString QMainWindow::trUtf8( const char *s, const char *c )
43
return qApp->translate( "QMainWindow", s, c, QApplication::UnicodeUTF8 );
45
return QString::fromUtf8( s );
47
#endif // QT_NO_TRANSLATION_UTF8
49
#endif // QT_NO_TRANSLATION
51
QMetaObject* QMainWindow::staticMetaObject()
55
QMetaObject* parentObject = QWidget::staticMetaObject();
56
static const QUParameter param_slot_0[] = {
57
{ 0, &static_QUType_bool, 0, QUParameter::In }
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 }
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 }
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 }
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 }
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 }
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 }
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 }
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 }
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 }
117
static const QUParameter param_signal_0[] = {
118
{ 0, &static_QUType_bool, 0, QUParameter::In }
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 }
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 }
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 }
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 }
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 }
147
#endif // QT_NO_PROPERTIES
148
metaObj = QMetaObject::new_metaobject(
149
"QMainWindow", parentObject,
152
#ifndef QT_NO_PROPERTIES
155
#endif // QT_NO_PROPERTIES
157
cleanUp_QMainWindow.setMetaObject( metaObj );
161
void* QMainWindow::qt_cast( const char* clname )
163
if ( !qstrcmp( clname, "QMainWindow" ) )
165
return QWidget::qt_cast( clname );
168
// SIGNAL pixmapSizeChanged
169
void QMainWindow::pixmapSizeChanged( bool t0 )
171
activate_signal_bool( staticMetaObject()->signalOffset() + 0, t0 );
174
// SIGNAL usesTextLabelChanged
175
void QMainWindow::usesTextLabelChanged( bool t0 )
177
activate_signal_bool( staticMetaObject()->signalOffset() + 1, t0 );
180
#include <qobjectdefs.h>
181
#include <qsignalslotimp.h>
183
// SIGNAL dockWindowPositionChanged
184
void QMainWindow::dockWindowPositionChanged( QDockWindow* t0 )
186
if ( signalsBlocked() )
188
QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 2 );
192
static_QUType_ptr.set(o+1,t0);
193
activate_signal( clist, o );
196
// SIGNAL toolBarPositionChanged
197
void QMainWindow::toolBarPositionChanged( QToolBar* t0 )
199
if ( signalsBlocked() )
201
QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 3 );
205
static_QUType_ptr.set(o+1,t0);
206
activate_signal( clist, o );
209
bool QMainWindow::qt_invoke( int _id, QUObject* _o )
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;
228
return QWidget::qt_invoke( _id, _o );
233
bool QMainWindow::qt_emit( int _id, QUObject* _o )
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;
241
return QWidget::qt_emit(_id,_o);
245
#ifndef QT_NO_PROPERTIES
247
bool QMainWindow::qt_property( int id, int f, QVariant* v)
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;
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;
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;
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;
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;
281
return QWidget::qt_property( id, f, v );
286
bool QMainWindow::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
287
#endif // QT_NO_PROPERTIES