Geant4-11
|
#include <G4UIXm.hh>
Public Types | |
using | Transformer = std::function< G4bool(G4String &)> |
Public Member Functions | |
void | AddButton (const char *, const char *, const char *) |
void | AddCerrTransformer (const Transformer &t) |
void | AddCerrTransformer (Transformer &&t) |
void | AddCoutTransformer (const Transformer &t) |
void | AddCoutTransformer (Transformer &&t) |
virtual void | AddIcon (const char *, const char *, const char *, const char *) |
void | AddInteractor (G4String, G4Interactor) |
void | AddMenu (const char *, const char *) |
virtual void | ClearMenu () |
virtual void | DefaultIcons (bool) |
G4UIXm (int, char **) | |
G4String | GetCommand (Widget) |
G4Interactor | GetInteractor (G4String) |
G4int | GetLastReturnCode () const |
virtual void | NativeMenu (bool) |
virtual void | OutputStyle (const char *, const char *, const char *) |
virtual void | PauseSessionStart (const G4String &) |
void | Prompt (G4String) |
virtual G4int | ReceiveG4cerr (const G4String &) |
G4int | ReceiveG4cerr_ (const G4String &msg) |
virtual G4int | ReceiveG4cout (const G4String &) |
G4int | ReceiveG4cout_ (const G4String &msg) |
virtual void | ResetTransformers () |
G4UIsession * | SessionStart () |
void | SessionTerminate () |
~G4UIXm () | |
Static Public Member Functions | |
static G4int | InSession () |
Protected Member Functions | |
void | ApplyShellCommand (const G4String &, G4bool &, G4bool &) |
G4bool | ChangeDirectory (const char *newDir) |
void | ChangeDirectoryCommand (const G4String &) |
G4String | Complete (const G4String &) |
virtual void | ExecuteCommand (const G4String &) |
G4UIcommand * | FindCommand (const char *commandName) const |
G4UIcommandTree * | FindDirectory (const char *dirName) const |
G4String | FindMatchingPath (G4UIcommandTree *, const G4String &) |
G4String | GetCurrentWorkingDirectory () const |
void | ListDirectory (const G4String &) const |
G4String | ModifyToFullPathCommand (const char *aCommandLine) const |
void | ShowCurrent (const G4String &) const |
void | TerminalHelp (const G4String &) |
Protected Attributes | |
G4int | ifBatch = 0 |
G4int | lastRC = 0 |
std::vector< Transformer > | transformersCerr |
std::vector< Transformer > | transformersCout |
Static Protected Attributes | |
static G4ICOMS_DLL G4int | inSession = 0 |
static G4MTGLOB_DLL G4coutDestination * | masterG4coutDestination = nullptr |
Private Types | |
typedef std::map< G4String, G4Interactor, std::less< G4String > > | G4interactor_map |
Private Member Functions | |
void | ExitHelp () const |
G4bool | GetHelpChoice (G4int &) |
G4String | ModifyPath (const G4String &tempPath) const |
void | SecondaryLoop (G4String) |
Static Private Member Functions | |
static void | ButtonCallback (Widget, XtPointer, XtPointer) |
static void | CommandEnteredCallback (Widget, XtPointer, XtPointer) |
static void | keyHandler (Widget, XtPointer, XEvent *, Boolean *) |
Private Attributes | |
Widget | command |
std::map< Widget, G4String, std::less< Widget > > | commands |
G4String | currentDirectory |
G4bool | fHelp |
G4int | fHelpChoice |
Widget | form |
G4interactor_map | interactors |
Widget | menuBar |
G4UImessenger * | messenger |
Widget | shell |
Widget | text |
|
privateinherited |
Definition at line 63 of file G4VInteractiveSession.hh.
|
inherited |
Definition at line 61 of file G4coutDestination.hh.
G4UIXm::G4UIXm | ( | int | argc, |
char ** | argv | ||
) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 70 of file G4UIXm.cc.
References args, clearButtonCallback(), command, CommandEnteredCallback(), form, G4Xt::getInstance(), G4VInteractorManager::GetMainInteractor(), G4UImanager::GetUIpointer(), keyHandler(), menuBar, G4UImanager::SetCoutDestination(), G4UImanager::SetSession(), shell, and text.
G4UIXm::~G4UIXm | ( | ) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 162 of file G4UIXm.cc.
References G4UImanager::GetUIpointer(), G4UImanager::SetCoutDestination(), G4UImanager::SetSession(), and shell.
|
virtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reimplemented from G4VInteractiveSession.
Definition at line 325 of file G4UIXm.cc.
References ButtonCallback(), commands, and G4VInteractiveSession::GetInteractor().
|
inlineinherited |
Definition at line 67 of file G4coutDestination.hh.
References G4coutDestination::transformersCerr.
Referenced by G4MTcoutDestination::HandleFileCerr().
|
inlineinherited |
Definition at line 71 of file G4coutDestination.hh.
References G4coutDestination::transformersCerr.
|
inlineinherited |
Definition at line 62 of file G4coutDestination.hh.
References G4coutDestination::transformersCout.
Referenced by G4MTcoutDestination::AddMasterOutput(), G4MTcoutDestination::HandleFileCout(), and G4MTcoutDestination::SetDefaultOutput().
|
inlineinherited |
Definition at line 66 of file G4coutDestination.hh.
References G4coutDestination::transformersCout.
|
virtualinherited |
|
inherited |
Definition at line 80 of file G4VInteractiveSession.cc.
References G4VInteractiveSession::interactors.
Referenced by G4UIQt::AddMenu(), AddMenu(), G4UIWin32::AddMenu(), and G4UIWin32::G4UIWin32().
|
virtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reimplemented from G4VInteractiveSession.
Definition at line 299 of file G4UIXm.cc.
References G4VInteractiveSession::AddInteractor(), args, ExecuteChangeSizeFunction(), form, and menuBar.
|
protectedinherited |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 232 of file G4VBasicShell.cc.
References G4VBasicShell::ChangeDirectoryCommand(), G4VBasicShell::ExecuteCommand(), exitPause, exitSession, G4cerr, G4cout, G4endl, G4VBasicShell::GetCurrentWorkingDirectory(), G4UImanager::GetNumberOfHistory(), G4UImanager::GetPreviousCommand(), G4UImanager::GetUIpointer(), G4VBasicShell::ListDirectory(), G4StrUtil::lstrip_copy(), G4VBasicShell::ModifyToFullPathCommand(), G4VBasicShell::ShowCurrent(), and G4VBasicShell::TerminalHelp().
Referenced by G4UIQt::ButtonCallback(), ButtonCallback(), G4UIQt::CommandEnteredCallback(), CommandEnteredCallback(), G4UIWin32::DoOpenMacro(), G4UIWin32::DoSaveViewer(), G4UIWin32::ProcessDefaultCommands(), and G4UIWin32::ProcessEnterKey().
|
staticprivate |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 412 of file G4UIXm.cc.
References G4VBasicShell::ApplyShellCommand(), exitPause, exitSession, fHelp, and GetCommand().
Referenced by AddButton().
|
protectedinherited |
Definition at line 74 of file G4VBasicShell.cc.
References G4VBasicShell::currentDirectory, G4VBasicShell::FindDirectory(), G4VBasicShell::ModifyPath(), and G4StrUtil::strip_copy().
Referenced by G4VBasicShell::ChangeDirectoryCommand().
|
protectedinherited |
Definition at line 325 of file G4VBasicShell.cc.
References G4VBasicShell::ChangeDirectory(), G4cout, G4endl, and G4StrUtil::strip_copy().
Referenced by G4VBasicShell::ApplyShellCommand(), G4UIterminal::GetCommand(), and G4ZMQServer::GetCommand().
|
virtualinherited |
|
staticprivate |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 355 of file G4UIXm.cc.
References G4VBasicShell::ApplyShellCommand(), command, ConvertStringToInt(), exitHelp, exitPause, exitSession, fHelp, fHelpChoice, and XmConvertCompoundStringToString().
Referenced by G4UIXm().
Definition at line 180 of file G4VBasicShell.cc.
References G4VBasicShell::FindMatchingPath(), G4UImanager::GetTree(), G4UImanager::GetUIpointer(), G4VBasicShell::ModifyPath(), and G4StrUtil::strip_copy().
Referenced by G4UIQt::eventFilter(), keyHandler(), and G4UIWin32::ProcessTabKey().
|
virtualinherited |
|
protectedvirtualinherited |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reimplemented in G4UIterminal, and G4ZMQServer.
Definition at line 206 of file G4VBasicShell.cc.
References G4UImanager::ApplyCommand(), fCommandNotFound, fCommandSucceeded, fIllegalApplicationState, fParameterOutOfCandidates, fParameterOutOfRange, fParameterUnreadable, G4cerr, G4endl, and G4UImanager::GetUIpointer().
Referenced by G4VBasicShell::ApplyShellCommand().
|
privatevirtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Implements G4VBasicShell.
Definition at line 292 of file G4UIXm.cc.
|
protectedinherited |
Definition at line 109 of file G4VBasicShell.cc.
References G4UIcommandTree::FindPath(), G4UImanager::GetTree(), G4UImanager::GetUIpointer(), G4VBasicShell::ModifyPath(), and G4StrUtil::strip_copy().
Referenced by G4UIterminal::ExecuteCommand(), and G4ZMQServer::ExecuteCommand().
|
protectedinherited |
Definition at line 87 of file G4VBasicShell.cc.
References G4UImanager::GetTree(), G4UIcommandTree::GetTree(), G4UImanager::GetUIpointer(), G4VBasicShell::ModifyPath(), and G4StrUtil::strip_copy().
Referenced by G4VBasicShell::ChangeDirectory(), G4VBasicShell::ListDirectory(), and G4ZMQServer::SessionStart().
|
protectedinherited |
Definition at line 196 of file G4VBasicShell.cc.
Referenced by G4VBasicShell::Complete().
G4String G4UIXm::GetCommand | ( | Widget | a_widget | ) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 344 of file G4UIXm.cc.
References commands.
Referenced by ButtonCallback().
|
protectedinherited |
Definition at line 69 of file G4VBasicShell.cc.
References G4VBasicShell::currentDirectory.
Referenced by G4VBasicShell::ApplyShellCommand(), G4UIterminal::GetCommand(), G4ZMQServer::GetCommand(), G4VBasicShell::ListDirectory(), G4ZMQServer::SessionStart(), and G4VBasicShell::TerminalHelp().
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Implements G4VBasicShell.
Definition at line 268 of file G4UIXm.cc.
References G4VInteractorManager::DispatchEvent(), exitHelp, fHelp, fHelpChoice, G4Xt::GetEvent(), G4Xt::getInstance(), and Prompt().
|
inherited |
Definition at line 87 of file G4VInteractiveSession.cc.
References G4VInteractiveSession::interactors.
Referenced by G4UIQt::AddButton(), AddButton(), and G4UIWin32::AddButton().
|
inlineinherited |
|
staticinherited |
Definition at line 68 of file G4UIsession.cc.
References G4UIsession::inSession.
Referenced by G4UIcontrolMessenger::SetNewValue().
|
staticprivate |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 381 of file G4UIXm.cc.
References G4VBasicShell::Complete(), and s.
Referenced by G4UIXm().
|
protectedinherited |
Definition at line 339 of file G4VBasicShell.cc.
References G4VBasicShell::FindDirectory(), G4cout, G4endl, G4VBasicShell::GetCurrentWorkingDirectory(), G4UIcommandTree::ListCurrent(), and G4StrUtil::strip_copy().
Referenced by G4VBasicShell::ApplyShellCommand(), G4UIterminal::GetCommand(), and G4ZMQServer::GetCommand().
Definition at line 124 of file G4VBasicShell.cc.
References G4VBasicShell::currentDirectory.
Referenced by G4VBasicShell::ChangeDirectory(), G4VBasicShell::Complete(), G4VBasicShell::FindCommand(), G4VBasicShell::FindDirectory(), and G4VBasicShell::ModifyToFullPathCommand().
|
protectedinherited |
Definition at line 47 of file G4VBasicShell.cc.
References G4VBasicShell::ModifyPath(), and G4StrUtil::strip_copy().
Referenced by G4UIQt::ActivateCommand(), G4VBasicShell::ApplyShellCommand(), G4UIterminal::GetCommand(), G4ZMQServer::GetCommand(), G4VBasicShell::ShowCurrent(), and G4VBasicShell::TerminalHelp().
|
virtualinherited |
|
virtualinherited |
|
virtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Implements G4VBasicShell.
Definition at line 215 of file G4UIXm.cc.
References SecondaryLoop().
void G4UIXm::Prompt | ( | G4String | aPrompt | ) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 193 of file G4UIXm.cc.
Referenced by GetHelpChoice(), SecondaryLoop(), and SessionStart().
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reimplemented from G4UIsession.
Definition at line 258 of file G4UIXm.cc.
References text, and XmTextAppendString().
Definition at line 84 of file G4coutDestination.cc.
References m, G4coutDestination::ReceiveG4cerr(), G4coutDestination::transformersCerr, and G4coutDestination::transformersCout.
Referenced by G4MasterForwardcoutDestination::ReceiveG4cerr().
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reimplemented from G4UIsession.
Definition at line 248 of file G4UIXm.cc.
References text, and XmTextAppendString().
Definition at line 62 of file G4coutDestination.cc.
References m, G4coutDestination::ReceiveG4cout(), and G4coutDestination::transformersCout.
Referenced by G4MasterForwardcoutDestination::ReceiveG4cout().
|
virtualinherited |
Definition at line 41 of file G4coutDestination.cc.
References G4coutDestination::transformersCerr, and G4coutDestination::transformersCout.
|
private |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 231 of file G4UIXm.cc.
References G4VInteractorManager::DispatchEvent(), exitPause, G4Xt::GetEvent(), G4Xt::getInstance(), and Prompt().
Referenced by PauseSessionStart().
|
virtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Implements G4VBasicShell.
Definition at line 175 of file G4UIXm.cc.
References G4VInteractorManager::DisableSecondaryLoop(), G4VInteractorManager::DispatchEvent(), G4VInteractorManager::EnableSecondaryLoop(), exitSession, G4Xt::GetEvent(), G4Xt::getInstance(), and Prompt().
void G4UIXm::SessionTerminate | ( | ) |
|
protectedinherited |
Definition at line 313 of file G4VBasicShell.cc.
References G4cout, G4endl, G4UImanager::GetCurrentValues(), G4UImanager::GetUIpointer(), and G4VBasicShell::ModifyToFullPathCommand().
Referenced by G4VBasicShell::ApplyShellCommand(), G4UIterminal::GetCommand(), and G4ZMQServer::GetCommand().
|
protectedinherited |
Definition at line 355 of file G4VBasicShell.cc.
References G4VBasicShell::ExitHelp(), G4UIcommandTree::FindPath(), G4cout, G4endl, G4UIcommandTree::GetCommand(), G4VBasicShell::GetCurrentWorkingDirectory(), G4VBasicShell::GetHelpChoice(), G4UImanager::GetTree(), G4UIcommandTree::GetTree(), G4UIcommandTree::GetTreeEntry(), G4UImanager::GetUIpointer(), G4UIcommand::List(), G4UIcommandTree::ListCurrentWithNum(), G4VBasicShell::ModifyToFullPathCommand(), and G4StrUtil::strip().
Referenced by G4VBasicShell::ApplyShellCommand(), G4UIterminal::GetCommand(), G4ZMQServer::GetCommand(), and G4UIQt::ShowHelpCallback().
|
private |
Definition at line 90 of file G4UIXm.hh.
Referenced by CommandEnteredCallback(), G4UIXm(), and Prompt().
|
private |
Definition at line 91 of file G4UIXm.hh.
Referenced by AddButton(), and GetCommand().
|
privateinherited |
Definition at line 101 of file G4VBasicShell.hh.
Referenced by G4VBasicShell::ChangeDirectory(), G4VBasicShell::GetCurrentWorkingDirectory(), and G4VBasicShell::ModifyPath().
|
private |
Definition at line 94 of file G4UIXm.hh.
Referenced by ButtonCallback(), CommandEnteredCallback(), and GetHelpChoice().
|
private |
Definition at line 95 of file G4UIXm.hh.
Referenced by CommandEnteredCallback(), and GetHelpChoice().
|
private |
|
protectedinherited |
Definition at line 68 of file G4UIsession.hh.
Referenced by G4UIsession::~G4UIsession().
|
staticprotectedinherited |
Definition at line 67 of file G4UIsession.hh.
Referenced by G4UIsession::G4UIsession(), G4UIsession::InSession(), and G4UIsession::~G4UIsession().
|
privateinherited |
Definition at line 64 of file G4VInteractiveSession.hh.
Referenced by G4VInteractiveSession::AddInteractor(), and G4VInteractiveSession::GetInteractor().
|
protectedinherited |
Definition at line 69 of file G4UIsession.hh.
Referenced by G4UIbatch::G4UIbatch(), G4UIsession::GetLastReturnCode(), and G4UIbatch::SessionStart().
|
staticprotectedinherited |
Definition at line 88 of file G4coutDestination.hh.
Referenced by G4UIQt::G4UIQt(), G4MasterForwardcoutDestination::ReceiveG4cerr(), G4MasterForwardcoutDestination::ReceiveG4cout(), and G4UIQt::~G4UIQt().
|
private |
|
privateinherited |
Definition at line 62 of file G4VInteractiveSession.hh.
Referenced by G4VInteractiveSession::G4VInteractiveSession(), and G4VInteractiveSession::~G4VInteractiveSession().
|
private |
|
private |
Definition at line 90 of file G4UIXm.hh.
Referenced by G4UIXm(), ReceiveG4cerr(), and ReceiveG4cout().
|
protectedinherited |
Definition at line 94 of file G4coutDestination.hh.
Referenced by G4coutDestination::AddCerrTransformer(), G4coutDestination::ReceiveG4cerr_(), and G4coutDestination::ResetTransformers().
|
protectedinherited |
Definition at line 93 of file G4coutDestination.hh.
Referenced by G4coutDestination::AddCoutTransformer(), G4coutDestination::ReceiveG4cerr_(), G4coutDestination::ReceiveG4cout_(), and G4coutDestination::ResetTransformers().