summaryrefslogtreecommitdiff
path: root/wx+/dir_picker.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:15:16 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:15:16 +0200
commitbd6336c629841c6db3a6ca53a936d629d34db53b (patch)
tree3721ef997864108df175ce677a8a7d4342a6f1d2 /wx+/dir_picker.h
parent4.0 (diff)
downloadFreeFileSync-bd6336c629841c6db3a6ca53a936d629d34db53b.tar.gz
FreeFileSync-bd6336c629841c6db3a6ca53a936d629d34db53b.tar.bz2
FreeFileSync-bd6336c629841c6db3a6ca53a936d629d34db53b.zip
4.1
Diffstat (limited to 'wx+/dir_picker.h')
-rw-r--r--wx+/dir_picker.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/wx+/dir_picker.h b/wx+/dir_picker.h
new file mode 100644
index 00000000..5f18b6fb
--- /dev/null
+++ b/wx+/dir_picker.h
@@ -0,0 +1,31 @@
+#ifndef DIR_PICKER_I18N_H_INCLUDED
+#define DIR_PICKER_I18N_H_INCLUDED
+
+#include <wx/filepicker.h>
+#include <zen/i18n.h>
+
+namespace zen
+{
+class DirPickerCtrl : public wxDirPickerCtrl
+{
+public:
+ DirPickerCtrl(wxWindow* parent, wxWindowID id,
+ const wxString& path = wxEmptyString,
+ const wxString& message = wxDirSelectorPromptStr,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDIRP_DEFAULT_STYLE,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxDirPickerCtrlNameStr) :
+ wxDirPickerCtrl(parent, id, path, message, pos, size, style, validator, name)
+ {
+#ifdef FFS_WIN
+ //fix wxWidgets localization gap:
+ wxButton* button = dynamic_cast<wxButton*>(m_pickerIface);
+ if (button) button->SetLabel(_("Browse"));
+#endif
+ }
+};
+}
+
+#endif // DIR_PICKER_I18N_H_INCLUDED
bgstack15