X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent.cc;h=e3ad42560edf82ef0e1870003f46eaa04c5cbfad;hb=d98bdad019ba9be5d800dece0414d7a080609027;hp=6a33e9f7e27ce8961ce6439d648138cf891af7ce;hpb=883d885dc8690519d205c8baa275385af8a39f4b;p=dcpomatic.git diff --git a/src/lib/content.cc b/src/lib/content.cc index 6a33e9f7e..e3ad42560 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -22,77 +22,188 @@ #include #include "content.h" #include "util.h" +#include "content_factory.h" +#include "ui_signaller.h" using std::string; +using std::stringstream; +using std::set; using boost::shared_ptr; using boost::lexical_cast; -int const ContentProperty::START = 400; -int const ContentProperty::LENGTH = 401; +int const ContentProperty::PATH = 400; +int const ContentProperty::POSITION = 401; +int const ContentProperty::LENGTH = 402; +int const ContentProperty::TRIM_START = 403; +int const ContentProperty::TRIM_END = 404; -Content::Content (shared_ptr f, Time s) +Content::Content (shared_ptr f, Time p) : _film (f) - , _start (s) + , _position (p) + , _trim_start (0) + , _trim_end (0) + , _change_signals_frequent (false) { } Content::Content (shared_ptr f, boost::filesystem::path p) : _film (f) - , _file (p) - , _start (0) + , _path (p) + , _position (0) + , _trim_start (0) + , _trim_end (0) + , _change_signals_frequent (false) { } Content::Content (shared_ptr f, shared_ptr node) : _film (f) + , _change_signals_frequent (false) { - _file = node->string_child ("File"); + _path = node->string_child ("Path"); _digest = node->string_child ("Digest"); - _start = node->number_child