id_t becomes a fully-fledged object, UUID's used for IDs, generic MIDI now owns bindi...
[ardour.git] / libs / pbd / controllable.cc
1 #include <pbd/controllable.h>
2 #include <pbd/xml++.h>
3
4 #include "i18n.h"
5
6 using namespace PBD;
7
8 sigc::signal<void,Controllable*> Controllable::Created;
9 sigc::signal<void,Controllable*> Controllable::GoingAway;
10 sigc::signal<bool,Controllable*> Controllable::StartLearning;
11 sigc::signal<void,Controllable*> Controllable::StopLearning;
12
13 Controllable::Controllable ()
14 {
15         Created (this);
16 }
17
18 XMLNode&
19 Controllable::get_state ()
20 {
21         XMLNode* node = new XMLNode (X_("Controllable"));
22         char buf[64];
23         _id.print (buf);
24         node->add_property (X_("id"), buf);
25         return *node;
26 }