X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcontent_view.h;h=1ad7c541ae9645ae8b9109e586be401437967631;hb=ea554f39cec595666a3d4552235ccca4e60305a5;hp=d27638c05099f89bc3ebe0555e46177676796663;hpb=8872a0a0028048e277a623fa08e8242dd43f4824;p=dcpomatic.git diff --git a/src/wx/content_view.h b/src/wx/content_view.h index d27638c05..1ad7c541a 100644 --- a/src/wx/content_view.h +++ b/src/wx/content_view.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2018 Carl Hetherington + Copyright (C) 2018-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,29 +18,32 @@ */ + #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, 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; };