summaryrefslogtreecommitdiff
path: root/src/subtitle.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-29 10:34:10 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-29 10:34:10 +0000
commitc8c3db36a4593e396681b4acd5e9d318a28b1648 (patch)
tree7aafc5d61fce1f6971dde96a5e345a1670e115ea /src/subtitle.h
parent75aa6e480d998b29205c0eab328697a5d007986b (diff)
Time -> FrameTime.
Diffstat (limited to 'src/subtitle.h')
-rw-r--r--src/subtitle.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/subtitle.h b/src/subtitle.h
index d12dfc1..3afd0f3 100644
--- a/src/subtitle.h
+++ b/src/subtitle.h
@@ -20,7 +20,8 @@
#ifndef LIBSUB_SUBTITLE_H
#define LIBSUB_SUBTITLE_H
-#include "sub_time.h"
+#include "frame_time.h"
+#include <boost/optional.hpp>
#include <string>
namespace sub {
@@ -44,8 +45,8 @@ public:
bool italic,
bool underline,
int line,
- Time from,
- Time to
+ FrameTime from,
+ FrameTime to
)
: text (text)
, font (font)
@@ -54,10 +55,10 @@ public:
, italic (italic)
, underline (underline)
, line (line)
- , from (from)
- , to (to)
+ , frame_from (from)
+ , frame_to (to)
{}
-
+
std::string text;
std::string font;
int font_size;
@@ -65,8 +66,8 @@ public:
bool italic;
bool underline;
int line;
- Time from;
- Time to;
+ boost::optional<FrameTime> frame_from;
+ boost::optional<FrameTime> frame_to;
};
}