fix TempoMap memento command binder
This commit is contained in:
parent
09d877004d
commit
ed016dd4e6
|
@ -30,6 +30,7 @@
|
||||||
#include <glibmm/threads.h>
|
#include <glibmm/threads.h>
|
||||||
|
|
||||||
#include "pbd/enum_convert.h"
|
#include "pbd/enum_convert.h"
|
||||||
|
#include "pbd/i18n.h"
|
||||||
#include "pbd/integer_division.h"
|
#include "pbd/integer_division.h"
|
||||||
#include "pbd/memento_command.h"
|
#include "pbd/memento_command.h"
|
||||||
#include "pbd/rcu.h"
|
#include "pbd/rcu.h"
|
||||||
|
@ -767,11 +768,12 @@ class LIBTEMPORAL_API TempoMap : public PBD::StatefulDestructible
|
||||||
|
|
||||||
XMLNode& get_state();
|
XMLNode& get_state();
|
||||||
|
|
||||||
class MementoBinder : public MementoCommandBinder<SharedPtr> {
|
class MementoBinder : public MementoCommandBinder<TempoMap> {
|
||||||
|
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 { TempoMap::use()->set_state (node, version); }
|
||||||
XMLNode& get_state () const { TempoMap::use()->get_state(); }
|
XMLNode& get_state () const { return TempoMap::use()->get_state(); }
|
||||||
std::string type_name() const { return "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