51 Commits

Author SHA1 Message Date
Steve Cotton
3279973960 Remove gui/auxiliary/filter.hpp and unused includes of pane.hpp
Remove filter.hpp, which wasn't included by any file, and relied on
pane.hpp indirectly via one of the lines removed in this commit. The sorting
functionality seems to have moved into pane.cpp when matrix.hpp was added.
Note: there are two other unrelated `filter.hpp` files.

Header pane.hpp is only used by matrix.hpp, pane.cpp, and window_builder.cpp;
the class is also used via a forward-declaration in window.hpp, which friends
it, allowing a call to window::layout_linked_widgets. The class is also made
accessible via REGISTER_WIDGET.

Part of #6540.
2022-03-09 13:54:05 +01:00
Pentarctagon
340023921d
2022 copyright update. 2022-03-06 19:07:13 -06:00
Pentarctagon
c4c292fa3b Replace all remaining usages if MAKE_ENUM. 2022-03-03 21:23:02 -06:00
Pentarctagon
57ce449af8
Re-add attribution to copyright notices.
These are mostly useless and outdated/wrong, but apparently it's probably illegal to remove them.
2021-07-27 20:21:38 -05:00
Pentarctagon
ba75e1af50
Copyright update.
This additionally:
* Makes all copyright notices identical aside from the starting year for Wesnoth-specific source files. Files not included: mariadbpp, lua, spirit po, xbrz, and bcrypt (crypt_blowfish).
* Removes all attribution from the files, since the vast majority of them are outdated or seemingly just outright incorrect. For example, I would guess that Dave is no longer the sole author of the majority of Wesnoth's current code.
2021-07-26 11:38:03 -05:00
Steve Cotton
f7f58613f6 Filtering by tags in the add-on manager
The existing PblWML specification includes a comma-separated list of tags.
Until now there are no official tag names, but some of the 1.14 add-ons already
have some unofficial ones. If this feature is included in 1.16 then I assume
many UMC authors will use the newly-official tags.

For a larger add-on list than the dev server has, use port 15014 which will
connect to the 1.14 server instead (in the connect dialog change the address to
addons.wesnoth.org:15014).
2021-05-16 00:53:20 +02:00
Steve Cotton
7f53aa08a5 Add-ons manager: show tags in the details panel
Show the contents of PblWML's "tags" attribute in the add-ons dialog. They're
shown at the bottom of the right-hand panel (only if the window size is large
enough to trigger that dialog's two-panel layout).
2021-05-15 17:18:18 +02:00
Pentarctagon
139370b0a8
Remove comments so doxygen will use the parent class's comment. 2021-04-04 02:37:51 -05:00
Charles Dang
56364cc03c Removed trailing tabs and whitespaces from C++ source
[ci skip]

I ran the same command from 9b7b1751fdda.

Excludes:
* lua/
* spirit_po/
* modules/
2021-02-22 12:15:33 +11:00
Pentarctagon
6389c1e34e
Convert custom doc comments to doxygen.
NOTE: This does not do any validation of the existing documentation for whether it's correct or complete.  That would be the job of someone who actually knows the code being documented.  This is simply a format conversion to have everything now use the doxygen format.
2021-01-16 01:17:31 -06:00
Pentarctagon
4c2b725ec0 Change all doxygen comments to the same format. 2020-12-31 23:59:28 -06:00
Iris Morelle
599509eb52 gui2/addon_manager: Replace URL widgets with a single link label
The URL widgets (textbox + copy button + browse button) predate the
implementation of link-awareness in labels and they sort of got carried
over into the new design magically without there being a real need for
that. Now that we have a visible cursor change when hovering links it's
even less necessary to draw unnecessary attention to the link with a
clunky and unintuitive (greyed out textbox...) interface.
2020-12-15 17:51:08 -03:00
Charles Dang
cd78517df3 GUI2: even more work removing bound window references 2020-11-23 15:06:26 +11:00
josteph
205f779cc5 Addon manager: Save the last sort order in a hidden preference
This uses MAKE_ENUM for the listbox sort order, so that it can
be serialized to the preferences file.
2020-11-20 06:28:22 +01:00
kabachuha
2a2a2e84e8 Moved the downgradable status tracking to the UI 2020-11-18 20:49:49 +03:00
Martin Hrubý (hrubymar10)
674fda85b7 Migrate links to https if available - Fwd c18537edc0678f40a209797d72dfaba3e5e88545
(cherry-picked from commit bc4d22dc72e79c3d6a3364ac896e473afd298246)
2018-10-07 03:23:36 +00:00
Jyrki Vesterinen
529ab50275 Update order dropdown when the player changes sorting option
Follow-up to commit 3b88de6cbc474a0e29f2b87d29a556bb3e200aa6.
2018-02-13 21:02:09 +02:00
Jyrki Vesterinen
3b88de6cbc Add sort order dropdown to add-on manager (#1747)
This dropdown allows the player to sort add-ons by name, author, size,
download count, type, or the time of last update or original upload.
Sorting by the last two hasn't been possible in the GUI2 add-on manager
before.

Closes #1747.
2018-02-10 18:06:38 +02:00
Gregory A Lundberg
b5f76eff79
Bump copyright to 2018 2018-01-19 00:02:20 -06:00
Charles Dang
29ff4bd644 Removed CVideo argument from help functions
Just used the singleton in the main show_help function.
2017-12-05 10:50:11 +11:00
Charles Dang
bc414b7264 Cleaned up a couple dozen unnecessary forward declarations 2017-12-03 09:05:39 +11:00
Jyrki Vesterinen
74eda449bf Merge remote-tracking branch 'donovanamitchell/bug#1800'
This is a manual merge of pull request #1823.

Closes #1800.
2017-07-26 19:39:44 +03:00
Donovan Mitchell
5e7517c2ba Removed unused argument 2017-07-07 22:58:32 -05:00
Donovan Mitchell
33fc5cebcb Fixed Bug#1829 Name filters are applied with type and status filters
get_name_filter_visibility returns the set of addons matching the search string in the filter textbox
2017-07-07 17:33:41 -05:00
Donovan Mitchell
f971b246e4 bug#1800: load_addon_list split into two methods
fetch_addons_list: downloads addon list
load_addon_list: updates addon list ui
bug#1800: addon manager downloads addon list a single time when opened
2017-06-27 18:35:45 -05:00
Charles Dang
2101353d36 Convert include guards to the shorter #pragma once
Turns out I mistook @celticminstrel's opinion that we should use include guards over pragma (737916e).
Since all major compilers support `#pragma once`, there's no reason not to use it.

For future mergability reasons, this excludes src/spirit_po and src/xBRZ. It also excludes src/boost-patched.
2017-05-09 19:41:37 +11:00
Celtic Minstrel
f5918996df Addon Manager: Make type lists static since they never change 2017-04-27 18:20:10 -04:00
Charles Dang
35600270f3 Addon Manager: fixed a typo in a function name 2017-04-24 12:43:29 +11:00
Jyrki Vesterinen
a6719622b5 Execute a sensible action when the player double-clicks an add-on
Previously double-clicking always installed the add-on, even if installing
wasn't a sensible choice (e.g. for add-ons which are already installed).
Now double-click always does something sensible, e.g. it uninstalls add-ons
which are already installed.
2017-04-18 20:13:58 +03:00
Celtic Minstrel
4fbc943612 Addons Manager: New layout for resolutions < ~1280x800 2017-04-15 18:24:25 -04:00
Charles Dang
7d8380cd87 GUI2: marked inherited dialog functions (pre_show, etc) as virtual override
The virtual is for style consistency, the override because it should be done.
2017-04-12 17:44:51 +11:00
Jyrki Vesterinen
9a09e2b783 Fix wrong add-on often being selected after install/uninstall
The problem was that reloading the add-on list invalidated the string
reference. Fixed by receiving the add-on ID by value instead.

I also fixed that status and type filters weren't honored after reloading
the list.
2017-04-05 20:11:27 +03:00
Celtic Minstrel
b4dc11ce36 Belated 2017 copyright update 2017-03-19 10:05:38 -04:00
Charles Dang
bd3079cce6 Addon Manager: some code cleanup/simplification 2017-03-12 22:25:18 +11:00
Jyrki Vesterinen
0c6619905a Add ability to update individual add-ons
Instead of updating them all at once.
2017-03-09 20:34:45 +02:00
Charles Dang
790f88f39f Addon Manager: implement main panel publish/delete buttons 2017-03-09 22:06:42 +11:00
Charles Dang
097867429b Addons Manager: allow installing addons on list row double click (bug #25547) 2017-03-01 09:13:54 +11:00
Charles Dang
73ba4cc4b1 Addons Manager: removed Options button
All the useful filter options have been migrated to in-dialog widgets, so the Options dialog isn't needed anymore.
Do note that the default filter order and ascending/descending options weren't migrated, but they could still be
if it was deemed necessary.
2017-02-24 17:01:04 +11:00
Jyrki Vesterinen
979637fb70 Add-on manager: implement filtering by type 2017-02-18 18:41:31 +02:00
Charles Dang
1c4102abad Addons Manager: only reload cache if needed 2017-02-19 00:40:36 +11:00
Charles Dang
187731cedf Addons Manager: display full info of local, unpublished addons
This works by changing the assumption that any addon with addon_info provided is a remote one. Instead, we
construct a addon_info object locally and consider it along with the rest of the addons.

This also fixes a few crashes when using filters in the manager.
2017-02-15 23:08:49 +11:00
Jyrki Vesterinen
3e68d47d56 Refactor the way to show publishable add-ons in the add-on manager
This fixes two bugs:
* publishable add-ons were shown in the "Install Dependencies" dialog
* the game crashed when the player attempted to filter the list if
  publishable add-ons were present
2017-02-14 20:55:44 +02:00
Charles Dang
d3c53e4f0d Addons Manager: added (non-functional still) type filtering dropdown 2017-02-13 23:41:14 +11:00
Charles Dang
cfb2792932 Addons Manager: implement Update All button functionality 2017-02-13 01:13:21 +11:00
Charles Dang
984c490309 Addons Manager: initial reimplementation of addon publishing/deleting
This is rough and require further polishing, but it serves to make the new manager functional for now.
2017-02-11 02:34:16 +11:00
Charles Dang
847ec8dcea Addons Manager: implement a bunch of functionality
* Display language and dependency lists
* Made status filtering work (not 100% complete)
* General code cleanup
2017-02-10 21:08:49 +11:00
Jyrki Vesterinen
05ed820ce7 New add-on manager: implement add-on uninstalling
Untested because the add-on server is down at the moment.
2017-02-07 21:30:51 +02:00
Jyrki Vesterinen
e158c63a95 More work on the add-on list widget 2017-01-26 20:31:53 +02:00
Jyrki Vesterinen
bca0a2e380 New add-on manager: wire up install buttons in the add-on list 2017-01-14 18:34:19 +02:00
Jyrki Vesterinen
1914ba3488 New add-on manager: initial implementation of add-on installing 2017-01-07 20:05:32 +02:00