summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_verifier.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-12-17 01:40:51 +0100
committerCarl Hetherington <cth@carlh.net>2025-12-17 01:40:51 +0100
commit235483a91d4160f4b9b2e53f1a7d5c4cb5b27925 (patch)
tree6735b612a8d03988600b02fc186306459c07ff01 /src/tools/dcpomatic_verifier.cc
parent6e8f8563f4e4e6ff04b632aff8d6ae95de945649 (diff)
Refactor EditableList to take a new pair of functors for new/edit operations.
In the future this will allow more intricate text displays in EditableLists.
Diffstat (limited to 'src/tools/dcpomatic_verifier.cc')
-rw-r--r--src/tools/dcpomatic_verifier.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_verifier.cc b/src/tools/dcpomatic_verifier.cc
index 8a509529b..7cd50f24b 100644
--- a/src/tools/dcpomatic_verifier.cc
+++ b/src/tools/dcpomatic_verifier.cc
@@ -128,11 +128,13 @@ public:
auto dcp_sizer = new wxBoxSizer(wxHORIZONTAL);
add_label_to_sizer(dcp_sizer, _overall_panel, _("DCPs"), true, 0, wxALIGN_CENTER_VERTICAL);
- auto dcps = new EditableList<boost::filesystem::path, DirDialogWrapper>(
+ auto dcps = new EditableList<boost::filesystem::path>(
_overall_panel,
{ EditableListColumn(_("DCP"), 300, true) },
boost::bind(&DOMFrame::dcp_paths, this),
boost::bind(&DOMFrame::set_dcp_paths, this, _1),
+ EditableList<boost::filesystem::path>::add_with_dialog<DirDialogWrapper>,
+ EditableList<boost::filesystem::path>::edit_with_dialog<DirDialogWrapper>,
[](boost::filesystem::path p, int) { return p.filename().string(); },
EditableListTitle::INVISIBLE,
EditableListButton::NEW | EditableListButton::REMOVE