projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pot/merge.
[dcpomatic.git]
/
src
/
wx
/
paste_dialog.cc
diff --git
a/src/wx/paste_dialog.cc
b/src/wx/paste_dialog.cc
index eade31490540177e2f6486a15913bc902aceee7e..f4fc5b886755ce4ff85d68a362ee23cedae6db70 100644
(file)
--- a/
src/wx/paste_dialog.cc
+++ b/
src/wx/paste_dialog.cc
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2018
-2021
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-18,38
+18,44
@@
*/
*/
+
+#include "check_box.h"
#include "paste_dialog.h"
#include "paste_dialog.h"
-PasteDialog::PasteDialog (wxWindow* parent, bool video, bool audio, bool subtitle)
+
+PasteDialog::PasteDialog (wxWindow* parent, bool video, bool audio, bool text)
: TableDialog (parent, _("Paste"), 1, 0, true)
{
: 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);
_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);
_audio->Enable (audio);
add (_audio);
- _
subtitle = new wxCheckBox (this, wxID_ANY, _("Paste subtitle
settings"));
- _
subtitle->Enable (subtitle
);
- add (_
subtitle
);
+ _
text = new CheckBox (this, _("Paste subtitle and caption
settings"));
+ _
text->Enable (text
);
+ add (_
text
);
layout ();
}
layout ();
}
+
bool
PasteDialog::video () const
{
return _video->GetValue ();
}
bool
PasteDialog::video () const
{
return _video->GetValue ();
}
+
bool
PasteDialog::audio () const
{
return _audio->GetValue ();
}
bool
PasteDialog::audio () const
{
return _audio->GetValue ();
}
+
bool
bool
-PasteDialog::
subtitle
() const
+PasteDialog::
text
() const
{
{
- return _
subtitle
->GetValue ();
+ return _
text
->GetValue ();
}
}