3 This file is part of libmspgltk
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
16 Connector::~Connector()
18 for(map<string, ConnAction *>::iterator i=actions.begin(); i!=actions.end(); ++i)
22 void Connector::connect(const Logic &logic)
24 const list<Logic::WidgetBinding> &logic_binds=logic.get_bindings();
26 for(list<Logic::WidgetBinding>::const_iterator i=logic_binds.begin(); i!=logic_binds.end(); ++i)
28 map<string, ConnAction *>::const_iterator j=actions.find(i->type);
30 j->second->connect(*this, *i->wdg, i->data);
32 throw KeyError("Unknown binding type", i->type);
36 void Connector::add(const string &type, ConnAction *act)
38 map<string, ConnAction *>::iterator i=actions.find(type);