- menu_bar->Append(file_menu, "&File");
- if (isCanvas)
- menu_bar->Append(edit_menu, "&Edit");
- menu_bar->Append(help_menu, "&Help");
-
- //// Associate the menu bar with the frame
- subframe->SetMenuBar(menu_bar);
-
- return subframe;
+ file_menu->AppendSeparator();
+ file_menu->Append(wxID_EXIT);
+
+ wxMenu *edit_menu = new wxMenu;
+ if (isCanvas)
+ {
+ edit_menu->Append(wxID_UNDO);
+ edit_menu->Append(wxID_REDO);
+ edit_menu->AppendSeparator();
+ edit_menu->Append(DOCVIEW_CUT, wxT("&Cut last segment"));
+
+ doc->GetCommandProcessor()->SetEditMenu(edit_menu);
+ }
+ else
+ {
+ edit_menu->Append(wxID_COPY);
+ edit_menu->Append(wxID_PASTE);
+ edit_menu->Append(wxID_SELECTALL);
+ }
+ wxMenu *help_menu = new wxMenu;
+ help_menu->Append(DOCVIEW_ABOUT);
+
+ wxMenuBar *menu_bar = new wxMenuBar;
+
+ menu_bar->Append(file_menu, wxGetStockLabel(wxID_FILE));
+ menu_bar->Append(edit_menu, wxGetStockLabel(wxID_EDIT));
+ menu_bar->Append(help_menu, wxGetStockLabel(wxID_HELP));
+
+ //// Associate the menu bar with the frame
+ subframe->SetMenuBar(menu_bar);
+
+ return subframe;