X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent_text.h;h=5edb9af2083be0993339caefa876dc09e3627e7d;hb=cfbe9d2f44e380efed7a61b5b5c7a2fec7794915;hp=1b550c96dd6733227bf715dfb4ca87641be73656;hpb=9cb73fbc0fa4643612f01665bc6d9fc430656f32;p=dcpomatic.git diff --git a/src/lib/content_text.h b/src/lib/content_text.h index 1b550c96d..5edb9af20 100644 --- a/src/lib/content_text.h +++ b/src/lib/content_text.h @@ -33,29 +33,23 @@ class Image; class ContentText { public: - explicit ContentText (ContentTime f, TextType t) + explicit ContentText (dcpomatic::ContentTime f) : _from (f) - , _type (t) {} - ContentTime from () const { + dcpomatic::ContentTime from () const { return _from; } - TextType type () const { - return _type; - } - private: - ContentTime _from; - TextType _type; + dcpomatic::ContentTime _from; }; -class ContentBitmapCaption : public ContentText +class ContentBitmapText : public ContentText { public: - ContentBitmapCaption (ContentTime f, TextType type, boost::shared_ptr im, dcpomatic::Rect r) - : ContentText (f, type) + ContentBitmapText (dcpomatic::ContentTime f, std::shared_ptr im, dcpomatic::Rect r) + : ContentText (f) , sub (im, r) {} @@ -67,11 +61,11 @@ public: * as the dcp::SubtitleString timings are sometimes quite heavily quantised and this causes problems * when we want to compare the quantised periods to the unquantised ones. */ -class ContentTextCaption : public ContentText +class ContentStringText : public ContentText { public: - ContentTextCaption (ContentTime f, TextType type, std::list s) - : ContentText (f, type) + ContentStringText (dcpomatic::ContentTime f, std::list s) + : ContentText (f) , subs (s) {}