#include <G4UIExecutive.hh>
Definition at line 60 of file G4UIExecutive.hh.
G4UIExecutive::G4UIExecutive |
( |
G4int |
argc, |
|
|
char ** |
argv, |
|
|
const G4String & |
type = "" |
|
) |
| |
Definition at line 91 of file G4UIExecutive.cc.
92 : selected(kNone), session(NULL), shell(NULL), isGUI(
false)
94 G4cout <<
"Available UI session types: [ ";
107 if (type !=
"") SelectSessionByArg(stype);
110 if ( selected == kNone ) SelectSessionByEnv();
113 if ( selected == kNone ) {
116 size_t islash = appinput.find_last_of(
"/\\");
117 if (islash == G4String::npos)
120 appname = appinput(islash+1, appinput.size()-islash-1);
122 SelectSessionByFile(appname);
126 if ( selected == kNone) SelectSessionByBestGuess();
129 switch ( selected ) {
131 #if defined(G4UI_BUILD_QT_SESSION)
132 session =
new G4UIQt(argc, argv);
137 #if defined(G4UI_BUILD_XM_SESSION)
138 session =
new G4UIXm(argc, argv);
143 #if defined(G4UI_BUILD_WIN32_SESSION)
146 session =
new G4UIWin32();
150 #if defined(G4UI_BUILD_WT_SESSION)
151 session =
new G4UIWt(argc, argv);
179 if ( session == NULL ) {
183 "Specified session type is not build in your system,\n"
184 "or no session type is specified.\n"
185 "A fallback session type is used.");
static const G4bool wt_build
static const G4bool win32_build
static const G4bool qt_build
#define DISCARD_PARAMETER(p)
G4GLOB_DLL std::ostream G4cout
static const G4bool xm_build
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static const G4bool tcsh_build
G4UIExecutive::~G4UIExecutive |
( |
| ) |
|
G4bool G4UIExecutive::IsGUI |
( |
| ) |
const |
|
inline |
void G4UIExecutive::SessionStart |
( |
| ) |
|
Definition at line 297 of file G4UIExecutive.cc.
300 if(shell) shell->
SetLsColor(dirColor, cmdColor);
void SetLsColor(TermColorIndex dirColor, TermColorIndex cmdColor)
The documentation for this class was generated from the following files: