summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-09 16:38:14 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-09 16:38:14 +0100
commitacd023e023cfd0c4ccde3d658d038083e2071661 (patch)
treee9dee176713003eb65cd02d7ce4c71569239a342 /src/lib/subtitle_content.h
parent2a01820de9229fd778787421ec4f7bbf1e4b8bf1 (diff)
Update hints properly when fonts are changed.
Diffstat (limited to 'src/lib/subtitle_content.h')
-rw-r--r--src/lib/subtitle_content.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h
index e8915fc96..a159d7849 100644
--- a/src/lib/subtitle_content.h
+++ b/src/lib/subtitle_content.h
@@ -55,6 +55,8 @@ public:
virtual bool has_subtitles () const = 0;
+ void add_font (boost::shared_ptr<Font> font);
+
void set_use_subtitles (bool);
void set_subtitle_x_offset (double);
void set_subtitle_y_offset (double);
@@ -100,10 +102,11 @@ public:
protected:
/** subtitle language (e.g. "German") or empty if it is not known */
std::string _subtitle_language;
- std::list<boost::shared_ptr<Font> > _fonts;
private:
friend struct ffmpeg_pts_offset_test;
+ void font_changed ();
+ void connect_to_fonts ();
bool _use_subtitles;
/** x offset for placing subtitles, as a proportion of the container width;
@@ -118,6 +121,8 @@ private:
double _subtitle_x_scale;
/** y scale factor to apply to subtitles */
double _subtitle_y_scale;
+ std::list<boost::shared_ptr<Font> > _fonts;
+ std::list<boost::signals2::connection> _font_connections;
};
#endif