Disable warnings around all wx includes.
[dcpomatic.git] / src / wx / smpte_metadata_dialog.h
1 /*
2     Copyright (C) 2019-2021 Carl Hetherington <cth@carlh.net>
3
4     This file is part of DCP-o-matic.
5
6     DCP-o-matic is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     DCP-o-matic is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with DCP-o-matic.  If not, see <http://www.gnu.org/licenses/>.
18
19 */
20
21
22 #include "editable_list.h"
23 #include "full_language_tag_dialog.h"
24 #include "metadata_dialog.h"
25 #include "lib/film.h"
26 #include "lib/weak_film.h"
27 #include "lib/warnings.h"
28 #include <dcp/language_tag.h>
29 #include <dcp/types.h>
30 DCPOMATIC_DISABLE_WARNINGS
31 #include <wx/wx.h>
32 DCPOMATIC_ENABLE_WARNINGS
33 #include <vector>
34
35
36 class ContentVersionDialog;
37 class Film;
38 class LanguageTagDialog;
39 class LanguageTagWidget;
40 class RatingDialog;
41
42
43 class SMPTEMetadataDialog : public MetadataDialog
44 {
45 public:
46         SMPTEMetadataDialog (wxWindow* parent, std::weak_ptr<Film> film);
47
48         void setup () override;
49
50 private:
51         void setup_standard (wxPanel* parent, wxSizer* sizer) override;
52         void setup_advanced (wxPanel* parent, wxSizer* sizer) override;
53         void film_changed (ChangeType type, Film::Property property) override;
54         void setup_sensitivity () override;
55
56         std::vector<dcp::Rating> ratings () const;
57         void set_ratings (std::vector<dcp::Rating> r);
58         std::vector<std::string> content_versions () const;
59         void set_content_versions (std::vector<std::string> v);
60         void name_language_changed (dcp::LanguageTag tag);
61         void version_number_changed ();
62         void status_changed ();
63         void distributor_changed ();
64         void enable_distributor_changed ();
65
66         LanguageTagWidget* _name_language;
67         wxSpinCtrl* _version_number;
68         wxChoice* _status;
69         wxCheckBox* _enable_distributor;
70         wxTextCtrl* _distributor;
71         EditableList<dcp::Rating, RatingDialog>* _ratings;
72         EditableList<std::string, ContentVersionDialog>* _content_versions;
73 };