525 Commits

Author SHA1 Message Date
Charles Dang
e86cadfa72 Update CB project 2016-03-23 06:51:59 +11:00
Celtic Minstrel
931376954b Remove map_utils.hpp
Rationale:
- The at() emulation is only used in one file and will become redundant once we move to C++11 soon
- The map_get_value_default function is also only used in one file, and removing it actually makes the logic clearer
- It was moved to map/utils.hpp despite having nothing to do with game maps; removing it is slightly easier than moving it again
2016-03-21 12:50:07 -04:00
Charles Dang
cb992e88b0 Removed Data Manage dialog
This dialog didn't do anything more than allow you to delete saves.
2016-03-21 22:14:34 +11:00
Celtic Minstrel
c0afb53a2f Fix build/project files 2016-03-20 23:27:40 -04:00
Celtic Minstrel
620b228fa8 Consolidate related GUI2 dialogs in directories 2016-03-20 23:18:49 -04:00
Celtic Minstrel
6307b9459c Move most of gui/auxiliary to gui/core to reflect its true nature 2016-03-20 23:18:48 -04:00
Celtic Minstrel
040b4ca49a Consolidate GUI2 widget files
Now every GUI2 widget requires only two source files, instead of six (or in rare cases four).
2016-03-20 23:18:46 -04:00
Charles Dang
15db95f05e Update CB projfile 2016-03-21 09:28:47 +11:00
Celtic Minstrel
bc711f5f43 Consolidate related files into subdirectories 2016-03-20 16:20:09 -04:00
Celtic Minstrel
fe0df45947 Consolidate formula and hotkey files in corresponding dirs 2016-03-20 16:15:50 -04:00
Charles Dang
33a04c32e2 Removed old code for [portrait]
This was an experimental feature that was never finished. Any [portrait]
tags were removed from the unit type WML a while back
2016-03-21 03:47:13 +11:00
Charles Dang
42816df6f6 Converted Recruit dialog to GUI2 2016-03-09 19:52:25 +11:00
Charles Dang
29e19cd854 GUI2: implemented a Unit Preview Pane widget 2016-03-09 19:15:13 +11:00
Charles Dang
2ca0503337 Updated cb projfile
I seem to have forgotten to do this before
2016-03-05 11:19:30 +11:00
Charles Dang
90ae1151c7 CB: add -Wunused compiler flag 2016-02-26 12:53:02 +11:00
Charles Dang
dfe7fcca88 gui2: implement widget groups
Groups are handled on a per-dialog basis, and are currently specialized for tselectable_
inheritors. They provide a convenient vector-of-pairs interface that ensure only one
widget is selected at one time and allows binding of values to widgets which can be
fetched at a later point.
2016-02-25 20:28:18 +11:00
Celtic Minstrel
33da7920cf Add new orb selection dialog to unit tests and other build systems 2016-02-18 01:13:11 -05:00
Charles Dang
a5b2f5cd7b Updated build lists + cb projfile 2016-02-06 20:19:40 +11:00
Charles Dang
cb71b330e9 Updated codeblocks build readme with updated last tested versions 2016-02-02 02:28:35 +11:00
Charles Dang
fb5b4b0e99 Updated codeblocks projfile 2016-01-21 05:51:55 +11:00
Charles Dang
c951043d58 Resave lua codeblocks projfile
File generated with CB 13.12
2015-12-22 16:36:23 +11:00
Charles Dang
b8a821e388 Enable SDL2 building by default in codeblocks project 2015-12-22 16:35:56 +11:00
Ignacio R. Morelle
53ed94da25 log/windows: Integrate implementation of --wconsole
This makes it so we no longer try to steal the console back to a log
file when using --wconsole with the new redirection code. Now the
--wconsole switch triggers a special mode of the log file manager that
uses a native console instead of log files.

As a necessary bonus to appease compilers, the GUI2 version info dialog
now uses the correct log file path when not started with the --wconsole
switch. Yay!
2015-11-23 03:42:14 -03:00
Ignacio R. Morelle
aae8e70c7a log/windows: Add our own stdout/stderr redirection on Windows
This replaces SDL 1.2's built-in stdout/stderr redirection, which writes
the log file to the process working directory (usually an
admin-restricted location) instead of a more accessible user-writable
location.

My approach combines stdout and stderr into a single log file which
includes the process id and timestamp in its filename in order to
accomodate multiple instances and (coming later) log rotation. The log
file is created in the user's temporary directory defined by Windows,
and then relocated to the game user data dir as soon as it is set-up the
first time, placed in the Windows-specific logs/ subdir.

The most pressing issues this solves are the lack of built-in
stdout/stderr redirection in SDL 2's SDL2main.lib entry point, and
Unicode path issues with SDL 1.2 (bug #22897). Additionally, it allows
us to not have to rely on UAC virtualization anymore; this is arguably
far more important because it has been known to break on occasion (e.g.
<http://r.wesnoth.org/t42970>), and starting with version 1.13.2 we want
to declare Windows Vista - 10 compatibility in our side-by-side manifest
(see commit e119f4071f047c6d740ebec4636985fdf39349bc).

Currently missing features coming later:

 * Log rotation (otherwise the logs/ dir may grow forever)
 * wesnothd support (although the code is already required to be linked
   into wesnothd due to it being required by the FS API)
 * Integration with the version info dialog
2015-11-23 03:21:42 -03:00
Charles Dang
c7aa47443d CB Project: replaced DWINVER with _WIN32_IE
The former doesn't appear to do anything and was probably a typo
2015-10-21 14:44:01 +11:00
Charles Dang
a4fe9c0474 Updated codeblocks projectfile 2015-09-21 07:44:23 +11:00
Charles Dang
9ca044abdb Updated codeblock projectfile 2015-09-10 15:00:53 +11:00
Charles Dang
6c333d8278 Updated cb projectfile for 0abde389dc1a 2015-09-01 22:56:10 +11:00
Ignacio R. Morelle
92dd610d4c fs: Remove Windows-only bits of the legacy filesystem API implementation
These aren't used by anything else.
2015-08-23 17:28:40 -03:00
Charles Dang
9c2c079a3a Dropped HAVE_PYTHON and USE_GZIP defines
As far as I can tell, these do nothing
2015-08-23 10:37:28 +11:00
Charles Dang
565caec797 Updated codeblocks readme 2015-08-17 10:10:36 +11:00
Celtic Minstrel
f619b4cc63 Update build stuff
(Sconscript, CMakeLists, tests, project files)
2015-08-07 22:50:34 -04:00
Charles Dang
e7345dd69a Updated codeblocks projectfile to use boost 1.58 libs 2015-07-30 17:53:19 +11:00
Charles Dang
f374f537b2 Updated codeblocks projectfile 2015-07-26 03:52:14 +11:00
Ignacio R. Morelle
877ead550a Add Windows resource file for wesnothd 2015-07-20 21:16:04 -04:00
Ignacio R. Morelle
51c026dc91 desktop: Add function to obtain OS version string
Highly unreliable and generally useless, see the Doxygen documentation.
Also missing the actual Windows implementation for the moment. Also,
since uname() is highly useless on most platforms, I'll need to think up
a better OS X implementation later down the road.
2015-07-13 20:52:38 -03:00
Ignacio R. Morelle
941e983d61 gui2/tgame_paths: Rename to tgame_version
This is in preparation for repurposing it into a more full-fledged game
version/build info dialog.
2015-07-13 05:41:37 -03:00
Ignacio R. Morelle
077c66fdc0 New centralized library versions API
Registers library versions in a single structure that can be queried
later as many times as necessary (say, from the game UI) instead of
relying on recording this information in different object files in an
inconsistent fashion. Also, it provides a pretty formatter for console
usage (e.g., in --version).

libpng also gets to join in the fun.
2015-07-09 03:21:19 -03:00
Charles Dang
16444cd24a Updated codeblock projfile 2015-06-04 11:43:26 +11:00
Charles Dang
755638633a Updated codeblocks projectfile 2015-05-20 14:15:41 +11:00
Ignacio R. Morelle
8d2609ff4c Add --wconsole for allocating a Windows console on startup
This is only recognized by the game client at the moment. The
implementation is a bit hacky but it seems to work. Thanks, SDLmain.

The cwesnoth.cmd Windows batch file passes --wconsole to Wesnoth in the
command line, along with any other arguments passed to it. This is
intended to be *the* use case for --wconsole, since otherwise the fact
that Windows won't allocate a console for us on process initialization
(due to Wesnoth being compiled with the GUI application flag) causes
issues with the Command Prompt shell -- namely, the shell returns
before Wesnoth allocates its console, allowing shell input to happen
concurrently with Wesnoth's output to console.

cwesnoth.cmd should be used in shortcuts and given Wesnoth's install
path as its initial working directory.
2015-04-25 04:49:30 -04:00
Ignacio R. Morelle
bed44694fd Remove YAMG
There are better uses of our time and energy.
2015-04-23 05:35:29 -03:00
Charles Dang
cbe8c84033 Cleanup. Removed intl and unnecessary search directories 2015-04-14 11:11:58 +11:00
Ignacio R. Morelle
0fcf4e3cb9 gui2/tmp_join_game_password_prompt: Port GUI1 MP password prompt (bug #23455)
This is the prompt for joining a password-protected game, not for
configuring password protection (which was already ported to GUI2 ages
ago).
2015-04-09 01:10:05 -03:00
aquileia
aad3e0d1f0 Convert /projectfles readme's to markdown
[skip ci]
2015-04-08 22:57:15 +02:00
Charles Dang
8a4a41b8f8 Updated codeblocks projfile for ea212b5bc257 2015-03-08 13:35:01 +11:00
Charles Dang
bb0e67d784 Updated codeblocks projfile for bb0ecd14c 2015-03-06 23:36:01 +11:00
Charles Dang
65965e8f6f Allow compiling with png support in codeblocks 2015-03-06 23:28:04 +11:00
Charles Dang
9b3fe997a4 Updated codeblocks projectfile 2015-02-27 21:13:55 +11:00
Charles Dang
7558fa5acd Updated codeblocks projectfile 2015-01-01 22:51:24 +11:00