summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-03-07 19:10:43 +0000
committerCarl Hetherington <cth@carlh.net>2016-03-07 19:10:43 +0000
commitcc0ac806a2dc698d9c20b24498bc865e2d9798ad (patch)
treecbc58e14bb0c530d6efe2bdc1fc916e562939481
parent07d67a12cc3e4492c4c9c39cdd6fd30ff1e3e612 (diff)
Various small fixes to appearance of content properties dialog.
-rw-r--r--src/lib/audio_content.cc2
-rw-r--r--src/lib/video_content.cc2
-rw-r--r--src/wx/content_properties_dialog.cc10
3 files changed, 11 insertions, 3 deletions
diff --git a/src/lib/audio_content.cc b/src/lib/audio_content.cc
index c17893c5a..ee5bb69a2 100644
--- a/src/lib/audio_content.cc
+++ b/src/lib/audio_content.cc
@@ -328,7 +328,7 @@ AudioContent::add_properties (list<UserProperty>& p) const
);
}
- p.push_back (UserProperty (_("Audio"), _("DCP frame rate"), resampled_audio_frame_rate ()));
+ p.push_back (UserProperty (_("Audio"), _("DCP frame rate"), resampled_audio_frame_rate (), _("Hz")));
p.push_back (UserProperty (_("Length"), _("Full length in video frames at DCP rate"), c.frames_round (frc.dcp)));
if (stream) {
diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc
index 0fbcba7e0..ca96df1e8 100644
--- a/src/lib/video_content.cc
+++ b/src/lib/video_content.cc
@@ -583,7 +583,7 @@ VideoContent::add_properties (list<UserProperty>& p) const
{
p.push_back (UserProperty (_("Video"), _("Length"), raw_convert<string> (video_length ()), _("video frames")));
p.push_back (UserProperty (_("Video"), _("Size"), raw_convert<string> (video_size().width) + "x" + raw_convert<string> (video_size().height)));
- p.push_back (UserProperty (_("Video"), _("Frame rate"), raw_convert<string> (video_frame_rate()), _("frames per second")));
+ p.push_back (UserProperty (_("Video"), _("Frame rate"), raw_convert<string> (video_frame_rate(), 5), _("frames per second")));
}
double
diff --git a/src/wx/content_properties_dialog.cc b/src/wx/content_properties_dialog.cc
index 8920ad913..37f96c156 100644
--- a/src/wx/content_properties_dialog.cc
+++ b/src/wx/content_properties_dialog.cc
@@ -51,7 +51,15 @@ ContentPropertiesDialog::ContentPropertiesDialog (wxWindow* parent, shared_ptr<C
}
for (map<string, list<Content::UserProperty> >::const_iterator i = grouped.begin(); i != grouped.end(); ++i) {
- add (std_to_wx ("<b>" + i->first + "</b>"), false);
+
+ wxStaticText* m = new wxStaticText (this, wxID_ANY, std_to_wx (i->first));
+ wxFont font (*wxNORMAL_FONT);
+ font.SetWeight (wxFONTWEIGHT_BOLD);
+ m->SetFont (font);
+
+ add_spacer ();
+ add_spacer ();
+ add (m, false);
add_spacer ();
BOOST_FOREACH (Content::UserProperty j, i->second) {