X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Ffilm_viewer.h;h=eaf46f1e6bbc8474bbc69020e12a0f31e950b828;hp=beb1a5d749aee4bbeea8ade5b8153eee72465858;hb=046d84f45621f7e128cb30160a315f98881c6f4b;hpb=805487369e57e5eb57911805ba6de78b653d79ad diff --git a/src/wx/film_viewer.h b/src/wx/film_viewer.h index beb1a5d74..eaf46f1e6 100644 --- a/src/wx/film_viewer.h +++ b/src/wx/film_viewer.h @@ -27,6 +27,7 @@ #include "lib/config.h" #include "lib/player_text.h" #include "lib/timer.h" +#include "lib/signaller.h" #include #include @@ -42,7 +43,7 @@ class ClosedCaptionsDialog; /** @class FilmViewer * @brief A wx widget to view a Film. */ -class FilmViewer +class FilmViewer : public Signaller { public: FilmViewer (wxWindow *); @@ -77,6 +78,7 @@ public: bool stop (); void suspend (); void resume (); + bool playing () const { return _playing; } @@ -138,13 +140,13 @@ public: boost::shared_ptr butler () const { return _butler; } - int time_until_next_frame () const; boost::signals2::signal)> ImageChanged; boost::signals2::signal Started; boost::signals2::signal Stopped; /** While playing back we reached the end of the film (emitted from GUI thread) */ boost::signals2::signal Finished; + void emit_finished (); boost::signals2::signal PlaybackPermitted; @@ -165,6 +167,7 @@ private: void config_changed (Config::Property); dcpomatic::DCPTime time () const; + boost::optional audio_time () const; dcpomatic::DCPTime uncorrected_time () const; Frame average_latency () const;