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;
};