summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-13 14:46:01 +0100
committerCarl Hetherington <cth@carlh.net>2016-05-18 11:50:29 +0100
commit334b94526f2c1271718a94fe97cfa843cf6ef7a1 (patch)
tree67fa8769c7fb72ec6bff799c2a3d1b087454734a /src/lib/subtitle_content.h
parent78664f8073256de51355c9162f61a4ae4fa560d7 (diff)
Basics of subtitle split.
Diffstat (limited to 'src/lib/subtitle_content.h')
-rw-r--r--src/lib/subtitle_content.h24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h
index e9017e40d..f9d5336f2 100644
--- a/src/lib/subtitle_content.h
+++ b/src/lib/subtitle_content.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013-2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -20,7 +20,9 @@
#ifndef DCPOMATIC_SUBTITLE_CONTENT_H
#define DCPOMATIC_SUBTITLE_CONTENT_H
-#include "content.h"
+#include "content_part.h"
+#include <libcxml/cxml.h>
+#include <boost/signals2.hpp>
class Font;
@@ -38,27 +40,17 @@ public:
static int const SUBTITLE_VIDEO_FRAME_RATE;
};
-/** @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
+class SubtitleContent : public ContentPart
{
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> >);
+ SubtitleContent (Content* parent, boost::shared_ptr<const Film>);
+ SubtitleContent (Content* parent, boost::shared_ptr<const Film>, cxml::ConstNodePtr, int version);
+ SubtitleContent (Content* parent, boost::shared_ptr<const Film>, std::vector<boost::shared_ptr<Content> >);
void as_xml (xmlpp::Node *) const;
std::string identifier () const;
bool has_subtitles () const;
- virtual bool has_text_subtitles () const = 0;
- virtual bool has_image_subtitles () const = 0;
- virtual double subtitle_video_frame_rate () const = 0;
void add_font (boost::shared_ptr<Font> font);