Ignore:
Timestamp:
Nov 26, 2007, 6:10:35 PM (17 years ago)
Author:
garnier
Message:

r670@mac-90108: laurentgarnier | 2007-11-26 18:13:28 +0100
mise a jour pour Qt3 linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r612 r617  
    320320  Q_CHECK_PTR( mMouseAction );
    321321
     322#if QT_VERSION < 0x030200
     323  QAction *rotate = new QAction("&Rotate scene","&Rotate scene",CTRL+Key_N,mMouseAction);
     324  QAction *move =  new QAction("&Move scene","&Move scene",CTRL+Key_M,mMouseAction);
     325#else
    322326  QAction *rotate = new QAction("&Rotate scene",CTRL+Key_N,mMouseAction);
    323327  QAction *move =  new QAction("&Move scene",CTRL+Key_M,mMouseAction);
     328#endif
    324329  rotate->addTo(mMouseAction);
    325330  move->addTo(mMouseAction);
     
    344349  QPopupMenu *mRepresentation = new QPopupMenu(fContextMenu);
    345350
     351#if QT_VERSION < 0x030200
     352  QAction *polyhedron = new QAction("&Polyhedron","&Polyhedron",CTRL+Key_P,mRepresentation);
     353  QAction *nurbs = new QAction("&NURBS","&NURBS",CTRL+Key_N,mRepresentation);
     354#else
    346355  QAction *polyhedron = new QAction("&Polyhedron",CTRL+Key_P,mRepresentation);
    347356  QAction *nurbs = new QAction("&NURBS",CTRL+Key_N,mRepresentation);
     357#endif
    348358  polyhedron->addTo(mRepresentation);
    349359  nurbs->addTo(mRepresentation);
     
    488498  mStyle->insertItem("&Background color",mBackground);
    489499
     500#if QT_VERSION < 0x030200
     501  QAction *white = new QAction("&White","&White",CTRL+Key_W,mBackground);
     502  QAction *black =  new QAction("&Black","&Black",CTRL+Key_B,mBackground);
     503#else
    490504  QAction *white = new QAction("&White",CTRL+Key_W,mBackground);
    491505  QAction *black =  new QAction("&Black",CTRL+Key_B,mBackground);
     506#endif
    492507  white->addTo(mBackground);
    493508  black->addTo(mBackground);
     
    513528  fContextMenu->insertItem("&Actions",mActions);
    514529
     530#if QT_VERSION < 0x030200
     531  QAction *controlPanels = new QAction("&Control panels","&Control panels",CTRL+Key_C,mActions);
     532  QAction *exitG4 =  new QAction("&Exit to G4Vis >","&Exit to G4Vis >",CTRL+Key_E,mActions);
     533  QAction *createEPS =  new QAction("&Save as ...","&Save as ...",CTRL+Key_S,mActions);
     534#else
    515535  QAction *controlPanels = new QAction("&Control panels",CTRL+Key_C,mActions);
    516536  QAction *exitG4 =  new QAction("&Exit to G4Vis >",CTRL+Key_E,mActions);
    517537  QAction *createEPS =  new QAction("&Save as ...",CTRL+Key_S,mActions);
     538#endif
    518539  controlPanels->addTo(mActions);
    519540  exitG4->addTo(mActions);
     
    562583  mSpecial->insertItem("Transparency",mTransparency);
    563584
     585#if QT_VERSION < 0x030200
     586  QAction *transparencyOn = new QAction("&On","&On",CTRL+Key_O,mTransparency);
     587  QAction *transparencyOff = new QAction("&Off","&Off",CTRL+Key_F,mTransparency);
     588#else
    564589  QAction *transparencyOn = new QAction("&On",CTRL+Key_O,mTransparency);
    565590  QAction *transparencyOff = new QAction("&Off",CTRL+Key_F,mTransparency);
     591#endif
    566592  transparencyOn->addTo(mTransparency);
    567593  transparencyOff->addTo(mTransparency);
     
    588614  mSpecial->insertItem("Antialiasing",mAntialiasing);
    589615
     616#if QT_VERSION < 0x030200
     617  QAction *antialiasingOn = new QAction("&On","&On",CTRL+Key_O,mAntialiasing);
     618  QAction *antialiasingOff = new QAction("&Off","&Off",CTRL+Key_F,mAntialiasing);
     619#else
    590620  QAction *antialiasingOn = new QAction("&On",CTRL+Key_O,mAntialiasing);
    591621  QAction *antialiasingOff = new QAction("&Off",CTRL+Key_F,mAntialiasing);
     622#endif
    592623  antialiasingOn->addTo(mAntialiasing);
    593624  antialiasingOff->addTo(mAntialiasing);
     
    611642  mSpecial->insertItem("Haloing",mHaloing);
    612643
     644#if QT_VERSION < 0x030200
     645  QAction *haloingOn = new QAction("&On","&On",CTRL+Key_O,mHaloing);
     646  QAction *haloingOff = new QAction("&Off","&Off",CTRL+Key_F,mHaloing);
     647#else
    613648  QAction *haloingOn = new QAction("&On",CTRL+Key_O,mHaloing);
    614649  QAction *haloingOff = new QAction("&Off",CTRL+Key_F,mHaloing);
     650#endif
    615651  haloingOn->addTo(mHaloing);
    616652  haloingOff->addTo(mHaloing);
     
    632668  mSpecial->insertItem("Auxiliairy edges",mAux);
    633669
     670#if QT_VERSION < 0x030200
     671  QAction *auxOn = new QAction("&On","&On",CTRL+Key_O,mAux);
     672  QAction *auxOff = new QAction("&Off","&Off",CTRL+Key_F,mAux);
     673#else
    634674  QAction *auxOn = new QAction("&On",CTRL+Key_O,mAux);
    635675  QAction *auxOff = new QAction("&Off",CTRL+Key_F,mAux);
     676#endif
    636677  auxOn->addTo(mAux);
    637678  auxOff->addTo(mAux);
     
    649690
    650691
     692#if QT_VERSION >= 0x030200
    651693#if QT_VERSION < 0x040000
    652694  QPopupMenu *mFullScreen = new QPopupMenu(mSpecial);
     
    663705#endif
    664706  createRadioAction(fullOn,fullOff,SLOT(toggleFullScreen(bool)),2);
     707#endif
    665708
    666709}
     
    9761019*/
    9771020void G4OpenGLQtViewer::toggleFullScreen(bool check) {
     1021#if QT_VERSION >= 0x030200
    9781022  GLWindow->setWindowState(GLWindow->windowState() ^ Qt::WindowFullScreen);
    979 
     1023#else
     1024  G4cerr << "This version of G4UI Could not generate the selected format" << G4endl;
     1025#endif
    9801026#ifdef GEANT4_QT_DEBUG
    9811027  printf("G4OpenGLQtViewer::toggleRepresentation %d\n",check);
Note: See TracChangeset for help on using the changeset viewer.