Changeset 1025 for trunk


Ignore:
Timestamp:
Apr 30, 2009, 4:23:03 PM (15 years ago)
Author:
garnier
Message:

modif pour compil

File:
1 edited

Legend:

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

    r954 r1025  
    6565  #include "G4UIWin32.hh"
    6666#endif
     67#ifdef G4UI_USE_QT
     68  #include "G4UIQt.hh"
     69#endif
    6770
    6871#include "G4RunManager.hh"
     
    103106    if (strcmp (argv[1], "tcsh")==0)     session =
    104107                                           new G4UIterminal(new G4UItcsh);
     108    else
    105109#endif
    106110#ifdef G4UI_USE_WO
    107     else if (strcmp (argv[1], "Wo")==0)  session = new G4UIWo (argc, argv);
     111    if (strcmp (argv[1], "Wo")==0)  session = new G4UIWo (argc, argv);
     112    else
    108113#endif
    109114#ifdef G4UI_USE_XM
    110     else if (strcmp (argv[1], "Xm")==0)  session = new G4UIXm (argc, argv);
     115    if (strcmp (argv[1], "Xm")==0)  session = new G4UIXm (argc, argv);
     116    else
    111117#endif
    112118#ifdef G4UI_USE_XAW
    113     else if (strcmp (argv[1], "Xaw")==0) session = new G4UIXaw (argc, argv);
    114 #endif
    115     else if (strcmp (argv[1], "gag")==0) session = new G4UIGAG ;
    116     else                                 session =
     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 =
    117131                                           new G4UIterminal();
    118132  }
    119   else                                   session =
     133  else                                   
    120134#ifdef G4UI_USE_TCSH
    121                                            new G4UIterminal(new G4UItcsh);
    122 #else
    123                                            new G4UIterminal();
     135                                    session =  new G4UIterminal(new G4UItcsh);
     136#else
     137  {
     138    G4cerr << "You should define a UI in order to interact with test" << G4endl;
     139    return 0;
     140  }
    124141#endif
    125142#endif
Note: See TracChangeset for help on using the changeset viewer.