diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-10 22:41:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-10 22:41:48 +0100 |
| commit | a8af9a0b57b853b8a8cd8fa35adb3fc967d59ee7 (patch) | |
| tree | 9493b374153de99bc220138361420c5abe85b16e /src/lib/subtitle_content.h | |
| parent | 8d58a7c5f4320ad5c111e336c45e44d6b51ab509 (diff) | |
Add has_subtitles method to SubtitleContent; tidy up timeline display a bit.
Diffstat (limited to 'src/lib/subtitle_content.h')
| -rw-r--r-- | src/lib/subtitle_content.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h index 1425c33cd..29634f95a 100644 --- a/src/lib/subtitle_content.h +++ b/src/lib/subtitle_content.h @@ -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: @@ -42,6 +48,8 @@ public: 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); void set_subtitle_y_offset (double); |
