From 2246204c213d61b2cde7a85d6038156283670c9d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 30 Apr 2015 19:22:31 +0100 Subject: Rename some things to ...Node. --- src/subtitle_node.h | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/subtitle_node.h (limited to 'src/subtitle_node.h') diff --git a/src/subtitle_node.h b/src/subtitle_node.h new file mode 100644 index 00000000..d615557a --- /dev/null +++ b/src/subtitle_node.h @@ -0,0 +1,56 @@ +/* + Copyright (C) 2012-2015 Carl Hetherington + + 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 + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#ifndef LIBDCP_SUBTITLE_NODE_H +#define LIBDCP_SUBTITLE_NODE_H + +#include "dcp_time.h" +#include +#include +#include + +namespace cxml { + class Node; +} + +namespace dcp { + +class FontNode; +class TextNode; + +class SubtitleNode +{ +public: + SubtitleNode () {} + SubtitleNode (boost::shared_ptr node, int tcr); + + Time in; + Time out; + Time fade_up_time; + Time fade_down_time; + std::list > font_nodes; + std::list > text_nodes; + +private: + Time fade_time (boost::shared_ptr, std::string name, int tcr); +}; + +} + +#endif -- cgit v1.2.3