From cc0ac806a2dc698d9c20b24498bc865e2d9798ad Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 7 Mar 2016 19:10:43 +0000 Subject: [PATCH] Various small fixes to appearance of content properties dialog. --- src/lib/audio_content.cc | 2 +- src/lib/video_content.cc | 2 +- src/wx/content_properties_dialog.cc | 10 +++++++++- 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& 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& p) const { p.push_back (UserProperty (_("Video"), _("Length"), raw_convert (video_length ()), _("video frames"))); p.push_back (UserProperty (_("Video"), _("Size"), raw_convert (video_size().width) + "x" + raw_convert (video_size().height))); - p.push_back (UserProperty (_("Video"), _("Frame rate"), raw_convert (video_frame_rate()), _("frames per second"))); + p.push_back (UserProperty (_("Video"), _("Frame rate"), raw_convert (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 >::const_iterator i = grouped.begin(); i != grouped.end(); ++i) { - add (std_to_wx ("" + i->first + ""), 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) { -- 2.30.2