diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-01-05 23:17:16 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-01-05 23:17:16 +0000 |
| commit | d26296467bbf6bd1b2300dd862ce55fcd7f3d624 (patch) | |
| tree | 125284d4686aa58710ce841a77da9b0f762af857 /src/wx/paste_dialog.cc | |
| parent | 249ae25148213a2ab5d76980133182e7f2521524 (diff) | |
Add simple copy and paste for content settings (#1051).
Diffstat (limited to 'src/wx/paste_dialog.cc')
| -rw-r--r-- | src/wx/paste_dialog.cc | 55 |
1 files changed, 55 insertions, 0 deletions
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 <cth@carlh.net> + + 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 <http://www.gnu.org/licenses/>. + +*/ + +#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 (); +} |
