From a8af9a0b57b853b8a8cd8fa35adb3fc967d59ee7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 10 Jul 2014 22:41:48 +0100 Subject: Add has_subtitles method to SubtitleContent; tidy up timeline display a bit. --- src/lib/dcp_subtitle_content.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/dcp_subtitle_content.h') diff --git a/src/lib/dcp_subtitle_content.h b/src/lib/dcp_subtitle_content.h index 79338c1af..5794b5951 100644 --- a/src/lib/dcp_subtitle_content.h +++ b/src/lib/dcp_subtitle_content.h @@ -25,6 +25,7 @@ public: DCPSubtitleContent (boost::shared_ptr, boost::filesystem::path); DCPSubtitleContent (boost::shared_ptr, cxml::ConstNodePtr, int); + /* Content */ void examine (boost::shared_ptr); std::string summary () const; std::string technical_summary () const; @@ -32,6 +33,11 @@ public: void as_xml (xmlpp::Node *) const; DCPTime full_length () const; + /* SubtitleContent */ + bool has_subtitles () const { + return true; + } + private: DCPTime _length; }; -- cgit v1.2.3