X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftext_content.h;h=f46b6c6d0068733a1a17973fd6def36d5deab53f;hb=5a820bb8fae34591be5ac6d19a73461b9dab532a;hp=4c6918a4220d0d5cc39610f7d20a1e89245199cf;hpb=e0a70cd5cfb11fc2de167f3146acdd437a6faa82;p=dcpomatic.git diff --git a/src/lib/text_content.h b/src/lib/text_content.h index 4c6918a42..f46b6c6d0 100644 --- a/src/lib/text_content.h +++ b/src/lib/text_content.h @@ -69,14 +69,15 @@ class TextContent : public ContentPart { public: TextContent (Content* parent, TextType type, TextType original_type); - TextContent (Content* parent, std::vector >); - TextContent (Content* parent, cxml::ConstNodePtr, int version); + TextContent (Content* parent, std::vector>); + TextContent (Content* parent, cxml::ConstNodePtr, int version, std::list& notes); void as_xml (xmlpp::Node *) const; std::string identifier () const; void take_settings_from (std::shared_ptr c); void add_font (std::shared_ptr font); + std::shared_ptr get_font(std::string id) const; void set_use (bool); void set_burn (bool); @@ -132,7 +133,7 @@ public: return _y_scale; } - std::list > fonts () const { + std::list> fonts () const { boost::mutex::scoped_lock lm (_mutex); return _fonts; } @@ -197,7 +198,7 @@ public: return _language_is_additional; } - static std::list> from_xml (Content* parent, cxml::ConstNodePtr, int version); + static std::list> from_xml (Content* parent, cxml::ConstNodePtr, int version, std::list& notes); private: friend struct ffmpeg_pts_offset_test; @@ -221,7 +222,7 @@ private: double _x_scale; /** y scale factor to apply to subtitles */ double _y_scale; - std::list > _fonts; + std::list> _fonts; boost::optional _colour; boost::optional _effect; boost::optional _effect_colour;