From d26296467bbf6bd1b2300dd862ce55fcd7f3d624 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 5 Jan 2018 23:17:16 +0000 Subject: Add simple copy and paste for content settings (#1051). --- src/wx/paste_dialog.cc | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/wx/paste_dialog.cc (limited to 'src/wx/paste_dialog.cc') diff --git a/src/wx/paste_dialog.cc b/src/wx/paste_dialog.cc new file mode 100644 index 000000000..eade31490 --- /dev/null +++ b/src/wx/paste_dialog.cc @@ -0,0 +1,55 @@ +/* + Copyright (C) 2018 Carl Hetherington + + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + DCP-o-matic is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with DCP-o-matic. If not, see . + +*/ + +#include "paste_dialog.h" + +PasteDialog::PasteDialog (wxWindow* parent, bool video, bool audio, bool subtitle) + : TableDialog (parent, _("Paste"), 1, 0, true) +{ + _video = new wxCheckBox (this, wxID_ANY, _("Paste video settings")); + _video->Enable (video); + add (_video); + _audio = new wxCheckBox (this, wxID_ANY, _("Paste audio settings")); + _audio->Enable (audio); + add (_audio); + _subtitle = new wxCheckBox (this, wxID_ANY, _("Paste subtitle settings")); + _subtitle->Enable (subtitle); + add (_subtitle); + + layout (); +} + +bool +PasteDialog::video () const +{ + return _video->GetValue (); +} + +bool +PasteDialog::audio () const +{ + return _audio->GetValue (); +} + +bool +PasteDialog::subtitle () const +{ + return _subtitle->GetValue (); +} -- cgit v1.2.3