00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef INSTIGATE_TOOLKIT_ITEM
00011 #define INSTIGATE_TOOLKIT_ITEM
00012
00022
00023 #include "window.hpp"
00024
00025
00026
00027
00028 #include <map>
00029
00030
00031 namespace instigate {
00032 namespace toolkit {
00033 class item;
00034 }
00035 }
00036
00038 class instigate::toolkit::item
00039 {
00040 private:
00041 typedef std::map<std::string, window::callback*> callbaks;
00042 callbaks m_callbacks;
00043 std::string m_name;
00044 toolkit::window* m_window;
00045 void* m_user_data;
00046
00047 public:
00048 void notify(const std::string& s, QEvent* e) throw();
00049
00050 bool notify(const std::string& s) throw();
00051
00052 void set_callback(const std::string& s, window::callback* c) throw();
00053
00054 void set_user_data(void* d) throw();
00055
00056 void* get_user_data() const throw();
00057
00058 public:
00059 item(const std::string& s, toolkit::window* w) throw();
00060 };
00061
00062
00063
00064 #endif // INSTIGATE_TOOLKIT_ITEM
00065