X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flogic.h;h=091c4e100def4c0953c7663b7c910d0bbf210bd6;hb=ef4660c4bdf38e126e13b426649fc2f997027b65;hp=689b39b41ec0b6f8f9c6504e982230ba1c1cb042;hpb=c435423919a20a87d100e1ee4cd1fc6ce223040c;p=libs%2Fgltk.git diff --git a/source/logic.h b/source/logic.h index 689b39b..091c4e1 100644 --- a/source/logic.h +++ b/source/logic.h @@ -21,8 +21,10 @@ namespace GLtk { 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 { @@ -36,10 +38,10 @@ public: public: Loader(Logic &, const std::map &); 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; @@ -47,10 +49,10 @@ public: }; private: - std::list actions; + std::list bindings; public: - const std::list &get_actions() const { return actions; } + const std::list &get_bindings() const { return bindings; } }; } // namespace GLtk