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
/
content_properties_dialog.cc
diff --git
a/src/wx/content_properties_dialog.cc
b/src/wx/content_properties_dialog.cc
index 2f4e1a48bcadf6f0bbf242e717b30a6313d9b6c2..efc0e6ef15ae9069182ba0a45a6ac26860a1df17 100644
(file)
--- a/
src/wx/content_properties_dialog.cc
+++ b/
src/wx/content_properties_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 "content_properties_dialog.h"
#include "wx_util.h"
#include "content_properties_dialog.h"
#include "wx_util.h"
+#include "static_text.h"
#include "lib/content.h"
#include "lib/video_content.h"
#include "lib/audio_content.h"
#include "lib/content.h"
#include "lib/video_content.h"
#include "lib/audio_content.h"
@@
-80,7
+81,7
@@
ContentPropertiesDialog::maybe_add_group (map<UserProperty::Category, list<UserP
break;
}
break;
}
- wxStaticText* m = new
wxStaticText (this, wxID_ANY
, category_name);
+ wxStaticText* m = new
StaticText (this
, category_name);
wxFont font (*wxNORMAL_FONT);
font.SetWeight (wxFONTWEIGHT_BOLD);
m->SetFont (font);
wxFont font (*wxNORMAL_FONT);
font.SetWeight (wxFONTWEIGHT_BOLD);
m->SetFont (font);
@@
-92,6
+93,6
@@
ContentPropertiesDialog::maybe_add_group (map<UserProperty::Category, list<UserP
BOOST_FOREACH (UserProperty j, i->second) {
add (std_to_wx (j.key), true);
BOOST_FOREACH (UserProperty j, i->second) {
add (std_to_wx (j.key), true);
- add (new
wxStaticText (this, wxID_ANY
, std_to_wx (j.value + " " + j.unit)));
+ add (new
StaticText (this
, std_to_wx (j.value + " " + j.unit)));
}
}
}
}