Warning, /geant4/examples/basic/B4/macros/gui.mac is written in an unsupported language. File is not indexed.
0001 #
0002 # This file permits to customize, with commands,
0003 # the menu bar of the G4UIXm, G4UIQt, G4UIWin32 sessions.
0004 # It has no effect with G4UIterminal.
0005 #
0006 # File menu :
0007 /gui/addMenu file File
0008 /gui/addButton file Quit exit
0009 #
0010 # Run menu :
0011 /gui/addMenu run Run
0012 /gui/addButton run "beamOn 1" "/run/beamOn 1"
0013 /gui/addButton run run1 "/control/execute run1.mac"
0014 #
0015 # Gun menu :
0016 /gui/addMenu gun Gun
0017 /gui/addButton gun "50 MeV" "/gun/energy 50 MeV"
0018 /gui/addButton gun "1 GeV" "/gun/energy 1 GeV"
0019 /gui/addButton gun "10 GeV" "/gun/energy 10 GeV"
0020 /gui/addButton gun "e-" "/gun/particle e-"
0021 /gui/addButton gun "pi0" "/gun/particle pi0"
0022 /gui/addButton gun "pi+" "/gun/particle pi+"
0023 /gui/addButton gun "neutron" "/gun/particle neutron"
0024 /gui/addButton gun "proton" "/gun/particle proton"
0025 #
0026 # Viewer menu :
0027 /gui/addMenu viewer Viewer
0028 /gui/addButton viewer "Set style surface" "/vis/viewer/set/style surface"
0029 /gui/addButton viewer "Set style wireframe" "/vis/viewer/set/style wireframe"
0030 /gui/addButton viewer "Refresh viewer" "/vis/viewer/refresh"
0031 /gui/addButton viewer "Update viewer (interaction or end-of-file)" "/vis/viewer/update"
0032 /gui/addButton viewer "Flush viewer (= refresh + update)" "/vis/viewer/flush"
0033 /gui/addButton viewer "Update scene" "/vis/scene/notifyHandlers"
0034 #
0035 # To limit the output flow in the "dump" widget :
0036 /run/printProgress 100
0037 #