X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcontent_panel.h;h=124fd6b94983d17a825073df7f339d93d8d46ffd;hb=8fedaaa75c4586a4cc7ffb393bd71d1fdb091dc8;hp=df5c58ebd0450ebaaa7240cb0bab3839ffcfce1b;hpb=5da8d7521a600a5924fd10c52db21a367db72f97;p=dcpomatic.git diff --git a/src/wx/content_panel.h b/src/wx/content_panel.h index df5c58ebd..124fd6b94 100644 --- a/src/wx/content_panel.h +++ b/src/wx/content_panel.h @@ -22,7 +22,6 @@ #include "lib/types.h" #include "lib/film.h" #include -#include #include class wxNotebook; @@ -66,15 +65,15 @@ private: class ContentPanel : public boost::noncopyable { public: - ContentPanel (wxNotebook *, boost::shared_ptr, boost::weak_ptr viewer); + ContentPanel (wxNotebook *, std::shared_ptr, std::weak_ptr viewer); - boost::shared_ptr film () const { + std::shared_ptr film () const { return _film; } - void set_film (boost::shared_ptr); + void set_film (std::shared_ptr); void set_general_sensitivity (bool s); - void set_selection (boost::weak_ptr); + void set_selection (std::weak_ptr); void set_selection (ContentList cl); void film_changed (Film::Property p); @@ -100,7 +99,7 @@ public: bool remove_clicked (bool hotkey); void timeline_clicked (); - boost::weak_ptr film_viewer () const { + std::weak_ptr film_viewer () const { return _film_viewer; } @@ -137,15 +136,15 @@ private: wxButton* _timeline; VideoPanel* _video_panel; AudioPanel* _audio_panel; - TextPanel* _text_panel[TEXT_COUNT]; + TextPanel* _text_panel[static_cast(TextType::COUNT)]; TimingPanel* _timing_panel; ContentMenu* _menu; TimelineDialog* _timeline_dialog; wxNotebook* _parent; wxWindow* _last_selected_tab; - boost::shared_ptr _film; - boost::weak_ptr _film_viewer; + std::shared_ptr _film; + std::weak_ptr _film_viewer; bool _generally_sensitive; bool _ignore_deselect; bool _no_check_selection;