26034 Commits

Author SHA1 Message Date
Mark de Wever
c3a9d3f850 Initialize all members. 2008-07-07 18:06:41 +00:00
Mark de Wever
d2a51ee6d0 Initialize all members. 2008-07-07 17:36:40 +00:00
Mark de Wever
0fb46386a8 Initialize all members. 2008-07-07 17:29:45 +00:00
Mark de Wever
f0397e26ba Initialize all members. 2008-07-07 17:24:59 +00:00
Mark de Wever
eaaf0b0bab Add underscore to private members. 2008-07-07 17:18:50 +00:00
Mark de Wever
94bfed1da0 Initialize all members. 2008-07-07 16:47:13 +00:00
Tomasz Śniatowski
f23343c509 editor2:
* implement invert_selection internally

* make editor_exception derive from std::exception
2008-07-07 17:32:29 +01:00
Mark de Wever
409fee3819 Initialize all members. 2008-07-07 16:23:46 +00:00
Tomasz Śniatowski
67a40ebb46 editor2: Add selection handling in editor_map and editor_display 2008-07-07 14:54:13 +01:00
Tomasz Śniatowski
1795d97916 Code undo and redo internal handling in editor2, add action.cpp to the build 2008-07-07 14:53:16 +01:00
Greg Copeland
7fcb7908a8 First checkin of initial decorators.
I've made some kludges to these so almost certainly additional
changes are coming.
2008-07-07 13:25:03 +00:00
Greg Copeland
57a3ed30a4 Make this AI require the unrestricted python environment.
It appears wail will likely require an unrestricted environmnet unless
python 2.6 becomes the default. This is because importing
"with_statement" seems to trigger an internal "__import__" which is
specifically verboten by the safe environment. Python 2.6 will have
"with" as a standard language feature which removes the requirement of
the __future__ import.

A hack/kludge may be possible in the future. For now, I'm not
wasting more time on safe.py which has already been a huge
time sink.
2008-07-07 12:53:58 +00:00
Greg Copeland
079e2c8bfd Continuing with wail customization. Imported
with_statement to clean locking semantics.
2008-07-07 12:37:17 +00:00
Greg Copeland
ff2e104ba6 Added reader/writer (shared) locks for use with wail.
I do not believe the lock implementation is currently safe.py
safe. Additional tweaks may be required to either/or module.
2008-07-07 12:25:11 +00:00
Sergey Popov
a203628efb Pass -Wall -Wno-unused -Wno-sign-compare in all build variants. 2008-07-07 09:31:08 +00:00
Douglas Hains
22aeafeafd Some initial scouting behavoir, still very rudimentary.
Implemented as unit formula for testing.  This means unaware of other
units and group behavoir.
2008-07-07 08:58:06 +00:00
Ali El Gariani
4d6b314b60 Display the add-on name in the message 'add-on installed' 2008-07-07 00:19:55 +00:00
Ali El Gariani
0474395f0c Better highlight special publish/remove add-on options:
- Use special icons (Wesnoth icon with a green plus or a red minus)

- Color the text of the option in green/red
2008-07-06 23:50:31 +00:00
Bartek Waresiak
10e76f2eb1 Changelog update 2008-07-06 22:59:07 +00:00
Nils Kneuper
39705b81a8 updated Russian translation 2008-07-06 22:34:44 +00:00
Ali El Gariani
2226e84d88 Change default action of delete/dismiss buttons when deleting the last item.
Now stop closing the dialog, because it may have other functions even
with no items, and this also prevent closing when using filtered view
only showing the item(s) to delete (which is much more common, who
delete/dismiss everything?)
2008-07-06 22:31:11 +00:00
Ali El Gariani
c59e1f5a7d clear the unit preview panel when filter returns no unit
(fix a bug causing the last unit to stay visible there) 

fix bad use of a size_t
2008-07-06 22:23:12 +00:00
Ali El Gariani
be2b27cf20 Use multline for the new traits column in the recall dialog:
- allow to reduce width, maybe needed for big names and small screens

- easier to identify traits and compare units (all traits are left-aligned)

- provide simple and clean support for "gifted" units (no problem for 4 traits,
  then just increase the row height)

- but maybe look a bit uneven, so I am still not sure about this.
2008-07-06 21:49:23 +00:00
Ali El Gariani
14903551e1 Change the abbreviation of "Level" from "Lv." to "Lvl." in units list...
...and also use this in the recall dialog to gain some recently needed
space there This also gave a better balance between the column width
and its content.
2008-07-06 20:28:43 +00:00
Ali El Gariani
a04d53e8b7 Add a "traits" column in the recall list dialog and allow filtering on it.
Seems just to fit in 800x600 and not activated for tiny gui (not
tested yet) but I will try to reduce its width. Thanks boucman for the
idea.
2008-07-06 20:14:44 +00:00
Ignacio R. Morelle
e73e50063c Replaced enum symbol CLOSE_BRACKED with CLOSE_BRACKET 2008-07-06 19:22:59 +00:00
Ignacio R. Morelle
06ad111ae8 Changed "wesnoth lan server" to "Wesnoth's LAN server" 2008-07-06 19:21:07 +00:00
Ignacio R. Morelle
167b931518 Capitalize an acronym in a translatable string. 2008-07-06 19:17:28 +00:00
Ignacio R. Morelle
a4f5ca7f0b Make the L2 Dark Sorcerer use the same portraits as L3 Necromancer
(currently only female portrait is available)
2008-07-06 19:14:35 +00:00
Tomasz Śniatowski
551483fa77 mouseover hex higlight in editor2 2008-07-06 19:01:35 +01:00
Tomasz Śniatowski
259316c8af gui() member function in editor_mouse_handler 2008-07-06 19:01:02 +01:00
Tomasz Śniatowski
a1aefe3202 indent fix 2008-07-06 19:00:08 +01:00
Gunter Labes
c0f190aa8e typo and indentation fixes 2008-07-06 17:45:42 +00:00
Nils Kneuper
d838e17984 updated Chinese (Traditional) translation 2008-07-06 15:39:52 +00:00
Nils Kneuper
ee8f996f9a updated Czech and Italian translation
regenerated doc files
2008-07-06 15:35:23 +00:00
Tomasz Śniatowski
5926df106a Make editor2 editor_controller derive from controller_base...
...and use editor_mouse_handler
2008-07-06 16:27:36 +01:00
Tomasz Śniatowski
5f7ae302c7 use covariant return types in play_controller's...
...get_display and get_mouse_handler_base
2008-07-06 16:26:01 +01:00
Tomasz Śniatowski
1e25957f1f Update editor2/editor_common.hpp with more forward decls, update comment 2008-07-06 16:25:03 +01:00
Tomasz Śniatowski
f16329941d Add editor2's mouse handler (derived from mouse_handler_base) 2008-07-06 16:24:04 +01:00
Tomasz Śniatowski
39acbf858e fix not initialized var introduced in 2008-07-06T14:49:19Z!kailoran@gmail.com 2008-07-06 16:07:54 +01:00
Mark de Wever
aee9e58b8e Added the freetype2 dependency needed for SDL_Pango...
...and changed the dependency to the pango with ft2 support.
2008-07-06 14:56:38 +00:00
Tomasz Śniatowski
1855ca47fc move some more functions up to controller_base 2008-07-06 15:49:19 +01:00
Mark de Wever
ccbfa8acf1 Updated changelog. 2008-07-06 13:01:01 +00:00
Mark de Wever
221196c43c Added the pango dependency.
I'm not sure yet what will be the minimum required version so I used
1.14.8 as shipped with Debian Etch as minimum.  The library isn't used
yet but will be soon. Only added autotools support.

(Also some minor tab->spaces changes in the changelog.)
2008-07-06 12:20:54 +00:00
Mark de Wever
b810815212 Fixed some compiler warnings about unused variables and missing braces.
The latter is fatal on gcc-4.3.
2008-07-06 08:12:40 +00:00
Patrick Parker
5950d80a4b fix bug #3697, bug #4124, and bug #11239...
...preserving unit.role in next scenario

fix and/or remove some no-op code in unit::read and unit::get_checksum

remove redundant unit.value (use unit.cost instead)
2008-07-06 00:23:06 +00:00
Ali El Gariani
58c59179c9 Add a filter text box to the recall dialog
Filter works on type, name and level (but not xp)
allowing to see all level 2 units by just typing "2"

This also make the "rename unit" feature more useful :)
2008-07-05 22:44:42 +00:00
Ali El Gariani
1856d1e00d Fix some some messy half-translated generated topic id for abilities in help.
Previously, these topic id was "ability_"+translated name of ability,
which was ugly and forced to translate hyperlink's url too (and that
was not done)

This also fix these few broken hyperlinks in help too.
2008-07-05 22:20:59 +00:00
Benoît Timbert
1129444f68 Quick explanation in comment of why those xgettext directives 2008-07-05 21:45:44 +00:00
Tomasz Śniatowski
655aac3171 Separate a part of play_controller into a base class in controller_base...
...(for future code reuse with the editor). This is partial, there are
some more parts that need to be moved to controller_base.
2008-07-05 22:10:16 +01:00