summaryrefslogtreecommitdiff
path: root/src/wx/recipient_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/recipient_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/recipient_dialog.cc')
-rw-r--r--src/wx/recipient_dialog.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/wx/recipient_dialog.cc b/src/wx/recipient_dialog.cc
index 69caa3251..e78058f03 100644
--- a/src/wx/recipient_dialog.cc
+++ b/src/wx/recipient_dialog.cc
@@ -82,8 +82,14 @@ RecipientDialog::RecipientDialog (
vector<EditableListColumn> columns;
columns.push_back(EditableListColumn(_("Address"), 400, true));
- _email_list = new EditableList<string, EmailDialog> (
- this, columns, bind(&RecipientDialog::get_emails, this), bind(&RecipientDialog::set_emails, this, _1), bind(&column, _1),
+ _email_list = new EditableList<string> (
+ this,
+ columns,
+ bind(&RecipientDialog::get_emails, this),
+ bind(&RecipientDialog::set_emails, this, _1),
+ EditableList<string>::add_with_dialog<EmailDialog>,
+ EditableList<string>::edit_with_dialog<EmailDialog>,
+ bind(&column, _1),
EditableListTitle::VISIBLE,
EditableListButton::NEW | EditableListButton::EDIT | EditableListButton::REMOVE
);