X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/556151f5ff1bd2fa44de2237a3ad03694c2e3883..392c5133ff8aba785fece7aef8f63f99843e8aa1:/include/wx/generic/filepickerg.h diff --git a/include/wx/generic/filepickerg.h b/include/wx/generic/filepickerg.h index 51a019b8df..ec23c505bd 100644 --- a/include/wx/generic/filepickerg.h +++ b/include/wx/generic/filepickerg.h @@ -13,7 +13,6 @@ #define _WX_FILEDIRPICKER_H_ #include "wx/button.h" -#include "wx/filename.h" #include "wx/filedlg.h" #include "wx/dirdlg.h" @@ -136,12 +135,14 @@ public: // overrideable return p; } + wxEventType GetEventType() const + { return wxEVT_COMMAND_FILEPICKER_CHANGED; } + +protected: void UpdateDialogPath(wxDialog *p) { wxStaticCast(p, wxFileDialog)->SetPath(m_path); } void UpdatePathFromDialog(wxDialog *p) { m_path = wxStaticCast(p, wxFileDialog)->GetPath(); } - wxEventType GetEventType() const - { return wxEVT_COMMAND_FILEPICKER_CHANGED; } private: DECLARE_DYNAMIC_CLASS(wxGenericFileButton) @@ -193,12 +194,14 @@ public: // overrideable GetDialogStyle()); } + wxEventType GetEventType() const + { return wxEVT_COMMAND_DIRPICKER_CHANGED; } + +protected: void UpdateDialogPath(wxDialog *p) { wxStaticCast(p, wxDirDialog)->SetPath(m_path); } void UpdatePathFromDialog(wxDialog *p) { m_path = wxStaticCast(p, wxDirDialog)->GetPath(); } - wxEventType GetEventType() const - { return wxEVT_COMMAND_DIRPICKER_CHANGED; } private: DECLARE_DYNAMIC_CLASS(wxGenericDirButton)