move tempo map memento binder into .cc and actuall implement the RCU version
This commit is contained in:
parent
90553b315f
commit
44ff395ec8
|
@ -2864,3 +2864,14 @@ TempoMap::twist_tempi (TempoSection* ts, const Tempo& bpm, const framepos_t fram
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void
|
||||||
|
TempoMap::MementoBinder::set_state (XMLNode const & node, int version) const
|
||||||
|
{
|
||||||
|
TempoMap::SharedPtr map (write_copy());
|
||||||
|
map->set_state (node, version);
|
||||||
|
update (map);
|
||||||
|
fetch ();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -771,7 +771,7 @@ class LIBTEMPORAL_API TempoMap : public PBD::StatefulDestructible
|
||||||
class MementoBinder : public MementoCommandBinder<TempoMap> {
|
class MementoBinder : public MementoCommandBinder<TempoMap> {
|
||||||
public:
|
public:
|
||||||
MementoBinder () {}
|
MementoBinder () {}
|
||||||
void set_state (XMLNode const & node, int version) const { TempoMap::use()->set_state (node, version); }
|
void set_state (XMLNode const & node, int version) const;
|
||||||
XMLNode& get_state () const { return TempoMap::use()->get_state(); }
|
XMLNode& get_state () const { return TempoMap::use()->get_state(); }
|
||||||
std::string type_name() const { return X_("Temporal::TempoMap"); }
|
std::string type_name() const { return X_("Temporal::TempoMap"); }
|
||||||
void add_state (XMLNode*) {}
|
void add_state (XMLNode*) {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user