1 #include <msp/core/maputils.h>
10 Connector::~Connector()
12 for(map<string, ConnAction *>::iterator i=actions.begin(); i!=actions.end(); ++i)
16 void Connector::connect(const Logic &logic)
18 const list<Logic::WidgetBinding> &logic_binds = logic.get_bindings();
20 for(list<Logic::WidgetBinding>::const_iterator i=logic_binds.begin(); i!=logic_binds.end(); ++i)
22 ConnAction *action = get_item(actions, i->type);
23 action->connect(*this, *i->wdg, i->data);
27 void Connector::add(const string &type, ConnAction *act)
29 map<string, ConnAction *>::iterator i = actions.find(type);