Geant4
10.03
|
#include <G4VUIshell.hh>
Public Member Functions | |
G4VUIshell (const G4String &prompt="> ") | |
virtual | ~G4VUIshell () |
void | SetNColumn (G4int ncol) |
void | SetPrompt (const G4String &prompt) |
void | SetCurrentDirectory (const G4String &ccd) |
virtual void | SetLsColor (TermColorIndex, TermColorIndex) |
virtual void | ShowCurrentDirectory () const |
virtual void | ListCommand (const G4String &input, const G4String &candidate="") const |
virtual G4String | GetCommandLineString (const char *msg=0)=0 |
virtual void | ResetTerminal () |
Protected Member Functions | |
virtual void | MakePrompt (const char *msg=0) |
G4UIcommandTree * | GetCommandTree (const G4String &dir) const |
G4String | GetAbsCommandDirPath (const G4String &apath) const |
G4String | GetCommandPathTail (const G4String &apath) const |
Protected Attributes | |
G4String | promptSetting |
G4String | promptString |
G4int | nColumn |
G4bool | lsColorFlag |
TermColorIndex | directoryColor |
TermColorIndex | commandColor |
G4String | currentCommandDir |
Definition at line 59 of file G4VUIshell.hh.
G4VUIshell::G4VUIshell | ( | const G4String & | prompt = "> " | ) |
Definition at line 46 of file G4VUIshell.cc.
|
virtual |
Definition at line 55 of file G4VUIshell.cc.
Definition at line 147 of file G4VUIshell.cc.
References G4String::index(), G4String::last(), and G4String::remove().
Referenced by G4UItcsh::CompleteCommand(), and G4UItcsh::ListMatchedCommand().
|
pure virtual |
Definition at line 193 of file G4VUIshell.cc.
Referenced by G4UItcsh::CompleteCommand().
|
protected |
Definition at line 118 of file G4VUIshell.cc.
References G4String::both, G4UImanager::GetUIpointer(), G4String::index(), and G4String::strip().
Referenced by G4UItcsh::CompleteCommand().
|
virtual |
Definition at line 231 of file G4VUIshell.cc.
References G4String::both, FALSE, G4cout, G4endl, G4String::index(), G4UIArrayString::Show(), G4String::strip(), and TRUE.
Referenced by G4UItcsh::ListMatchedCommand().
|
protectedvirtual |
Reimplemented in G4UItcsh.
Definition at line 61 of file G4VUIshell.cc.
References G4String::append(), currentCommandDir, G4StateManager::GetCurrentState(), G4StateManager::GetStateManager(), promptSetting, and promptString.
Referenced by G4UIcsh::GetCommandLineString().
|
virtual |
Reimplemented in G4UItcsh.
Definition at line 108 of file G4VUIshell.cc.
|
inline |
Definition at line 115 of file G4VUIshell.hh.
References currentCommandDir.
|
inlinevirtual |
Reimplemented in G4UItcsh.
Definition at line 120 of file G4VUIshell.hh.
|
inline |
Definition at line 105 of file G4VUIshell.hh.
References nColumn.
|
inline |
Definition at line 110 of file G4VUIshell.hh.
References promptSetting.
|
inlinevirtual |
Definition at line 124 of file G4VUIshell.hh.
References currentCommandDir, G4cout, and G4endl.
|
protected |
Definition at line 70 of file G4VUIshell.hh.
Referenced by G4UItcsh::SetLsColor().
|
protected |
Definition at line 73 of file G4VUIshell.hh.
Referenced by G4UItcsh::CompleteCommand(), G4UItcsh::ListMatchedCommand(), MakePrompt(), G4UItcsh::MakePrompt(), SetCurrentDirectory(), and ShowCurrentDirectory().
|
protected |
Definition at line 69 of file G4VUIshell.hh.
Referenced by G4UItcsh::SetLsColor().
|
protected |
Definition at line 68 of file G4VUIshell.hh.
Referenced by G4UItcsh::SetLsColor().
|
protected |
Definition at line 64 of file G4VUIshell.hh.
Referenced by SetNColumn().
|
protected |
Definition at line 61 of file G4VUIshell.hh.
Referenced by MakePrompt(), G4UItcsh::MakePrompt(), and SetPrompt().
|
protected |
Definition at line 62 of file G4VUIshell.hh.
Referenced by G4UItcsh::ClearScreen(), G4UIcsh::GetCommandLineString(), G4UItcsh::GetCommandLineString(), G4UItcsh::ListMatchedCommand(), MakePrompt(), and G4UItcsh::MakePrompt().