8 Logic::Loader::Loader(Logic &l, const map<string, Widget *> &w):
12 add("bind", &Loader::bind);
15 void Logic::Loader::bind(const string &wdg, const string &data)
17 map<string, Widget *>::const_iterator i = widgets.find(wdg);
19 throw KeyError("Unknown widget", wdg);
21 string::size_type colon = data.find(':');
24 act.type = data.substr(0, colon);
25 if(colon!=string::npos)
26 act.data = data.substr(colon+1);
27 logic.bindings.push_back(act);