From df17bbd25da69fc38eb2dcd8b4a2531cf0bab0bc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 23 Jul 2018 11:20:12 +0100 Subject: More automated renaming. ActiveCaptions -> ActiveText BitmapCaption -> BitmapText ContentCaption -> ContentText ContentTextCaption -> ContentStringText TextCaptionFileContent -> StringTextFileContent TextCaptionFileDecoder -> StringTextFileDecoder TextCaptionFile -> StringTextFile TextCaption -> StringText PlayerCaption -> PlayerText CaptionContent -> TextContent CaptionDecoder -> TextDecoder CaptionPanel -> TextPanel CaptionView -> TextView CaptionAppearanceDialog -> SubtitleAppearanceDialog CaptionType -> TextType --- src/lib/dcp_content.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/lib/dcp_content.cc') diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index 414a22256..aaf8064f3 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -28,7 +28,7 @@ #include "overlaps.h" #include "compose.hpp" #include "dcp_decoder.h" -#include "caption_content.h" +#include "text_content.h" #include #include #include @@ -84,7 +84,7 @@ DCPContent::DCPContent (shared_ptr film, cxml::ConstNodePtr node, in { video = VideoContent::from_xml (this, node, version); audio = AudioContent::from_xml (this, node, version); - caption = CaptionContent::from_xml (this, node, version); + caption = TextContent::from_xml (this, node, version); for (int i = 0; i < CAPTION_COUNT; ++i) { _reference_caption[i] = false; @@ -192,8 +192,8 @@ DCPContent::examine (shared_ptr job) boost::mutex::scoped_lock lm (_mutex); _name = examiner->name (); for (int i = 0; i < CAPTION_COUNT; ++i) { - if (examiner->has_caption(static_cast(i))) { - caption.push_back (shared_ptr(new CaptionContent(this, static_cast(i)))); + if (examiner->has_caption(static_cast(i))) { + caption.push_back (shared_ptr(new TextContent(this, static_cast(i)))); } } captions = caption.size (); @@ -267,7 +267,7 @@ DCPContent::as_xml (xmlpp::Node* node, bool with_paths) const audio->stream()->mapping().as_xml (node->add_child("AudioMapping")); } - BOOST_FOREACH (shared_ptr i, caption) { + BOOST_FOREACH (shared_ptr i, caption) { i->as_xml (node); } @@ -323,7 +323,7 @@ DCPContent::identifier () const s += video->identifier() + "_"; } - BOOST_FOREACH (shared_ptr i, caption) { + BOOST_FOREACH (shared_ptr i, caption) { s += i->identifier () + " "; } @@ -416,7 +416,7 @@ DCPContent::set_reference_audio (bool r) } void -DCPContent::set_reference_caption (CaptionType type, bool r) +DCPContent::set_reference_caption (TextType type, bool r) { { boost::mutex::scoped_lock lm (_mutex); @@ -596,7 +596,7 @@ bool check_caption (shared_ptr c) return !c->caption.empty(); } bool -DCPContent::can_reference_caption (CaptionType type, string& why_not) const +DCPContent::can_reference_caption (TextType type, string& why_not) const { shared_ptr decoder; try { -- cgit v1.2.3