3 This file is part of libmspgltk
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GLTK_LOGIC_H_
9 #define MSP_GLTK_LOGIC_H_
14 #include <sigc++/slot.h>
15 #include <msp/core/except.h>
16 #include <msp/datafile/loader.h>
24 Stores use interface logic. This is represented as widget bindings. Each
25 binding has type and data.
27 See also class Connector.
32 class Loader: public DataFile::Loader
36 const std::map<std::string, Widget *> &widgets;
39 Loader(Logic &, const std::map<std::string, Widget *> &);
41 void bind(const std::string &, const std::string &);
52 std::list<WidgetBinding> bindings;
55 const std::list<WidgetBinding> &get_bindings() const { return bindings; }