diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-02 22:38:16 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-04 20:48:34 +0200 |
| commit | f188fc8d92eaba89aaa63cfd7f5a2fc9836e94b6 (patch) | |
| tree | 576f98fd4295ae0e9dae6e0ae92f019876f02ff3 /src/wx/metadata_dialog.h | |
| parent | 60520afb4a6bb364c981c2b6976805d4128ac81f (diff) | |
Use release territory from Interop/SMPTE metadata instead of ISDCF metadata dialogue.
Diffstat (limited to 'src/wx/metadata_dialog.h')
| -rw-r--r-- | src/wx/metadata_dialog.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/wx/metadata_dialog.h b/src/wx/metadata_dialog.h index ef5dd0687..8483d8615 100644 --- a/src/wx/metadata_dialog.h +++ b/src/wx/metadata_dialog.h @@ -19,6 +19,12 @@ */ +#ifndef DCPOMATIC_METADATA_DIALOG_H +#define DCPOMATIC_METADATA_DIALOG_H + + +#include "lib/change_signaller.h" +#include "lib/film.h" #include "lib/warnings.h" #include "lib/weak_film.h" DCPOMATIC_DISABLE_WARNINGS @@ -26,6 +32,9 @@ DCPOMATIC_DISABLE_WARNINGS DCPOMATIC_ENABLE_WARNINGS +class Button; + + class MetadataDialog : public wxDialog, public WeakFilm { public: @@ -34,6 +43,27 @@ public: virtual void setup (); protected: - virtual void setup_standard (wxPanel*, wxSizer*) {} + virtual void setup_standard (wxPanel*, wxSizer*); virtual void setup_advanced (wxPanel*, wxSizer*) {} + virtual void film_changed (ChangeType type, Film::Property property); + virtual void setup_sensitivity (); + +private: + void edit_release_territory (); + void enable_release_territory_changed (); + + wxCheckBox* _enable_release_territory; + /** The current release territory displayed in the UI; since we can't easily convert + * the string in _release_territory_text to a RegionSubtag we just store the RegionSubtag + * alongside. + */ + boost::optional<dcp::LanguageTag::RegionSubtag> _release_territory; + wxStaticText* _release_territory_text; + Button* _edit_release_territory; + + boost::signals2::scoped_connection _film_changed_connection; }; + + +#endif + |
