Fix shared_ptr for Film.
[dcpomatic.git] / src / wx / film_viewer.h
index 416dc7260aa568c7d53eb536fe6a2a6c75362ded..95bdf099da3f2d03877892299f118e9604a3edf1 100644 (file)
@@ -32,31 +32,18 @@ class ThumbPanel;
 class FilmViewer : public wxPanel
 {
 public:
-       FilmViewer (Film *, wxWindow *);
+       FilmViewer (boost::shared_ptr<Film>, wxWindow *);
 
-       void set_film (Film *);
+       void set_film (boost::shared_ptr<Film>);
        void setup_visibility ();
 
 private:
-       void position_slider_changed ();
-       void update_thumbs ();
-       std::string format_position_slider_value (double) const;
-       void load_thumbnail (int);
+       void slider_changed (wxCommandEvent &);
+       void set_thumbnail (int);
        void film_changed (Film::Property);
-       void reload_current_thumbnail ();
-       void update_scaled_pixbuf ();
-       std::pair<int, int> scaled_pixbuf_size () const;
-//     void scroller_size_allocate (Gtk::Allocation);
 
-       Film* _film;
+       boost::shared_ptr<Film> _film;
        wxBoxSizer* _sizer;
        ThumbPanel* _thumb_panel;
-//     Gtk::VBox _vbox;
-//     Gtk::ScrolledWindow _scroller;
-//     Gtk::Image _image;
-//     Glib::RefPtr<Gdk::Pixbuf> _pixbuf;
-//     Glib::RefPtr<Gdk::Pixbuf> _cropped_pixbuf;
-//     Glib::RefPtr<Gdk::Pixbuf> _scaled_pixbuf;
-//     Gtk::HScale _position_slider;
-//     Gtk::Allocation _last_scroller_allocation;
+       wxSlider* _slider;
 };