31#define G4UImanager_h 1
83 void Loop(
const char * macroFile,
const char * variableName,
86 void Foreach(
const char * macroFile,
const char * variableName,
87 const char * candidates);
100 void StoreHistory(
const char* fileName =
"G4history.macro");
102 const char* fileName =
"G4history.macro");
108 void SetAlias(
const char * aliasLine);
123 void LoopS(
const char* valueList);
124 void ForeachS(
const char* valueList);
131 void PauseSession(
const char* msg);
132 void CreateMessenger();
142 static G4bool fUImanagerHasBeenKilled;
151 std::ofstream historyFile;
153 std::vector<G4String> histVec;
156 G4bool pauseAtBeginOfEvent;
159 std::vector<G4String> searchDirs;
169 const char * aParameterName,
G4bool reGet=
true);
171 const char * aParameterName,
G4bool reGet=
true);
173 const char * aParameterName,
G4bool reGet=
true);
184 { pauseAtBeginOfEvent = vl; }
186 {
return pauseAtBeginOfEvent; }
188 { pauseAtEndOfEvent = vl; }
190 {
return pauseAtEndOfEvent; }
202 {
return g4UIWindow; }
207 { g4UIWindow = value; }
217 { verboseLevel = val; }
219 {
return verboseLevel; }
221 {
return histVec.size(); }
225 if(i>=0 && i<
G4int(histVec.size()))
230 { maxHistSize = mx; }
232 {
return maxHistSize; }
235 { searchPath = path; }
237 {
return searchPath; }
void SetCoutDestination(G4UIsession *const value)
const G4String & GetMacroSearchPath() const
void ForeachS(const char *valueList)
G4UIcommandTree * GetTree() const
void Foreach(const char *macroFile, const char *variableName, const char *candidates)
G4int ApplyCommand(const char *aCommand)
G4int GetNumberOfHistory() const
void CreateHTML(const char *dir="/")
void Loop(const char *macroFile, const char *variableName, G4double initialValue, G4double finalValue, G4double stepSize=1.0)
G4int GetCurrentIntValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
G4String GetPreviousCommand(G4int i) const
void LoopS(const char *valueList)
G4bool GetPauseAtBeginOfEvent() const
void StoreHistory(const char *fileName="G4history.macro")
void ListCommands(const char *direc)
G4double GetCurrentDoubleValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
void ExecuteMacroFile(const char *fileName)
void SetMacroSearchPath(const G4String &path)
G4String GetCurrentStringValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
void SetMaxHistSize(G4int mx)
G4int GetVerboseLevel() const
G4UIsession * GetSession() const
G4bool GetPauseAtEndOfEvent() const
void SetPauseAtBeginOfEvent(G4bool vl)
void AddNewCommand(G4UIcommand *newCommand)
G4String GetCurrentValues(const char *aCommand)
virtual G4bool Notify(G4ApplicationState requestedState)
void SetAlias(const char *aliasLine)
G4String FindMacroPath(const G4String &fname) const
void RemoveAlias(const char *aliasName)
G4String SolveAlias(const char *aCmd)
void RemoveCommand(G4UIcommand *aCommand)
G4UIsession * GetG4UIWindow() const
void ParseMacroSearchPath()
static G4UImanager * GetUIpointer()
void SetSession(G4UIsession *const value)
void SetG4UIWindow(G4UIsession *const value)
void SetPauseAtEndOfEvent(G4bool vl)
G4int GetMaxHistSize() const
void SetVerboseLevel(G4int val)