projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix missing buttons for ratings lists.
[dcpomatic.git]
/
src
/
wx
/
smpte_metadata_dialog.cc
diff --git
a/src/wx/smpte_metadata_dialog.cc
b/src/wx/smpte_metadata_dialog.cc
index e4d2d96224a9a4cd02a468417d1c5f80b2aa6b98..3838c8a6c06e7cfcfd84cbf08f09816b4bc776b6 100644
(file)
--- a/
src/wx/smpte_metadata_dialog.cc
+++ b/
src/wx/smpte_metadata_dialog.cc
@@
-23,19
+23,22
@@
#include "editable_list.h"
#include "language_tag_dialog.h"
#include "language_tag_widget.h"
#include "editable_list.h"
#include "language_tag_dialog.h"
#include "language_tag_widget.h"
-#include "smpte_metadata_dialog.h"
#include "rating_dialog.h"
#include "rating_dialog.h"
+#include "smpte_metadata_dialog.h"
#include "lib/film.h"
#include <dcp/types.h>
#include "lib/film.h"
#include <dcp/types.h>
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
#include <wx/gbsizer.h>
#include <wx/spinctrl.h>
#include <wx/gbsizer.h>
#include <wx/spinctrl.h>
+LIBDCP_ENABLE_WARNINGS
+using std::shared_ptr;
using std::string;
using std::vector;
using std::string;
using std::vector;
-using boost::optional;
-using std::shared_ptr;
using std::weak_ptr;
using std::weak_ptr;
+using boost::optional;
#if BOOST_VERSION >= 106100
using namespace boost::placeholders;
#endif
#if BOOST_VERSION >= 106100
using namespace boost::placeholders;
#endif
@@
-91,7
+94,7
@@
SMPTEMetadataDialog::setup_standard (wxPanel* panel, wxSizer* sizer)
boost::bind(&SMPTEMetadataDialog::set_ratings, this, _1),
boost::bind(&ratings_column, _1, _2),
true,
boost::bind(&SMPTEMetadataDialog::set_ratings, this, _1),
boost::bind(&ratings_column, _1, _2),
true,
- false
+ EditableListButton::NEW | EditableListButton::EDIT | EditableListButton::REMOVE
);
sizer->Add (_ratings, 1, wxEXPAND);
}
);
sizer->Add (_ratings, 1, wxEXPAND);
}