393 Commits

Author SHA1 Message Date
Charles Dang
194b5ef17d Removed unused help_button class and its associated GUI1 components
Looking at this more I realized the help_button was a GUI1 dialog component meant to open the Help
dialog. Since all dialogs invoking Help now use GUI2, there's no need for this class anymore. It
also allows a bunch of remaining GUI1 stuff to be cleaned up.
2017-05-10 10:50:46 +11:00
Charles Dang
e4f03fe459 Moved all preferences source files into a single folder 2017-05-04 11:04:19 +11:00
Charles Dang
e97b992393 Storyscreen: split common WML parsing code into a helper class 2017-05-03 20:07:03 +11:00
Charles Dang
b0f91e7d2e GUI2: removed unused Campaign Settings dialog
This was a dialog used early in 1.13 during the SP/MP codepath unification to configure certain options.
The modification selection is now built into the Selection dialog, and we decided not to enable other options
like Era selection in SP. The only option we might look to restoring in the future is the "show_connect"
option, but that requires some additional code elsewhere and probably won't be used anyway.
2017-04-30 21:15:39 +11:00
Charles Dang
47d77c79d4 Story Viewer: delegate storyscreen controller creation to dialog
I left the controller passed in an argument for compatibility with the GUI1 dialog, but since that's removed
it makes sense that the dialog handle the creation of the controller, especially since due to an oversight
it made a copy instead of holding a reference.

This also allows storyscreen/interface.*pp to be removed. The START_POSITION was part of the GUI1 implementation
and isn't needed anymore.
2017-04-30 16:46:53 +11:00
Charles Dang
6eab63a71d Updated CB projectfile 2017-04-30 14:41:32 +11:00
Charles Dang
d8ed11c2b1 Drop the _new suffix from random_new
The 'old' random code has long been removed.
2017-04-20 08:48:47 +11:00
Charles Dang
337ef03120 Removed GUI1 Storyscreen 2017-04-19 15:21:06 +11:00
Charles Dang
511184e8f3 Update CB projectfile
[ci skip]
2017-04-16 17:15:33 +11:00
Charles Dang
920f36d6df Updated CB projectfile 2017-04-11 16:26:36 +11:00
Charles Dang
dec0fd6dfd Convert outro screen to GUI2
It's the screen that shows 'The End' at the end of an SP campaign.
2017-04-09 21:37:16 +11:00
Charles Dang
dec492d6dc Renamed variable_private.*pp to better reflect its role 2017-04-02 16:59:26 +11:00
Charles Dang
99874f4253 Refactor variant class
This splits the handling of each applicable type into its own helper class to better encapsulate the functionality of each.
It also contains a lot of related cleanup and improvements to the class interface itself.
2017-04-02 16:59:19 +11:00
Charles Dang
1cf90d02d6 Initial implementation of GUI2 story viewer 2017-03-24 11:42:13 +11:00
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
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
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
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