X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flogic.h;h=1d25c6ea44227bdd9c093b299c547e80d4e3ebf2;hb=HEAD;hp=091c4e100def4c0953c7663b7c910d0bbf210bd6;hpb=8ffcd589660022f05d8b3b1dbb36c0c0aa91954a;p=libs%2Fgltk.git diff --git a/source/logic.h b/source/logic.h deleted file mode 100644 index 091c4e1..0000000 --- a/source/logic.h +++ /dev/null @@ -1,61 +0,0 @@ -/* $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_ - -#include -#include -#include -#include -#include -#include - -namespace Msp { -namespace GLtk { - -class Widget; - -/** -Stores use interface logic. This is represented as widget bindings. Each -binding has type and data. - -See also class Connector. -*/ -class Logic -{ -public: - class Loader: public DataFile::Loader - { - private: - Logic &logic; - const std::map &widgets; - - public: - Loader(Logic &, const std::map &); - private: - void bind(const std::string &, const std::string &); - }; - - struct WidgetBinding - { - Widget *wdg; - std::string type; - std::string data; - }; - -private: - std::list bindings; - -public: - const std::list &get_bindings() const { return bindings; } -}; - -} // namespace GLtk -} // namespace Msp - -#endif