diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-21 18:42:39 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-21 18:42:39 +0000 |
| commit | a52a6d96d701c993896f276e4198003317632aaf (patch) | |
| tree | be2f51e6a433d1fdf9a7c8248b343cb3f6297212 /otk/eventdispatcher.hh | |
| parent | a36c7543d4eedaa9e10bfd9f4d9b81279b1bb7e6 (diff) | |
rm the old code including the .pys and the c++ shit
Diffstat (limited to 'otk/eventdispatcher.hh')
| -rw-r--r-- | otk/eventdispatcher.hh | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/otk/eventdispatcher.hh b/otk/eventdispatcher.hh deleted file mode 100644 index 35c3722e..00000000 --- a/otk/eventdispatcher.hh +++ /dev/null @@ -1,62 +0,0 @@ -// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifndef __eventdispatcher -#define __eventdispatcher - -#include "eventhandler.hh" -#include <map> -#include <utility> - -namespace otk { - -typedef std::map<unsigned int, EventHandler *> EventMap; - -class EventDispatcher { -public: - - EventDispatcher(); - virtual ~EventDispatcher(); - - virtual void clearAllHandlers(void); - virtual void registerHandler(Window id, EventHandler *handler); - virtual void clearHandler(Window id); - //! Dispatch events from the X server to the appropriate EventHandlers - /*! - @param remote Is the Xserver on a remote (low bandwidth) connection or on a - local (high bandwidth) connection. This allows you to specify - 'false' in which case slightly different semantics are used - for event retrieval.<br> - The default is 'true' since this should generally be used, - only the Openbox window manager should need to specify - 'false' here. - */ - virtual void dispatchEvents(bool remote = true); - - inline void setFallbackHandler(EventHandler *fallback) - { _fallback = fallback; } - EventHandler *getFallbackHandler(void) const { return _fallback; } - - //! Sets an event handler that gets all events for all handlers after - //! any specific handlers have received them - inline void setMasterHandler(EventHandler *master) - { _master = master; } - EventHandler *getMasterHandler(void) const { return _master; } - - EventHandler *findHandler(Window win); - - inline Time lastTime() const { return _lasttime; } - -private: - EventMap _map; - EventHandler *_fallback; - EventHandler *_master; - - //! The time at which the last XEvent with a time was received - Time _lasttime; - - void dispatch(Window win, const XEvent &e); - void dispatchFocus(const XEvent &e); -}; - -} - -#endif |
