[514] | 1 | /**************************************************************************** |
---|
[606] | 2 | ** G4UIQt meta object code from reading C++ file 'G4UIQt.hh' |
---|
| 3 | ** |
---|
| 4 | ** Created: Tue Nov 13 18:13:09 2007 |
---|
[632] | 5 | ** by: The Qt MOC ($Id: G4UIQt_moc.cc,v 1.9 2007/11/30 14:28:50 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 | |
---|
[624] | 17 | #if defined(Q_MOC_OUTPUT_REVISION) && (Q_MOC_OUTPUT_REVISION == 26) |
---|
[606] | 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 | |
---|
| 26 | const char *G4UIQt::className() const |
---|
| 27 | { |
---|
| 28 | return "G4UIQt"; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | QMetaObject *G4UIQt::metaObj = 0; |
---|
| 32 | static QMetaObjectCleanUp cleanUp_G4UIQt( "G4UIQt", &G4UIQt::staticMetaObject ); |
---|
| 33 | |
---|
| 34 | #ifndef QT_NO_TRANSLATION |
---|
| 35 | QString 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 |
---|
| 43 | QString 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 | |
---|
| 54 | QMetaObject* 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[] = { |
---|
[619] | 68 | { 0, &static_QUType_ptr, "QListViewItem", QUParameter::In } |
---|
[606] | 69 | }; |
---|
[619] | 70 | static const QUMethod slot_5 = {"HelpTreeDoubleClicCallback", 1, param_slot_5 }; |
---|
[608] | 71 | static const QUMethod slot_6 = {"ShowHelpCallback", 0, 0 }; |
---|
| 72 | static const QUMethod slot_7 = {"CommandHistoryCallback", 0, 0 }; |
---|
[606] | 73 | static const QMetaData slot_tbl[] = { |
---|
[608] | 74 | { "ExitSession()", &slot_0, QMetaData::Private }, |
---|
| 75 | { "ClearButtonCallback()", &slot_1, QMetaData::Private }, |
---|
| 76 | { "CommandEnteredCallback()", &slot_2, QMetaData::Private }, |
---|
| 77 | { "ButtonCallback(const QString&)", &slot_3, QMetaData::Private }, |
---|
| 78 | { "HelpTreeClicCallback()", &slot_4, QMetaData::Private }, |
---|
[619] | 79 | { "HelpTreeDoubleClicCallback(QListViewItem*)", &slot_5, QMetaData::Private }, |
---|
[608] | 80 | { "ShowHelpCallback()", &slot_6, QMetaData::Private }, |
---|
| 81 | { "CommandHistoryCallback()", &slot_7, QMetaData::Private } |
---|
[606] | 82 | }; |
---|
| 83 | static const QUParameter param_signal_0[] = { |
---|
| 84 | { "text", &static_QUType_QString, 0, QUParameter::In } |
---|
| 85 | }; |
---|
| 86 | static const QUMethod signal_0 = {"myClicked", 1, param_signal_0 }; |
---|
| 87 | static const QMetaData signal_tbl[] = { |
---|
| 88 | { "myClicked(const QString&)", &signal_0, QMetaData::Private } |
---|
| 89 | }; |
---|
| 90 | metaObj = QMetaObject::new_metaobject( |
---|
| 91 | "G4UIQt", parentObject, |
---|
[608] | 92 | slot_tbl, 8, |
---|
[606] | 93 | signal_tbl, 1, |
---|
| 94 | #ifndef QT_NO_PROPERTIES |
---|
| 95 | 0, 0, |
---|
| 96 | 0, 0, |
---|
| 97 | #endif // QT_NO_PROPERTIES |
---|
| 98 | 0, 0 ); |
---|
| 99 | cleanUp_G4UIQt.setMetaObject( metaObj ); |
---|
| 100 | return metaObj; |
---|
| 101 | } |
---|
| 102 | |
---|
| 103 | void* G4UIQt::qt_cast( const char* clname ) |
---|
| 104 | { |
---|
| 105 | if ( !qstrcmp( clname, "G4UIQt" ) ) |
---|
| 106 | return this; |
---|
| 107 | if ( !qstrcmp( clname, "G4VBasicShell" ) ) |
---|
| 108 | return (G4VBasicShell*)this; |
---|
| 109 | if ( !qstrcmp( clname, "G4VInteractiveSession" ) ) |
---|
| 110 | return (G4VInteractiveSession*)this; |
---|
| 111 | return QObject::qt_cast( clname ); |
---|
| 112 | } |
---|
| 113 | |
---|
| 114 | // SIGNAL myClicked |
---|
| 115 | void G4UIQt::myClicked( const QString& t0 ) |
---|
| 116 | { |
---|
| 117 | activate_signal( staticMetaObject()->signalOffset() + 0, t0 ); |
---|
| 118 | } |
---|
| 119 | |
---|
| 120 | bool G4UIQt::qt_invoke( int _id, QUObject* _o ) |
---|
| 121 | { |
---|
| 122 | switch ( _id - staticMetaObject()->slotOffset() ) { |
---|
[608] | 123 | case 0: ExitSession(); break; |
---|
| 124 | case 1: ClearButtonCallback(); break; |
---|
| 125 | case 2: CommandEnteredCallback(); break; |
---|
| 126 | case 3: ButtonCallback((const QString&)static_QUType_QString.get(_o+1)); break; |
---|
| 127 | case 4: HelpTreeClicCallback(); break; |
---|
[619] | 128 | case 5: HelpTreeDoubleClicCallback((QListViewItem*)static_QUType_ptr.get(_o+1)); break; |
---|
[608] | 129 | case 6: ShowHelpCallback(); break; |
---|
| 130 | case 7: CommandHistoryCallback(); break; |
---|
[606] | 131 | default: |
---|
| 132 | return QObject::qt_invoke( _id, _o ); |
---|
| 133 | } |
---|
| 134 | return TRUE; |
---|
| 135 | } |
---|
| 136 | |
---|
| 137 | bool G4UIQt::qt_emit( int _id, QUObject* _o ) |
---|
| 138 | { |
---|
| 139 | switch ( _id - staticMetaObject()->signalOffset() ) { |
---|
| 140 | case 0: myClicked((const QString&)static_QUType_QString.get(_o+1)); break; |
---|
| 141 | default: |
---|
| 142 | return QObject::qt_emit(_id,_o); |
---|
| 143 | } |
---|
| 144 | return TRUE; |
---|
| 145 | } |
---|
| 146 | #ifndef QT_NO_PROPERTIES |
---|
| 147 | |
---|
| 148 | bool G4UIQt::qt_property( int id, int f, QVariant* v) |
---|
| 149 | { |
---|
| 150 | return QObject::qt_property( id, f, v); |
---|
| 151 | } |
---|
| 152 | |
---|
| 153 | bool G4UIQt::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; } |
---|
| 154 | #endif // QT_NO_PROPERTIES |
---|
| 155 | |
---|
[608] | 156 | |
---|
[606] | 157 | #endif |
---|
| 158 | #endif |
---|
| 159 | |
---|
| 160 | |
---|
[624] | 161 | #if defined(Q_MOC_OUTPUT_REVISION) && (Q_MOC_OUTPUT_REVISION == 58) |
---|
[619] | 162 | |
---|
[615] | 163 | /**************************************************************************** |
---|
| 164 | ** Meta object code from reading C++ file 'G4UIQt.hh' |
---|
| 165 | ** |
---|
| 166 | ** Created: jeu. 22. nov. 13:59:01 2007 |
---|
| 167 | ** by: The Qt Meta Object Compiler version 58 (Qt 4.0.1) |
---|
| 168 | ** |
---|
| 169 | ** WARNING! All changes made in this file will be lost! |
---|
| 170 | *****************************************************************************/ |
---|
| 171 | |
---|
| 172 | #include "../include/G4UIQt.hh" |
---|
| 173 | #if !defined(Q_MOC_OUTPUT_REVISION) |
---|
| 174 | #error "The header file 'G4UIQt.hh' doesn't include <QObject>." |
---|
| 175 | #elif Q_MOC_OUTPUT_REVISION != 58 |
---|
| 176 | #error "This file was generated using the moc from 4.0.1. It" |
---|
| 177 | #error "cannot be used with the include files from this version of Qt." |
---|
| 178 | #error "(The moc has changed too much.)" |
---|
| 179 | #endif |
---|
| 180 | |
---|
| 181 | static const uint qt_meta_data_G4UIQt[] = { |
---|
| 182 | |
---|
| 183 | // content: |
---|
| 184 | 1, // revision |
---|
| 185 | 0, // classname |
---|
| 186 | 0, 0, // classinfo |
---|
| 187 | 8, 10, // methods |
---|
| 188 | 0, 0, // properties |
---|
| 189 | 0, 0, // enums/sets |
---|
| 190 | |
---|
| 191 | // signals: signature, parameters, type, tag, flags |
---|
| 192 | 13, 8, 7, 7, 0x05, |
---|
| 193 | |
---|
| 194 | // slots: signature, parameters, type, tag, flags |
---|
| 195 | 32, 7, 7, 7, 0x08, |
---|
| 196 | 46, 7, 7, 7, 0x08, |
---|
| 197 | 68, 7, 7, 7, 0x08, |
---|
| 198 | 93, 7, 7, 7, 0x08, |
---|
| 199 | 117, 7, 7, 7, 0x08, |
---|
| 200 | 140, 7, 7, 7, 0x08, |
---|
| 201 | 159, 7, 7, 7, 0x08, |
---|
| 202 | |
---|
| 203 | 0 // eod |
---|
| 204 | }; |
---|
| 205 | |
---|
| 206 | static const char qt_meta_stringdata_G4UIQt[] = { |
---|
| 207 | "G4UIQt\0\0text\0myClicked(QString)\0ExitSession()\0" |
---|
| 208 | "ClearButtonCallback()\0CommandEnteredCallback()\0" |
---|
| 209 | "ButtonCallback(QString)\0HelpTreeClicCallback()\0ShowHelpCallback()\0" |
---|
| 210 | "CommandHistoryCallback()\0" |
---|
| 211 | }; |
---|
| 212 | |
---|
| 213 | const QMetaObject G4UIQt::staticMetaObject = { |
---|
| 214 | { &QObject::staticMetaObject, qt_meta_stringdata_G4UIQt, |
---|
| 215 | qt_meta_data_G4UIQt, 0 } |
---|
| 216 | }; |
---|
| 217 | |
---|
| 218 | const QMetaObject *G4UIQt::metaObject() const |
---|
| 219 | { |
---|
| 220 | return &staticMetaObject; |
---|
| 221 | } |
---|
| 222 | |
---|
| 223 | void *G4UIQt::qt_metacast(const char *_clname) |
---|
| 224 | { |
---|
| 225 | if (!_clname) return 0; |
---|
| 226 | if (!strcmp(_clname, qt_meta_stringdata_G4UIQt)) |
---|
| 227 | return static_cast<void*>(const_cast<G4UIQt*>(this)); |
---|
| 228 | if (!strcmp(_clname, "G4VBasicShell")) |
---|
| 229 | return static_cast<G4VBasicShell*>(const_cast<G4UIQt*>(this)); |
---|
| 230 | if (!strcmp(_clname, "G4VInteractiveSession")) |
---|
| 231 | return static_cast<G4VInteractiveSession*>(const_cast<G4UIQt*>(this)); |
---|
| 232 | return QObject::qt_metacast(_clname); |
---|
| 233 | } |
---|
| 234 | |
---|
| 235 | int G4UIQt::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
---|
| 236 | { |
---|
| 237 | _id = QObject::qt_metacall(_c, _id, _a); |
---|
| 238 | if (_id < 0) |
---|
| 239 | return _id; |
---|
| 240 | if (_c == QMetaObject::InvokeMetaMethod) { |
---|
| 241 | switch (_id) { |
---|
| 242 | case 0: myClicked(*(QString*)_a[1]); break; |
---|
| 243 | case 1: ExitSession(); break; |
---|
| 244 | case 2: ClearButtonCallback(); break; |
---|
| 245 | case 3: CommandEnteredCallback(); break; |
---|
| 246 | case 4: ButtonCallback(*(QString*)_a[1]); break; |
---|
| 247 | case 5: HelpTreeClicCallback(); break; |
---|
| 248 | case 6: ShowHelpCallback(); break; |
---|
| 249 | case 7: CommandHistoryCallback(); break; |
---|
| 250 | } |
---|
| 251 | _id -= 8; |
---|
| 252 | } |
---|
| 253 | return _id; |
---|
| 254 | } |
---|
| 255 | |
---|
| 256 | // SIGNAL 0 |
---|
| 257 | void G4UIQt::myClicked(const QString & _t1) |
---|
| 258 | { |
---|
| 259 | void *_a[] = { 0, (void*)&_t1 }; |
---|
| 260 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
---|
| 261 | } |
---|
| 262 | #else |
---|
| 263 | |
---|
[624] | 264 | #if defined(Q_MOC_OUTPUT_REVISION) && (Q_MOC_OUTPUT_REVISION == 59) |
---|
[619] | 265 | |
---|
[606] | 266 | /**************************************************************************** |
---|
[514] | 267 | ** Meta object code from reading C++ file 'G4UIQt.hh' |
---|
| 268 | ** |
---|
[593] | 269 | ** Created: Mon Oct 1 10:59:35 2007 |
---|
[514] | 270 | ** by: The Qt Meta Object Compiler version 59 (Qt 4.2.2) |
---|
| 271 | ** |
---|
| 272 | ** WARNING! All changes made in this file will be lost! |
---|
| 273 | *****************************************************************************/ |
---|
| 274 | |
---|
[606] | 275 | |
---|
[593] | 276 | |
---|
[514] | 277 | #include "../include/G4UIQt.hh" |
---|
| 278 | #if !defined(Q_MOC_OUTPUT_REVISION) |
---|
| 279 | #error "The header file 'G4UIQt.hh' doesn't include <QObject>." |
---|
| 280 | #elif Q_MOC_OUTPUT_REVISION != 59 |
---|
| 281 | #error "This file was generated using the moc from 4.2.2. It" |
---|
| 282 | #error "cannot be used with the include files from this version of Qt." |
---|
| 283 | #error "(The moc has changed too much.)" |
---|
| 284 | #endif |
---|
| 285 | |
---|
| 286 | static const uint qt_meta_data_G4UIQt[] = { |
---|
| 287 | |
---|
| 288 | // content: |
---|
| 289 | 1, // revision |
---|
| 290 | 0, // classname |
---|
| 291 | 0, 0, // classinfo |
---|
[608] | 292 | 9, 10, // methods |
---|
[514] | 293 | 0, 0, // properties |
---|
| 294 | 0, 0, // enums/sets |
---|
| 295 | |
---|
| 296 | // signals: signature, parameters, type, tag, flags |
---|
| 297 | 7, 26, 31, 31, 0x05, |
---|
| 298 | |
---|
| 299 | // slots: signature, parameters, type, tag, flags |
---|
| 300 | 32, 31, 31, 31, 0x08, |
---|
[608] | 301 | 46, 31, 31, 31, 0x08, |
---|
| 302 | 68, 31, 31, 31, 0x08, |
---|
| 303 | 93, 31, 31, 31, 0x08, |
---|
| 304 | 117, 31, 31, 31, 0x08, |
---|
| 305 | 140, 189, 31, 31, 0x08, |
---|
| 306 | 191, 31, 31, 31, 0x08, |
---|
| 307 | 210, 31, 31, 31, 0x08, |
---|
[514] | 308 | |
---|
| 309 | 0 // eod |
---|
| 310 | }; |
---|
| 311 | |
---|
| 312 | static const char qt_meta_stringdata_G4UIQt[] = { |
---|
| 313 | "G4UIQt\0myClicked(QString)\0text\0\0" |
---|
[608] | 314 | "ExitSession()\0ClearButtonCallback()\0" |
---|
| 315 | "CommandEnteredCallback()\0" |
---|
[577] | 316 | "ButtonCallback(QString)\0HelpTreeClicCallback()\0" |
---|
| 317 | "HelpTreeDoubleClicCallback(QTreeWidgetItem*,int)\0" |
---|
| 318 | ",\0ShowHelpCallback()\0CommandHistoryCallback()\0" |
---|
[514] | 319 | }; |
---|
| 320 | |
---|
| 321 | const QMetaObject G4UIQt::staticMetaObject = { |
---|
| 322 | { &QObject::staticMetaObject, qt_meta_stringdata_G4UIQt, |
---|
| 323 | qt_meta_data_G4UIQt, 0 } |
---|
| 324 | }; |
---|
| 325 | |
---|
| 326 | const QMetaObject *G4UIQt::metaObject() const |
---|
| 327 | { |
---|
| 328 | return &staticMetaObject; |
---|
| 329 | } |
---|
| 330 | |
---|
| 331 | void *G4UIQt::qt_metacast(const char *_clname) |
---|
| 332 | { |
---|
| 333 | if (!_clname) return 0; |
---|
| 334 | if (!strcmp(_clname, qt_meta_stringdata_G4UIQt)) |
---|
| 335 | return static_cast<void*>(const_cast<G4UIQt*>(this)); |
---|
| 336 | if (!strcmp(_clname, "G4VBasicShell")) |
---|
| 337 | return static_cast<G4VBasicShell*>(const_cast<G4UIQt*>(this)); |
---|
| 338 | if (!strcmp(_clname, "G4VInteractiveSession")) |
---|
| 339 | return static_cast<G4VInteractiveSession*>(const_cast<G4UIQt*>(this)); |
---|
| 340 | return QObject::qt_metacast(_clname); |
---|
| 341 | } |
---|
| 342 | |
---|
| 343 | int G4UIQt::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
---|
| 344 | { |
---|
| 345 | _id = QObject::qt_metacall(_c, _id, _a); |
---|
| 346 | if (_id < 0) |
---|
| 347 | return _id; |
---|
| 348 | if (_c == QMetaObject::InvokeMetaMethod) { |
---|
| 349 | switch (_id) { |
---|
| 350 | case 0: myClicked((*reinterpret_cast< const QString(*)>(_a[1]))); break; |
---|
[608] | 351 | case 1: ExitSession(); break; |
---|
| 352 | case 2: ClearButtonCallback(); break; |
---|
| 353 | case 3: CommandEnteredCallback(); break; |
---|
| 354 | case 4: ButtonCallback((*reinterpret_cast< const QString(*)>(_a[1]))); break; |
---|
| 355 | case 5: HelpTreeClicCallback(); break; |
---|
| 356 | case 6: HelpTreeDoubleClicCallback((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; |
---|
| 357 | case 7: ShowHelpCallback(); break; |
---|
| 358 | case 8: CommandHistoryCallback(); break; |
---|
[514] | 359 | } |
---|
[608] | 360 | _id -= 9; |
---|
[514] | 361 | } |
---|
| 362 | return _id; |
---|
| 363 | } |
---|
| 364 | |
---|
| 365 | // SIGNAL 0 |
---|
| 366 | void G4UIQt::myClicked(const QString & _t1) |
---|
| 367 | { |
---|
| 368 | void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; |
---|
| 369 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
---|
| 370 | } |
---|
[593] | 371 | |
---|
| 372 | #endif |
---|
[606] | 373 | |
---|
| 374 | #endif |
---|