Commit Graph

36280 Commits

Author SHA1 Message Date
Guillaume Melquiond
53d9af1f8e Fixed constness in map_labels. 2009-10-05 19:38:53 +00:00
Guillaume Melquiond
fd16c7aac6 Removed unused field map_labels::label_cache_. 2009-10-05 19:38:50 +00:00
Guillaume Melquiond
de7e097109 Simplified map_labels::add_label. 2009-10-05 19:38:46 +00:00
Ali El Gariani
0688c6e909 remove dead code 2009-10-05 17:49:37 +00:00
Ali El Gariani
bd0f2a3a45 Optimize default AI targeting (prune most of targets)
No change in the AI behavior and with its current state, it seems that
we usually only need to consider the most promising target (sometimes
few more, but not the majority of them)
2009-10-05 15:54:11 +00:00
Guillaume Melquiond
ac84b5c19e Reverted part of 2009-10-02T19:27:54Z!koraq@xs4all.nl.
As pointed by alink, tooltips do actually care about the area size.
2009-10-05 04:41:04 +00:00
Richard Kettering
e0872c8a0e Minor tweak to the shadow opacity on one drake frame. 2009-10-05 00:57:25 +00:00
Guillaume Melquiond
4d031eab2b Made it possible to separately set height and multiline behavior. 2009-10-04 20:15:01 +00:00
Guillaume Melquiond
15549e8c5c Ensured surfaces returned by Pango are not bigger than expected. 2009-10-04 20:14:52 +00:00
Alexander van Gessel
bdaee5da15 Commit forgotten dutch translation update 2009-10-04 19:55:50 +01:00
Nils Kneuper
0ead9d86f4 updated Dutch translation 2009-10-04 18:22:23 +00:00
Mark de Wever
efadc53b10 Also forward the raw button events. 2009-10-04 16:16:53 +00:00
Nils Kneuper
f35fff6263 updated German translation 2009-10-04 14:52:30 +00:00
Mark de Wever
3edf2dd3fd Rename the connect function to avoid clashes.
Also connect the dispatcher from the window itself which seems more
natural to do (we are the dispatcher).
2009-10-04 14:42:43 +00:00
Tomasz Śniatowski
4a340bc302 fix bug #14266 (revert all changes not working in the map editor) 2009-10-04 15:21:45 +01:00
Tomasz Śniatowski
bbc38b4799 avoid copying editor's map_contexts,
...fixing a memory leak during non-MDI load map with a non-empty undo
stack, as reported by Soliton
2009-10-04 15:21:14 +01:00
Tomasz Śniatowski
ec428d4f24 add editor action cloning 2009-10-04 15:18:57 +01:00
Mark de Wever
5b529e5be5 Allow properly clicking in a toggle panel.
This was a known problem but I didn't realize the panel was already
used. Double clicking in the list doesn't work yet. Code to enable that
is part of a larger WIP project. The issue was spotted by fendrin.
2009-10-04 12:05:19 +00:00
Mark de Wever
c896be2ee8 Send the SDL mouse motion properly.
This way a dispatcher can intercept and block the signal, which allows
resending the signal in a different fashion (which is wanted for some
nested widgets.).
2009-10-04 12:05:15 +00:00
Mark de Wever
f4b58c9b0b Improve opening multiple dialogs.
I wasn't entirely happy with 2009-10-02T19:02:32Z!koraq@xs4all.nl since it seemed to fix a
symptom and not the cause, found the cause and reverted the code
introduced in 2009-10-02T19:02:32Z!koraq@xs4all.nl.
2009-10-04 12:05:10 +00:00
Chusslove Illich
90bc861827 Updated tracking index of localized images. 2009-10-04 09:54:03 +00:00
Nils Kneuper
6120295ab9 updated Dutch translation 2009-10-04 09:41:31 +00:00
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