virtual ~wxFileDirPickerWidgetBase() { }
wxString GetPath() const { return m_path; }
- void SetPath(const wxString &str) { m_path=str; UpdateDialogPath(); }
+ virtual void SetPath(const wxString &str) { m_path=str; }
protected:
- virtual void UpdateDialogPath() = 0;
- virtual void UpdatePathFromDialog() = 0;
+ virtual void UpdateDialogPath(wxDialog *) = 0;
+ virtual void UpdatePathFromDialog(wxDialog *) = 0;
wxString m_path;
};
// NOTE: wxFileDirPickerCtrlBase will allocate a wx{File|Dir}PickerWidget and this
// requires that all classes being mapped as wx{File|Dir}PickerWidget have the
// same prototype for the contructor...
-#if defined(__WXGTK24__) // since GTK > 2.4, there is GtkColorButton
+#if defined(__WXGTK26__) // since GTK >= 2.6, there is GtkFileButton
#include "wx/gtk/filepicker.h"
#define wxFilePickerWidget wxFileButton
#define wxDirPickerWidget wxDirButton
// used, a textctrl next to it.
// ----------------------------------------------------------------------------
-#define wxFLP_USE_TEXTCTRL wxPB_USE_TEXTCTRL
+#define wxFLP_USE_TEXTCTRL (wxPB_USE_TEXTCTRL)
#ifdef __WXGTK__
// GTK apps usually don't have a textctrl next to the picker
- #define wxFLP_DEFAULT_STYLE wxFLP_OPEN
+ #define wxFLP_DEFAULT_STYLE (wxFLP_OPEN)
#else
- #define wxFLP_DEFAULT_STYLE wxFLP_USE_TEXTCTRL|wxFLP_OPEN
+ #define wxFLP_DEFAULT_STYLE (wxFLP_USE_TEXTCTRL|wxFLP_OPEN)
#endif
class WXDLLIMPEXP_CORE wxFilePickerCtrl : public wxFileDirPickerCtrlBase
// (see wxDIRP_USE_TEXTCTRL) next to it.
// ----------------------------------------------------------------------------
-#define wxDIRP_USE_TEXTCTRL wxPB_USE_TEXTCTRL
+#define wxDIRP_USE_TEXTCTRL (wxPB_USE_TEXTCTRL)
#ifdef __WXGTK__
// GTK apps usually don't have a textctrl next to the picker
#define wxDIRP_DEFAULT_STYLE 0
#else
- #define wxDIRP_DEFAULT_STYLE wxDIRP_USE_TEXTCTRL
+ #define wxDIRP_DEFAULT_STYLE (wxDIRP_USE_TEXTCTRL)
#endif
class WXDLLIMPEXP_CORE wxDirPickerCtrl : public wxFileDirPickerCtrlBase