summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-29 23:15:26 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-29 23:15:26 +0100
commit49fc9b8c4282d0e973ac1f4e31357735cf6be218 (patch)
tree45c8818a324d5628d70de82e80aed2441ea06b7e /src/wx
parentf4964573a60155545e02cbbebc47199f7480cf14 (diff)
Add reel index/count to DCP filename format.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/config_dialog.cc4
-rw-r--r--src/wx/name_format_editor.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc
index a68f4576d..10ee7c79a 100644
--- a/src/wx/config_dialog.cc
+++ b/src/wx/config_dialog.cc
@@ -1413,9 +1413,13 @@ private:
dcp::NameFormat::Map titles;
titles['t'] = "type (j2c/pcm/sub/cpl/pkl)";
titles['i'] = "unique ID";
+ titles['r'] = "reel number";
+ titles['n'] = "number of reels";
dcp::NameFormat::Map examples;
examples['t'] = "j2c";
examples['i'] = "eb1c112c-ca3c-4ae6-9263-c6714ff05d64";
+ examples['r'] = "1";
+ examples['n'] = "4";
_dcp_filename_format = new NameFormatEditor<dcp::FilenameFormat> (_panel, Config::instance()->dcp_filename_format(), titles, examples);
table->Add (_dcp_filename_format->panel(), 1, wxEXPAND | wxALL);
diff --git a/src/wx/name_format_editor.h b/src/wx/name_format_editor.h
index 0f4682127..71295807f 100644
--- a/src/wx/name_format_editor.h
+++ b/src/wx/name_format_editor.h
@@ -83,7 +83,7 @@ private:
wxString example = wxString::Format (_("e.g. %s"), _name.get (_examples));
wxString wrapped;
for (size_t i = 0; i < example.Length(); ++i) {
- if (i > 0 && (i % 30) == 0) {
+ if (i > 0 && (i % 40) == 0) {
wrapped += "\n";
}
wrapped += example[i];