projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Basics of in-place i18n with support for wxStaticText and wxCheckBox.
[dcpomatic.git]
/
src
/
wx
/
font_files_dialog.cc
diff --git
a/src/wx/font_files_dialog.cc
b/src/wx/font_files_dialog.cc
index 0c64492d538542d371002c7e9cd1a03402567714..7fd4f9d99aeda678bd4b75a010ab2040a90f7741 100644
(file)
--- a/
src/wx/font_files_dialog.cc
+++ b/
src/wx/font_files_dialog.cc
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2015
-2018
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-20,6
+20,7
@@
#include "font_files_dialog.h"
#include "system_font_dialog.h"
#include "font_files_dialog.h"
#include "system_font_dialog.h"
+#include "static_text.h"
using boost::bind;
using boost::bind;
@@
-41,8
+42,8
@@
FontFilesDialog::FontFilesDialog (wxWindow* parent, FontFiles files)
for (int i = 0; i < FontFiles::VARIANTS; ++i) {
add (labels[i], true);
for (int i = 0; i < FontFiles::VARIANTS; ++i) {
add (labels[i], true);
- _name[i] = new
wx
StaticText (
- this,
wxID_ANY,
+ _name[i] = new StaticText (
+ this,
std_to_wx(_files.get(static_cast<FontFiles::Variant>(i)).get_value_or("").string()),
wxDefaultPosition,
wxSize (200, -1)
std_to_wx(_files.get(static_cast<FontFiles::Variant>(i)).get_value_or("").string()),
wxDefaultPosition,
wxSize (200, -1)