Add has_subtitles method to SubtitleContent; tidy up timeline display a bit.
[dcpomatic.git] / src / lib / subtitle_content.h
index f46a87c156898c4ab6cf1c5ff05d76e31f091c07..29634f95a9e3921419e9e5b0f7eed21c9d4034bc 100644 (file)
@@ -31,6 +31,12 @@ 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:
@@ -40,6 +46,9 @@ public:
        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);