X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Ffont.h;h=ca7650cc1b68d43406e2c8f27dd27e68762ea760;hb=dc27e49291d1d4d0bafee8f26e9c204270a4a2d2;hp=7009555c44a1b297fdee256fa00159ea570588fb;hpb=228fbab81a5f093e9265d565c1110582c363def3;p=dcpomatic.git diff --git a/src/lib/font.h b/src/lib/font.h index 7009555c4..ca7650cc1 100644 --- a/src/lib/font.h +++ b/src/lib/font.h @@ -22,22 +22,39 @@ #include #include +#include #include #include class Font { public: - Font (std::string id_) - : id (id_) {} + Font (std::string id) + : _id (id) {} Font (cxml::NodePtr node); void as_xml (xmlpp::Node* node); - - /** Font ID */ - std::string id; - boost::optional file; + + std::string id () const { + return _id; + } + + boost::optional file () const { + return _file; + } + + void set_file (boost::filesystem::path file) { + _file = file; + Changed (); + } + + boost::signals2::signal Changed; + +private: + /** Font ID, used to describe it in the subtitle content */ + std::string _id; + boost::optional _file; }; bool