diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-08 00:09:57 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-08 00:09:57 +0000 |
| commit | 9c1bb2e5ca7c80c4e26b1b2e41159aa171360a94 (patch) | |
| tree | 674348c2090d46047c62ad6e1fdbb3a0b5c32896 /src/wx/subtitle_appearance_dialog.cc | |
| parent | cac2b6f2c8dffcb7271d71fc23c0150c2fe4d6ea (diff) | |
Basics of in-place i18n with support for wxStaticText and wxCheckBox.
Diffstat (limited to 'src/wx/subtitle_appearance_dialog.cc')
| -rw-r--r-- | src/wx/subtitle_appearance_dialog.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/wx/subtitle_appearance_dialog.cc b/src/wx/subtitle_appearance_dialog.cc index a37f5a2ce..dd8353cf4 100644 --- a/src/wx/subtitle_appearance_dialog.cc +++ b/src/wx/subtitle_appearance_dialog.cc @@ -20,6 +20,8 @@ #include "subtitle_appearance_dialog.h" #include "rgba_colour_picker.h" +#include "static_text.h" +#include "check_box.h" #include "lib/string_text_file_content.h" #include "lib/text_content.h" #include "lib/ffmpeg_subtitle_stream.h" @@ -90,10 +92,10 @@ SubtitleAppearanceDialog::SubtitleAppearanceDialog (wxWindow* parent, shared_ptr map<RGBA, RGBA> colours = _stream->colours (); - wxStaticText* t = new wxStaticText (colours_panel, wxID_ANY, ""); + wxStaticText* t = new StaticText (colours_panel, ""); t->SetLabelMarkup (_("<b>Original colour</b>")); table->Add (t, 1, wxEXPAND); - t = new wxStaticText (colours_panel, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE_HORIZONTAL); + t = new StaticText (colours_panel, "", wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE_HORIZONTAL); t->SetLabelMarkup (_("<b>New colour</b>")); table->Add (t, 1, wxALIGN_CENTER); @@ -203,7 +205,7 @@ wxCheckBox* SubtitleAppearanceDialog::set_to (wxWindow* w, int& r) { wxSizer* s = new wxBoxSizer (wxHORIZONTAL); - wxCheckBox* set_to = new wxCheckBox (this, wxID_ANY, _("Set to")); + wxCheckBox* set_to = new CheckBox (this, _("Set to")); s->Add (set_to, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, 8); s->Add (w, 0, wxALIGN_CENTER_VERTICAL); _table->Add (s, wxGBPosition (r, 1)); |
