Commit Graph

5343 Commits (08e9bd5efab733f8e4d76632f36c7a84efd38231)

Author SHA1 Message Date
Giel van Schijndel 1d083044f8 Fix several translations and inconsistencies in the French translation
This closes #191, patch by <gene69>


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6469 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-21 17:18:37 +00:00
Giel van Schijndel cfacd831c4 Update french translation:
* Fixed several typos

Closes #154, patch by Cyril Brulebois <kibi>

NOTE: Non-breakable spaces used, they might break something.

Do not backport to [milestone:2.1] until testing confirms that the non-breakable spaces don't introduce any problems.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6467 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-13 18:58:36 +00:00
Giel van Schijndel 4cdb7f6810 Update French translation:
* Import [milestone:2.1] translations into trunk
 * make -C po warzone2100.pot-update fr.po

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6466 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-13 18:58:31 +00:00
Giel van Schijndel 64f87a0b8e * Make function countAssignedDroids static because it's only used in the file where it's defined
* Code clean up
 * Make countAssignedDroids const correct
 * Make countAssignedDroids return the amount of artillery ''and'' VTOL droids that are assigned to a structure
  * This fixes #90, patch by i-NoD, modified by me

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6464 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-13 17:58:25 +00:00
Elio Gubser 5514e846ee adds a feature that fits in the image in the desired width and height without loosing its proportion
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6463 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-13 15:54:21 +00:00
Per Inge Mathisen 3307b9cee5 Fix compile problem in recent versions of ubuntu by adding -Wno-format-security to debug build mode.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6460 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-12 18:38:50 +00:00
Per Inge Mathisen 7314ba1b29 qwzm: Add short-cut keys and some GUI prettifying.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6459 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-12 18:29:33 +00:00
Per Inge Mathisen b63790aaba qwzm: Forgot to commit one file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6458 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-12 17:55:19 +00:00
Per Inge Mathisen ab0c686df2 Fix bug #12448: crash in hci.c:3101 in TRUNK (r6160) by simply removing the mostly spurious assert.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6457 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-12 17:07:55 +00:00
Per Inge Mathisen 52dd85264f Improve assert message to help track down bug #12448.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6456 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-12 16:55:06 +00:00
Per Inge Mathisen 178cb7efa9 Improve logging messages from GLC interface layer.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6455 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-12 16:35:05 +00:00
Per Inge Mathisen 0d243ce82d qwzm: Show animation frames as they are animated. Allow user to manually step through frames.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6452 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-10 21:27:42 +00:00
Per Inge Mathisen 001c5f2326 qwzm: You can now add and remove animation frames to models.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6451 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-10 20:34:08 +00:00
Per Inge Mathisen 7c477d668d qwzm: Allow basic editing of animation frames. You can change timing, translation and rotation.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6447 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-09 21:27:19 +00:00
Per Inge Mathisen 5a98e7c029 qwzm: Add dialog to display the animation frames for each model mesh.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6446 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-09 20:59:57 +00:00
Freddie Witherden 63b23fe53a Prevent the addition of children to spacers.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6441 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-07 13:37:10 +00:00
Giel van Schijndel 7e18d7e5aa * Compile and link in svgManager.[ch] (its complaining about linker errors otherwise)
* Detect libsvg-cairo in the configure script
 * Link against libsvg-cairo


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6440 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-07 03:03:50 +00:00
Giel van Schijndel d261ddbbd1 * Generate the (size_t count, const T* array) typemap using a SWIG macro
* Use this macro definition for widget:addAnimation(frames) instead of the previously custom crafted typemap
 * Add src/lua_memberfnptr.i and src/lua_table_as_array.i to the Makefile's EXTRA_DIST list


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6439 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-07 01:29:59 +00:00
Giel van Schijndel c71d586739 Betawidget Lua interface:
* Alter the "(callback handler, callback destructor, void *userData)" typemap such that it can be used as a more generic member-function callback
  * Additionally place this typemap in a file of its own for greater ease of reuse
 * Use this new typemap (for type SWIGLUA_MEMBER_FN) in the interface definition because of its greater simplicity


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6438 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-06 20:00:20 +00:00
Freddie Witherden 3e9530696d Commit patch #157 by Elio which adds SVG support to betawidget, along with some modifications by myself.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6437 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-06 19:43:10 +00:00
Giel van Schijndel a60dcc9b31 Alter the AC_PROG_SWIG macro:
* Make its dependency on AC_PROG_SED and AC_PROG_GREP explicit (AC_REQUIRE)
 * Depend on AX_WITH_PROG for finding out about SWIG's location
 * Use AX_COMPARE_VERSION (instead of lost of customly crafted code) to compare SWIG's version to that required
 * Instead of emitting a warning error out when SWIG can't be found or it doesn't satisfy the required version
 * Use a ''correct'' commandline (parameters to SWIG and correct regex + substitution) to find out SWIG's version


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6436 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-06 15:12:18 +00:00
Gerard Krol abbcda662f Remove some code duplication from the getProduction* functions and a lot of code duplication from the pickATile* functions.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6435 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-04 22:21:10 +00:00
Gerard Krol 94b7867399 Remove duplicate code responsible for drawing the health and construction progress of buildings.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6434 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-04 20:56:16 +00:00
Giel van Schijndel f0f937a0aa * Make sure that we use the correct printf formats
* Use ASSERT_HELPER where required (and ASSERT as used)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6433 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-04 14:19:21 +00:00
Giel van Schijndel 1538c2af41 * Don't use an yyerror implementation with printf-format parsing for parsers/lexers that don't use it
- This reduces the complexity of those functions ''significantly''
 * Mark yyerror functions with printf formatting with WZ_DECL_FORMAT(printf, ...)

(@trunk = the original intented target for r6430)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6432 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-04 12:58:42 +00:00
Giel van Schijndel 550efd000a Remove unused functions setMouseDown and setMouseDown
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6429 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-03 21:16:15 +00:00
Freddie Witherden b7a866a01d Fix a typo in widgetCairoCreate and be sure to explicity set the type of anti-aliasing we want.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6428 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-03 12:11:50 +00:00
Freddie Witherden 179920cb15 Add an interator-like interface to vector.h. Based off patch #157 by Elio.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6425 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-02 21:03:13 +00:00
Freddie Witherden 670ebcd4bb Improve the Doxygen documentation for vector.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6424 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-02 20:47:21 +00:00
Freddie Witherden f25687e130 Remove an unnecessary cast in widget.c.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6422 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-01 13:12:58 +00:00
Freddie Witherden fe1954ca69 Fix some indentation errors in widget.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6421 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-01 12:57:13 +00:00
Freddie Witherden 0c0828cf79 Modify the event handling and propagation in betawidget; events are now passed top-down with keyboard and click events terminating once handled.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6420 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-30 23:44:16 +00:00
Gerard Krol bb7e111e00 Updated CoordInRadar function which somehow did not make it into r6410 (rotating radar). This fixes an assert in CalcRadarPosition.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6418 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-30 22:44:58 +00:00
Giel van Schijndel 0dc0addab9 music_1.0.wz got renamed to community-music_1.0.wz so update the URL in the installer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6414 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-30 18:05:27 +00:00
Giel van Schijndel 6ed88bec7b Bump version numbers for 2.1 RC2 and update changelogs
Addresses #165

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6412 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-30 15:27:37 +00:00
Giel van Schijndel 753db46b5e Italian translation:
* Add 1073 newly translated messages (93% translated)

This addresses #150 and applies it to trunk.

Patch by Cristiano Odorico and Federico Aromolo


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6411 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-30 15:21:03 +00:00
Gerard Krol 0906040c8b Add an option to rotate the radar when the player rotates the camera. The viewing window on the radar
is thus always facing upwards.  This option is now enabled by default to obtain some feedback.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6410 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-30 15:10:49 +00:00
Elio Gubser 28f63005bc revert changes to min/max functions, getMinSize and getMaxSize should remain un-implemented in widget.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6408 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-30 11:48:50 +00:00
Elio Gubser d6c203c74a added widgetGetMinSizeImpl() and widgetGetMaxSizeImpl() copied from window.[c/h],because there was an assert when using textEntry
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6407 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-30 11:27:13 +00:00
Freddie Witherden 4363b11a15 Tidy up the Xcode project, ensuring files are in the correct group rather than all over the place.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6400 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-27 10:35:31 +00:00
Freddie Witherden 26233ae6f5 Enable dead-code stripping on OS X, which knocks 400KiB off of the executable size.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6399 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-27 08:37:30 +00:00
Giel van Schijndel b2b9e78bbe Use $(LUA_LIBS) instead of $(LUA_LIBTOOL) to link with Lua (the latter variable isn't defined anymore)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6398 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-26 22:17:15 +00:00
Freddie Witherden d54a1e8566 Colored => Coloured. We use British spelling by convention.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6397 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-26 21:22:47 +00:00
Freddie Witherden 9f2e0680eb Bump the SDL version from 1.2.11 to 1.2.13. Cursor trapping with (but not without) coloured cursors now works.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6396 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-26 21:21:17 +00:00
Freddie Witherden 8c92c4931b Rewrite the hBox class in terms of the table class. This helps to cut down on code duplication.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6394 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-26 20:42:03 +00:00
Freddie Witherden 6bf597ba14 Improve the tableSetPadding function that it now returns false on failure and true on success.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6393 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-26 20:40:10 +00:00
Freddie Witherden cc25793143 Fix compilation of betawidget after the source move.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6387 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-26 00:49:02 +00:00
Giel van Schijndel 0d99e81fb9 Only accept Perl versions >= 5.10
* NOTE: Perl is only required when one of build_tools/code-generators/* or src/*.tpl* changes

This should fix #161


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6386 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-26 00:25:08 +00:00
Giel van Schijndel 0723d7a5b9 Fix compiling on MSVC:
* Use C89 style variable declarations (i.e. at the beginning of scope-blocks)
 * Use a proper set of #include paths

This should fix #160, patch by <i-NoD> slightly modified by me (moved variable declarations to the most local scope where used)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6385 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-25 23:53:44 +00:00
Giel van Schijndel ed6ae1b949 Update POTFILES.in
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6376 4a71c877-e1ca-e34f-864e-861f7616d084
2008-11-24 01:39:38 +00:00