summaryrefslogtreecommitdiff
path: root/src/wx/isdcf_metadata_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-08-04 21:25:25 +0100
committerCarl Hetherington <cth@carlh.net>2015-08-04 21:25:25 +0100
commitf4531bfb1b4334e3501173cfee7444b86fba4082 (patch)
treea93d06a028ed70bf952404da8f38a63c55e348aa /src/wx/isdcf_metadata_dialog.cc
parent94298aa9ed2c3f9e57e21709a8e6fb5e89df5f04 (diff)
Disable '2D version of 3D content' ISDCF metadata checkbox with 3D content (part of #652).
Diffstat (limited to 'src/wx/isdcf_metadata_dialog.cc')
-rw-r--r--src/wx/isdcf_metadata_dialog.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/wx/isdcf_metadata_dialog.cc b/src/wx/isdcf_metadata_dialog.cc
index 47d159cb9..65f3b53ff 100644
--- a/src/wx/isdcf_metadata_dialog.cc
+++ b/src/wx/isdcf_metadata_dialog.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -17,16 +17,17 @@
*/
+#include "isdcf_metadata_dialog.h"
+#include "wx_util.h"
+#include "lib/film.h"
#include <wx/wx.h>
#include <wx/sizer.h>
#include <wx/spinctrl.h>
-#include "lib/film.h"
-#include "isdcf_metadata_dialog.h"
-#include "wx_util.h"
using boost::shared_ptr;
-ISDCFMetadataDialog::ISDCFMetadataDialog (wxWindow* parent, ISDCFMetadata dm)
+/** @param threed true if the film is in 3D */
+ISDCFMetadataDialog::ISDCFMetadataDialog (wxWindow* parent, ISDCFMetadata dm, bool threed)
: TableDialog (parent, _("ISDCF name"), 2, true)
{
add (_("Content version"), true);
@@ -68,6 +69,10 @@ ISDCFMetadataDialog::ISDCFMetadataDialog (wxWindow* parent, ISDCFMetadata dm)
_two_d_version_of_three_d = add (new wxCheckBox (this, wxID_ANY, _("2D version of content available in 3D")));
add_spacer ();
+ if (threed) {
+ _two_d_version_of_three_d->Enable (false);
+ }
+
add (_("Mastered luminance (e.g. 14fl)"), true);
_mastered_luminance = add (new wxTextCtrl (this, wxID_ANY));