Merge update to da_DA from Anders Uhl Pedersen.
[dcpomatic.git] / src / wx / film_viewer.h
index 930937596ab9afa64fb340463c07c6c0298e851e..f6ab1a567efed8e56be5c685aac38f61c88adc7b 100644 (file)
@@ -36,10 +36,14 @@ class PlayerVideo;
 class FilmViewer : public wxPanel
 {
 public:
-       FilmViewer (boost::shared_ptr<Film>, wxWindow *);
+       FilmViewer (wxWindow *);
 
        void set_film (boost::shared_ptr<Film>);
 
+       DCPTime position () const {
+               return _position;
+       }
+
 private:
        void paint_panel ();
        void panel_sized (wxSizeEvent &);
@@ -52,9 +56,12 @@ private:
        void back_clicked ();
        void forward_clicked ();
        void player_changed (bool);
-       void set_position_text ();
+       void update_position_label ();
+       void update_position_slider ();
        void get (DCPTime, bool);
        void refresh_panel ();
+       void setup_sensitivity ();
+       void film_changed (Film::Property);
 
        boost::shared_ptr<Film> _film;
        boost::shared_ptr<Player> _player;
@@ -84,4 +91,7 @@ private:
         *  can get the same one that we got last time.
         */
        bool _last_get_accurate;
+
+       boost::signals2::scoped_connection _film_connection;
+       boost::signals2::scoped_connection _player_connection;
 };