Add has_subtitles method to SubtitleContent; tidy up timeline display a bit.
[dcpomatic.git] / src / lib / subtitle_content.h
index b73119bdb9dccef91e87e516f3b1c475da3fdfda..29634f95a9e3921419e9e5b0f7eed21c9d4034bc 100644 (file)
@@ -31,14 +31,24 @@ public:
        static int const SUBTITLE_USE;
 };
 
+/** @class SubtitleContent
+ *  @brief Parent for content which has the potential to include subtitles.
+ *
+ *  Although inheriting from this class indicates that the content could
+ *  have subtitles, it may not.  ::has_subtitles() will tell you.
+ */
 class SubtitleContent : public virtual Content
 {
 public:
+       SubtitleContent (boost::shared_ptr<const Film>);
        SubtitleContent (boost::shared_ptr<const Film>, boost::filesystem::path);
        SubtitleContent (boost::shared_ptr<const Film>, cxml::ConstNodePtr, int version);
        SubtitleContent (boost::shared_ptr<const Film>, std::vector<boost::shared_ptr<Content> >);
 
        void as_xml (xmlpp::Node *) const;
+       std::string identifier () const;
+
+       virtual bool has_subtitles () const = 0;
 
        void set_subtitle_use (bool);
        void set_subtitle_x_offset (double);