]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/logic.h
Strip copyright messages and id tags from individual files
[libs/gltk.git] / source / logic.h
index 689b39b41ec0b6f8f9c6504e982230ba1c1cb042..e6c5243b809acbb2b2cd24220bd879a55a20c2a7 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GLTK_LOGIC_H_
 #define MSP_GLTK_LOGIC_H_
 
@@ -21,8 +14,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 +31,10 @@ public:
        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;
@@ -47,10 +42,10 @@ public:
        };
 
 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