- wxMenu *fileMenu = new wxMenu;
- fileMenu->Append(SPLIT_VERTICAL, _T("Split &Vertically\tCtrl-V"), _T("Split vertically"));
- fileMenu->Append(SPLIT_HORIZONTAL, _T("Split &Horizontally\tCtrl-H"), _T("Split horizontally"));
- fileMenu->Append(SPLIT_UNSPLIT, _T("&Unsplit\tCtrl-U"), _T("Unsplit"));
- fileMenu->AppendSeparator();
- fileMenu->Append(SPLIT_SETMINSIZE, _T("Set &min size"), _T("Set minimum pane size"));
- fileMenu->AppendSeparator();
- fileMenu->Append(SPLIT_QUIT, _T("E&xit\tAlt-X"), _T("Exit"));
+ wxMenu *splitMenu = new wxMenu;
+ splitMenu->Append(SPLIT_VERTICAL,
+ _T("Split &Vertically\tCtrl-V"),
+ _T("Split vertically"));
+ splitMenu->Append(SPLIT_HORIZONTAL,
+ _T("Split &Horizontally\tCtrl-H"),
+ _T("Split horizontally"));
+ splitMenu->Append(SPLIT_UNSPLIT,
+ _T("&Unsplit\tCtrl-U"),
+ _T("Unsplit"));
+ splitMenu->AppendSeparator();
+
+ splitMenu->AppendCheckItem(SPLIT_LIVE,
+ _T("&Live update\tCtrl-L"),
+ _T("Toggle live update mode"));
+ splitMenu->Append(SPLIT_SETPOSITION,
+ _T("Set splitter &position\tCtrl-P"),
+ _T("Set the splitter position"));
+ splitMenu->Append(SPLIT_SETMINSIZE,
+ _T("Set &min size\tCtrl-M"),
+ _T("Set minimum pane size"));
+ splitMenu->AppendSeparator();
+
+ splitMenu->Append(SPLIT_QUIT, _T("E&xit\tAlt-X"), _T("Exit"));