projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the same code for both Interop and SMPTE ratings controls.
[dcpomatic.git]
/
src
/
wx
/
metadata_dialog.h
diff --git
a/src/wx/metadata_dialog.h
b/src/wx/metadata_dialog.h
index 3ac5d10a3935bd721eb3ce87b8a93b79df330404..591ef3db44b3d0db62f814d8019fd326ec9f0623 100644
(file)
--- a/
src/wx/metadata_dialog.h
+++ b/
src/wx/metadata_dialog.h
@@
-23,16
+23,20
@@
#define DCPOMATIC_METADATA_DIALOG_H
#define DCPOMATIC_METADATA_DIALOG_H
+#include "editable_list.h"
#include "lib/change_signaller.h"
#include "lib/film.h"
#include "lib/change_signaller.h"
#include "lib/film.h"
-#include "lib/warnings.h"
#include "lib/weak_film.h"
#include "lib/weak_film.h"
-DCPOMATIC_DISABLE_WARNINGS
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
#include <wx/wx.h>
-
DCPOMATIC
_ENABLE_WARNINGS
+
LIBDCP
_ENABLE_WARNINGS
class Button;
class Button;
+class RatingDialog;
+class wxSpinCtrlDouble;
+class LanguageTagWidget;
class MetadataDialog : public wxDialog, public WeakFilm
class MetadataDialog : public wxDialog, public WeakFilm
@@
-48,7
+52,10
@@
protected:
virtual void film_changed (ChangeType type, Film::Property property);
virtual void setup_sensitivity ();
virtual void film_changed (ChangeType type, Film::Property property);
virtual void setup_sensitivity ();
+ EditableList<dcp::Rating, RatingDialog>* _ratings;
+
private:
private:
+ void sign_language_video_language_changed ();
void edit_release_territory ();
void enable_release_territory_changed ();
void facility_changed ();
void edit_release_territory ();
void enable_release_territory_changed ();
void facility_changed ();
@@
-61,6
+68,10
@@
private:
void two_d_version_of_three_d_changed ();
void chain_changed ();
void enable_chain_changed ();
void two_d_version_of_three_d_changed ();
void chain_changed ();
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
wxCheckBox* _enable_release_territory;
/** The current release territory displayed in the UI; since we can't easily convert
@@
-70,6
+81,7
@@
private:
boost::optional<dcp::LanguageTag::RegionSubtag> _release_territory;
wxStaticText* _release_territory_text;
Button* _edit_release_territory;
boost::optional<dcp::LanguageTag::RegionSubtag> _release_territory;
wxStaticText* _release_territory_text;
Button* _edit_release_territory;
+ LanguageTagWidget* _sign_language_video_language = nullptr;
wxCheckBox* _enable_facility;
wxTextCtrl* _facility;
wxCheckBox* _enable_chain;
wxCheckBox* _enable_facility;
wxTextCtrl* _facility;
wxCheckBox* _enable_chain;
@@
-80,6
+92,9
@@
private:
wxCheckBox* _pre_release;
wxCheckBox* _red_band;
wxCheckBox* _two_d_version_of_three_d;
wxCheckBox* _pre_release;
wxCheckBox* _red_band;
wxCheckBox* _two_d_version_of_three_d;
+ wxCheckBox* _enable_luminance;
+ wxSpinCtrlDouble* _luminance_value;
+ wxChoice* _luminance_unit;
boost::signals2::scoped_connection _film_changed_connection;
};
boost::signals2::scoped_connection _film_changed_connection;
};