860 Commits

Author SHA1 Message Date
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
Celtic Minstrel
d0c716a22d Remove utils/enumerate.hpp
This was only used in one place, was probably not portable to additional cases, and is done much better using the MAKE_ENUM macro.
2016-03-19 22:03:22 -04:00
Celtic Minstrel
8122039707 Rename .tpp -> .hpp
Several header files used the .tpp extension, which means that they are not correctly detected as C++ (though this can be overridden and has been for one case in the XCode project). The .tpp extension is one of several intended for private template instantiations, but these headers were topleve headers included in many places.
2016-03-19 21:57:03 -04:00
Wedge009
c98bc798e7 VC Project Update 2016-03-20 01:58:14 +11:00
Celtic Minstrel
f6be40bb71 Transfer original formula unit tests to Boost framework
In the process, I have corrected a few tests and added a few extras
2016-03-18 00:30:36 -04:00
Andreas Löf
1d56fbb384 Remove superfluous keyboard files
These files were used to provide a compatability layer between SDL1.2
and SDL2 for the hotkeys implementation. As SDL1.2 was taken out,
these files were now empty and superfluous.
2016-03-13 11:34:39 +13:00
Andreas Löf
358bd1235f Remove SDL1.2 code
This removes all legacy SDL1.2 code. It was done by invoking:
coan source --replace --no-transients -D"SDL_VERSION_ATLEAST(X, Y, Z)"=1 <file>
on each file.
2016-03-13 11:34:34 +13:00
Wedge009
206bed161e Add missing files 2016-03-10 18:31:31 +11:00
Celtic Minstrel
26be1be486 Update XCode project 2016-03-09 09:15:00 -05: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
Wedge009
cf37d08288 game_preferences_display.cpp has been removed. 2016-03-05 14:25:11 +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
Celtic Minstrel
21bda20859 Update XCode project 2016-03-03 16:19:38 -05:00
Celtic Minstrel
9a77b81fc7 Update XCode and MSVC projects 2016-02-26 00:20:21 -05: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
18bcd519e0 XCode: Suppress warnings about unknown warnings 2016-02-23 10:18:00 -05:00
Celtic Minstrel
43e3f8e631 XCode: Split up copy files phase a little
May or may not speed up the build.
Definitely improves the progress indicator a little bit.
2016-02-22 21:57:40 -05:00
Celtic Minstrel
33da7920cf Add new orb selection dialog to unit tests and other build systems 2016-02-18 01:13:11 -05:00
Celtic Minstrel
38ddbb98f2 Preferences: Reimplement orb color options 2016-02-18 01:13:10 -05:00
Celtic Minstrel
f4c3d97f55 Update XCode project (again) 2016-02-14 15:17:02 -05:00
Celtic Minstrel
534299e645 Update XCode project 2016-02-14 15:02:55 -05:00
aquileia
7815744c61 vcproj: Add preference_dialog
Additionally, remove duplicate entry in src/Sconscript
2016-02-11 18:01:30 +01:00
Charles Dang
5d60f991a1 Merge pull request #581 from Vultraz/prefs_dialog_refactor
GUI2 prefs dialog refactor
2016-02-10 21:09:18 +11:00
Charles Dang
a5b2f5cd7b Updated build lists + cb projfile 2016-02-06 20:19:40 +11:00
Wedge009
4d26cf909e vcproj: Add missing combobox and drop_down_list files. 2016-02-06 11:17:33 +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
Celtic Minstrel
eb1d0e2876 XCode: Fix bundle signature warning 2016-01-13 12:15:49 -05:00
ancestral
3cf38b651a Updated version number; set High Resolution Capable per SDL2 guidelines; updated copyright date 2016-01-02 00:40:40 -06:00
ancestral
b7595d4a2c New hi-res icon using new logo for OS X 2015-12-29 19:36:09 -06:00
Martin Proud
44cf166010 Update SDLMain.m
Fixes crash on launch for SDL2 on OS X.
2015-12-29 08:14:12 -06: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
aquileia
ed780b0058 vcproj: Disable stack validity check
The instructions to confirm the stack pointer position led to poorly
optimized code and abysmal performance. This made the debug configuration
basically useless.

This fix is based on
randomascii.wordpress.com/2011/07/22/visual-c-debug-buildsfast-checks-cause-5x-slowdowns/
2015-12-03 08:58:37 +01:00
Andreas Löf
81480d1d77 Merge branch 'master' into sdl2 2015-12-01 22:33:24 +13:00
aquileia
5d825d4aca vcproj: Update for 53ed94d & aae8e70
[skip ci]
2015-11-24 22:02:33 +01: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
Andreas Löf
1890e948e4 Merge branch 'master' into sdl2 2015-10-26 18:57:32 +13:00
aquileia
74c1b6fade vcproj: Remove unneeded tools
The Proxy Generaor Tool is obsolete since VC10, we don't use the IDL compiler.
2015-10-25 19:12:23 +01:00