projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update hints properly when fonts are changed.
[dcpomatic.git]
/
src
/
lib
/
font.h
diff --git
a/src/lib/font.h
b/src/lib/font.h
index 0dedf7e493f52071b354be8309418df1f6195a83..0dd63448e7557edd089b70ed9889e8a3a8977064 100644
(file)
--- a/
src/lib/font.h
+++ b/
src/lib/font.h
@@
-22,6
+22,7
@@
#include <libcxml/cxml.h>
#include <boost/optional.hpp>
#include <libcxml/cxml.h>
#include <boost/optional.hpp>
+#include <boost/signals2.hpp>
#include <boost/filesystem.hpp>
#include <string>
#include <boost/filesystem.hpp>
#include <string>
@@
-45,8
+46,11
@@
public:
void set_file (boost::filesystem::path file) {
_file = file;
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;
private:
/** Font ID, used to describe it in the subtitle content */
std::string _id;