mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Added delay and image selection to CloneSource
This commit is contained in:
@@ -407,7 +407,7 @@ void SessionLoader::load(XMLElement *sessionNode)
|
||||
// found the orign source
|
||||
if (origin != session_->end()) {
|
||||
// create a new source of type Clone
|
||||
Source *clone_source = (*origin)->clone(id_xml_);
|
||||
CloneSource *clone_source = (*origin)->clone(id_xml_);
|
||||
|
||||
// add source to session
|
||||
session_->addSource(clone_source);
|
||||
@@ -1082,3 +1082,16 @@ void SessionLoader::visit (GenericStreamSource& s)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void SessionLoader::visit (CloneSource& s)
|
||||
{
|
||||
// set attributes
|
||||
int imagemode = 0;
|
||||
xmlCurrent_->QueryIntAttribute("imageMode", &imagemode);
|
||||
s.setImageMode((CloneSource::CloneImageMode)imagemode);
|
||||
|
||||
double delay = 0.0;
|
||||
xmlCurrent_->QueryDoubleAttribute("delay", &delay);
|
||||
s.setDelay(delay);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user