X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Frename_template_dialog.cc;h=714e080579893a57c4e2d587c647eea51b6cd9e1;hp=970c85a8b0e8d0b243374e0033e0b0dfb6a90228;hb=39fb8198febde1937019db1c300ec363aab5aa56;hpb=b249700e1da7dd6631a8b4440587f4093a2bdef1 diff --git a/src/wx/rename_template_dialog.cc b/src/wx/rename_template_dialog.cc index 970c85a8b..714e08057 100644 --- a/src/wx/rename_template_dialog.cc +++ b/src/wx/rename_template_dialog.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2016 Carl Hetherington + Copyright (C) 2016-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,24 +18,28 @@ */ + #include "rename_template_dialog.h" + RenameTemplateDialog::RenameTemplateDialog (wxWindow* parent) : TableDialog (parent, _("Rename template"), 2, 1, true) { add (_("New name"), true); - _name = add (new wxTextCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (300, -1))); + _name = add (new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(300, -1))); layout (); _name->SetFocus (); } + wxString RenameTemplateDialog::get () const { return _name->GetValue (); } + void RenameTemplateDialog::set (wxString s) {