diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-31 00:11:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-01 01:54:38 +0100 |
| commit | 85e5b7b41caa195510454ac49e0c5732c8e04ddf (patch) | |
| tree | a06f616698ad7e11053d92babc89729bd88d241a /src/wx/kdm_output_panel.cc | |
| parent | 4532fecad4bad945482fbcf2d61eef708178835c (diff) | |
Remove name documentation with short screens.
Diffstat (limited to 'src/wx/kdm_output_panel.cc')
| -rw-r--r-- | src/wx/kdm_output_panel.cc | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/wx/kdm_output_panel.cc b/src/wx/kdm_output_panel.cc index f86808a70..ecce47da2 100644 --- a/src/wx/kdm_output_panel.cc +++ b/src/wx/kdm_output_panel.cc @@ -133,22 +133,28 @@ KDMOutputPanel::create_details_widgets(wxWindow* parent) void -KDMOutputPanel::create_name_format_widgets(wxWindow* parent) +KDMOutputPanel::create_name_format_widgets(wxWindow* parent, bool detailed) { _container_name_format = new NameFormatEditor(parent, Config::instance()->kdm_container_name_format(), dcp::NameFormat::Map(), dcp::NameFormat::Map(), ""); dcp::NameFormat::Map titles; - titles['f'] = wx_to_std (_("film name")); - titles['c'] = wx_to_std (_("cinema")); - titles['s'] = wx_to_std (_("screen")); - titles['b'] = wx_to_std (_("from date/time")); - titles['e'] = wx_to_std (_("to date/time")); + if (detailed) { + titles['f'] = wx_to_std (_("film name")); + titles['c'] = wx_to_std (_("cinema")); + titles['s'] = wx_to_std (_("screen")); + titles['b'] = wx_to_std (_("from date/time")); + titles['e'] = wx_to_std (_("to date/time")); + } + dcp::NameFormat::Map ex; - ex['f'] = "Bambi"; - ex['c'] = "Lumière"; - ex['s'] = "Screen 1"; - ex['b'] = "2012/03/15 12:30"; - ex['e'] = "2012/03/22 02:30"; + if (detailed) { + ex['f'] = "Bambi"; + ex['c'] = "Lumière"; + ex['s'] = "Screen 1"; + ex['b'] = "2012/03/15 12:30"; + ex['e'] = "2012/03/22 02:30"; + } + _filename_format = new NameFormatEditor(parent, Config::instance()->kdm_filename_format(), titles, ex, ".xml"); } |
