Update hints properly when fonts are changed.
[dcpomatic.git] / src / lib / font.h
index 0dedf7e493f52071b354be8309418df1f6195a83..0dd63448e7557edd089b70ed9889e8a3a8977064 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <libcxml/cxml.h>
 #include <boost/optional.hpp>
+#include <boost/signals2.hpp>
 #include <boost/filesystem.hpp>
 #include <string>
 
@@ -45,8 +46,11 @@ public:
 
        void set_file (boost::filesystem::path file) {
                _file = file;
+               Changed ();
        }
 
+       boost::signals2::signal<void()> Changed;
+
 private:       
        /** Font ID, used to describe it in the subtitle content */
        std::string _id;