X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e36a173933aaa81b28a27979c3748e8bc42ef88c..f6753003f1851b52c7778e2a12a747d6265f47d9:/samples/dialogs/dialogs.h diff --git a/samples/dialogs/dialogs.h b/samples/dialogs/dialogs.h index 659e9c4e79..36836f1d3a 100644 --- a/samples/dialogs/dialogs.h +++ b/samples/dialogs/dialogs.h @@ -77,7 +77,8 @@ of MSW, MAC and OS2 #define USE_DIRDLG_GENERIC \ ((USE_WXMSW || USE_WXMAC) && USE_GENERIC_DIALOGS && wxUSE_DIRDLG) #define USE_FILEDLG_GENERIC \ - ((((USE_WXMSW || USE_WXMAC || USE_WXPM) && USE_GENERIC_DIALOGS) || USE_WXWINCE) && wxUSE_FILEDLG) + ((((USE_WXMSW || USE_WXMAC || USE_WXPM || USE_WXGTK) \ + && USE_GENERIC_DIALOGS) || USE_WXWINCE) && wxUSE_FILEDLG) #define USE_FONTDLG_GENERIC \ ((USE_WXMSW || USE_WXMACFONTDLG || USE_WXPM) && USE_GENERIC_DIALOGS && wxUSE_FONTDLG) @@ -169,6 +170,22 @@ private: DECLARE_EVENT_TABLE() }; +class TestDefaultActionDialog: public wxDialog +{ +public: + TestDefaultActionDialog( wxWindow *parent ); + + void OnListBoxDClick(wxCommandEvent& event); + void OnCatchListBoxDClick(wxCommandEvent& event); + +private: + bool m_catchListBoxDClick; + +private: + DECLARE_EVENT_TABLE() +}; + + #if USE_SETTINGS_DIALOG // Property sheet dialog class SettingsDialog: public wxPropertySheetDialog @@ -314,6 +331,9 @@ public: #endif // wxUSE_NOTIFICATION_MESSAGE void OnStandardButtonsSizerDialog(wxCommandEvent& event); + + void OnTestDefaultActionDialog(wxCommandEvent& event); + void OnExit(wxCommandEvent& event); private: @@ -402,7 +422,8 @@ enum DIALOGS_PROPERTY_SHEET, DIALOGS_PROPERTY_SHEET_TOOLBOOK, DIALOGS_PROPERTY_SHEET_BUTTONTOOLBOOK, - DIALOGS_STANDARD_BUTTON_SIZER_DIALOG + DIALOGS_STANDARD_BUTTON_SIZER_DIALOG, + DIALOGS_TEST_DEFAULT_ACTION }; #endif