source: trunk/geant4/interfaces/basic/src/G4UIQt_moc.cc@ 614

Last change on this file since 614 was 608, checked in by garnier, 18 years ago

r657@mac-90108: laurentgarnier | 2007-11-15 19:44:52 +0100
ajout d un flag pour debug

File size: 8.5 KB
RevLine 
[514]1/****************************************************************************
[606]2** G4UIQt meta object code from reading C++ file 'G4UIQt.hh'
3**
4** Created: Tue Nov 13 18:13:09 2007
[608]5** by: The Qt MOC ($Id: G4UIQt_moc.cc,v 1.8 2007/11/15 18:24:28 lgarnier Exp $)
[606]6**
7** WARNING! All changes made in this file will be lost!
8*****************************************************************************/
9
10#ifdef G4UI_BUILD_QT_SESSION
11
12#undef QT_NO_COMPAT
13#include "../include/G4UIQt.hh"
14#include <qmetaobject.h>
15#include <qapplication.h>
16
17#if QT_VERSION < 0x040000
18
19#include <private/qucomextra_p.h>
20#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
[608]21#error "This file was generated using the moc from 3.3.8. It"
[606]22#error "cannot be used with the include files from this version of Qt."
23#error "(The moc has changed too much.)"
24#endif
25
26const char *G4UIQt::className() const
27{
28 return "G4UIQt";
29}
30
31QMetaObject *G4UIQt::metaObj = 0;
32static QMetaObjectCleanUp cleanUp_G4UIQt( "G4UIQt", &G4UIQt::staticMetaObject );
33
34#ifndef QT_NO_TRANSLATION
35QString G4UIQt::tr( const char *s, const char *c )
36{
37 if ( qApp )
38 return qApp->translate( "G4UIQt", s, c, QApplication::DefaultCodec );
39 else
40 return QString::fromLatin1( s );
41}
42#ifndef QT_NO_TRANSLATION_UTF8
43QString G4UIQt::trUtf8( const char *s, const char *c )
44{
45 if ( qApp )
46 return qApp->translate( "G4UIQt", s, c, QApplication::UnicodeUTF8 );
47 else
48 return QString::fromUtf8( s );
49}
50#endif // QT_NO_TRANSLATION_UTF8
51
52#endif // QT_NO_TRANSLATION
53
54QMetaObject* G4UIQt::staticMetaObject()
55{
56 if ( metaObj )
57 return metaObj;
58 QMetaObject* parentObject = QObject::staticMetaObject();
[608]59 static const QUMethod slot_0 = {"ExitSession", 0, 0 };
60 static const QUMethod slot_1 = {"ClearButtonCallback", 0, 0 };
61 static const QUMethod slot_2 = {"CommandEnteredCallback", 0, 0 };
62 static const QUParameter param_slot_3[] = {
[606]63 { 0, &static_QUType_QString, 0, QUParameter::In }
64 };
[608]65 static const QUMethod slot_3 = {"ButtonCallback", 1, param_slot_3 };
66 static const QUMethod slot_4 = {"HelpTreeClicCallback", 0, 0 };
67 static const QUParameter param_slot_5[] = {
68 { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In },
[606]69 { 0, &static_QUType_int, 0, QUParameter::In }
70 };
[608]71 static const QUMethod slot_5 = {"HelpTreeDoubleClicCallback", 2, param_slot_5 };
72 static const QUMethod slot_6 = {"ShowHelpCallback", 0, 0 };
73 static const QUMethod slot_7 = {"CommandHistoryCallback", 0, 0 };
[606]74 static const QMetaData slot_tbl[] = {
[608]75 { "ExitSession()", &slot_0, QMetaData::Private },
76 { "ClearButtonCallback()", &slot_1, QMetaData::Private },
77 { "CommandEnteredCallback()", &slot_2, QMetaData::Private },
78 { "ButtonCallback(const QString&)", &slot_3, QMetaData::Private },
79 { "HelpTreeClicCallback()", &slot_4, QMetaData::Private },
80 { "HelpTreeDoubleClicCallback(QListViewItem*,int)", &slot_5, QMetaData::Private },
81 { "ShowHelpCallback()", &slot_6, QMetaData::Private },
82 { "CommandHistoryCallback()", &slot_7, QMetaData::Private }
[606]83 };
84 static const QUParameter param_signal_0[] = {
85 { "text", &static_QUType_QString, 0, QUParameter::In }
86 };
87 static const QUMethod signal_0 = {"myClicked", 1, param_signal_0 };
88 static const QMetaData signal_tbl[] = {
89 { "myClicked(const QString&)", &signal_0, QMetaData::Private }
90 };
91 metaObj = QMetaObject::new_metaobject(
92 "G4UIQt", parentObject,
[608]93 slot_tbl, 8,
[606]94 signal_tbl, 1,
95#ifndef QT_NO_PROPERTIES
96 0, 0,
97 0, 0,
98#endif // QT_NO_PROPERTIES
99 0, 0 );
100 cleanUp_G4UIQt.setMetaObject( metaObj );
101 return metaObj;
102}
103
104void* G4UIQt::qt_cast( const char* clname )
105{
106 if ( !qstrcmp( clname, "G4UIQt" ) )
107 return this;
108 if ( !qstrcmp( clname, "G4VBasicShell" ) )
109 return (G4VBasicShell*)this;
110 if ( !qstrcmp( clname, "G4VInteractiveSession" ) )
111 return (G4VInteractiveSession*)this;
112 return QObject::qt_cast( clname );
113}
114
115// SIGNAL myClicked
116void G4UIQt::myClicked( const QString& t0 )
117{
118 activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
119}
120
121bool G4UIQt::qt_invoke( int _id, QUObject* _o )
122{
123 switch ( _id - staticMetaObject()->slotOffset() ) {
[608]124 case 0: ExitSession(); break;
125 case 1: ClearButtonCallback(); break;
126 case 2: CommandEnteredCallback(); break;
127 case 3: ButtonCallback((const QString&)static_QUType_QString.get(_o+1)); break;
128 case 4: HelpTreeClicCallback(); break;
129 case 5: HelpTreeDoubleClicCallback((QListViewItem*)static_QUType_ptr.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
130 case 6: ShowHelpCallback(); break;
131 case 7: CommandHistoryCallback(); break;
[606]132 default:
133 return QObject::qt_invoke( _id, _o );
134 }
135 return TRUE;
136}
137
138bool G4UIQt::qt_emit( int _id, QUObject* _o )
139{
140 switch ( _id - staticMetaObject()->signalOffset() ) {
141 case 0: myClicked((const QString&)static_QUType_QString.get(_o+1)); break;
142 default:
143 return QObject::qt_emit(_id,_o);
144 }
145 return TRUE;
146}
147#ifndef QT_NO_PROPERTIES
148
149bool G4UIQt::qt_property( int id, int f, QVariant* v)
150{
151 return QObject::qt_property( id, f, v);
152}
153
154bool G4UIQt::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
155#endif // QT_NO_PROPERTIES
156
[608]157
[606]158#endif
159#endif
160
161
162/****************************************************************************
[514]163** Meta object code from reading C++ file 'G4UIQt.hh'
164**
[593]165** Created: Mon Oct 1 10:59:35 2007
[514]166** by: The Qt Meta Object Compiler version 59 (Qt 4.2.2)
167**
168** WARNING! All changes made in this file will be lost!
169*****************************************************************************/
170
[606]171#if QT_VERSION >= 0x040000
172
[593]173#ifdef G4UI_BUILD_QT_SESSION
174
[514]175#include "../include/G4UIQt.hh"
176#if !defined(Q_MOC_OUTPUT_REVISION)
177#error "The header file 'G4UIQt.hh' doesn't include <QObject>."
178#elif Q_MOC_OUTPUT_REVISION != 59
179#error "This file was generated using the moc from 4.2.2. It"
180#error "cannot be used with the include files from this version of Qt."
181#error "(The moc has changed too much.)"
182#endif
183
184static const uint qt_meta_data_G4UIQt[] = {
185
186 // content:
187 1, // revision
188 0, // classname
189 0, 0, // classinfo
[608]190 9, 10, // methods
[514]191 0, 0, // properties
192 0, 0, // enums/sets
193
194 // signals: signature, parameters, type, tag, flags
195 7, 26, 31, 31, 0x05,
196
197 // slots: signature, parameters, type, tag, flags
198 32, 31, 31, 31, 0x08,
[608]199 46, 31, 31, 31, 0x08,
200 68, 31, 31, 31, 0x08,
201 93, 31, 31, 31, 0x08,
202 117, 31, 31, 31, 0x08,
203 140, 189, 31, 31, 0x08,
204 191, 31, 31, 31, 0x08,
205 210, 31, 31, 31, 0x08,
[514]206
207 0 // eod
208};
209
210static const char qt_meta_stringdata_G4UIQt[] = {
211 "G4UIQt\0myClicked(QString)\0text\0\0"
[608]212 "ExitSession()\0ClearButtonCallback()\0"
213 "CommandEnteredCallback()\0"
[577]214 "ButtonCallback(QString)\0HelpTreeClicCallback()\0"
215 "HelpTreeDoubleClicCallback(QTreeWidgetItem*,int)\0"
216 ",\0ShowHelpCallback()\0CommandHistoryCallback()\0"
[514]217};
218
219const QMetaObject G4UIQt::staticMetaObject = {
220 { &QObject::staticMetaObject, qt_meta_stringdata_G4UIQt,
221 qt_meta_data_G4UIQt, 0 }
222};
223
224const QMetaObject *G4UIQt::metaObject() const
225{
226 return &staticMetaObject;
227}
228
229void *G4UIQt::qt_metacast(const char *_clname)
230{
231 if (!_clname) return 0;
232 if (!strcmp(_clname, qt_meta_stringdata_G4UIQt))
233 return static_cast<void*>(const_cast<G4UIQt*>(this));
234 if (!strcmp(_clname, "G4VBasicShell"))
235 return static_cast<G4VBasicShell*>(const_cast<G4UIQt*>(this));
236 if (!strcmp(_clname, "G4VInteractiveSession"))
237 return static_cast<G4VInteractiveSession*>(const_cast<G4UIQt*>(this));
238 return QObject::qt_metacast(_clname);
239}
240
241int G4UIQt::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
242{
243 _id = QObject::qt_metacall(_c, _id, _a);
244 if (_id < 0)
245 return _id;
246 if (_c == QMetaObject::InvokeMetaMethod) {
247 switch (_id) {
248 case 0: myClicked((*reinterpret_cast< const QString(*)>(_a[1]))); break;
[608]249 case 1: ExitSession(); break;
250 case 2: ClearButtonCallback(); break;
251 case 3: CommandEnteredCallback(); break;
252 case 4: ButtonCallback((*reinterpret_cast< const QString(*)>(_a[1]))); break;
253 case 5: HelpTreeClicCallback(); break;
254 case 6: HelpTreeDoubleClicCallback((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
255 case 7: ShowHelpCallback(); break;
256 case 8: CommandHistoryCallback(); break;
[514]257 }
[608]258 _id -= 9;
[514]259 }
260 return _id;
261}
262
263// SIGNAL 0
264void G4UIQt::myClicked(const QString & _t1)
265{
266 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
267 QMetaObject::activate(this, &staticMetaObject, 0, _a);
268}
[593]269
270#endif
[606]271
272#endif
Note: See TracBrowser for help on using the repository browser.