/ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
| 868 | /****************************************************************************************************/ |
| 869 | /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ |
| 870 | G4bool G4UIWin32::ProcessDefaultCommands(G4int idCommand) |
| 871 | { |
| 872 | switch (idCommand) { |
| 873 | case ID_EXIT_APP: |
| 874 | PostMessage(fHWndMainWindow, WM_CLOSE, 0, 0); |
| 875 | return true; |
| 876 | case ID_OPEN_MACRO: |
| 877 | DoOpenMacro(fHWndMainWindow); |
| 878 | return true; |
| 879 | case ID_SAVE_VIEWER_STATE: |
| 880 | DoSaveViewer(fHWndMainWindow); |
| 881 | return true; |
| 882 | case ID_RUN_BEAMON: |
| 883 | if (! fHelp) { |
| 884 | G4String command = "/run/beamOn 1"; |
| 885 | ApplyShellCommand(command, exitSession, exitPause); |
| 886 | } |
| 887 | return true; |
| 888 | case ID_RUN_CMD: |
| 889 | return true; |
| 890 | case ID_VIEW_SOLID: |
| 891 | if (! fHelp) { |
| 892 | G4String command = "/vis/viewer/set/style s"; |
| 893 | ApplyShellCommand(command, exitSession, exitPause); |
| 894 | } |
| 895 | return true; |
| 896 | case ID_VIEW_WIREFRAME: |
| 897 | if (! fHelp) { |
| 898 | G4String command = "/vis/viewer/set/style w"; |
| 899 | ApplyShellCommand(command, exitSession, exitPause); |
| 900 | } |
| 901 | return true; |
| 902 | case ID_PROJ_ORTHOGRAPHIC: |
| 903 | if (! fHelp) { |
| 904 | G4String command = "/vis/viewer/set/projection o"; |
| 905 | ApplyShellCommand(command, exitSession, exitPause); |
| 906 | } |
| 907 | return true; |
| 908 | case ID_PROJ_PERSPECTIVE: |
| 909 | if (! fHelp) { |
| 910 | G4String command = "/vis/viewer/set/projection p"; |
| 911 | ApplyShellCommand(command, exitSession, exitPause); |
| 912 | } |
| 913 | return true; |
| 914 | case ID_ZOOM_IN: |
| 915 | if (! fHelp) { |
| 916 | G4String command = "/vis/viewer/zoom 1.2"; |
| 917 | ApplyShellCommand(command, exitSession, exitPause); |
| 918 | } |
| 919 | return true; |
| 920 | case ID_ZOOM_OUT: |
| 921 | if (! fHelp) { |
| 922 | G4String command = "/vis/viewer/zoom 0.8"; |
| 923 | ApplyShellCommand(command, exitSession, exitPause); |
| 924 | } |
| 925 | return true; |
| 926 | case ID_ORIENTATION_XY: |
| 927 | if (! fHelp) { |