66 Commits

Author SHA1 Message Date
Mark de Wever
e63e00dad2 Write in the pango render engine for the new widget library.
Also enabled it for scons, cmake still needs to be done.
2008-07-11 16:53:20 +00:00
Tomasz Śniatowski
d2f5668ce3 Editor2:
* Implement very basic single hex drawing

* Framework for mouse actions

* Merge editor_mouse_handler with editor_controller (required some
  slight changes in mouse_handler_base and mouse_handler)

* Minor changes that would be difficult to separate now and commit on
  their own
2008-07-09 01:02:16 +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
Tomasz Śniatowski
f16329941d Add editor2's mouse handler (derived from mouse_handler_base) 2008-07-06 16:24:04 +01: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
Sergey Popov
4e00dc4c43 Moved Mordante's gui2 sources from libwesnoth to their proper place...
...thus eliminating circular references between libwesnoth and
libwesnoth_core.
2008-07-05 21:00:30 +00:00
Tomasz Śniatowski
3df1d79da6 Separate editor2 from old editor sources.
This makes old-editor build and work when editor2 is built. This also
makes editor2 largely nonfunctonal as it lacks basic features.
2008-07-05 12:29:47 +01:00
Pauli Nieminen
7e8a9a8bd6 Renamed test to show what is tested in there 2008-07-04 22:52:36 +00:00
Pauli Nieminen
47fb8ac6af fake_display for unit tests
added first get_save_name dialog test case
2008-07-04 22:43:05 +00:00
Pauli Nieminen
21b0f0bc47 Made endlevel test to use fake screen object
moved fake_event_source class to test tests/utils/
2008-07-04 13:36:45 +00:00
Tomasz Śniatowski
c4046c3466 Split statistics_dialog from menu_events.cpp into its own source file 2008-07-04 14:19:18 +01:00
Pauli Nieminen
388d67f190 Changed scons build to include libwesnoth_extras
Added code to send timed fake SDL events (This still needs to be moved
to src/tests/utils/)
2008-07-03 20:57:50 +00:00
Pauli Nieminen
f2f58c3f8b Made networking check if socketset is full.
cleaned some useless code from thread.cpp

improved unit test code
2008-07-03 13:05:43 +00:00
Tomasz Śniatowski
3027aff5c2 Refactor parts of mouse_events (no expected visible side-effects):
* move generic code (that could be used by editor2) into a base class
  (in a separate hpp/cpp pair)

* split attack prediction display classes into separate files This is
  still work in progress and is likely to change further as I actually
  make use of it in editor2.
2008-07-02 17:28:39 +01:00
Pauli Nieminen
221def1225 Fixed autotools to compile unit tests
Made test to be one of scons default targets
2008-07-01 21:57:09 +00:00
Pauli Nieminen
6c824cdcc5 Test case to make network::manager ready to crash 2008-06-29 23:55:15 +00:00
Pauli Nieminen
8483416186 Fixing WESNOTH_PREFIX to correct file 2008-06-27 19:31:29 +00:00
Pauli Nieminen
1ad56cc3c5 Added gui to choose where server binary is
Added type-a-head search to file chooser dialog

Improved server binary location guessing code
2008-06-27 13:57:36 +00:00
Sergey Popov
96ca696582 Made use of SCons contruction variable substitution...
...when passing -DWESNOTH_PATH etc.
2008-06-24 15:55:57 +00:00
Sergey Popov
518df853fb Don't pass -DWESNOTH_PREFIX on windows. 2008-06-24 15:37:26 +00:00
Pauli Nieminen
40df21d79a Added wesnothd search dialog to preferences and after failed mp server launch
Code still needs some testing and cleaning. I will look at it tomorrow
2008-06-24 14:35:44 +00:00
Sergey Popov
b1a9e085e5 Don't pass -DFIFODIR on windows.
Added extern declaration for _putenv so compile with -ansi works on windows.
2008-06-24 13:27:16 +00:00
Sergey Popov
6489c059c5 Refactored code for file-specific defines. 2008-06-23 06:58:31 +00:00
Pauli Nieminen
3200d42e06 made some of compiler defines to be file specific to reduce recompilation
Improved wesnothd filename quessing a bit
2008-06-22 22:41:36 +00:00
Mark de Wever
2cbe565950 Add new proof-of-concept toggle panel.
Drawing on the panel still has glitches.

Events are send to the panel not to the widget.

Sapient sorry for breaking the coding standard too lazy do convert the
0's ;-).
2008-06-22 17:49:58 +00:00
Tomasz Śniatowski
106f397bd3 block building wesnoth_editor when editor2=true in scons 2008-06-18 17:20:36 +01:00
Tomasz Śniatowski
a3d26f91e0 Fix linker errors caused by not compiling in time_of_day.cpp...
...everywhere it was needed
2008-06-18 16:51:49 +01:00
Tomasz Śniatowski
de5ea2d98e Split time_of_day class into separate .hpp/.cpp pair 2008-06-16 17:41:40 +01:00
Sergey Popov
9c21411180 SCons recipe: Refactored program targets. 2008-06-16 12:51:16 +00:00
Mark de Wever
1058e1d258 Add the new file to the other build systems/po file. 2008-06-14 14:41:47 +00:00
Mark de Wever
7b15d4ffa7 Refactoring; make a generic dialog class...
...and let the other dialogs inherit from this class. Also added some
wiki comment.
2008-06-10 21:10:55 +00:00
Ignacio R. Morelle
9e0e161f5a https://mail.gna.org/public/wesnoth-dev/2008-06/msg00002.html
- Make it possible to identify the type of add-ons if the authors supply
  it in .pbl files.

- Add a private information field, 'email', to .pbl files.

- Display add-on types in the add-ons download dialog.

- Update scons, cmake and autotools source code listings.

- The trunk campaign server must be recompiled.
2008-06-08 22:16:51 +00:00
Tomasz Śniatowski
c170ee4b14 Add editor2 build option to scons 2008-06-07 14:57:48 +01:00
Sergey Popov
12376d9f61 SCons recipe: pass -D_X11 if X server headers are found. 2008-06-05 20:41:16 +00:00
Sergey Popov
7bc432775d SCons recipe: invoke po4a tools directly. 2008-05-31 20:08:31 +00:00
Sergey Popov
e3626f5814 Made TAGS target work as it should. 2008-05-31 16:51:35 +00:00
Sergey Popov
4d28c6d936 Simplified TAGS target implementation. 2008-05-30 22:10:39 +00:00
Pauli Nieminen
727294a4b5 campaignd:
* detect client connection mode and ue same for sending data

* made campaign server use gzip for storing addons

* added configuraion option to choose gzip compression level
2008-05-26 23:12:36 +00:00
Sergey Popov
308321095d SCons recipe: fixed TAGS and test targets. 2008-05-25 11:11:05 +00:00
Pauli Nieminen
675d2ab0bf Remove extra changes from previus commit 2008-05-24 11:49:18 +00:00
Pauli Nieminen
d20bf5578f fixed parser bug that prevented loading binary data strings 2008-05-24 11:43:43 +00:00
Mark de Wever
63ad8892c7 Adding initial proof-of-concept version for the MP method selection dialog. 2008-05-23 18:25:20 +00:00
Pauli Nieminen
69ca6b875e Removing extras from commit #26795 2008-05-23 17:37:37 +00:00
Pauli Nieminen
ace0e310bf made campaign server use gzip compression for networking (trunk) 2008-05-23 17:31:24 +00:00
Sergey Popov
a57b3912dc SCons recipe: added support for using windows resource files. 2008-05-21 09:42:36 +00:00
Sergey Popov
e17de9d691 SCons recipe: no longer link campaignd against libwesnoth helper library...
...which is unnecessary and also makes campaignd dependent on SDL_ttf
and SDL_mixer.
2008-05-17 18:09:59 +00:00
Pauli Nieminen
56e6b07261 Improved code for wesnothd ban support 2008-05-16 14:55:19 +00:00
Sergey Popov
cccf6843e7 SCons recipe: use globs to get sources for TAGS. 2008-05-16 09:50:29 +00:00
Ignacio R. Morelle
74ffa52b76 Revert 2008-05-13T22:20:29Z!shadowm@wesnoth.org and 2008-05-13T22:26:46Z!shadowm@wesnoth.org 2008-05-15 18:03:28 +00:00
Ignacio R. Morelle
49e8483063 Separate the add-on manager window from game.cpp for later refactoring - step 1 2008-05-13 22:20:29 +00:00