source: trunk/geant4/interfaces/basic/src/G4UIQt.cc @ 604

Last change on this file since 604 was 604, checked in by garnier, 17 years ago

r645@mac-90108: laurentgarnier | 2007-11-13 18:10:02 +0100
modif pour Qt3

  • Property svn:mime-type set to text/cpp
File size: 3.4 KB
Line 
1/****************************************************************************
2** Meta object code from reading C++ file 'G4UIQt.hh'
3**
4** Created: Mon Oct 1 10:59:35 2007
5**      by: The Qt Meta Object Compiler version 59 (Qt 4.2.2)
6**
7** WARNING! All changes made in this file will be lost!
8*****************************************************************************/
9
10#if QT_VERSION >= 0x040202
11
12#ifdef G4UI_BUILD_QT_SESSION
13
14#include "../include/G4UIQt.hh"
15#if !defined(Q_MOC_OUTPUT_REVISION)
16#error "The header file 'G4UIQt.hh' doesn't include <QObject>."
17#elif Q_MOC_OUTPUT_REVISION != 59
18#error "This file was generated using the moc from 4.2.2. It"
19#error "cannot be used with the include files from this version of Qt."
20#error "(The moc has changed too much.)"
21#endif
22
23static const uint qt_meta_data_G4UIQt[] = {
24
25 // content:
26       1,       // revision
27       0,       // classname
28       0,    0, // classinfo
29       8,   10, // methods
30       0,    0, // properties
31       0,    0, // enums/sets
32
33 // signals: signature, parameters, type, tag, flags
34       7,   26,   31,   31, 0x05,
35
36 // slots: signature, parameters, type, tag, flags
37      32,   31,   31,   31, 0x08,
38      54,   31,   31,   31, 0x08,
39      79,   31,   31,   31, 0x08,
40     103,   31,   31,   31, 0x08,
41     126,  175,   31,   31, 0x08,
42     177,   31,   31,   31, 0x08,
43     196,   31,   31,   31, 0x08,
44
45       0        // eod
46};
47
48static const char qt_meta_stringdata_G4UIQt[] = {
49    "G4UIQt\0myClicked(QString)\0text\0\0"
50    "ClearButtonCallback()\0CommandEnteredCallback()\0"
51    "ButtonCallback(QString)\0HelpTreeClicCallback()\0"
52    "HelpTreeDoubleClicCallback(QTreeWidgetItem*,int)\0"
53    ",\0ShowHelpCallback()\0CommandHistoryCallback()\0"
54};
55
56const QMetaObject G4UIQt::staticMetaObject = {
57    { &QObject::staticMetaObject, qt_meta_stringdata_G4UIQt,
58      qt_meta_data_G4UIQt, 0 }
59};
60
61const QMetaObject *G4UIQt::metaObject() const
62{
63    return &staticMetaObject;
64}
65
66void *G4UIQt::qt_metacast(const char *_clname)
67{
68    if (!_clname) return 0;
69    if (!strcmp(_clname, qt_meta_stringdata_G4UIQt))
70        return static_cast<void*>(const_cast<G4UIQt*>(this));
71    if (!strcmp(_clname, "G4VBasicShell"))
72        return static_cast<G4VBasicShell*>(const_cast<G4UIQt*>(this));
73    if (!strcmp(_clname, "G4VInteractiveSession"))
74        return static_cast<G4VInteractiveSession*>(const_cast<G4UIQt*>(this));
75    return QObject::qt_metacast(_clname);
76}
77
78int G4UIQt::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
79{
80    _id = QObject::qt_metacall(_c, _id, _a);
81    if (_id < 0)
82        return _id;
83    if (_c == QMetaObject::InvokeMetaMethod) {
84        switch (_id) {
85        case 0: myClicked((*reinterpret_cast< const QString(*)>(_a[1]))); break;
86        case 1: ClearButtonCallback(); break;
87        case 2: CommandEnteredCallback(); break;
88        case 3: ButtonCallback((*reinterpret_cast< const QString(*)>(_a[1]))); break;
89        case 4: HelpTreeClicCallback(); break;
90        case 5: HelpTreeDoubleClicCallback((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
91        case 6: ShowHelpCallback(); break;
92        case 7: CommandHistoryCallback(); break;
93        }
94        _id -= 8;
95    }
96    return _id;
97}
98
99// SIGNAL 0
100void G4UIQt::myClicked(const QString & _t1)
101{
102    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
103    QMetaObject::activate(this, &staticMetaObject, 0, _a);
104}
105
106#endif
107
108#endif
Note: See TracBrowser for help on using the repository browser.