Changeset 1086
- Timestamp:
- Jul 22, 2009, 11:16:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/test/test19.cc
r1025 r1086 49 49 50 50 #include "G4UIterminal.hh" 51 #if def G4UI_USE_TCSH52 #include "G4UItcsh.hh"53 #e ndif54 #include "G4UIGAG.hh"55 # ifdef G4UI_USE_WO51 #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) 56 56 #include "G4UIWo.hh" 57 #endif 58 #ifdef G4UI_USE_XM 57 #elif defined(G4UI_USE_XM) 59 58 #include "G4UIXm.hh" 60 #endif 61 #ifdef G4UI_USE_XAW 59 #elif defined(G4UI_USE_XAW) 62 60 #include "G4UIXaw.hh" 63 #endif 64 #ifdef G4UI_USE_WIN32 61 #elif defined(G4UI_USE_WIN32) 65 62 #include "G4UIWin32.hh" 66 #endif 67 #ifdef G4UI_USE_QT 63 #elif defined(G4UI_USE_QT) 68 64 #include "G4UIQt.hh" 69 65 #endif … … 103 99 #else 104 100 if (argc >= 2) { 105 #ifdef G4UI_USE_TCSH 101 #if defined(G4UI_USE_TCSH) 106 102 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 108 117 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(); 132 119 } 133 120 else 134 #ifdef G4UI_USE_TCSH135 session = new G4UIterminal(new G4UItcsh);136 #else137 121 { 138 122 G4cerr << "You should define a UI in order to interact with test" << G4endl; 139 123 return 0; 140 124 } 141 #endif142 125 #endif 143 126 G4UImanager::GetUIpointer()->SetSession(session); //So that Pause works..
Note: See TracChangeset
for help on using the changeset viewer.