13
0
livetrax/libs/pbd/controllable.cc
David Robillard 50a3102b9b Merge big changes (mostly Controllable) from trunk
git-svn-id: svn://localhost/ardour2/branches/midi@682 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-07-14 03:43:32 +00:00

27 lines
561 B
C++

#include <pbd/controllable.h>
#include <pbd/xml++.h>
#include "i18n.h"
using namespace PBD;
sigc::signal<void,Controllable*> Controllable::Created;
sigc::signal<void,Controllable*> Controllable::GoingAway;
sigc::signal<bool,Controllable*> Controllable::StartLearning;
sigc::signal<void,Controllable*> Controllable::StopLearning;
Controllable::Controllable ()
{
Created (this);
}
XMLNode&
Controllable::get_state ()
{
XMLNode* node = new XMLNode (X_("Controllable"));
char buf[64];
_id.print (buf);
node->add_property (X_("id"), buf);
return *node;
}