addMenu |
addButton |
defaultIcons |
addIcon |
system |
outputStyle |
nativeMenuBar |
clearMenu |
Add a menu to menu bar.
Available at all Geant4 states.
Parameters
Name | type s | ||
Label | type s |
Add a button to menu.
Available at all Geant4 states.
Parameters
Menu | type s | ||
Label | type s | ||
Command | type s |
Set the Geant4 defaults icons in Qt driver.
By default, Geant4 icons are enable.
Available at all Geant4 states.
Parameters
bool | type b | Omittable : default value = true |
Add a non-checkable icon to the Icon toolbar.
If the Icon parameter is set to "user_icon", you should provide the icon file in xpm format, otherwise you have to choose one of the candidate icons
A command given without parameters will display a window that will allow one to choose the parameters (if needed) for this command.
E.g: /gui/addIcon "Change background color" user_icon /vis/viewer/set/background ../Images/background.xpm
Special cases for the Icon parameter:
- open: Open an open-file-selector that can run the Command with File as argument.
- save: Open a save-file-selector that can run the Command with File as argument.
- move/rotate/pick/zoom_in/zoom_out: Theses icons are radio-button icons that can change cursor action.
- wireframe/solid/hidden_line_removal/hidden_line_and_surface_removal: These icons are radio-button icons that can change drawing style.
- perspective/ortho: These icons are radio-button icons that can change projection style.
Available at all Geant4 states.
Parameters
Label | type s | ||
Icon | type s | Parameter candidates : open save move rotate pick zoom_in zoom_out wireframe solid hidden_line_removal hidden_line_and_surface_removal perspective ortho exit user_icon | |
Command | type s | Omittable : default value = no_command | |
File | type s | Omittable : default value = no_file |
Send a command to the system.
Available at all Geant4 states.
Parameters
Command | type s |
Set output style.
First parameter: destination stream.
Second parameter: style.
Note that highlight for cout refers only to echoed commands, i.e.,
commands echoed by "/control/verbose 2".
Note also that plain resets both highlight and bold.
Available at all Geant4 states.
Parameters
destination | type s | Omittable : default value = all | Parameter candidates : cerr cout debug error warn all |
style | type s | Omittable : default value = fixed | Parameter candidates : fixed proportional bold plain highlight |
Allow native menu bar in Geant4 Qt driver.
By default, enable.
Available at all Geant4 states.
Parameters
bool | type b | Omittable : default value = true |
Clear menu bar, remove all user defined menu entries.
Available at all Geant4 states.