X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flogic.h;fp=source%2Flogic.h;h=0000000000000000000000000000000000000000;hb=771764f735ffe01cb170a10b24eb7dfc2a81b34d;hp=1d25c6ea44227bdd9c093b299c547e80d4e3ebf2;hpb=8dcc2c95d8d51d7a27b423343eeaac15ca3c6dec;p=libs%2Fgltk.git diff --git a/source/logic.h b/source/logic.h deleted file mode 100644 index 1d25c6e..0000000 --- a/source/logic.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef MSP_GLTK_LOGIC_H_ -#define MSP_GLTK_LOGIC_H_ - -#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::ObjectLoader - { - private: - 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