X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fcontent_view.h;h=0bbfffaa76418f331f1ee699d7d6afb3d21fe508;hp=471dd054bd95f81ab3ec29644a64c6a53ce465d4;hb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;hpb=620b7761a33d2e3641cd911bfe58e0fbb928c888 diff --git a/src/wx/content_view.h b/src/wx/content_view.h index 471dd054b..0bbfffaa7 100644 --- a/src/wx/content_view.h +++ b/src/wx/content_view.h @@ -18,28 +18,29 @@ */ +#include "lib/content_store.h" +#include "lib/warnings.h" +DCPOMATIC_DISABLE_WARNINGS #include -#include -#include +DCPOMATIC_ENABLE_WARNINGS #include class Content; class Film; -class ContentView : public wxListCtrl +class ContentView : public wxListCtrl, public ContentStore { public: - ContentView (wxWindow* parent, boost::weak_ptr film); + ContentView (wxWindow* parent); - boost::shared_ptr selected () const; + std::shared_ptr selected () const; void update (); - boost::shared_ptr get (std::string digest) const; - void set_film (boost::weak_ptr film); + std::shared_ptr get (std::string digest) const; private: - void add (boost::shared_ptr content); + void add (std::shared_ptr content); - boost::weak_ptr _film; - std::vector > _content; + std::weak_ptr _film; + std::vector > _content; };