summaryrefslogtreecommitdiff
path: root/src/wx/smpte_metadata_dialog.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/wx/smpte_metadata_dialog.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/wx/smpte_metadata_dialog.cc')
-rw-r--r--src/wx/smpte_metadata_dialog.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/smpte_metadata_dialog.cc b/src/wx/smpte_metadata_dialog.cc
index 3c8c516e9..b1b2314d9 100644
--- a/src/wx/smpte_metadata_dialog.cc
+++ b/src/wx/smpte_metadata_dialog.cc
@@ -107,11 +107,13 @@ SMPTEMetadataDialog::setup_advanced (wxPanel* panel, wxSizer* sizer)
vector<EditableListColumn> columns;
columns.push_back(EditableListColumn(_("Version"), 350, true));
- _content_versions = new EditableList<string, ContentVersionDialog> (
+ _content_versions = new EditableList<string> (
panel,
columns,
boost::bind(&SMPTEMetadataDialog::content_versions, this),
boost::bind(&SMPTEMetadataDialog::set_content_versions, this, _1),
+ EditableList<string>::add_with_dialog<ContentVersionDialog>,
+ EditableList<string>::edit_with_dialog<ContentVersionDialog>,
boost::bind(&content_versions_column, _1, _2),
EditableListTitle::INVISIBLE,
EditableListButton::NEW | EditableListButton::REMOVE