1054 Commits

Author SHA1 Message Date
mattsc
d89af04a64 Update Xcode project 2016-10-15 18:52:41 -07:00
Charles Dang
c2f01ce228 Updated CB projectfile 2016-10-16 12:16:28 +11:00
Wedge009
e25a44bc72 Removing progress bar from VC project files (from commit 77488222). 2016-10-13 17:12:28 +11:00
Charles Dang
7748822248 Removed unused GUI1 progressbar widget 2016-10-13 15:15:29 +11:00
mattsc
1d5aba9e82 Update Xcode project 2016-10-12 13:09:00 -07:00
Jyrki Vesterinen
76582bcf29 Update Visual Studio project 2016-10-12 21:22:46 +03: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
Wedge009
0fe3e0ab13 Define _WIN32_WINNT for MSVC compilation (resolve warnings from boost).
Also suppress Winsock deprecation warning from boot's use of certain functions.
2016-10-06 14:11:07 +11:00
Wedge009
f10f4e8a28 Basic tidying of VC project files.
* Merged property groups added in ab636909.
* Strip out empty properties.
2016-10-06 13:21:35 +11:00
mattsc
ac1d8c886c Update Xcode project 2016-10-05 06:32:17 -07:00
Wedge009
4d172d6e11 Update VC project files for update of file menu from GUI1 to GUI2.
* Add file_dialog and remove filechooser & file_menu
* Add Shlwapi.lib to linker
2016-10-05 19:04:00 +11: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
Jyrki Vesterinen
f3cdd5b2f0 Update Visual Studio project 2016-10-04 20:53:56 +03:00
Ignacio R. Morelle
ca5ef32636 Also drop mentions of SDL_net from documentation 2016-10-03 07:08:43 -03:00
mattsc
52a4f2a0d1 Update Xcode project 2016-10-01 19:18:08 -07:00
Jyrki Vesterinen
f7ee888456 Update Visual Studio project 2016-09-30 22:38:32 +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
Celtic Minstrel
357047db78 Update XCode readme 2016-09-29 11:35:35 -04:00
Charles Dang
9ccc4300b9 Update CB projfile 2016-09-26 04:02:52 +11:00
Jyrki Vesterinen
76d407e733 Expose preferences to Lua 2016-09-24 18:16:41 +03:00
Wedge009
6ba16e9bc6 Removing lingering references to scoped_resource.hpp. 2016-09-24 17:00:46 +10: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
Wedge009
b98f8aab7c Updating VC project files. 2016-09-24 16:41:43 +10: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
Celtic Minstrel
fc8537f2f1 Fixup (MP compilation incompatible with minimal rebuild) 2016-09-23 21:01:48 -04:00
Celtic Minstrel
99d638c5c2 MSVC: Enable multi-processor compilation for ALL projects
It was already enabled for some, but not all.
2016-09-23 20:58:27 -04: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
Jyrki Vesterinen
740acecfa5 Update Visual Studio project 2016-09-20 20:41:41 +03:00
Celtic Minstrel
6b9ed2e3d4 Update XCode project 2016-09-19 20:06:30 -04:00
Charles Dang
9721910d98 Initial implementation of GUI2 MP Staging dialog (Connect + Wait) 2016-09-20 05:34:31 +11:00
Celtic Minstrel
457bec3ff8 MSVC: Exclude lua.cpp (the standalone interpreter) 2016-09-18 20:17:26 -04: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
Jyrki Vesterinen
42c3435c0c Update Visual Studio project 2016-09-15 20:52:29 +03:00
loonycyborg
c16adcd8c9 Merge branch 'campaignd_asio' 2016-09-15 16:34:09 +03: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
Celtic Minstrel
d0b8b471c5 Add campaignd target to XCode project
It builds and links, but won't work properly without an implementation
for async_send_file
2016-09-13 14:18:52 -04:00
Celtic Minstrel
404c6ca754 Fix XCode wesnothd build 2016-09-13 13:14:11 -04:00
Celtic Minstrel
3dba60bcd7 Update Visual Studio project 2016-09-12 09:45:02 -04:00
Celtic Minstrel
e90a256489 Update XCode project 2016-09-11 17:05:20 -04:00
Charles Dang
d0cae514ff Added basic GUI2 end credits dialog (incomplete) 2016-09-11 18:55:38 +11:00
Celtic Minstrel
e3ab484f5e Update XCode project 2016-09-10 21:46:08 -04:00
Celtic Minstrel
ab6369098f Remove *.vcxproj.user files
While they did contain settings that are required for Wesnoth to run
correctly in the Visual Studio debugger, these settings can also be
specified in the main project file (even if only by manually editing
the XML).

Including the *.user files is problematic since it also includes things
that a developer may wish to frequently change, such as command-line
arguments.

Thus, the settings have been moved into the main project file.
2016-09-09 17:17:53 -04:00
Celtic Minstrel
8a80af4c69 Update XCode project 2016-09-08 17:36:20 -04:00
Celtic Minstrel
0d47ea2522 Update Visual Studio project 2016-09-08 17:29:53 -04:00
Charles Dang
b07810608a Renamed the mp_chatbox widget simply "chatbox" 2016-09-09 08:25:04 +11:00
Charles Dang
7950fafba6 Updated CB projectfile 2016-09-09 07:23:09 +11:00
Charles Dang
ba81174ade Updated CB projfile 2016-09-07 10:48:26 +11:00