Commit Graph

37374 Commits

Author SHA1 Message Date
Mark de Wever
6395eca2a4 Use the new set_row_shown overload. 2009-12-20 20:46:43 +00:00
Mark de Wever
866b6a8844 Add an overload for set_row_shown.
Hiding one row at a time in the game_load dialog, when the filter
resulted in an empty set was slow. Every time a row was hidden the next
row was selected and its callback called. Directly after that the newly
selected row was hidden as well... The speedup is quite noticable.
2009-12-20 20:46:35 +00:00
Mark de Wever
39946e74aa Fix a redraw glitch when hiding a widget.
When hiding the grid in the game_load dialog it wasn't redrawn properly,
this fixes it. (The changes uncovering this problem will be committed
later.)
2009-12-20 20:46:27 +00:00
Mark de Wever
26de717da2 Rename set_row_visible to set_row_shown. 2009-12-20 20:46:20 +00:00
Mark de Wever
229470a84b Let set_row_visible call the selection update.
When the selection changes due to hiding rows the callback for a changed
value should also be called.
2009-12-20 19:35:16 +00:00
Mark de Wever
c636eaf402 Protect against no savegame selected in the list.
The filter can filter out all savegames, then the preview pane shouldn't
try to access an invalid index.
2009-12-20 19:35:13 +00:00
Mark de Wever
1200875a6e set_row_visible() can now properly handle sizing.
Before it always "worked" since set_visible in twidget calls
invalidate_layout(). Now only call invalidate_layout() if we failed to
handle the resize ourselves.
2009-12-20 19:35:09 +00:00
Mark de Wever
c0d4476ef1 Let content_resize_request() return a status.
This allows classes the try to handle the resize know whether suceeded
or not.
2009-12-20 19:35:06 +00:00
Mark de Wever
e45d341f6a Add a blocker for invalidate_layout().
This will be used by classes that can (partly) handle their own resizes.
2009-12-20 19:35:02 +00:00
Mark de Wever
3b69aec985 Comment out some undefined functions. 2009-12-20 19:34:58 +00:00
Ali El Gariani
45e7487f18 Fix various bugs when a unit has more MP than its maximum 2009-12-20 18:05:16 +00:00
Guillaume Melquiond
b2059ad22b Avoided checking for translation marker on identifiers. 2009-12-20 16:57:45 +00:00
Guillaume Melquiond
dc05377dc7 Removed virtual qualifier from function called from constructor. 2009-12-20 16:57:17 +00:00
Mark de Wever
fdec9c57c0 Initialize all members. 2009-12-20 16:56:46 +00:00
Mark de Wever
c50e70bc43 Initialize all members. 2009-12-20 16:56:42 +00:00
Mark de Wever
640e644ca3 Initialize all members. 2009-12-20 16:56:38 +00:00
Lari Nieminen
6a06d10943 Rewrote how the prisoners are created in 'Captured':
...now the prisoners are the highest level units possible and new
recruits are created if the player doesn't have enough
recallables. Also added a variable telling whether or not the player
has gotten ogres to recruit.
2009-12-20 16:02:36 +00:00
Mark de Wever
46d3bf1382 The load game dialog uses the new set_row_visible.
Still needs some more tuning to avoid the last invalidate_layout call.
2009-12-20 15:55:27 +00:00
Mark de Wever
1539dc50c8 Add set_row_visible function to the listbox. 2009-12-20 15:55:24 +00:00
Mark de Wever
fc6fe18859 Allow generator items to have a shown flag.
By toggling this flag the contents update their size and placement of
the items.
2009-12-20 15:55:20 +00:00
Mark de Wever
45f7dcf2ee Improve content_resize_request().
Better handle scrollbar visibility and whether or not items fit.
2009-12-20 15:55:17 +00:00
Mark de Wever
9966bc4ab5 Add recalculate_best_size to update the best size.
When a scrollbar container changes its contents this function can update
the wanted best size.
2009-12-20 15:55:13 +00:00
Mark de Wever
d364981596 Add tscrollbar_::all_items_visible().
This makes it easier to test whether the scrollbar is needed or not,
used it in the scrollbar container.
2009-12-20 15:55:10 +00:00
Mark de Wever
ecd628f3e8 Make at_end() in all cases. 2009-12-20 15:55:06 +00:00
Richard Kettering
c0c41c054c Updated sprite for the elven lady. 2009-12-20 06:50:38 +00:00
Richard Kettering
2ae0e71f32 Updated sprite for the elven lady. 2009-12-20 06:31:01 +00:00
Ignacio R. Morelle
a2bb2990d0 Move Zarel above in the art contributors list...
...to restore alphabetical order
2009-12-20 01:03:57 +00:00
Nils Kneuper
69141fa8fd updated Spanish translation 2009-12-19 08:00:15 +00:00
Benoît Timbert
1ab65e637c French translation update 2009-12-18 22:04:15 +00:00
Nils Kneuper
40f9fc2874 updated Russian translation 2009-12-18 16:06:06 +00:00
Ignacio R. Morelle
c878dcda84 Cookie time. 2009-12-18 15:03:22 +00:00
Guillaume Melquiond
61f5727523 Partly fixed compilation issues with ICC,
...including some real bugs in the code.
2009-12-18 08:08:48 +00:00
Chusslove Illich
64db3b1ff4 Updated localized images for Russian. 2009-12-17 20:15:06 +00:00
Steven Panek
3bca25c919 Updated the xcf for the Spanish maps. 2009-12-17 01:02:41 +00:00
Steven Panek
86d0e7fb06 Updated most of the Spanish BfW maps. 2009-12-17 00:57:24 +00:00
Iurii Chernyi
e5921a8c49 AI refactoring: reworked search for target markers...
...to allow goals to select their own strategy of target marker selection.
2009-12-16 23:24:08 +00:00
Steven Panek
5008957499 Ran wesnoth-optipng on the Russian localized help images; saved 3 KiB; 4%. 2009-12-16 23:09:59 +00:00
Nils Kneuper
27e16ad6c6 updated Russian translation 2009-12-16 23:02:22 +00:00
Chusslove Illich
67483df363 Updated localized images for Russian (forgot to run lbundle-check). 2009-12-16 20:56:13 +00:00
Chusslove Illich
f620f2f3b6 Updated localized images for Russian. 2009-12-16 20:55:22 +00:00
Nils Kneuper
1174d00612 updated Latvian translation 2009-12-16 16:12:44 +00:00
Nils Kneuper
04323a0eba updated Chinese (Simplified) translation 2009-12-16 10:26:09 +00:00
Eric S. Raymond
b0076f17b9 Make systematic use of the loyalty overlay. 2009-12-15 19:40:40 +00:00
Eric S. Raymond
798327b2c3 wmllint cleanup. 2009-12-15 19:07:00 +00:00
Eric S. Raymond
4f36d47399 More systematic use of generator macros. 2009-12-15 19:00:29 +00:00
Eric S. Raymond
c06fa3e162 Use generator macros for loyal units. 2009-12-15 18:25:28 +00:00
Eric S. Raymond
f88a4be057 By popular demand, make the loyal-unit generator macros...
...give the units they make the loyalty-crown overlay from Dead Water.
2009-12-15 17:14:35 +00:00
Steven Panek
03e6156b6c Removed 'vi' from l10n-spec. 2009-12-15 00:00:53 +00:00
Steven Panek
abf26f42f3 Ran set-properties on the Hungarian Far North map. 2009-12-14 23:15:51 +00:00
Steven Panek
c295d4c990 Fixed broken Pango markup. 2009-12-14 22:48:11 +00:00