#include <wx/wx.h>
#include "lib/film.h"
-class ThumbPanel;
+class FFmpegPlayer;
/** @class FilmViewer
- * @brief A wx widget to view `thumbnails' of a Film.
+ * @brief A wx widget to view a preview of a Film.
*/
class FilmViewer : public wxPanel
{
public:
- FilmViewer (Film *, wxWindow *);
+ FilmViewer (boost::shared_ptr<Film>, wxWindow *);
- void set_film (Film *);
- void setup_visibility ();
+ void set_film (boost::shared_ptr<Film>);
private:
- void slider_changed (wxCommandEvent &);
- void set_thumbnail (int);
void film_changed (Film::Property);
- Film* _film;
- wxBoxSizer* _sizer;
- ThumbPanel* _thumb_panel;
- wxSlider* _slider;
+ boost::shared_ptr<Film> _film;
+ FFmpegPlayer* _player;
};