logic(l),
widgets(w)
{
- add("action", &Loader::action);
+ add("bind", &Loader::bind);
}
-void Logic::Loader::action(const string &wdg, const string &data)
+void Logic::Loader::bind(const string &wdg, const string &data)
{
map<string, Widget *>::const_iterator i=widgets.find(wdg);
if(i==widgets.end())
throw KeyError("Unknown widget", wdg);
unsigned colon=data.find(':');
- WidgetAction act;
+ WidgetBinding act;
act.wdg=i->second;
act.type=data.substr(0, colon);
if(colon!=string::npos)
act.data=data.substr(colon+1);
- logic.actions.push_back(act);
+ logic.bindings.push_back(act);
}
} // namespace GLtk