34 m_BrowseMode(allowBrowse)
38 XRCCTRL(*
this,
"wxID_OK",
wxButton)->SetDefault();
40 XRCCTRL(*
this,
"btnBrowse",
wxButton)->Enable(m_BrowseMode != bmDisable);
41 XRCCTRL(*
this,
"txtKey",
wxTextCtrl)->SetValue(key);
42 XRCCTRL(*
this,
"txtValue",
wxTextCtrl)->SetValue(value);
56 XRCCTRL(*
this,
"wxID_OK",
wxButton)->Enable(enable);
67 XRCCTRL(*
this,
"txtValue",
wxTextCtrl)->GetValue(),
70 wxFD_OPEN | compatibility::wxHideReadonly);
79 _(
"Select directory"),
80 XRCCTRL(*
this,
"txtValue",
wxTextCtrl)->GetValue(),
85 XRCCTRL(*
this,
"txtValue",
wxTextCtrl)->SetValue(dir);
void EndModal(int retCode)
void OnUpdateUI(wxUpdateUIEvent &event)
DLLIMPORT wxString ChooseDirectory(wxWindow *parent, const wxString &message=_("Select directory"), const wxString &initialPath=_T(""), const wxString &basePath=_T(""), bool askToMakeRelative=false, bool showCreateDirButton=false)
bool Matches(const wxString &text, int flags=0) const
DLLIMPORT wxString GetFilterAll()
Generates a simple special filter "All files".
void OnBrowse(wxCommandEvent &event)
void EndModal(int retCode) override
virtual wxString GetPath() const
const wxString & _(const wxString &string)
DLLIMPORT void PlaceWindow(wxTopLevelWindow *w, cbPlaceDialogMode mode=pdlBest, bool enforce=false)
static const wxRegEx reKey(wxT("^[[:alnum:]_]+$"), wxRE_EXTENDED)
static wxXmlResource * Get()
wxObject * LoadObject(wxWindow *parent, const wxString &name, const wxString &classname)