diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-14 02:06:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-18 11:50:29 +0100 |
| commit | 2d5beb0d6794df13ad1df47e84fd7a57d1d1c64d (patch) | |
| tree | 70034dc6789e55394dac0ec87b968c58b96e4b48 /src/wx/timing_panel.cc | |
| parent | 826ed68a1e34ce158342da324ff7203af0449641 (diff) | |
Rename video/audio/subtitle part methods.
Diffstat (limited to 'src/wx/timing_panel.cc')
| -rw-r--r-- | src/wx/timing_panel.cc | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/wx/timing_panel.cc b/src/wx/timing_panel.cc index 573d76f48..191106471 100644 --- a/src/wx/timing_panel.cc +++ b/src/wx/timing_panel.cc @@ -210,10 +210,10 @@ TimingPanel::film_content_changed (int property) } else if ( property == ContentProperty::LENGTH || - property == VideoContentProperty::VIDEO_FRAME_RATE || - property == VideoContentProperty::VIDEO_FRAME_TYPE || - property == AudioContentProperty::AUDIO_VIDEO_FRAME_RATE || - property == SubtitleContentProperty::SUBTITLE_VIDEO_FRAME_RATE + property == VideoContentProperty::FRAME_RATE || + property == VideoContentProperty::FRAME_TYPE || + property == AudioContentProperty::VIDEO_FRAME_RATE || + property == SubtitleContentProperty::VIDEO_FRAME_RATE ) { update_full_length (); @@ -249,16 +249,16 @@ TimingPanel::film_content_changed (int property) property == ContentProperty::LENGTH || property == ContentProperty::TRIM_START || property == ContentProperty::TRIM_END || - property == VideoContentProperty::VIDEO_FRAME_RATE || - property == VideoContentProperty::VIDEO_FRAME_TYPE || - property == AudioContentProperty::AUDIO_VIDEO_FRAME_RATE || - property == SubtitleContentProperty::SUBTITLE_VIDEO_FRAME_RATE + property == VideoContentProperty::FRAME_RATE || + property == VideoContentProperty::FRAME_TYPE || + property == AudioContentProperty::VIDEO_FRAME_RATE || + property == SubtitleContentProperty::VIDEO_FRAME_RATE ) { update_play_length (); } - if (property == VideoContentProperty::VIDEO_FRAME_RATE || property == SubtitleContentProperty::SUBTITLE_VIDEO_FRAME_RATE) { + if (property == VideoContentProperty::FRAME_RATE || property == SubtitleContentProperty::VIDEO_FRAME_RATE) { set<double> check_vc; shared_ptr<const Content> vc; int count_ac = 0; @@ -267,7 +267,7 @@ TimingPanel::film_content_changed (int property) shared_ptr<const Content> sc; BOOST_FOREACH (shared_ptr<const Content> i, _parent->selected ()) { if (i->video) { - check_vc.insert (i->video->video_frame_rate ()); + check_vc.insert (i->video->frame_rate ()); vc = i; } shared_ptr<const AudioContent> at = dynamic_pointer_cast<const AudioContent> (i); @@ -288,9 +288,9 @@ TimingPanel::film_content_changed (int property) if (vc) { checked_set (_video_frame_rate, raw_convert<string> (vc->video->video_frame_rate (), 5)); } else if (ac) { - checked_set (_video_frame_rate, raw_convert<string> (ac->audio->audio_video_frame_rate (), 5)); + checked_set (_video_frame_rate, raw_convert<string> (ac->audio->video_frame_rate (), 5)); } else if (sc) { - checked_set (_video_frame_rate, raw_convert<string> (sc->subtitle->subtitle_video_frame_rate (), 5)); + checked_set (_video_frame_rate, raw_convert<string> (sc->subtitle->video_frame_rate (), 5)); } _video_frame_rate->Enable (true); } else { @@ -328,7 +328,7 @@ TimingPanel::full_length_changed () shared_ptr<ImageContent> ic = dynamic_pointer_cast<ImageContent> (i); if (ic && ic->still ()) { int const vfr = _parent->film()->video_frame_rate (); - ic->video->set_video_length (_full_length->get (vfr).frames_round (vfr)); + ic->video->set_length (_full_length->get (vfr).frames_round (vfr)); } } } @@ -407,14 +407,14 @@ TimingPanel::set_video_frame_rate () shared_ptr<TextSubtitleContent> tsc = dynamic_pointer_cast<TextSubtitleContent> (i); double const fr = raw_convert<double> (wx_to_std (_video_frame_rate->GetValue ())); if (i->video) { - i->video->set_video_frame_rate (fr); + i->video->set_frame_rate (fr); } else if (i->audio) { /* Audio but not video, i.e. SndfileContent */ i->audio->set_audio_video_frame_rate (fr); } else if (dsc) { - dsc->set_subtitle_video_frame_rate (fr); + dsc->subtitle->set_video_frame_rate (fr); } else if (tsc) { - tsc->set_subtitle_video_frame_rate (fr); + tsc->subtitle->set_video_frame_rate (fr); } _set_video_frame_rate->Enable (false); } @@ -429,9 +429,9 @@ TimingPanel::content_selection_changed () film_content_changed (ContentProperty::LENGTH); film_content_changed (ContentProperty::TRIM_START); film_content_changed (ContentProperty::TRIM_END); - film_content_changed (VideoContentProperty::VIDEO_FRAME_RATE); - film_content_changed (SubtitleContentProperty::SUBTITLE_VIDEO_FRAME_RATE); - film_content_changed (AudioContentProperty::AUDIO_VIDEO_FRAME_RATE); + film_content_changed (VideoContentProperty::FRAME_RATE); + film_content_changed (SubtitleContentProperty::VIDEO_FRAME_RATE); + film_content_changed (AudioContentProperty::VIDEO_FRAME_RATE); } void |
