summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-22 21:29:40 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-22 21:29:40 +0100
commitdffc146e5387a0b3f7a671d845d6c3051b0e7067 (patch)
treed92d003263699c7039fa685e5c09b5e3b3655f64 /src/wx
parentdea824f6ff41384a5e17e23de5434cf84eccff29 (diff)
On reflection showing CCAPs over the main picture doesn't make much sense.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/film_viewer.cc25
-rw-r--r--src/wx/film_viewer.h2
2 files changed, 1 insertions, 26 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 56342d44f..c4b503ae0 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -123,12 +123,6 @@ FilmViewer::FilmViewer (wxWindow* p, bool outline_content, bool jump_to_selected
view_options->Add (_jump_to_selected, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_GAP);
}
- _captions = new wxChoice (this, wxID_ANY);
- _captions->Append (_("Open captions (subtitles)"));
- _captions->Append (_("Closed captions"));
- _captions->SetSelection (0);
- view_options->Add (_captions, 0, wxLEFT | wxRIGHT, DCPOMATIC_SIZER_GAP);
-
_v_sizer->Add (view_options, 0, wxALL, DCPOMATIC_SIZER_GAP);
wxBoxSizer* h_sizer = new wxBoxSizer (wxHORIZONTAL);
@@ -157,7 +151,6 @@ FilmViewer::FilmViewer (wxWindow* p, bool outline_content, bool jump_to_selected
_outline_content->Bind (wxEVT_CHECKBOX, boost::bind (&FilmViewer::refresh_panel, this));
}
_eye->Bind (wxEVT_CHOICE, boost::bind (&FilmViewer::slow_refresh, this));
- _captions->Bind (wxEVT_CHOICE, boost::bind (&FilmViewer::captions_changed, this));
_slider->Bind (wxEVT_SCROLL_THUMBTRACK, boost::bind (&FilmViewer::slider_moved, this, false));
_slider->Bind (wxEVT_SCROLL_PAGEUP, boost::bind (&FilmViewer::slider_moved, this, true));
_slider->Bind (wxEVT_SCROLL_PAGEDOWN, boost::bind (&FilmViewer::slider_moved, this, true));
@@ -225,8 +218,7 @@ FilmViewer::set_film (shared_ptr<Film> film)
return;
}
- /* Start off burning in subtitles, as that's the initial setting of the dropdown */
- _player->set_always_burn_captions (CAPTION_OPEN);
+ _player->set_always_burn_open_captions ();
_player->set_play_referenced ();
_film->Changed.connect (boost::bind (&FilmViewer::film_changed, this, _1));
@@ -730,21 +722,6 @@ FilmViewer::film_changed (Film::Property p)
}
}
-void
-FilmViewer::captions_changed ()
-{
- switch (_captions->GetSelection()) {
- case 0:
- _player->set_always_burn_captions (CAPTION_OPEN);
- break;
- case 1:
- _player->set_always_burn_captions (CAPTION_CLOSED);
- break;
- }
-
- slow_refresh ();
-}
-
/** Re-get the current frame slowly by seeking */
void
FilmViewer::slow_refresh ()
diff --git a/src/wx/film_viewer.h b/src/wx/film_viewer.h
index cb372391a..385f6142b 100644
--- a/src/wx/film_viewer.h
+++ b/src/wx/film_viewer.h
@@ -87,7 +87,6 @@ private:
void slider_released ();
void play_clicked ();
void timer ();
- void captions_changed ();
void calculate_sizes ();
void check_play_state ();
void active_jobs_changed (boost::optional<std::string>);
@@ -123,7 +122,6 @@ private:
wxCheckBox* _outline_content;
wxChoice* _eye;
wxCheckBox* _jump_to_selected;
- wxChoice* _captions;
wxSlider* _slider;
wxButton* _rewind_button;
wxButton* _back_button;