-#endif
- file_menu->AppendSeparator();
- file_menu->Append(DIALOGS_LOG_DIALOG, "&Log dialog\tCtrl-L");
- file_menu->Append(DIALOGS_MESSAGE_BOX, "&Message box\tCtrl-M");
- file_menu->Append(DIALOGS_TEXT_ENTRY, "Text &entry\tCtrl-E");
- file_menu->Append(DIALOGS_PASSWORD_ENTRY, "&Password entry\tCtrl-P");
- file_menu->Append(DIALOGS_NUM_ENTRY, "&Numeric entry\tCtrl-N");
- file_menu->Append(DIALOGS_SINGLE_CHOICE, "&Single choice\tCtrl-C");
- file_menu->Append(DIALOGS_MULTI_CHOICE, "M&ultiple choice\tCtrl-U");
- file_menu->AppendSeparator();
- file_menu->Append(DIALOGS_TIP, "&Tip of the day\tCtrl-T");
- file_menu->AppendSeparator();
- file_menu->Append(DIALOGS_FILE_OPEN, "&Open file\tCtrl-O");
- file_menu->Append(DIALOGS_FILE_OPEN2, "&Second open file\tCtrl-2");
- file_menu->Append(DIALOGS_FILES_OPEN, "Open &files\tCtrl-Q");
- file_menu->Append(DIALOGS_FILE_SAVE, "Sa&ve file\tCtrl-S");
- file_menu->Append(DIALOGS_DIR_CHOOSE, "&Choose a directory\tCtrl-D");
-#if defined(__WXMSW__) || defined(__WXMAC__)
- file_menu->Append(DIALOGS_GENERIC_DIR_CHOOSE, "&Choose a directory (generic implementation)");
-#endif // wxMSW || wxMAC
-#if wxUSE_PROGRESSDLG
- file_menu->Append(DIALOGS_PROGRESS, "Pro&gress dialog\tCtrl-G");
-#endif // wxUSE_PROGRESSDLG
-#if wxUSE_BUSYINFO
- file_menu->Append(DIALOGS_BUSYINFO, "&Busy info dialog\tCtrl-B");
-#endif // wxUSE_BUSYINFO
-#if wxUSE_FINDREPLDLG
- file_menu->Append(DIALOGS_FIND, "&Find dialog\tCtrl-F", "", TRUE);
- file_menu->Append(DIALOGS_REPLACE, "Find and &replace dialog\tShift-Ctrl-F", "", TRUE);
-#endif // wxUSE_FINDREPLDLG
- file_menu->AppendSeparator();
- file_menu->Append(DIALOGS_MODAL, "Mo&dal dialog\tCtrl-W");
- file_menu->Append(DIALOGS_MODELESS, "Modeless &dialog\tCtrl-Z", "", TRUE);
- file_menu->AppendSeparator();
- file_menu->Append(wxID_EXIT, "E&xit\tAlt-X");
- wxMenuBar *menu_bar = new wxMenuBar;
- menu_bar->Append(file_menu, "&File");
- frame->SetMenuBar(menu_bar);
+ #if wxUSE_COLOURDLG
+ choices_menu->Append(DIALOGS_CHOOSE_COLOUR, _T("&Choose colour"));
+ #endif // wxUSE_COLOURDLG
+
+ #if wxUSE_FONTDLG
+ choices_menu->Append(DIALOGS_CHOOSE_FONT, _T("Choose &font"));
+ #endif // wxUSE_FONTDLG
+
+ #if wxUSE_CHOICEDLG
+ choices_menu->Append(DIALOGS_SINGLE_CHOICE, _T("&Single choice\tCtrl-C"));
+ choices_menu->Append(DIALOGS_MULTI_CHOICE, _T("M&ultiple choice\tCtrl-U"));
+ #endif // wxUSE_CHOICEDLG
+
+ #if USE_COLOURDLG_GENERIC || USE_FONTDLG_GENERIC
+ choices_menu->AppendSeparator();
+ #endif // USE_COLOURDLG_GENERIC || USE_FONTDLG_GENERIC
+
+ #if USE_COLOURDLG_GENERIC
+ choices_menu->Append(DIALOGS_CHOOSE_COLOUR_GENERIC, _T("&Choose colour (generic)"));
+ #endif // USE_COLOURDLG_GENERIC
+
+ #if USE_FONTDLG_GENERIC
+ choices_menu->Append(DIALOGS_CHOOSE_FONT_GENERIC, _T("Choose &font (generic)"));
+ #endif // USE_FONTDLG_GENERIC
+
+ file_menu->Append(wxID_ANY,_T("Choices and selectors"),choices_menu);
+
+ #endif // wxUSE_COLOURDLG || wxUSE_FONTDLG || wxUSE_CHOICEDLG
+
+
+ #if wxUSE_TEXTDLG || wxUSE_NUMBERDLG
+
+ wxMenu *entry_menu = new wxMenu;
+
+ #if wxUSE_TEXTDLG
+ entry_menu->Append(DIALOGS_TEXT_ENTRY, _T("Text &entry\tCtrl-E"));
+ entry_menu->Append(DIALOGS_PASSWORD_ENTRY, _T("&Password entry\tCtrl-P"));
+ #endif // wxUSE_TEXTDLG
+
+ #if wxUSE_NUMBERDLG
+ entry_menu->Append(DIALOGS_NUM_ENTRY, _T("&Numeric entry\tCtrl-N"));
+ #endif // wxUSE_NUMBERDLG
+
+ file_menu->Append(wxID_ANY,_T("Entry dialogs"),entry_menu);
+
+ #endif // wxUSE_TEXTDLG || wxUSE_NUMBERDLG
+
+
+ #if wxUSE_FILEDLG
+
+ wxMenu *filedlg_menu = new wxMenu;
+ filedlg_menu->Append(DIALOGS_FILE_OPEN, _T("&Open file\tCtrl-O"));
+ filedlg_menu->Append(DIALOGS_FILE_OPEN2, _T("&Second open file\tCtrl-2"));
+ filedlg_menu->Append(DIALOGS_FILES_OPEN, _T("Open &files\tCtrl-Q"));
+ filedlg_menu->Append(DIALOGS_FILE_SAVE, _T("Sa&ve file\tCtrl-S"));
+
+ #if USE_FILEDLG_GENERIC
+ filedlg_menu->AppendSeparator();
+ filedlg_menu->Append(DIALOGS_FILE_OPEN_GENERIC, _T("&Open file (generic)"));
+ filedlg_menu->Append(DIALOGS_FILES_OPEN_GENERIC, _T("Open &files (generic)"));
+ filedlg_menu->Append(DIALOGS_FILE_SAVE_GENERIC, _T("Sa&ve file (generic)"));
+ #endif // USE_FILEDLG_GENERIC
+
+ file_menu->Append(wxID_ANY,_T("File operations"),filedlg_menu);
+
+ #endif // wxUSE_FILEDLG