Various small fixes to appearance of content properties dialog.
authorCarl Hetherington <cth@carlh.net>
Mon, 7 Mar 2016 19:10:43 +0000 (19:10 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 7 Mar 2016 19:10:43 +0000 (19:10 +0000)
src/lib/audio_content.cc
src/lib/video_content.cc
src/wx/content_properties_dialog.cc

index c17893c5aeb61402520fc079faa2e17c9e5a54f5..ee5bb69a2831cca2479c4034661b32a68012d54a 100644 (file)
@@ -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) {
index 0fbcba7e0b4c6f9aee23da61372b0cea8221b097..ca96df1e8efbf92eb09fa69c25c6453806949d0d 100644 (file)
@@ -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
index 8920ad9130c78e69358826ff84e3daa3080d2135..37f96c156aeeef50977198ea7313f00b7742c247 100644 (file)
@@ -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) {