aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/EventManager.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/EventManager.hh')
-rw-r--r--src/FbTk/EventManager.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/FbTk/EventManager.hh b/src/FbTk/EventManager.hh
index 7d67331..7d1562e 100644
--- a/src/FbTk/EventManager.hh
+++ b/src/FbTk/EventManager.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: EventManager.hh,v 1.4 2002/12/03 17:05:45 fluxgen Exp $ 22// $Id: EventManager.hh,v 1.5 2003/08/23 15:44:06 fluxgen Exp $
23 23
24#include "EventHandler.hh" 24#include "EventHandler.hh"
25#include <map> 25#include <map>
@@ -36,6 +36,8 @@ public:
36 static EventManager *instance(); 36 static EventManager *instance();
37 37
38 void handleEvent(XEvent &ev); 38 void handleEvent(XEvent &ev);
39 // adds a parent to listen to the childrens events
40 void addParent(EventHandler &ev, const FbWindow &parent);
39 void add(EventHandler &ev, const FbWindow &win); 41 void add(EventHandler &ev, const FbWindow &win);
40 void remove(const FbWindow &win); 42 void remove(const FbWindow &win);
41 void add(EventHandler &ev, Window win) { registerEventHandler(ev, win); } 43 void add(EventHandler &ev, Window win) { registerEventHandler(ev, win); }
@@ -45,8 +47,9 @@ public:
45private: 47private:
46 EventManager() { } 48 EventManager() { }
47 ~EventManager(); 49 ~EventManager();
48 50 void dispatch(Window win, XEvent &event, bool parent = false);
49 std::map<Window, EventHandler *> m_eventhandlers; 51 std::map<Window, EventHandler *> m_eventhandlers;
52 std::map<Window, EventHandler *> m_parent;
50}; 53};
51 54
52}; //end namespace FbTk 55}; //end namespace FbTk