diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-07-29 10:40:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-07-29 10:40:58 +0100 |
| commit | 479cab0437a14f9fbf5949a6334d43eb384168ad (patch) | |
| tree | 4d1f62db385cffe61b8d18dfd379865dbeb243ad /src/wx/name_format_editor.h | |
| parent | 736b3a068ba5a402b541d32f270669e6e1a4e5c4 (diff) | |
Rearrange KDM window and replace OK/Cancel with Make KDM button.
Diffstat (limited to 'src/wx/name_format_editor.h')
| -rw-r--r-- | src/wx/name_format_editor.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/wx/name_format_editor.h b/src/wx/name_format_editor.h index ee88d46b3..ab4787f64 100644 --- a/src/wx/name_format_editor.h +++ b/src/wx/name_format_editor.h @@ -76,7 +76,17 @@ private: virtual void update_example () { _name.set_specification (wx_to_std (_specification->GetValue ())); - _example->SetLabel (wxString::Format (_("e.g. %s"), _name.get (_example_values))); + + wxString example = wxString::Format (_("e.g. %s"), _name.get (_example_values)); + wxString wrapped; + for (size_t i = 0; i < example.Length(); ++i) { + if (i > 0 && (i % 30) == 0) { + wrapped += "\n"; + } + wrapped += example[i]; + } + + _example->SetLabel (wrapped); } wxPanel* _panel; |
