X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Ffilm_viewer.h;h=950758f61c9f401cd63e28a4473f013e8ab18785;hp=1e75045ac35c75fcb90962fafb36c5d1030d1ccf;hb=39bc73fe192f932ed6695eb87b19de446e8b4f55;hpb=6809fdcbf8c65afe3c986b0e2b430d55ce7b124c diff --git a/src/wx/film_viewer.h b/src/wx/film_viewer.h index 1e75045ac..950758f61 100644 --- a/src/wx/film_viewer.h +++ b/src/wx/film_viewer.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 Carl Hetherington + Copyright (C) 2012-2014 Carl Hetherington 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 @@ -28,7 +28,7 @@ class wxToggleButton; class FFmpegPlayer; class Image; class RGBPlusAlphaImage; -class Subtitle; +class PlayerVideoFrame; /** @class FilmViewer * @brief A wx widget to view a preview of a Film. @@ -41,20 +41,19 @@ public: void set_film (boost::shared_ptr); private: - void film_changed (Film::Property); - void paint_panel (wxPaintEvent &); + void paint_panel (); void panel_sized (wxSizeEvent &); - void slider_moved (wxScrollEvent &); - void play_clicked (wxCommandEvent &); - void timer (wxTimerEvent &); - void process_video (boost::shared_ptr, bool, boost::shared_ptr); + void slider_moved (); + void play_clicked (); + void timer (); void calculate_sizes (); void check_play_state (); - void update_from_raw (); - void decoder_changed (); - void raw_to_display (); - void get_frame (); void active_jobs_changed (bool); + void back_clicked (); + void forward_clicked (); + void player_changed (bool); + void set_position_text (); + void get (DCPTime, bool); boost::shared_ptr _film; boost::shared_ptr _player; @@ -62,23 +61,18 @@ private: wxSizer* _v_sizer; wxPanel* _panel; wxSlider* _slider; + wxButton* _back_button; + wxButton* _forward_button; + wxStaticText* _frame_number; + wxStaticText* _timecode; wxToggleButton* _play_button; wxTimer _timer; - boost::shared_ptr _raw_frame; - boost::shared_ptr _raw_sub; - boost::shared_ptr _display_frame; - int _display_frame_x; - boost::shared_ptr _display_sub; - Position _display_sub_position; - bool _got_frame; + boost::shared_ptr _frame; + DCPTime _position; /** Size of our output (including padding if we have any) */ - libdcp::Size _out_size; - /** Size that we will make our film (equal to _out_size unless we have padding) */ - libdcp::Size _film_size; + dcp::Size _out_size; /** Size of the panel that we have available */ - libdcp::Size _panel_size; - - bool _clear_required; + dcp::Size _panel_size; };