diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-18 00:58:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-18 00:58:51 +0100 |
| commit | 5b10ee366f819c05d69ea8e78c8348eca99721b5 (patch) | |
| tree | 7eae306a3a20ff2d3760e18a0e4b83b62b0a4f01 /src/wx/kdm_output_panel.cc | |
| parent | e0eecce56d975d9819f902cbb51c886b16e8ebf7 (diff) | |
Allow specification of KDM annotation text (#296).
Diffstat (limited to 'src/wx/kdm_output_panel.cc')
| -rw-r--r-- | src/wx/kdm_output_panel.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/wx/kdm_output_panel.cc b/src/wx/kdm_output_panel.cc index 37c797192..b4d94838b 100644 --- a/src/wx/kdm_output_panel.cc +++ b/src/wx/kdm_output_panel.cc @@ -79,6 +79,10 @@ KDMOutputPanel::KDMOutputPanel (wxWindow* parent) type->Add (advanced, 0, wxLEFT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP); table->Add (type, 1, wxTOP, DCPOMATIC_CHOICE_TOP_PAD); + add_label_to_sizer(table, this, _("Annotation text"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL); + _annotation_text = new wxTextCtrl(this, wxID_ANY); + table->Add(_annotation_text, 1, wxEXPAND); + add_label_to_sizer (table, this, _("Folder / ZIP name format"), true, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT); _container_name_format = new NameFormatEditor (this, Config::instance()->kdm_container_name_format(), dcp::NameFormat::Map(), dcp::NameFormat::Map(), ""); table->Add (_container_name_format->panel(), 1, wxEXPAND); @@ -357,3 +361,17 @@ KDMOutputPanel::method_selected() const return _write_to->GetValue() || _email->GetValue(); } + +void +KDMOutputPanel::set_annotation_text(string text) +{ + checked_set(_annotation_text, std::move(text)); +} + + +string +KDMOutputPanel::annotation_text() const +{ + return wx_to_std(_annotation_text->GetValue()); +} + |
