X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ffilm_editor.h;h=296058c212e55ee7496ec589e53ac2eaca51e4d0;hb=5063594e6836cfabed7d55f4963da9c8cf3b9f11;hp=cd2180b3c3d297cae87019f6835b4c86c28393ee;hpb=6c7489e5d778d3e71065d88a094a7383ba2c117d;p=dcpomatic.git diff --git a/src/wx/film_editor.h b/src/wx/film_editor.h index cd2180b3c..296058c21 100644 --- a/src/wx/film_editor.h +++ b/src/wx/film_editor.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2015 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,31 +18,38 @@ */ + /** @file src/wx/film_editor.h * @brief FilmEditor class. */ + #include "lib/film.h" +#include +LIBDCP_DISABLE_WARNINGS #include +LIBDCP_ENABLE_WARNINGS #include + class wxNotebook; class Film; class ContentPanel; class DCPPanel; class FilmViewer; + /** @class FilmEditor * @brief A wx widget to edit a film's metadata, and perform various functions. */ class FilmEditor : public wxPanel { public: - FilmEditor (wxWindow *, FilmViewer* viewer); + FilmEditor(wxWindow *, FilmViewer& viewer); - void set_film (boost::shared_ptr); + void set_film (std::shared_ptr); + void first_shown (); - boost::signals2::signal FileChanged; boost::signals2::signal SelectionChanged; /* Stuff for panels */ @@ -51,21 +58,22 @@ public: return _content_panel; } - boost::shared_ptr film () const { + std::shared_ptr film () const { return _film; } +private: + /* Handle changes to the model */ - void film_changed (Film::Property); + void film_change (ChangeType, Film::Property); void film_content_change (ChangeType type, int); void set_general_sensitivity (bool); void active_jobs_changed (boost::optional); - wxNotebook* _main_notebook; ContentPanel* _content_panel; DCPPanel* _dcp_panel; /** The film we are editing */ - boost::shared_ptr _film; + std::shared_ptr _film; };