+void
+TimingPanel::video_frame_rate_changed ()
+{
+ _set_video_frame_rate->Enable (true);
+}
+
+void
+TimingPanel::set_video_frame_rate ()
+{
+ ContentList c = _editor->selected_content ();
+ if (c.size() == 1) {
+ shared_ptr<VideoContent> vc = dynamic_pointer_cast<VideoContent> (c.front ());
+ if (vc) {
+ vc->set_video_frame_rate (raw_convert<float> (wx_to_std (_video_frame_rate->GetValue ())));
+ }
+ _set_video_frame_rate->Enable (false);
+ }
+}
+
+void
+TimingPanel::content_selection_changed ()
+{
+ ContentList sel = _editor->selected_content ();
+ bool const single = sel.size() == 1;
+
+ /* Things that are only allowed with single selections */
+ _position->Enable (single);
+ _full_length->Enable (single);
+ _trim_start->Enable (single);
+ _trim_end->Enable (single);
+ _play_length->Enable (single);
+ _video_frame_rate->Enable (single);
+
+ film_content_changed (ContentProperty::POSITION);
+ film_content_changed (ContentProperty::LENGTH);
+ film_content_changed (ContentProperty::TRIM_START);
+ film_content_changed (ContentProperty::TRIM_END);
+ film_content_changed (VideoContentProperty::VIDEO_FRAME_RATE);