15 #ifndef GUI_WIDGETS_AUXILIARY_EVENT_HANDLER_HPP_INCLUDED
16 #define GUI_WIDGETS_AUXILIARY_EVENT_HANDLER_HPP_INCLUDED
17 #ifdef BOOST_MPL_LIMIT_SET_SIZE
18 #undef BOOST_MPL_LIMIT_SET_SIZE
20 #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
21 #define BOOST_MPL_LIMIT_SET_SIZE 30
23 #include <boost/mpl/set.hpp>
193 typedef boost::mpl::set<boost::mpl::int_<DRAW>,
194 boost::mpl::int_<CLOSE_WINDOW>,
195 boost::mpl::int_<MOUSE_ENTER>,
196 boost::mpl::int_<MOUSE_LEAVE>,
197 boost::mpl::int_<LEFT_BUTTON_DOWN>,
198 boost::mpl::int_<LEFT_BUTTON_UP>,
199 boost::mpl::int_<LEFT_BUTTON_CLICK>,
200 boost::mpl::int_<LEFT_BUTTON_DOUBLE_CLICK>,
201 boost::mpl::int_<MIDDLE_BUTTON_DOWN>,
202 boost::mpl::int_<MIDDLE_BUTTON_UP>,
203 boost::mpl::int_<MIDDLE_BUTTON_CLICK>,
204 boost::mpl::int_<MIDDLE_BUTTON_DOUBLE_CLICK>,
205 boost::mpl::int_<RIGHT_BUTTON_DOWN>,
206 boost::mpl::int_<RIGHT_BUTTON_UP>,
207 boost::mpl::int_<RIGHT_BUTTON_CLICK>,
208 boost::mpl::int_<RIGHT_BUTTON_DOUBLE_CLICK> >
216 typedef boost::mpl::set<boost::mpl::int_<SDL_VIDEO_RESIZE>,
217 boost::mpl::int_<SDL_MOUSE_MOTION>,
218 boost::mpl::int_<MOUSE_MOTION>,
219 boost::mpl::int_<SDL_LEFT_BUTTON_DOWN>,
220 boost::mpl::int_<SDL_LEFT_BUTTON_UP>,
221 boost::mpl::int_<SDL_MIDDLE_BUTTON_DOWN>,
222 boost::mpl::int_<SDL_MIDDLE_BUTTON_UP>,
223 boost::mpl::int_<SDL_RIGHT_BUTTON_DOWN>,
224 boost::mpl::int_<SDL_RIGHT_BUTTON_UP>,
225 boost::mpl::int_<SHOW_TOOLTIP>,
226 boost::mpl::int_<SHOW_HELPTIP>,
227 boost::mpl::int_<SDL_WHEEL_UP>,
228 boost::mpl::int_<SDL_WHEEL_DOWN>,
229 boost::mpl::int_<SDL_WHEEL_LEFT>,
248 typedef boost::mpl::set<boost::mpl::int_<NOTIFY_REMOVAL>,
249 boost::mpl::int_<NOTIFY_MODIFIED>,
250 boost::mpl::int_<RECEIVE_KEYBOARD_FOCUS>,
251 boost::mpl::int_<LOSE_KEYBOARD_FOCUS>,
252 boost::mpl::int_<NOTIFY_REMOVE_TOOLTIP>,
253 boost::mpl::int_<SDL_ACTIVATE> >
264 typedef boost::mpl::set<boost::mpl::int_<MESSAGE_SHOW_TOOLTIP>,
265 boost::mpl::int_<MESSAGE_SHOW_HELPTIP>,
266 boost::mpl::int_<REQUEST_PLACEMENT> >
Widget loses keyboard focus.
Request for somebody to show the tooltip based on the data send.
See LEFT_BUTTON_DOUBLE_CLICK.
A SDL middle mouse button up event.
A mouse leave event for a widget.
A left mouse button double click event for a widget.
A request to close the current window.
boost::mpl::set< boost::mpl::int_< DRAW >, boost::mpl::int_< CLOSE_WINDOW >, boost::mpl::int_< MOUSE_ENTER >, boost::mpl::int_< MOUSE_LEAVE >, boost::mpl::int_< LEFT_BUTTON_DOWN >, boost::mpl::int_< LEFT_BUTTON_UP >, boost::mpl::int_< LEFT_BUTTON_CLICK >, boost::mpl::int_< LEFT_BUTTON_DOUBLE_CLICK >, boost::mpl::int_< MIDDLE_BUTTON_DOWN >, boost::mpl::int_< MIDDLE_BUTTON_UP >, boost::mpl::int_< MIDDLE_BUTTON_CLICK >, boost::mpl::int_< MIDDLE_BUTTON_DOUBLE_CLICK >, boost::mpl::int_< RIGHT_BUTTON_DOWN >, boost::mpl::int_< RIGHT_BUTTON_UP >, boost::mpl::int_< RIGHT_BUTTON_CLICK >, boost::mpl::int_< RIGHT_BUTTON_DOUBLE_CLICK > > tset_event
Helper for catching use error of tdispatcher::connect_signal.
A mouse enter event for a widget.
boost::mpl::set< boost::mpl::int_< SDL_VIDEO_RESIZE >, boost::mpl::int_< SDL_MOUSE_MOTION >, boost::mpl::int_< MOUSE_MOTION >, boost::mpl::int_< SDL_LEFT_BUTTON_DOWN >, boost::mpl::int_< SDL_LEFT_BUTTON_UP >, boost::mpl::int_< SDL_MIDDLE_BUTTON_DOWN >, boost::mpl::int_< SDL_MIDDLE_BUTTON_UP >, boost::mpl::int_< SDL_RIGHT_BUTTON_DOWN >, boost::mpl::int_< SDL_RIGHT_BUTTON_UP >, boost::mpl::int_< SHOW_TOOLTIP >, boost::mpl::int_< SHOW_HELPTIP >, boost::mpl::int_< SDL_WHEEL_UP >, boost::mpl::int_< SDL_WHEEL_DOWN >, boost::mpl::int_< SDL_WHEEL_LEFT >, boost::mpl::int_< SDL_WHEEL_RIGHT > > tset_event_mouse
Helper for catching use error of tdispatcher::connect_signal.
Widget gets keyboard focus.
std::ostream & operator<<(std::ostream &stream, const tevent event)
bool is_in_dialog()
Is a dialog open?
Base class for event handling.
A left mouse button down event for a widget.
boost::mpl::set< boost::mpl::int_< MESSAGE_SHOW_TOOLTIP >, boost::mpl::int_< MESSAGE_SHOW_HELPTIP >, boost::mpl::int_< REQUEST_PLACEMENT > > tset_event_message
Helper for catching use error of tdispatcher::connect_signal.
Request the widget to show its hover helptip.
A left mouse button click event for a widget.
A SDL mouse motion event.
void init_mouse_location()
Initializes the location of the mouse.
A class inherited from ttext_box that displays its input as stars.
See LEFT_BUTTON_DOUBLE_CLICK.
A SDL resize request, coordinate is the new window size.
A SDL middle mouse button down event.
Request for somebody to show the helptip based on the data send.
void release_mouse(tdispatcher *dispatcher)
Releases a captured mouse.
Send by a widget to notify others its contents or state are modified.
A SDL left mouse button up event.
A mouse motion event for a widget.
Request for somebody to place the widget.
tevent
The event send to the dispatcher.
Request the widget to show its hover tooltip.
A left mouse button up event for a widget.
boost::mpl::set< boost::mpl::int_< NOTIFY_REMOVAL >, boost::mpl::int_< NOTIFY_MODIFIED >, boost::mpl::int_< RECEIVE_KEYBOARD_FOCUS >, boost::mpl::int_< LOSE_KEYBOARD_FOCUS >, boost::mpl::int_< NOTIFY_REMOVE_TOOLTIP >, boost::mpl::int_< SDL_ACTIVATE > > tset_event_notification
Helper for catching use error of tdispatcher::connect_signal.
void connect_dispatcher(tdispatcher *dispatcher)
Connects a dispatcher to the event handler.
A SDL left mouse button down event.
A SDL right mouse button down event.
Send by a widget to notify others it's being destroyed.
void capture_mouse(tdispatcher *dispatcher)
Captures the mouse.
Request the widget to show its hover tooltip.
A SDL right mouse button up event.
void disconnect_dispatcher(tdispatcher *dispatcher)
Disconnects a dispatcher to the event handler.
The main application window is activated.
boost::mpl::set< boost::mpl::int_< SDL_KEY_DOWN > > tset_event_keyboard
Helper for catching use error of tdispatcher::connect_signal.
void capture_keyboard(tdispatcher *dispatcher)
Captures the keyboard.