BOOST_FOREACH.
[dcpomatic.git] / src / wx / verify_dcp_dialog.cc
index c11246d23a5fc9ac89128405e4e477a9fa63c333..55360dc39353f8cfe61cc3ff62178b6aaf390cdc 100644 (file)
 #include "verify_dcp_dialog.h"
 #include "wx_util.h"
 #include "lib/verify_dcp_job.h"
+#include "lib/warnings.h"
 #include <dcp/verify.h>
+DCPOMATIC_DISABLE_WARNINGS
 #include <wx/richtext/richtextctrl.h>
-#include <boost/foreach.hpp>
+DCPOMATIC_ENABLE_WARNINGS
 
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job)
        : wxDialog (parent, wxID_ANY, _("DCP verification"))
@@ -60,7 +62,7 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
                _text->Newline();
        }
 
-       BOOST_FOREACH (dcp::VerificationNote i, job->notes()) {
+       for (auto i: job->notes()) {
                switch (i.type()) {
                case dcp::VerificationNote::VERIFY_WARNING:
                        _text->BeginStandardBullet (N_("standard/diamond"), 1, 50);
@@ -131,6 +133,15 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
                case dcp::VerificationNote::DURATION_TOO_SMALL:
                        text = _("An asset has a duration of less than 1 second, which is invalid.");
                        break;
+               case dcp::VerificationNote::PICTURE_FRAME_TOO_LARGE:
+                       text = _("At least one frame of the video data is over the limit of 250Mbit/s.");
+                       break;
+               case dcp::VerificationNote::PICTURE_FRAME_NEARLY_TOO_LARGE:
+                       text = _("At least one frame of the video data is close to the limit of 250MBit/s.");
+                       break;
+               case dcp::VerificationNote::EXTERNAL_ASSET:
+                       text = _("This DCP refers to at least one asset in another DCP, so it is a \"version file\" (VF)");
+                       break;
                }
 
                _text->WriteText (text);