summaryrefslogtreecommitdiff
path: root/src/lib/content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-16 11:49:08 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-16 11:49:08 +0100
commitd5085584d82c021e924cec6ce00e682a8e63d800 (patch)
treecfd1094beca5be9fd788d2ca264567e51cc729d1 /src/lib/content.h
parent6f5d58eb442a7808e00c6431c6289e82cf333658 (diff)
Prevent viewer updates on timeline drag (#175).
Diffstat (limited to 'src/lib/content.h')
-rw-r--r--src/lib/content.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/content.h b/src/lib/content.h
index a190a393f..cd8914cba 100644
--- a/src/lib/content.h
+++ b/src/lib/content.h
@@ -20,6 +20,7 @@
#ifndef DCPOMATIC_CONTENT_H
#define DCPOMATIC_CONTENT_H
+#include <set>
#include <boost/filesystem.hpp>
#include <boost/signals2.hpp>
#include <boost/thread/mutex.hpp>
@@ -79,7 +80,11 @@ public:
return start() + length();
}
- boost::signals2::signal<void (boost::weak_ptr<Content>, int)> Changed;
+ void set_change_signals_frequent (bool f) {
+ _change_signals_frequent = f;
+ }
+
+ boost::signals2::signal<void (boost::weak_ptr<Content>, int, bool)> Changed;
protected:
void signal_changed (int);
@@ -91,6 +96,7 @@ private:
boost::filesystem::path _file;
std::string _digest;
Time _start;
+ bool _change_signals_frequent;
};
#endif