summaryrefslogtreecommitdiff
path: root/wx+/dir_picker.h
blob: 5f18b6fbad25e6b489cfe6daf9f5cf761aa35e11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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