class Widget;
/**
-Stores use interface logic. This is stored as actions associated to widgets.
-Each action has type and data. See also class Connector.
+Stores use interface logic. This is represented as widget bindings. Each
+binding has type and data.
+
+See also class Connector.
*/
class Logic
{
public:
Loader(Logic &, const std::map<std::string, Widget *> &);
private:
- void action(const std::string &, const std::string &);
+ void bind(const std::string &, const std::string &);
};
- struct WidgetAction
+ struct WidgetBinding
{
Widget *wdg;
std::string type;
};
private:
- std::list<WidgetAction> actions;
+ std::list<WidgetBinding> bindings;
public:
- const std::list<WidgetAction> &get_actions() const { return actions; }
+ const std::list<WidgetBinding> &get_bindings() const { return bindings; }
};
} // namespace GLtk