Untested; allow viewing of subtitles or closed captions in the preview.
[dcpomatic.git] / src / wx / film_viewer.h
index 190396601821bc5aac7ccdf58b3ab5e9ecb856f2..cb372391ad0306a16c4f614555af5b0e4b327891 100644 (file)
@@ -55,6 +55,7 @@ public:
        }
 
        void set_position (DCPTime p);
+       void set_position (boost::shared_ptr<Content> content, ContentTime p);
        void set_coalesce_player_changes (bool c);
        void set_dcp_decode_reduction (boost::optional<int> reduction);
        boost::optional<int> dcp_decode_reduction () const;
@@ -72,6 +73,9 @@ public:
                return _playing;
        }
 
+       void back_frame ();
+       void forward_frame ();
+
        int audio_callback (void* out, unsigned int frames);
 
        boost::signals2::signal<void (boost::weak_ptr<PlayerVideo>)> ImageChanged;
@@ -83,12 +87,13 @@ 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>);
        void rewind_clicked (wxMouseEvent &);
-       void back_clicked (wxMouseEvent &);
-       void forward_clicked (wxMouseEvent &);
+       void back_clicked (wxKeyboardState& s);
+       void forward_clicked (wxKeyboardState &);
        void player_changed (int, bool);
        void update_position_label ();
        void update_position_slider ();
@@ -98,7 +103,7 @@ private:
        void refresh_panel ();
        void setup_sensitivity ();
        void film_changed (Film::Property);
-       DCPTime nudge_amount (wxMouseEvent &);
+       DCPTime nudge_amount (wxKeyboardState &);
        void timecode_clicked ();
        void frame_number_clicked ();
        void go_to (DCPTime t);
@@ -116,9 +121,9 @@ private:
        /** The area that we put our image in */
        wxPanel* _panel;
        wxCheckBox* _outline_content;
-       wxRadioButton* _left_eye;
-       wxRadioButton* _right_eye;
+       wxChoice* _eye;
        wxCheckBox* _jump_to_selected;
+       wxChoice* _captions;
        wxSlider* _slider;
        wxButton* _rewind_button;
        wxButton* _back_button;