389 Commits

Author SHA1 Message Date
Mark de Wever
3c66f576d4 Adds helper code to assist in widget placement.
The code is used to experiment with a different approach of the
implementation of a listbox.
2012-05-19 20:06:35 +00:00
Mark de Wever
3e5352e0c4 Add the skeletal code for the new viewport widget.
The code is used to experiment with a different approach of the
implementation of a listbox.
2012-05-02 19:04:50 +00:00
Mark de Wever
a85b712e2a Add a new pane widget.
The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-28 18:08:44 +00:00
Mark de Wever
aa29be755d Added unit tests for blending images.
This test is added to test modifications of the algorithm. It also adds a
programme to create the test images. And the test images to test whether
the output of the algorithm remains the same after changing the algorithm.

loonycyborg can you add this new programme to scons.
2012-03-25 10:06:24 +00:00
Ignacio R. Morelle
46df9e0dd0 Revert "addon/dep: Initial addon_dep type...
...used for representing add-on dependencies in the source code"

This reverts my own commit 2012-02-29T22:07:01Z!shadowm@wesnoth.org, which is really stupid in hindsight
and should have been in a private branch instead.
2012-03-21 15:41:14 +00:00
Fabian Müller
8dadc2b8db This commit might make Wesnoth compile again on your architecture, or not. 2012-03-20 20:30:45 +00:00
Fabian Müller
16a54c3052 Refactored the map editor.
Implemented the unit palette and the empty palette.
2012-03-13 18:19:16 +00:00
Fabian Müller
a8f07f8ee4 Replaced the old terrain palette with a system where palettes...
...are bound to the editor tools.
2012-03-09 18:02:23 +00:00
Mark de Wever
79f4a85e33 Move the ttracer class to its own file.
The class also makes sense to use outside the floating point emulation code.
2012-03-06 20:14:44 +00:00
Ignacio R. Morelle
ced3354d27 addon/state: Move get_addon_tracking_info()...
...and its support elements from manager_ui.cpp
2012-02-29 23:24:45 +00:00
Ignacio R. Morelle
95cad6f34c addon/dep: Initial addon_dep type...
...used for representing add-on dependencies in the source code

This struct type is currently unused while some state tracking
functionality is moved around. It will work with the current
campaignd/pbl protocol first until the new syntax is discussed and later
finalized.
2012-02-29 22:07:01 +00:00
Fabian Müller
3fe19eeb24 Enabled the building of the editor action label classes. 2012-02-28 10:27:42 +00:00
Ignacio R. Morelle
0d692f13e9 addon/validation: Add unit test suite
Only addon_name_legal() is covered right now.
2012-02-25 07:41:12 +00:00
Ignacio R. Morelle
9137a88b58 Add-ons client: Big refactoring step 3
This is a very large step and it's most likely not exempt of
regressions, hence I decided to push it as soon as possible so it can
receive more testing before 1.11.0. Please read the full commit message
in SVN to see what changed, instead of just the CIA version.

A changelog entry will be coming eventually, just shortly before 1.11.0
in order to give me time to finalize many other ongoing and pending changes.

Overall changes:

 * Moved most of the GUI1-dealing code to manager_ui.?pp, and rewrote
   substantial parts of it for better code cohesion.

 * The Get Add-ons and Update Add-ons dialog share most of their code, so
   they are effectively one and the same now.

 * The behavior of the add-ons dependencies resolution code has changed;
   broken dependencies (i.e. add-ons not found in the server) are
   reported properly, and the base dependant is always downloaded _before_
   its dependencies.

 * The add-ons menu dialog no longer has the trivial description text
   taking up space above the Filter box.

 * When only displaying add-ons that can be upgraded, there is now a
   Description button as usual, and add-ons with .pbl information or
   lacking _info.cfg data are exempt from listing.

 * The underpinnings of an add-on status classification (i.e. installed,
   installed+outdated, installed+upgradable, broken, not tracked) have
   begun to appear, and will be used for improving the add-ons menu and
   later implementing more dependency tiers (required, recommended,
   conflicts) in both server and client side.

 * Some translatable strings were changed along the way.

 * Add-ons are now always sorted by their ids (not titles, though)
   thanks to the introduction of a parsed add-ons list generated from
   the server's WML reply. This should help eliminate upload races
   traditionally occuring when an add-ons server instance in wesnoth.org
   has been newly started.

 * Some codepaths (check_whether_overwrite() and addon_dependencies_met()
   in particular) were greatly improved with more proper usage of our
   available infrastructure, and the C++ language itself. Furthermore,
   checking whether an add-on is already installed is not a costly
   operation anymore and it's implemented by a unique function instead
   of several algorithms scattered throughout everywhere.

Known problems:

 * The GUI2 codepath is entirely orphaned and I'll evaluate later
   whether to reconcile it or replace it entirely with a new
   experimental GUI2 front-end. This means --new-widgets has no effect
   on the Add-ons Manager code anymore, for now.

 * The GUI2 Uninstall Add-ons dialog is still in the original code unit
   and needs to be moved soon.

 * Some code (such as the add-on status tracking code) will be
   refactored further later.

 * Quite a few TODOs and FIXMEs still exist, or were newly introduced
   with this.

 * It needs to become about 20% cooler at a minimum before 1.11.0.

 * Recursive dependency tree handling may need further testing.
2012-02-24 06:45:15 +00:00
Ignacio R. Morelle
1550a653ba Greatly extend addon_info struct to store more information...
...about add-ons and teach it to read campaignd's WML responses

This will allow me later to get rid of some vectors that are passed
around a lot between the add-on management UI functions.

Additionally, the static format_file_size() function was moved from
addon/manager.cpp to addon/info.* because addon_info no longer stores
the add-on size display string and a GUI2 codepath needs it. I'm not
quite sure what this function's definitive home will be.
2012-02-22 17:23:48 +00:00
Ignacio R. Morelle
20bcf49f3e Remove custom pool memory allocator per wesnoth-dev mailing list discussion
This affects the cmake and scons scripts, and various project files in
projectfiles/. I have only tested my changes to scons (and loonycyborg
might still want to review the diff regarding a line in src/SConscript
involving game.cpp).
2012-02-19 18:43:20 +00:00
Mark de Wever
b2c0dfa7df Adds new floating point emulation code.
This code can use several fixed point formats or a double to emulate
floating point code. The code is still work in progress. The intention
is to replace the current fixed point code and use it in more
areas. Hopefully this makes Wesnoth run snappier on devices with slow
floating point hardware, read the Pandora.

By default it uses doubles, so when used in existing code there should
be no differences, between the existing code and the new code.
2012-02-19 10:07:58 +00:00
Mark de Wever
de058ef1a2 Added wesmage tool.
This tool in intended to make it easier to test SDL image manipulation
functions and thus make it easier to test changes to the algorithms.

loonycyborg please add SCons support.
2012-02-16 20:54:32 +00:00
Mark de Wever
f1f777a87a Move header code to the implementation.
This reduces the number of includes in the header.
2012-02-06 18:12:44 +00:00
Iurii Chernyi
c8659d5615 changes required to port from 5.1.4 to 5.2.0 2012-02-04 14:22:40 +00:00
Ignacio R. Morelle
c249b0c0be Initial re-refactoring of the add-ons client code
* Moved a substantial part of the logic to the addons_client class,
   which handles lower-level operations like downloading, installing,
   publishing and deleting remote add-ons

 * addons_client also handles displaying the network status window

 * Some translatable strings were rewritten or moved around
2012-02-03 20:04:56 +00:00
Ignacio R. Morelle
334d978c3a gui2/tmp_host_game_prompt: Converted the initial...
...Host Networked Game/wesnothd launch prompt to GUI2
2012-01-31 04:43:34 +00:00
Alexander van Gessel
509655682e Merge and update 2011-05-02T18:52:36Z!terraninfo@terraninfo.net from 1.8 branch
rework MP chat log as a GUI2 dialog with colored display of messages
2011-12-12 02:26:27 +01:00
Gabriel Morin
110c9fcd44 Added missing test file to cmake.
I checked that the test builds and passes fine beforehand.
2011-12-04 22:13:15 +00:00
Nils Kneuper
57b2c92900 fixed linker errors when using cmake on OpenBSD
(fixed bug #19096, thanks to George Koehler <kernigh>)
2011-12-04 13:08:26 +00:00
Ignacio R. Morelle
3953d976ce gui2/taddon_uninstall_list: New add-ons...
...uninstall menu with multiple selection

I bet there was a FR for this in the tracker, but I couldn't find it.
2011-10-29 19:32:05 +00:00
Ignacio R. Morelle
431b99e3e0 gui2/teditor_set_starting_position:
Converted old GUI1 starting positions tool menu to GUI2

* Added a column displaying existing starting locations' coordinates to
  the player numbers list

* May have made the player number entries easier to translate

* Removed overly long infodump about hotkeys that's already part of the
  tooltip on the editor palette anyway.

* Ran into a lot of frustration involving adding or substracting one
  from various things like map coordinates and team numbers because the
  zero-based C arrays assumption doesn't seem to work here.
2011-10-28 02:12:15 +00:00
Mark de Wever
547db1d0ef Force -Wold-style-cast off for certain targets.
This allows people to compile Wesnoth with the flag enabled and still
using strict compilation.
2011-10-21 18:59:42 +00:00
Alexander van Gessel
44d85b534a Remove token.cpp from cmake 2011-10-10 03:53:57 +01:00
Alexander van Gessel
81e0a2007f Revert token t_token commits from 2011-09-08T19:15:40Z!thonsew@yahoo.com on. 2011-10-10 03:43:29 +01:00
Thonsew
9563af2c53 Split team_builder off into its own class...
...so that it is not entirely inline, creating grief for MSVC.  Might
also speedup startup becauses the team_builder loops won't be inlined.
2011-09-11 19:51:42 +00:00
Thonsew
4584b5cca2 Fix for bug #18627.
Changed assertion to a wml_syntax_exception that provides an error to
user informing them of invalid wml syntax and then continues with the
variable marked as invalid.
2011-09-10 07:19:12 +00:00
Mark de Wever
d0b97762ad Add the newly added file to cmake. 2011-09-08 19:33:45 +00:00
Thonsew
3d29107eff Refactored string interpolation to use tokens to improve speed...
...once token are used in config

Added unit tests for string interpolation
2011-09-08 19:15:40 +00:00
Tommy Schmitz
3f97512688 Renamed mapbuilder_visitor to mapbuilder. 2011-08-20 08:05:42 +00:00
Sytyi Nick
8c74ce90d1 Added --strict-validation command line option.
(Validation errors are treated as fatal)
2011-08-17 22:26:10 +00:00
Sytyi Nick
bf7e6bbba2 Validation tool and CmakeLists changes for schema validation.
Validation into the engine will be added when schema file will be done.
2011-08-13 22:22:42 +00:00
Thonsew
0f13d37632 Added src/utils/reference_counter.hpp to CMakeLists.txt 2011-08-10 15:50:47 +00:00
Tommy Schmitz
b2be7c7cab Reimplemented a lot of iteration code using the new visitor_base template.
Removed visitor.cpp because all the code is in visitor.hpp now.
2011-08-02 10:17:48 +00:00
Mark de Wever
3c5b34d214 Add initial version of the schema validator.
Committing Sytyi's patch.
2011-07-04 22:32:10 +00:00
Ignacio R. Morelle
14330580e6 gui2: Convert the New Folder dialog to GUI2 2011-06-29 01:46:25 +00:00
Ignacio R. Morelle
74aacfb763 Move filechooser.o from libwesnoth...
...to the main wesnoth proper since I keep hitting linking issues with
scons otherwise when making it depend on more GUI2 code
2011-06-29 01:45:51 +00:00
Fabian Müller
d04fa3be80 Basic Joystick support. 2011-06-20 23:33:10 +00:00
Mark de Wever
75be32120b Make boost system mandatory for CMake.
This due to the work loonycyborg does on boost asio. Anonymissimus
please test whether it suffices on Windows.
2011-06-19 12:05:19 +00:00
Sergey Popov
301427f778 Started working on the new asio based network subsystem. 2011-06-18 23:10:55 +00:00
Mark de Wever
a009bf91e8 Fix build problem with CMake on MSVC.
CMake Subversion revision script causing build errors with MSVC.
anonymissimus please test whether it works.
2011-06-18 07:57:49 +00:00
Sergey Popov
2e0b1f7853 Started implementing the gui2 network transmission dialog. 2011-06-17 00:17:41 +00:00
Lukasz Dobrogowski
1f88afc9de Added unit test for commandline_options. 2011-06-09 09:52:32 +00:00
Lukasz Dobrogowski
dd2bdaaf9a Started fleshing out the new commandline_options class.
Added support for several simple switches and linked it inside
game_controller and parse_command_args().
2011-06-09 09:52:15 +00:00
Dmitry Kovalenko
b2ce483b71 Lua aspect foundation 2011-06-01 13:47:33 +00:00