52#define ID_EXIT_APP 40001
53#define ID_OPEN_MACRO 40002
54#define ID_SAVE_VIEWER_STATE 40003
55#define ID_RUN_BEAMON 40004
56#define ID_RUN_CMD 40005
57#define ID_VIEW_SOLID 40006
58#define ID_VIEW_WIREFRAME 40007
59#define ID_PROJ_ORTHOGRAPHIC 40008
60#define ID_PROJ_PERSPECTIVE 40009
61#define ID_ZOOM_IN 40010
62#define ID_ZOOM_OUT 40011
63#define ID_ORIENTATION_XY 40012
64#define ID_ORIENTATION_XZ 40013
65#define ID_ORIENTATION_YZ 40014
66#define ID_ORIENTATION_OBLIQUE 40015
67#define ID_HELP_ABOUT 40016
68#define ID_LOG_CLEAN 40017
69#define ID_LOG_SAVE 40018
72#define MAX_HISTORY_ITEMS 10
74#define IDC_MAIN_EDIT 101
75#define IDC_MAIN_TOOL 102
76#define IDC_MAIN_TREE_VIEW 104
77#define IDC_MAIN_COMBO 105
78#define IDC_MAIN_STATUS 106
105 void AddMenu(
const char*,
const char*)
override;
112 void AddButton(
const char*,
const char*,
const char*)
override;
126 void SecondaryLoop(
const G4String&);
128 void ExitHelp()
const override;
130 G4bool CreateComponents(HWND);
131 G4bool ResizeComponents(HWND);
132 void ProcessTabKey();
133 void ProcessEscKey();
134 void ProcessEnterKey();
136 void ProcessDownKey();
140 G4String GetHelpTreeToolTips(HTREEITEM);
144 void HelpTreeDoubleClick(HTREEITEM);
146 G4bool SaveLogFile(LPCTSTR);
149 void DoOpenMacro(HWND);
150 void DoSaveViewer(HWND);
151 void DoSaveLog(HWND);
153 G4bool InitHelpTreeItems();
154 HTREEITEM AddItemToHelpTree(LPTSTR, HTREEITEM = TVI_ROOT);
156 LPSTR GetItemPath(HTREEITEM);
162 HWND fHWndMainWindow;
166 HWND fHWndComboEditor;
172 std::map<G4int, G4String, std::less<G4int> > commands;
174 static LRESULT CALLBACK MainWindowProc(HWND, UINT, WPARAM, LPARAM);
176 static LRESULT CALLBACK ComboEditorWindowProc(HWND, UINT, WPARAM, LPARAM);
180 std::vector<G4String> fHistory;
G4int ReceiveG4cout(const G4String &) override
G4UIsession * SessionStart() override
void AddMenu(const char *, const char *) override
void PauseSessionStart(const G4String &) override
G4String GetCommand(G4int)
void AddButton(const char *, const char *, const char *) override
G4int ReceiveG4cerr(const G4String &) override
void Prompt(const G4String &)