diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-06 21:36:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-07 01:20:25 +0100 |
| commit | dfb68bf9190ec0be31f01b61c17aebc8b6e30ad8 (patch) | |
| tree | 7df185b2773729f244ab19622f10eb5f746b661f /src/wx/smpte_metadata_dialog.h | |
| parent | 7c27dff5817715965e86798108c596f9a1675394 (diff) | |
Add WeakFilm and WeakConstFilm and use them a bit.
Diffstat (limited to 'src/wx/smpte_metadata_dialog.h')
| -rw-r--r-- | src/wx/smpte_metadata_dialog.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wx/smpte_metadata_dialog.h b/src/wx/smpte_metadata_dialog.h index 36039c501..0f9c436b9 100644 --- a/src/wx/smpte_metadata_dialog.h +++ b/src/wx/smpte_metadata_dialog.h @@ -21,6 +21,7 @@ #include "editable_list.h" #include "language_tag_dialog.h" #include "lib/film.h" +#include "lib/weak_film.h" #include <dcp/language_tag.h> #include <dcp/types.h> #include <wx/wx.h> @@ -35,7 +36,7 @@ class ContentVersionDialog; class LanguageTagWidget; -class SMPTEMetadataDialog : public wxDialog +class SMPTEMetadataDialog : public wxDialog, public WeakFilm { public: SMPTEMetadataDialog (wxWindow* parent, boost::weak_ptr<Film> film); @@ -60,9 +61,7 @@ private: void luminance_changed (); void film_changed (ChangeType type, Film::Property property); void setup_sensitivity (); - boost::shared_ptr<Film> film () const; - boost::weak_ptr<Film> _film; LanguageTagWidget* _name_language; LanguageTagWidget* _audio_language; wxCheckBox* _enable_main_subtitle_language; |
