X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fpaste_dialog.cc;h=429e8fe6e473a0e145cf99cac80b4dbd8d50bfe2;hb=295076f7bf8d84d19f22a073814968aab76aebcc;hp=07a3b156c240bc94e88d471518e5cb07721a74d5;hpb=27b83475435dda4e84a90cf59a52f150905c4ab1;p=dcpomatic.git diff --git a/src/wx/paste_dialog.cc b/src/wx/paste_dialog.cc index 07a3b156c..429e8fe6e 100644 --- a/src/wx/paste_dialog.cc +++ b/src/wx/paste_dialog.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2018 Carl Hetherington + Copyright (C) 2018-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,38 +18,44 @@ */ + #include "paste_dialog.h" +#include "check_box.h" + -PasteDialog::PasteDialog (wxWindow* parent, bool video, bool audio, bool caption) +PasteDialog::PasteDialog (wxWindow* parent, bool video, bool audio, bool text) : TableDialog (parent, _("Paste"), 1, 0, true) { - _video = new wxCheckBox (this, wxID_ANY, _("Paste video settings")); + _video = new CheckBox (this, _("Paste video settings")); _video->Enable (video); add (_video); - _audio = new wxCheckBox (this, wxID_ANY, _("Paste audio settings")); + _audio = new CheckBox (this, _("Paste audio settings")); _audio->Enable (audio); add (_audio); - _caption = new wxCheckBox (this, wxID_ANY, _("Paste caption settings")); - _caption->Enable (caption); - add (_caption); + _text = new CheckBox (this, _("Paste subtitle and caption settings")); + _text->Enable (text); + add (_text); layout (); } + bool PasteDialog::video () const { return _video->GetValue (); } + bool PasteDialog::audio () const { return _audio->GetValue (); } + bool -PasteDialog::caption () const +PasteDialog::text () const { - return _caption->GetValue (); + return _text->GetValue (); }