CaptionPanel::film_content_changed (int property)
{
FFmpegContentList fc = _parent->selected_ffmpeg ();
- ContentList sc = _parent->selected_subtitle ();
+ ContentList sc = _parent->selected_caption ();
shared_ptr<FFmpegContent> fcs;
if (fc.size() == 1) {
void
CaptionPanel::use_toggled ()
{
- BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_subtitle ()) {
+ BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_caption()) {
i->caption->set_use (_use->GetValue());
}
}
void
CaptionPanel::type_changed ()
{
- BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_subtitle()) {
+ BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_caption()) {
switch (_type->GetSelection()) {
case 0:
i->caption->set_type (CAPTION_OPEN);
void
CaptionPanel::burn_toggled ()
{
- BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_subtitle ()) {
+ BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_caption ()) {
i->caption->set_burn (_burn->GetValue());
}
}
{
int any_subs = 0;
int ffmpeg_subs = 0;
- ContentList sel = _parent->selected_subtitle ();
+ ContentList sel = _parent->selected_caption ();
BOOST_FOREACH (shared_ptr<Content> i, sel) {
/* These are the content types that could include subtitles */
shared_ptr<const FFmpegContent> fc = boost::dynamic_pointer_cast<const FFmpegContent> (i);
void
CaptionPanel::x_offset_changed ()
{
- BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_subtitle ()) {
+ BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_caption ()) {
i->caption->set_x_offset (_x_offset->GetValue() / 100.0);
}
}
void
CaptionPanel::y_offset_changed ()
{
- BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_subtitle ()) {
+ BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_caption ()) {
i->caption->set_y_offset (_y_offset->GetValue() / 100.0);
}
}
void
CaptionPanel::x_scale_changed ()
{
- ContentList c = _parent->selected_subtitle ();
+ ContentList c = _parent->selected_caption ();
if (c.size() == 1) {
c.front()->caption->set_x_scale (_x_scale->GetValue() / 100.0);
}
void
CaptionPanel::y_scale_changed ()
{
- BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_subtitle ()) {
+ BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_caption ()) {
i->caption->set_y_scale (_y_scale->GetValue() / 100.0);
}
}
void
CaptionPanel::line_spacing_changed ()
{
- BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_subtitle ()) {
+ BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_caption ()) {
i->caption->set_line_spacing (_line_spacing->GetValue() / 100.0);
}
}
void
CaptionPanel::language_changed ()
{
- BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_subtitle ()) {
+ BOOST_FOREACH (shared_ptr<Content> i, _parent->selected_caption ()) {
i->caption->set_language (wx_to_std (_language->GetValue()));
}
}
_subtitle_view = 0;
}
- ContentList c = _parent->selected_subtitle ();
+ ContentList c = _parent->selected_caption ();
DCPOMATIC_ASSERT (c.size() == 1);
shared_ptr<Decoder> decoder = decoder_factory (c.front(), _parent->film()->log(), false);
_fonts_dialog = 0;
}
- ContentList c = _parent->selected_subtitle ();
+ ContentList c = _parent->selected_caption ();
DCPOMATIC_ASSERT (c.size() == 1);
_fonts_dialog = new FontsDialog (this, c.front ());
void
CaptionPanel::appearance_dialog_clicked ()
{
- ContentList c = _parent->selected_subtitle ();
+ ContentList c = _parent->selected_caption ();
DCPOMATIC_ASSERT (c.size() == 1);
CaptionAppearanceDialog* d = new CaptionAppearanceDialog (this, c.front());