X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42dcacf02b163699d4623097c4d04980f11d9040..9398120d298d745763f253d87d774be3b134b43f:/include/wx/generic/dirdlgg.h diff --git a/include/wx/generic/dirdlgg.h b/include/wx/generic/dirdlgg.h index 278a1c6083..4996965dd3 100644 --- a/include/wx/generic/dirdlgg.h +++ b/include/wx/generic/dirdlgg.h @@ -37,10 +37,10 @@ class WXDLLEXPORT wxGenericDirDialog: public wxDialog public: wxGenericDirDialog(): wxDialog() {} wxGenericDirDialog(wxWindow* parent, const wxString& title, - const wxString& defaultPath = wxEmptyString, - long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, - const wxPoint& pos = wxDefaultPosition, - const wxSize& sz = wxSize(450, 550), + const wxString& defaultPath = wxEmptyString, + long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON, + const wxPoint& pos = wxDefaultPosition, + const wxSize& sz = wxSize(450, 550), const wxString& name = _T("dialog")); //// Accessors @@ -64,6 +64,7 @@ protected: void OnTreeSelected(wxTreeEvent &event); void OnTreeKeyDown(wxTreeEvent &event); void OnNew(wxCommandEvent& event); + void OnGoHome(wxCommandEvent& event); void OnShowHidden(wxCommandEvent& event); wxString m_message; @@ -75,7 +76,7 @@ protected: DECLARE_EVENT_TABLE() }; -#if !defined(__WXMSW__) && !defined(__WXMAC__) && !defined(__WXPM__) +#if !defined(__WXMSW__) && !defined(__WXMAC__) #define wxDirDialog wxGenericDirDialog #endif