#define _WX_FILEDIRPICKER_H_
#include "wx/button.h"
-#include "wx/filename.h"
#include "wx/filedlg.h"
#include "wx/dirdlg.h"
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)
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)