summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_combiner.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_combiner.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_combiner.cc')
-rw-r--r--src/tools/dcpomatic_combiner.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/dcpomatic_combiner.cc b/src/tools/dcpomatic_combiner.cc
index b9db5fb8c..8f47dc9ec 100644
--- a/src/tools/dcpomatic_combiner.cc
+++ b/src/tools/dcpomatic_combiner.cc
@@ -104,11 +104,13 @@ public:
vector<EditableListColumn> columns;
columns.push_back(EditableListColumn(_("Input DCP"), 600, true));
- _input = new EditableList<boost::filesystem::path, DirDialogWrapper>(
+ _input = new EditableList<boost::filesystem::path>(
overall_panel,
columns,
boost::bind(&DOMFrame::inputs, this),
boost::bind(&DOMFrame::set_inputs, this, _1),
+ EditableList<boost::filesystem::path>::add_with_dialog<DirDialogWrapper>,
+ EditableList<boost::filesystem::path>::edit_with_dialog<DirDialogWrapper>,
&display_string,
EditableListTitle::VISIBLE,
EditableListButton::NEW | EditableListButton::REMOVE
@@ -204,7 +206,7 @@ private:
_combine->Enable (!_output->GetPath().IsEmpty());
}
- EditableList<boost::filesystem::path, DirDialogWrapper>* _input;
+ EditableList<boost::filesystem::path>* _input;
wxTextCtrl* _annotation_text = nullptr;
DirPickerCtrl* _output;
vector<boost::filesystem::path> _inputs;