summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-14 14:12:31 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-14 14:12:31 +0000
commit8dc6cfd1de47b4a1040d23999283420a3136c0cc (patch)
tree57a27dc7b4b136c38bd9c321fb4c80839543ed23 /src
parentb1e4b53ed5b674bb3b65390eba4c04873a8b9ec7 (diff)
Update subtitle / timing panels properly.
Diffstat (limited to 'src')
-rw-r--r--src/wx/subtitle_panel.cc6
-rw-r--r--src/wx/timing_panel.cc14
2 files changed, 16 insertions, 4 deletions
diff --git a/src/wx/subtitle_panel.cc b/src/wx/subtitle_panel.cc
index c820220d4..0e3f2e89d 100644
--- a/src/wx/subtitle_panel.cc
+++ b/src/wx/subtitle_panel.cc
@@ -195,7 +195,7 @@ SubtitlePanel::scale_changed ()
void
SubtitlePanel::content_selection_changed ()
{
-
+ film_content_changed (FFmpegContentProperty::SUBTITLE_STREAMS);
+ film_content_changed (SubtitleContentProperty::SUBTITLE_OFFSET);
+ film_content_changed (SubtitleContentProperty::SUBTITLE_SCALE);
}
-
-
diff --git a/src/wx/timing_panel.cc b/src/wx/timing_panel.cc
index 512a83cd9..57eb96af0 100644
--- a/src/wx/timing_panel.cc
+++ b/src/wx/timing_panel.cc
@@ -134,5 +134,17 @@ TimingPanel::trim_end_changed ()
void
TimingPanel::content_selection_changed ()
{
-
+ VideoContentList sel = _editor->selected_video_content ();
+ bool const single = sel.size() == 1;
+
+ /* Things that are only allowed with single selections */
+ _position->Enable (single);
+ _length->Enable (single);
+ _trim_start->Enable (single);
+ _trim_end->Enable (single);
+
+ film_content_changed (ContentProperty::POSITION);
+ film_content_changed (ContentProperty::LENGTH);
+ film_content_changed (ContentProperty::TRIM_START);
+ film_content_changed (ContentProperty::TRIM_END);
}