Cleanup: use new CheckBox::bind().
[dcpomatic.git] / src / wx / metadata_dialog.h
index 591ef3db44b3d0db62f814d8019fd326ec9f0623..cda8d2acec2df2c2511f078cadc31f870edbb416 100644 (file)
 LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
 LIBDCP_ENABLE_WARNINGS
+#include <unordered_map>
 
 
 class Button;
+class CheckBox;
+class Choice;
+class LanguageTagWidget;
 class RatingDialog;
 class wxSpinCtrlDouble;
-class LanguageTagWidget;
 
 
 class MetadataDialog : public wxDialog, public WeakFilm
@@ -53,6 +56,7 @@ protected:
        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 ();
@@ -73,7 +77,7 @@ private:
        std::vector<dcp::Rating> ratings () const;
        void set_ratings (std::vector<dcp::Rating> r);
 
-       wxCheckBox* _enable_release_territory;
+       CheckBox* _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.
@@ -82,19 +86,19 @@ private:
        wxStaticText* _release_territory_text;
        Button* _edit_release_territory;
        LanguageTagWidget* _sign_language_video_language = nullptr;
-       wxCheckBox* _enable_facility;
+       CheckBox* _enable_facility;
        wxTextCtrl* _facility;
-       wxCheckBox* _enable_chain;
+       CheckBox* _enable_chain;
        wxTextCtrl* _chain;
-       wxCheckBox* _enable_studio;
+       CheckBox* _enable_studio;
        wxTextCtrl* _studio;
-       wxCheckBox* _temp_version;
-       wxCheckBox* _pre_release;
-       wxCheckBox* _red_band;
-       wxCheckBox* _two_d_version_of_three_d;
-       wxCheckBox* _enable_luminance;
+       CheckBox* _temp_version;
+       CheckBox* _pre_release;
+       CheckBox* _red_band;
+       CheckBox* _two_d_version_of_three_d;
+       CheckBox* _enable_luminance;
        wxSpinCtrlDouble* _luminance_value;
-       wxChoice* _luminance_unit;
+       Choice* _luminance_unit;
 
        boost::signals2::scoped_connection _film_changed_connection;
 };