Changeset 1086 for trunk/source


Ignore:
Timestamp:
Jul 22, 2009, 11:16:28 AM (15 years ago)
Author:
garnier
Message:

changes to have Qt on test19

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/test/test19.cc

    r1025 r1086  
    4949
    5050#include "G4UIterminal.hh"
    51 #ifdef G4UI_USE_TCSH
    52 #include "G4UItcsh.hh"
    53 #endif
    54 #include "G4UIGAG.hh"
    55 #ifdef G4UI_USE_WO
     51#if defined(G4UI_USE_GAG)
     52  #include "G4UIGAG.hh"
     53#elif defined(G4UI_USE_TCSH)
     54  #include "G4UItcsh.hh"
     55#elif defined(G4UI_USE_WO)
    5656  #include "G4UIWo.hh"
    57 #endif
    58 #ifdef G4UI_USE_XM
     57#elif defined(G4UI_USE_XM)
    5958  #include "G4UIXm.hh"
    60 #endif
    61 #ifdef G4UI_USE_XAW
     59#elif defined(G4UI_USE_XAW)
    6260  #include "G4UIXaw.hh"
    63 #endif
    64 #ifdef G4UI_USE_WIN32
     61#elif defined(G4UI_USE_WIN32)
    6562  #include "G4UIWin32.hh"
    66 #endif
    67 #ifdef G4UI_USE_QT
     63#elif defined(G4UI_USE_QT)
    6864  #include "G4UIQt.hh"
    6965#endif
     
    10399#else
    104100  if (argc >= 2) {
    105 #ifdef G4UI_USE_TCSH
     101  #if defined(G4UI_USE_TCSH)
    106102    if (strcmp (argv[1], "tcsh")==0)     session =
    107                                            new G4UIterminal(new G4UItcsh);
     103      new G4UIterminal(new G4UItcsh);
     104  #elif defined(G4UI_USE_WO)
     105    if (strcmp (argv[1], "Wo")==0)  session = new G4UIWo (argc, argv);
     106  #elif defined(G4UI_USE_XM)
     107    if (strcmp (argv[1], "Xm")==0)  session = new G4UIXm (argc, argv);
     108  #elif defined(G4UI_USE_XAW)
     109    if (strcmp (argv[1], "Xaw")==0) session = new G4UIXaw (argc, argv);
     110  #elif defined(G4UI_USE_GAG)
     111    if (strcmp (argv[1], "gag")==0) session = new G4UIGAG ;
     112  #elif defined(G4UI_USE_QT)
     113    if (strcmp (argv[1], "Qt")==0) session = new G4UIQt(argc, argv) ;
     114  #else
     115    session = new G4UIterminal();
     116  #endif
    108117    else
    109 #endif
    110 #ifdef G4UI_USE_WO
    111     if (strcmp (argv[1], "Wo")==0)  session = new G4UIWo (argc, argv);
    112     else
    113 #endif
    114 #ifdef G4UI_USE_XM
    115     if (strcmp (argv[1], "Xm")==0)  session = new G4UIXm (argc, argv);
    116     else
    117 #endif
    118 #ifdef G4UI_USE_XAW
    119     if (strcmp (argv[1], "Xaw")==0) session = new G4UIXaw (argc, argv);
    120     else
    121 #endif
    122 #ifdef G4UI_USE_GAG
    123     if (strcmp (argv[1], "gag")==0) session = new G4UIGAG ;
    124     else
    125 #endif
    126 #ifdef G4UI_USE_QT
    127       if (strcmp (argv[1], "Qt")==0) session = new G4UIQt(argc, argv) ;
    128     else
    129 #endif
    130                                     session =
    131                                            new G4UIterminal();
     118      session = new G4UIterminal();
    132119  }
    133120  else                                   
    134 #ifdef G4UI_USE_TCSH
    135                                     session =  new G4UIterminal(new G4UItcsh);
    136 #else
    137121  {
    138122    G4cerr << "You should define a UI in order to interact with test" << G4endl;
    139123    return 0;
    140124  }
    141 #endif
    142125#endif
    143126  G4UImanager::GetUIpointer()->SetSession(session);  //So that Pause works..
Note: See TracChangeset for help on using the changeset viewer.