Changeset 612


Ignore:
Timestamp:
Nov 22, 2007, 6:40:23 PM (17 years ago)
Author:
garnier
Message:

Modification pour Qt4 sur windows

Location:
trunk/geant4/visualization
Files:
5 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/include/G4OpenGLQtViewer.hh

    r610 r612  
    131131  void toggleAux(bool);
    132132  void toggleFullScreen(bool);
    133 
     133#if QT_VERSION >= 0x040000
     134  void dialogClosed();
     135#endif
    134136};
    135137
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog_moc.cc

    r607 r612  
    124124
    125125
     126#if QT_VERSION >= 0x040000
     127#if QT_VERSION < 0x040200
    126128/****************************************************************************
    127129** Meta object code from reading C++ file 'G4OpenGLQtExportDialog.hh'
    128130**
     131** Created: jeu. 22. nov. 12:25:13 2007
     132**      by: The Qt Meta Object Compiler version 58 (Qt 4.0.1)
     133**
     134** WARNING! All changes made in this file will be lost!
     135*****************************************************************************/
     136
     137#include "../include/G4OpenGLQtExportDialog.hh"
     138#if !defined(Q_MOC_OUTPUT_REVISION)
     139#error "The header file 'G4OpenGLQtExportDialog.hh' doesn't include <QObject>."
     140#elif Q_MOC_OUTPUT_REVISION != 58
     141#error "This file was generated using the moc from 4.0.1. It"
     142#error "cannot be used with the include files from this version of Qt."
     143#error "(The moc has changed too much.)"
     144#endif
     145
     146static const uint qt_meta_data_G4OpenGLQtExportDialog[] = {
     147
     148 // content:
     149       1,       // revision
     150       0,       // classname
     151       0,    0, // classinfo
     152       3,   10, // methods
     153       0,    0, // properties
     154       0,    0, // enums/sets
     155
     156 // slots: signature, parameters, type, tag, flags
     157      24,   23,   23,   23, 0x0a,
     158      44,   23,   23,   23, 0x0a,
     159      70,   23,   23,   23, 0x0a,
     160
     161       0        // eod
     162};
     163
     164static const char qt_meta_stringdata_G4OpenGLQtExportDialog[] = {
     165    "G4OpenGLQtExportDialog\0\0changeSizeBox(bool)\0"
     166    "textWidthChanged(QString)\0textHeightChanged(QString)\0"
     167};
     168
     169const QMetaObject G4OpenGLQtExportDialog::staticMetaObject = {
     170    { &QDialog::staticMetaObject, qt_meta_stringdata_G4OpenGLQtExportDialog,
     171      qt_meta_data_G4OpenGLQtExportDialog, 0 }
     172};
     173
     174const QMetaObject *G4OpenGLQtExportDialog::metaObject() const
     175{
     176    return &staticMetaObject;
     177}
     178
     179void *G4OpenGLQtExportDialog::qt_metacast(const char *_clname)
     180{
     181    if (!_clname) return 0;
     182    if (!strcmp(_clname, qt_meta_stringdata_G4OpenGLQtExportDialog))
     183        return static_cast<void*>(const_cast<G4OpenGLQtExportDialog*>(this));
     184    return QDialog::qt_metacast(_clname);
     185}
     186
     187int G4OpenGLQtExportDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
     188{
     189    _id = QDialog::qt_metacall(_c, _id, _a);
     190    if (_id < 0)
     191        return _id;
     192    if (_c == QMetaObject::InvokeMetaMethod) {
     193        switch (_id) {
     194        case 0: changeSizeBox(*(bool*)_a[1]); break;
     195        case 1: textWidthChanged(*(QString*)_a[1]); break;
     196        case 2: textHeightChanged(*(QString*)_a[1]); break;
     197        }
     198        _id -= 3;
     199    }
     200    return _id;
     201}
     202
     203#else
     204
     205/****************************************************************************
     206** Meta object code from reading C++ file 'G4OpenGLQtExportDialog.hh'
     207**
    129208** Created: Fri Sep 28 12:35:41 2007
    130209**      by: The Qt Meta Object Compiler version 59 (Qt 4.2.2)
     
    133212*****************************************************************************/
    134213
    135 #if QT_VERSION >= 0x040000
    136 
    137 #ifdef G4VIS_BUILD_OPENGLQT_DRIVER
     214
    138215
    139216#include "../include/G4OpenGLQtExportDialog.hh"
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r610 r612  
    196196    }
    197197#endif
    198     // FIXME : not tested in Qt4
     198
     199#if QT_VERSION < 0x040000
    199200    glWidget->reparent(GLWindow,0,QPoint(0,0)); 
     201#else
     202    glWidget->setParent(GLWindow); 
     203#endif
    200204
    201205    if (found==false) {
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer_moc.cc

    r610 r612  
    184184
    185185
     186
     187#if QT_VERSION >= 0x040000
     188#if QT_VERSION < 0x040200
    186189/****************************************************************************
    187190** Meta object code from reading C++ file 'G4OpenGLQtViewer.hh'
    188191**
     192** Created: jeu. 22. nov. 11:59:31 2007
     193**      by: The Qt Meta Object Compiler version 58 (Qt 4.0.1)
     194**
     195** WARNING! All changes made in this file will be lost!
     196*****************************************************************************/
     197
     198#include "../include/G4OpenGLQtViewer.hh"
     199#if !defined(Q_MOC_OUTPUT_REVISION)
     200#error "The header file 'G4OpenGLQtViewer.hh' doesn't include <QObject>."
     201#elif Q_MOC_OUTPUT_REVISION != 58
     202#error "This file was generated using the moc from 4.0.1. It"
     203#error "cannot be used with the include files from this version of Qt."
     204#error "(The moc has changed too much.)"
     205#endif
     206
     207static const uint qt_meta_data_G4OpenGLQtViewer[] = {
     208
     209 // content:
     210       1,       // revision
     211       0,       // classname
     212       0,    0, // classinfo
     213      17,   10, // methods
     214       0,    0, // properties
     215       0,    0, // enums/sets
     216
     217 // slots: signature, parameters, type, tag, flags
     218      18,   17,   17,   17, 0x08,
     219      43,   17,   17,   17, 0x08,
     220      70,   17,   17,   17, 0x08,
     221     100,   17,   17,   17, 0x08,
     222     134,   17,   17,   17, 0x08,
     223     156,   17,   17,   17, 0x08,
     224     171,   17,   17,   17, 0x08,
     225     189,   17,   17,   17, 0x08,
     226     214,   17,   17,   17, 0x08,
     227     238,   17,   17,   17, 0x08,
     228     265,   17,   17,   17, 0x08,
     229     288,   17,   17,   17, 0x08,
     230     313,   17,   17,   17, 0x08,
     231     338,   17,   17,   17, 0x08,
     232     358,   17,   17,   17, 0x08,
     233     374,   17,   17,   17, 0x08,
     234     397,   17,   17,   17, 0x08,
     235
     236       0        // eod
     237};
     238
     239static const char qt_meta_stringdata_G4OpenGLQtViewer[] = {
     240    "G4OpenGLQtViewer\0\0actionDrawingWireframe()\0"
     241    "actionDrawingLineRemoval()\0actionDrawingSurfaceRemoval()\0"
     242    "actionDrawingLineSurfaceRemoval()\0actionControlPanels()\0"
     243    "actionExitG4()\0actionCreateEPS()\0toggleDrawingAction(int)\0"
     244    "toggleMouseAction(bool)\0toggleRepresentation(bool)\0"
     245    "toggleBackground(bool)\0toggleTransparency(bool)\0"
     246    "toggleAntialiasing(bool)\0toggleHaloing(bool)\0toggleAux(bool)\0"
     247    "toggleFullScreen(bool)\0dialogClosed()\0"
     248};
     249
     250const QMetaObject G4OpenGLQtViewer::staticMetaObject = {
     251    { &QObject::staticMetaObject, qt_meta_stringdata_G4OpenGLQtViewer,
     252      qt_meta_data_G4OpenGLQtViewer, 0 }
     253};
     254
     255const QMetaObject *G4OpenGLQtViewer::metaObject() const
     256{
     257    return &staticMetaObject;
     258}
     259
     260void *G4OpenGLQtViewer::qt_metacast(const char *_clname)
     261{
     262    if (!_clname) return 0;
     263    if (!strcmp(_clname, qt_meta_stringdata_G4OpenGLQtViewer))
     264        return static_cast<void*>(const_cast<G4OpenGLQtViewer*>(this));
     265    if (!strcmp(_clname, "G4OpenGLViewer"))
     266        return static_cast<G4OpenGLViewer*>(const_cast<G4OpenGLQtViewer*>(this));
     267    return QObject::qt_metacast(_clname);
     268}
     269
     270int G4OpenGLQtViewer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
     271{
     272    _id = QObject::qt_metacall(_c, _id, _a);
     273    if (_id < 0)
     274        return _id;
     275    if (_c == QMetaObject::InvokeMetaMethod) {
     276        switch (_id) {
     277        case 0: actionDrawingWireframe(); break;
     278        case 1: actionDrawingLineRemoval(); break;
     279        case 2: actionDrawingSurfaceRemoval(); break;
     280        case 3: actionDrawingLineSurfaceRemoval(); break;
     281        case 4: actionControlPanels(); break;
     282        case 5: actionExitG4(); break;
     283        case 6: actionCreateEPS(); break;
     284        case 7: toggleDrawingAction(*(int*)_a[1]); break;
     285        case 8: toggleMouseAction(*(bool*)_a[1]); break;
     286        case 9: toggleRepresentation(*(bool*)_a[1]); break;
     287        case 10: toggleBackground(*(bool*)_a[1]); break;
     288        case 11: toggleTransparency(*(bool*)_a[1]); break;
     289        case 12: toggleAntialiasing(*(bool*)_a[1]); break;
     290        case 13: toggleHaloing(*(bool*)_a[1]); break;
     291        case 14: toggleAux(*(bool*)_a[1]); break;
     292        case 15: toggleFullScreen(*(bool*)_a[1]); break;
     293        case 16: dialogClosed(); break;
     294        }
     295        _id -= 17;
     296    }
     297    return _id;
     298}
     299
     300
     301#else
     302/****************************************************************************
     303** Meta object code from reading C++ file 'G4OpenGLQtViewer.hh'
     304**
    189305** Created: Tue Sep 18 17:43:43 2007
    190306**      by: The Qt Meta Object Compiler version 59 (Qt 4.2.2)
     
    192308** WARNING! All changes made in this file will be lost!
    193309*****************************************************************************/
    194 
    195 #if QT_VERSION >= 0x040000
    196 
    197 #ifdef G4VIS_BUILD_OPENGLQT_DRIVER
    198310
    199311#include "../include/G4OpenGLQtViewer.hh"
  • trunk/geant4/visualization/management/include/G4VisExecutive.icc

    r600 r612  
    9797  // Graphics Systems not needing external packages or libraries...
    9898  RegisterGraphicsSystem (new G4ASCIITree);
    99   RegisterGraphicsSystem (new G4DAWNFILE);
     99#ifdef G4VIS_USE_DAWN
     100//  RegisterGraphicsSystem (new G4DAWNFILE);
     101#endif
    100102  RegisterGraphicsSystem (new G4HepRep);
    101103  RegisterGraphicsSystem (new G4HepRepFile);
Note: See TracChangeset for help on using the changeset viewer.