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 stored as actions associated to widgets.
25 Each action has type and data. See also class Connector.
30 class Loader: public DataFile::Loader
34 const std::map<std::string, Widget *> &widgets;
37 Loader(Logic &, const std::map<std::string, Widget *> &);
39 void action(const std::string &, const std::string &);
50 std::list<WidgetAction> actions;
53 const std::list<WidgetAction> &get_actions() const { return actions; }