Commit Graph

36608 Commits

Author SHA1 Message Date
Mark de Wever
160dcb2d37 Send the event to the proper widget.
Fixes bug #14434.
2009-10-04 07:20:12 +00:00
Mark de Wever
207ae7c28b Disable old event handling code. 2009-10-04 06:10:46 +00:00
Steven Panek
a44afd8a8e Seperated the text from the labels in the main overlays and AoI's overlay. 2009-10-04 01:02:52 +00:00
Mark de Wever
713056fb86 Wire in the mouse wheel events. 2009-10-03 20:01:59 +00:00
Mark de Wever
3c6084cffe Reenable text selection with mouse dragging. 2009-10-03 19:05:35 +00:00
Ignacio R. Morelle
ff72d01889 Remove a stray pixel from the Bandit's baseframe
This caused the sprite to appear misaligned in the sidebar.
2009-10-03 18:09:06 +00:00
Mark de Wever
92b97608b4 Enable the new event handling by default.
The code should act the same as the old event handling. The code has
been lightly tested and can be disabled by defining
GUI2_OLD_EVENT_HANDLING during compilation.

The old code is still fully there and shall be moved withing #ifdefs
soon. Also the event handler has theoretic support for nested event
handlers but this code hasn't been used yet, which will also happen
later on.
2009-10-03 17:52:13 +00:00
Mark de Wever
eab5ee0219 Allow dragging of a scrollbar grip. 2009-10-03 17:52:05 +00:00
Mark de Wever
fbacbd3a2c Reenable the system events. 2009-10-03 17:52:02 +00:00
Mark de Wever
5b56521ef4 Enable wheel mouse actions.
Not tested due to lack of hardware.
2009-10-03 17:51:59 +00:00
Mark de Wever
d4a058fcc0 Enable the middle mouse button for the textwidget. 2009-10-03 17:51:56 +00:00
Mark de Wever
e37617f663 Wire in the rest of the mouse events. 2009-10-03 17:51:52 +00:00
Mark de Wever
823904390a Add definitions for the rest of the mouse events. 2009-10-03 17:51:49 +00:00
Mark de Wever
6621162ec3 Fix a type s/CLICK/DOUBLE_CLICK/. 2009-10-03 17:51:45 +00:00
Mark de Wever
78b6975c4a Allow proper selection in a textbox. 2009-10-03 17:51:42 +00:00
Mark de Wever
b86142a4ce Also send the key down if the window is the child.
This allows windows without other widgets that want the mouse to close
themselves.
2009-10-03 17:51:38 +00:00
Mark de Wever
b2f74ffe2f Enable click dismiss for the new event handler. 2009-10-03 17:51:35 +00:00
Mark de Wever
4da88be13d Restore the window auto close feature.
Doesn't use proper event handling, but the event is rather rare. But it
works as before.
2009-10-03 17:51:31 +00:00
Mark de Wever
62f5e36f24 Move the draw registration to the window. 2009-10-03 17:51:28 +00:00
Mark de Wever
29a3179320 Wire in the new resize handler. 2009-10-03 17:51:24 +00:00
Mark de Wever
518e62e187 Add resize event to new event handler. 2009-10-03 17:51:20 +00:00
Chusslove Illich
9c4e55ecf2 Inverted checking for uptodate localized images,
...such that non-tracked images are considered uptodate.
2009-10-03 16:40:32 +00:00
Chusslove Illich
be2eb4d675 Fixed indentation style. 2009-10-03 16:26:53 +00:00
Chusslove Illich
18dd3c5871 Localized image states are now checked at runtime,
...so that fuzzy localized images are not used if present.
This requires installing the l10n-track file as well.
2009-10-03 16:18:21 +00:00
Mark de Wever
ef3aa73d8d Fix doxygen comment. 2009-10-03 16:02:06 +00:00
Mark de Wever
ce3095d598 Fix doxygen comment. 2009-10-03 16:02:03 +00:00
Mark de Wever
1ba72c61eb Fix doxygen comment. 2009-10-03 16:02:00 +00:00
Mark de Wever
7dc8b5bf41 Fix doxygen comment. 2009-10-03 16:01:56 +00:00
Mark de Wever
6db60d56a8 Fix doxygen comment. 2009-10-03 16:01:53 +00:00
Chusslove Illich
68071ea7d9 Updated source localized images for German. 2009-10-03 12:03:56 +00:00
Mark de Wever
bde86a8929 Add new keyboard event handling. 2009-10-03 10:39:35 +00:00
Mark de Wever
c28e053e8c Add new keyboard event handling. 2009-10-03 10:39:31 +00:00
Mark de Wever
06e3b3fa96 Add new keyboard event handling. 2009-10-03 10:39:28 +00:00
Mark de Wever
ae034fe9b2 Add the keyboard events to the new handler. 2009-10-03 10:39:24 +00:00
Mark de Wever
076156647b Add the proper handler for keyboard events.
The events are not used yet but at least the dispatcher is ready for
them.
2009-10-03 10:39:20 +00:00
Guillaume Melquiond
2eccc67f1f Removed unused constructor user_info. 2009-10-03 08:59:46 +00:00
Guillaume Melquiond
185803217b Removed unused constructor game_info. 2009-10-03 08:59:40 +00:00
Guillaume Melquiond
f6c0602c88 Removed unused member unit::ambush. 2009-10-03 08:59:33 +00:00
Guillaume Melquiond
d9ce17b461 Removed unused members editor::editor_action_area::add_location[s]. 2009-10-03 08:59:28 +00:00
Guillaume Melquiond
72f21dfe68 Removed unused class ai::manager. 2009-10-03 08:59:22 +00:00
Guillaume Melquiond
afd80c3ddb Removed unused class wesnothd::subnet_compare_setter. 2009-10-03 08:59:16 +00:00
Guillaume Melquiond
4576b09b82 Removed unused class editor::editor_action_not_implemented. 2009-10-03 08:59:11 +00:00
Guillaume Melquiond
7fa10d91b4 Removed unused class editor::editor_action_rotate_map. 2009-10-03 08:59:04 +00:00
Guillaume Melquiond
183ede7113 Removed unused class editor::editor_action_paint_hex. 2009-10-03 08:58:58 +00:00
Guillaume Melquiond
891d96cf55 Removed unused member game_logic::position_callable::swap_position. 2009-10-03 08:58:51 +00:00
Guillaume Melquiond
742f5ab497 Removed unused class ai::candidate_action_evaluation_exception. 2009-10-03 08:58:45 +00:00
Guillaume Melquiond
6f5254d762 Removed unused class editor::editor_action_plot_route. 2009-10-03 08:58:39 +00:00
Guillaume Melquiond
cffa45a823 Removed unused class editor::editor_action_creation_fail. 2009-10-03 08:58:33 +00:00
Guillaume Melquiond
b2c60993d4 Removed unused class ai::registry. 2009-10-03 08:58:27 +00:00
Guillaume Melquiond
b2beb52f0c Removed unused class ai::candidate_action_execution_exception. 2009-10-03 08:58:21 +00:00