Tidy up the layout of the TemplatesDialog a bit.
[dcpomatic.git] / src / wx / metadata_dialog.h
index a6f5cefda10d0449d0070450c1c052e841b433cd..ea7233cbb1f3b12bfd6086abc78ce3dde33fc493 100644 (file)
 #define DCPOMATIC_METADATA_DIALOG_H
 
 
+#include "editable_list.h"
 #include "lib/change_signaller.h"
 #include "lib/film.h"
-#include "lib/warnings.h"
 #include "lib/weak_film.h"
-DCPOMATIC_DISABLE_WARNINGS
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
-DCPOMATIC_ENABLE_WARNINGS
+LIBDCP_ENABLE_WARNINGS
+#include <unordered_map>
 
 
 class Button;
+class RatingDialog;
 class wxSpinCtrlDouble;
 class LanguageTagWidget;
 
@@ -50,6 +53,9 @@ protected:
        virtual void film_changed (ChangeType type, Film::Property property);
        virtual void setup_sensitivity ();
 
+       EditableList<dcp::Rating, RatingDialog>* _ratings;
+       std::unordered_map<std::string, std::string> _rating_system_agency_to_name;
+
 private:
        void sign_language_video_language_changed ();
        void edit_release_territory ();
@@ -66,6 +72,8 @@ private:
        void enable_chain_changed ();
        void enable_luminance_changed ();
        void luminance_changed ();
+       std::vector<dcp::Rating> ratings () const;
+       void set_ratings (std::vector<dcp::Rating> r);
 
        wxCheckBox* _enable_release_territory;
        /** The current release territory displayed in the UI; since we can't easily convert