Ignore:
Timestamp:
Nov 23, 2007, 5:17:06 PM (17 years ago)
Author:
garnier
Message:

Passage sur Windows Qt4 OK

Location:
trunk/geant4/interfaces/basic/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/interfaces/basic/src/G4UIQt.cc

    r611 r615  
    109109  printf("G4UIQt::Initialise %d %s\n",argc,argv[0]);
    110110#endif
     111  printf("G4UIQt::Initialise ******\n");
    111112  G4Qt* interactorManager = G4Qt::getInstance (argc,argv,(char*)"Qt");
    112113  G4UImanager* UI = G4UImanager::GetUIpointer();
     
    11851186)
    11861187{
    1187   //  printf("G4UIQt::HelpTreeClicCallback");
     1188#ifdef GEANT4_QT_DEBUG
     1189    printf("G4UIQt::HelpTreeClicCallback");
     1190#endif
    11881191#if QT_VERSION < 0x040000
    11891192  QListViewItem* item =  NULL;
  • trunk/geant4/interfaces/basic/src/G4UIQt_moc.cc

    r608 r615  
    160160
    161161
     162#if QT_VERSION < 0x040200
    162163/****************************************************************************
    163164** Meta object code from reading C++ file 'G4UIQt.hh'
    164165**
     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
     181static 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
     206static 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
     213const QMetaObject G4UIQt::staticMetaObject = {
     214    { &QObject::staticMetaObject, qt_meta_stringdata_G4UIQt,
     215      qt_meta_data_G4UIQt, 0 }
     216};
     217
     218const QMetaObject *G4UIQt::metaObject() const
     219{
     220    return &staticMetaObject;
     221}
     222
     223void *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
     235int 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
     257void G4UIQt::myClicked(const QString & _t1)
     258{
     259    void *_a[] = { 0, (void*)&_t1 };
     260    QMetaObject::activate(this, &staticMetaObject, 0, _a);
     261}
     262#else
     263
     264#if QT_VERSION >= 0x040000
     265/****************************************************************************
     266** Meta object code from reading C++ file 'G4UIQt.hh'
     267**
    165268** Created: Mon Oct 1 10:59:35 2007
    166269**      by: The Qt Meta Object Compiler version 59 (Qt 4.2.2)
     
    169272*****************************************************************************/
    170273
    171 #if QT_VERSION >= 0x040000
    172 
    173 #ifdef G4UI_BUILD_QT_SESSION
     274
    174275
    175276#include "../include/G4UIQt.hh"
Note: See TracChangeset for help on using the changeset viewer.