diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-29 01:58:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-01 01:54:38 +0100 |
| commit | aa8bb7b6f6fe2eed323e6f4f978a76a9a067c545 (patch) | |
| tree | c5aff258a338112877f5bd17a5ee8263c19cf5e1 /src/wx/short_kdm_output_panel.cc | |
| parent | 52e7269c9d8dd9e7fcf68ba126eb4ce0a593cf76 (diff) | |
Separate KDM output options yet further.
Trying here to get them to fit vertically in 768 pixels.
Diffstat (limited to 'src/wx/short_kdm_output_panel.cc')
| -rw-r--r-- | src/wx/short_kdm_output_panel.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/wx/short_kdm_output_panel.cc b/src/wx/short_kdm_output_panel.cc index 8ecd112f7..5a0fb2504 100644 --- a/src/wx/short_kdm_output_panel.cc +++ b/src/wx/short_kdm_output_panel.cc @@ -51,6 +51,11 @@ ShortKDMOutputPanel::ShortKDMOutputPanel(wxWindow* parent) fill_details_panel(details); notebook->AddPage(details, _("Details")); + auto name_formats = new wxPanel(notebook, wxID_ANY); + create_name_format_widgets(name_formats); + fill_name_formats_panel(name_formats); + notebook->AddPage(name_formats, _("Name formats")); + auto sizer = new wxBoxSizer(wxVERTICAL); sizer->Add(notebook, 1, wxEXPAND); SetSizer(sizer); @@ -98,6 +103,18 @@ ShortKDMOutputPanel::fill_details_panel(wxPanel* panel) add_label_to_sizer(table, panel, _("Annotation text"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL); table->Add(_annotation_text, 1, wxEXPAND); + auto padding = new wxBoxSizer(wxVERTICAL); + padding->Add(table, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER); + panel->SetSizer(padding); +} + + +void +ShortKDMOutputPanel::fill_name_formats_panel(wxPanel* panel) +{ + auto table = new wxFlexGridSizer(2, DCPOMATIC_SIZER_X_GAP, 0); + table->AddGrowableCol(1); + add_label_to_sizer(table, panel, _("Folder / ZIP name format"), true, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT); table->Add(_container_name_format->panel(), 1, wxEXPAND); @@ -116,3 +133,4 @@ ShortKDMOutputPanel::fill_details_panel(wxPanel* panel) padding->Add(table, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER); panel->SetSizer(padding); } + |
