573 Commits

Author SHA1 Message Date
Charles Dang
3281df4e2f Base framework for GUI2 Help Browser 2017-03-23 22:58:37 +11:00
Charles Dang
8090a2f333 Removed GUI1 Attack Predictions dialog
The GUI2 version still needs a few tweaks, but I'm working on it.
2017-03-22 02:32:32 +11:00
Charles Dang
18a7e80243 Removed GUI2 Addon Description and Filter Options dialog
These have been rolled into the new GUI2 addon manager.
2017-03-17 08:52:01 +11:00
Charles Dang
581aba7e9d Hotkey Bind: enable dialog and remove old GUI1 code 2017-03-15 22:19:42 +11:00
Charles Dang
e7cdb76a01 GUI2: basic dialog definition for a Hotkey Bind dialog (not enabled)
Still need to determine proper event handling.
2017-03-15 09:48:39 +11:00
Charles Dang
557caf1bdc Updated CodeBlocks projectfile 2017-03-08 01:09:08 +11:00
Charles Dang
7d5acc92ce Refactor handling of unit animation progressive_* helper classes
This majorly reduces code duplication. Thanks to @jyrkive for help.
2017-03-02 23:28:00 +11:00
Charles Dang
dec7c30644 Removed GUI1 scrollpane class
Not sure when this became unused, but it is now.
2017-02-19 01:14:02 +11:00
Charles Dang
43f8e2b439 Updated CB projectfile 2017-02-09 22:14:26 +11:00
Charles Dang
fc91f5df10 GUI2: initial basic implementation of a GUI2 Attack Predictions dialog (WIP) 2016-12-18 11:10:24 +11:00
Charles Dang
28d56206bc Removed strftime.*pp 2016-12-18 09:54:08 +11:00
Charles Dang
a84a309b66 Update CB projectfile
[ci skip]
2016-12-17 01:29:11 +11:00
Charles Dang
f90e466360 Split util.hpp into utils/math.hpp and utils/general.hpp 2016-12-11 01:42:40 +11:00
Charles Dang
3c498eb0e4 Update CB projectfile
[ci skip]
2016-12-10 22:41:17 +11:00
Charles Dang
8c7df93d4f Removed old implementation of lexical_cast_default 2016-12-08 14:21:17 +11:00
Charles Dang
5637dfa8f0 Add color.*pp to CB wesnothd projectfile
[ci skip]

Was getting undefined reference errors otherwise.
2016-12-07 22:34:36 +11:00
Celtic Minstrel
c2ed9c5c19 MSVC project file cleanup
- Add a few missing headers
- Remove redundant headers
- Remove duplicate include of filesystem sources
- Remove an empty source file

[ci skip]
2016-12-01 16:18:03 -05:00
Charles Dang
f434be7baa Update CB projectfile
[ci_skip]
2016-12-02 02:26:59 +11:00
Charles Dang
493bd936b6 Added initial implementation of color_t wrapper class 2016-11-26 11:52:07 +11:00
Charles Dang
376925bc9b Converted Terrain Layers dialog to GUI2 2016-11-24 01:46:33 +11:00
Charles Dang
733040d1a2 Updated CB projectfile 2016-11-20 14:40:04 +11:00
Charles Dang
049f067073 Converted Statistics dialog to GUI2 2016-11-20 07:33:22 +11:00
Charles Dang
32d69b9c2c MP Game Set Password: removed unused dialog
This functionality was integrated into the new GUI2 MP Create screen, sans dialog prompt.
2016-11-20 00:50:41 +11:00
Charles Dang
9d0520d816 Updated CB projectfile 2016-11-19 21:35:17 +11:00
Charles Dang
7a1fec2153 Removed a bunch of now-unused GUI1 widgets 2016-11-12 12:25:14 +11:00
Charles Dang
6166220b6d Updated CB projfile 2016-11-12 11:58:33 +11:00
Charles Dang
4457256f2b Updated CB Lua projfile (for 15b7f75b3cb6) 2016-11-08 17:04:26 +11:00
Charles Dang
ced698e75f Updated CB projfile 2016-11-08 10:44:38 +11:00
Charles Dang
dc477afb7a Removed empty sdl/image.*pp files
These used to contain code related to SDL_GPU, but were emptied in e497761d4e352 when that library was removed.
2016-11-07 13:05:03 +11:00
Charles Dang
755b6b8015 Codeblocks: properly include wesnoth_lua_config.h in lua sources 2016-10-23 03:56:36 +11:00
Charles Dang
0a3769a7de Updated CB wesnothd projectfile 2016-10-18 14:41:50 +11:00
Charles Dang
2640caa16a Updated CB projectfile for Lua upgrade
The option -U__STRICT_ANSI__ was required to get this building (see http://stackoverflow.com/a/22167294).
There remain some warnings that need to be squashed.
2016-10-18 14:00:30 +11:00
Charles Dang
0c36463d3a Updated CB projectfile 2016-10-17 11:35:53 +11:00
Charles Dang
b6ea5106ca Moved marked-up_text.*pp to font/ 2016-10-16 22:54:07 +11:00
Charles Dang
b5d6186ea2 Move some pango formatting-related functions to their own file 2016-10-16 22:06:46 +11:00
Charles Dang
c2f01ce228 Updated CB projectfile 2016-10-16 12:16:28 +11:00
Charles Dang
7748822248 Removed unused GUI1 progressbar widget 2016-10-13 15:15:29 +11:00
Ignacio R. Morelle
4915f0349c desktop: Add functionality to enumerate paths of interest
This allows querying things such as the user's home dir, drive letters
(Windows-only), and game paths such as the data dir, preferences, user
data, and binaries. The results are presented in a format that's
suitable for UI use, with translatable labels used wherever applicable.

At some point there'll be support for listing user-defined bookmarks as
well.
2016-10-12 03:11:01 -03:00
Ignacio R. Morelle
285bbe7237 gui: Remove GUI1 filechooser
This switches all existing callsites to using gui2::tfile_dialog, and
fixes a build issue due to editor/controller/editor_controller.cpp
relying on an indirect include from gui/dialogs/editor/custom_tod.hpp
for a full type declaration.
2016-10-05 03:06:43 -03:00
Ignacio R. Morelle
6e1f6bb686 gui2/tfile_dialog: Initial port of the filechooser dialog to GUI2
This provides, as far as I can tell, all the filechooser functionality
that is actually in use in Open File mode except for the "type-ahead"
option that is used to set filename extension hints.

There's some newly-introduced border cases courtesy of Boost.Filesystem
that I really feel we shouldn't worry about for now:

 * // is handled weirdly thanks to BFS honoring the POSIX provision for
   implementation-defined behavior regarding it.
 * UNCs on Windows are not supported. Just like in mostly everywhere
   else in Wesnoth. Same applies to \\.\, \\?\ and \??\.
 * Non-directory path components on Windows are not handled very
   gracefully (particularly obvious with volumes mounted as NTFS
   junction points, or symbolic links for the Documents folder on
   Wine) due to quirks in BFS's path::canonical() method and how it
   relies on dereferencing individual path components to resolve dot
   entries.

Haven't tested all callers yet, they are still using the original
filechooser entry points for now. I need to remove those and make
everyone use gui2::tfile_dialog directly before this can be merged to
master.
2016-10-05 03:06:43 -03:00
Ignacio R. Morelle
ea9d077b89 fs: Add utility functions for the new file dialog
These include an alternate mode of normalize_path() that enforces the
platform's preferred path delimiter (i.e. backslash on Windows) on the
output, and a function to detect whether a path refers to a root
directory.

Unfortunately, the last bit requires introducing a new link-time
dependency on Windows, against a system library. It's guaranteed to be
always there but it seems kind of a waste. The alternative would be to
hand-parse the string but that seems even more of a waste. And no,
Boost.Filesystem can't do this in a straightforward fashion right now.
2016-10-05 03:06:43 -03:00
Charles Dang
45ea8c6a43 Added GUI2 MP Join Game dialog
Note the faction select dialog doesn't appear for some reason.
2016-10-01 02:09:20 +11:00
Charles Dang
9ccc4300b9 Update CB projfile 2016-09-26 04:02:52 +11:00
Charles Dang
2657a323fb Removed custom scoped resource implementation
As mentioned before, std::unique_ptr or std::shared_ptr can now be used in place of this.
2016-09-24 17:52:53 +11:00
Charles Dang
55ba8c95bc Cleaned up handling of basic alpha setting
This does a few things:
* Refactored adjust_surface_alpha to use SDL_SetSurfaceAlphaMod
* Made all uses of the legacy SDL_SetAlpha use adjust_surface_alpha
* Made adjust_surface_alpha now take a non-const reference and perform the operation on the surface directly.
2016-09-24 17:31:08 +11:00
Charles Dang
7a915f9035 Slight readme update 2016-09-24 02:55:28 +11:00
Charles Dang
86e3161b29 Updated CB projfile (missing wesnothd source and Boost 1.61 linker target) 2016-09-24 00:39:35 +11:00
Charles Dang
9721910d98 Initial implementation of GUI2 MP Staging dialog (Connect + Wait) 2016-09-20 05:34:31 +11:00
Celtic Minstrel
1816e1147f Remove asserts.hpp
This file seemed to be some sort of reimplementation of <cassert> except
with some "feature" of trying to force the debugger to hit a breakpoint.
However, any decent debugger already hits a breakpoint with a standard
assert(), and this file really only served to make it harder to see the
actual error when using a Windows console.

Some instances of these macros were replaced with assert(), others with
VALIDATE() which instead throws an exception (and possibly puts up a
dialog, if the exception is caught before main()).

A few other related changes that got mixed in:
- Several error conditions now have a better error message (or indeed
  any error message at all)
- Removed an unnecessary use of std::distance on a Boost iterator range.
- Removed a large chunk of code which did nothing but construct a widget
  builder and then crash; the code was unreachable since an earlier loop
  did the same thing (without crashing), and the comment seems to suggest
  that it was a (seemingly no longer necessary) workaround for some buggy
  compilers / linkers.
- noreturn added to the list of compatibilty C++11 features in global.hpp
  (Of supported compilers, only VC12 lacks the new [[attribute]] syntax.)
- Fix detection of GCC in global.hpp

# Conflicts:
#	src/gui/widgets/settings.cpp
2016-09-18 15:57:47 -04:00
Charles Dang
1fb26d9e1c Convert remaining SDL1.2 defines to their SDL2 counterparts and dropped compat layer 2016-09-15 15:55:09 +11:00