projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stop Ctrl+A working when the content panel is not visible (#577).
[dcpomatic.git]
/
src
/
wx
/
film_viewer.h
diff --git
a/src/wx/film_viewer.h
b/src/wx/film_viewer.h
index c1c087a14d5d75c93a460585297c9619d1033968..f6ab1a567efed8e56be5c685aac38f61c88adc7b 100644
(file)
--- a/
src/wx/film_viewer.h
+++ b/
src/wx/film_viewer.h
@@
-28,7
+28,7
@@
class wxToggleButton;
class FFmpegPlayer;
class Image;
class RGBPlusAlphaImage;
class FFmpegPlayer;
class Image;
class RGBPlusAlphaImage;
-class PlayerVideo
Frame
;
+class PlayerVideo;
/** @class FilmViewer
* @brief A wx widget to view a preview of a Film.
/** @class FilmViewer
* @brief A wx widget to view a preview of a Film.
@@
-36,10
+36,14
@@
class PlayerVideoFrame;
class FilmViewer : public wxPanel
{
public:
class FilmViewer : public wxPanel
{
public:
- FilmViewer (
boost::shared_ptr<Film>,
wxWindow *);
+ FilmViewer (wxWindow *);
void set_film (boost::shared_ptr<Film>);
void set_film (boost::shared_ptr<Film>);
+ DCPTime position () const {
+ return _position;
+ }
+
private:
void paint_panel ();
void panel_sized (wxSizeEvent &);
private:
void paint_panel ();
void panel_sized (wxSizeEvent &);
@@
-52,14
+56,19
@@
private:
void back_clicked ();
void forward_clicked ();
void player_changed (bool);
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 get (DCPTime, bool);
+ void refresh_panel ();
+ void setup_sensitivity ();
+ void film_changed (Film::Property);
boost::shared_ptr<Film> _film;
boost::shared_ptr<Player> _player;
wxSizer* _v_sizer;
wxPanel* _panel;
boost::shared_ptr<Film> _film;
boost::shared_ptr<Player> _player;
wxSizer* _v_sizer;
wxPanel* _panel;
+ wxCheckBox* _outline_content;
wxSlider* _slider;
wxButton* _back_button;
wxButton* _forward_button;
wxSlider* _slider;
wxButton* _back_button;
wxButton* _forward_button;
@@
-70,6
+79,8
@@
private:
boost::shared_ptr<const Image> _frame;
DCPTime _position;
boost::shared_ptr<const Image> _frame;
DCPTime _position;
+ Position<int> _inter_position;
+ dcp::Size _inter_size;
/** Size of our output (including padding if we have any) */
dcp::Size _out_size;
/** Size of our output (including padding if we have any) */
dcp::Size _out_size;
@@
-80,4
+91,7
@@
private:
* can get the same one that we got last time.
*/
bool _last_get_accurate;
* 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;
};
};