Add option to preview left or right eye (#809).
[dcpomatic.git] / src / wx / film_viewer.h
index eb9d256d3782857b2c83e4d5d06a964a2c105ce7..04f8b9f7abcb2bfae7910d1d0ac6efbfe58ce62f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -44,6 +44,9 @@ public:
                return _position;
        }
 
+       void set_position (DCPTime p);
+       void set_coalesce_player_changes (bool c);
+
        void refresh ();
 
        boost::signals2::signal<void (boost::weak_ptr<PlayerVideo>)> ImageChanged;
@@ -56,7 +59,7 @@ private:
        void timer ();
        void calculate_sizes ();
        void check_play_state ();
-       void active_jobs_changed (bool);
+       void active_jobs_changed (boost::optional<std::string>);
        void back_clicked ();
        void forward_clicked ();
        void player_changed (bool);
@@ -73,6 +76,8 @@ private:
        wxSizer* _v_sizer;
        wxPanel* _panel;
        wxCheckBox* _outline_content;
+       wxRadioButton* _left_eye;
+       wxRadioButton* _right_eye;
        wxSlider* _slider;
        wxButton* _back_button;
        wxButton* _forward_button;
@@ -80,6 +85,8 @@ private:
        wxStaticText* _timecode;
        wxToggleButton* _play_button;
        wxTimer _timer;
+       bool _coalesce_player_changes;
+       bool _pending_player_change;
 
        boost::shared_ptr<const Image> _frame;
        DCPTime _position;