- file_menu->Append(wxID_PRINT, "&Print...");
- file_menu->Append(wxID_PRINT_SETUP, "Print &Setup...");
- file_menu->Append(wxID_PREVIEW, "Print Pre&view");
-
- edit_menu = new wxMenu;
- edit_menu->Append(wxID_UNDO, "&Undo");
- edit_menu->Append(wxID_REDO, "&Redo");
- edit_menu->AppendSeparator();
- edit_menu->Append(DOCVIEW_CUT, "&Cut last segment");
-
- frame->editMenu = edit_menu;
- }
-
- file_menu->AppendSeparator();
- file_menu->Append(wxID_EXIT, "E&xit");
-
- // A nice touch: a history of files visited. Use this menu.
- m_docManager->FileHistoryUseMenu(file_menu);
-
- wxMenu *help_menu = new wxMenu;
- help_menu->Append(DOCVIEW_ABOUT, "&About");
-
- wxMenuBar *menu_bar = new wxMenuBar;
-
- menu_bar->Append(file_menu, "&File");
- if (edit_menu)
- menu_bar->Append(edit_menu, "&Edit");
- menu_bar->Append(help_menu, "&Help");
-
- if (singleWindowMode)
- frame->canvas = frame->CreateCanvas(NULL, frame);
-
- //// Associate the menu bar with the frame
- frame->SetMenuBar(menu_bar);
-
- frame->Centre(wxBOTH);
- frame->Show(TRUE);
-
- SetTopWindow(frame);
- return TRUE;
+ file_menu->Append(wxID_EXIT);
+
+ // A nice touch: a history of files visited. Use this menu.
+ m_docManager->FileHistoryUseMenu(file_menu);
+
+ wxMenu *help_menu = new wxMenu;
+ help_menu->Append(DOCVIEW_ABOUT);
+
+ wxMenuBar *menu_bar = new wxMenuBar;
+
+ menu_bar->Append(file_menu, wxGetStockLabel(wxID_FILE));
+ if (edit_menu)
+ menu_bar->Append(edit_menu, wxGetStockLabel(wxID_EDIT));
+ menu_bar->Append(help_menu, wxGetStockLabel(wxID_HELP));
+
+ if (singleWindowMode)
+ frame->m_canvas = frame->CreateCanvas(NULL, frame);
+
+ //// Associate the menu bar with the frame
+ frame->SetMenuBar(menu_bar);
+
+ frame->Centre(wxBOTH);
+ frame->Show(true);
+
+ SetTopWindow(frame);
+ return true;