aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/ModPage.cpp
AgeCommit message (Collapse)Author
2023-06-02Fix crash when selecting same mod from different providers (#1029)Alexandru Ionut Tripon
2023-01-23fix(license): add/fix my copyright/license headersflow
*sobbing in messy legal stuff i know nothing about* Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13fix(RD): separate search and versions/info tasksflow
This allows us to check whether a search request is already on-going, in which case we don't need to make another one (and shouldn't). Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13refactor(RD): clear up sorting methodsflow
This refactors the sorting methods to join every bit of it into a single list, easing maintanance. It also removes the weird index contraint on the list of methods by adding an index field to the DS that holds the method. Lastly, it puts the available methods on their respective API, so other resources on the same API can re-use them later on. Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13refactor(RD): decouple ResourceModels from ResourcePagesflow
This makes it so that we don't need a reference to the parent page in the model. It will be useful once we change the page from a widget-based one to a QML page. It also makes tasks be created in the dialog instead of the page, so that the dialog can also have the necessary information to mark versions as selected / deselected easily. It also makes the task pointers into smart pointers. Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13refactor(RD): unify download dialogs into a single fileflow
No need for multiple files since the subclasses are so small now Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13refactor: put resource downloading classes in common namespaceflow
Puts them all inside the 'ResourceDownload' namespace, so that it's a bit clearer from the outside that those belong to the same 'module'. Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13refactor: generalize mod models and APIs to resourcesflow
Firstly, this abstract away behavior in the mod download models that can also be applied to other types of resources into a superclass, allowing other resource types to be implemented without so much code duplication. For that, this also generalizes the APIs used (currently, ModrinthAPI and FlameAPI) to be able to make requests to other types of resources. It also does a general cleanup of both of those. In particular, this makes use of std::optional instead of invalid values for errors and, well, optional values :p This is a squash of some commits that were becoming too interlaced together to be cleanly separated. Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-12refactor: replace hoedown markdown parser with cmarkJoshua Goins
Signed-off-by: Joshua Goins <josh@redstrate.com>
2023-01-06Strip certain HTML tags when rendering mod pagesJoshua Goins
Some mod pages use certain tags for centering purposes, but trips up hoedown. Signed-off-by: Joshua Goins <josh@redstrate.com>
2022-11-14fix: fix potentially uninitialized variableSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-11-10Implement flowln's suggestionsTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-06Implement Scrumplex's suggestionsTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-02Remove unnecessary blockTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-02Even more fixesTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-02Another fixTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-02A good use of autoTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-02Formatting and forward-declarationTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-01Add another fallbackTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-01Slight cleanupTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-01Only select correct modTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-01Hacky tweaksTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-01Auto-select first resultTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-01Initial better mod browser link implementationTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-10-19Merge pull request #31 from flowln/who_needs_webviewSefa Eyeoglu
2022-10-12fix: don't include opted out versions with the 'Any' filter on the MDflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-10-11fix: prevent images overriding content when changing pagesflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-24Allow double clicking to mark for dowloadErogigGit
Signed-off-by: Erogig <erogigabyte@gmail.com>
2022-09-07refactor: create mod pages and filter widget by factory methodsflow
This takes most expensive operations out of the constructors. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01fix(ui): force redraw of mod list when (de)selecting a modflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat: cache mod versionsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat: cache extra mod info (like links and body)flow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat+refactor: clean up ProgressWidget and add progress indicatior toflow
mod downloader Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat: add (semi) instant searching in mod downloaderflow
It has a delay of 350ms from the last typed character to search, in order to cache small changes while typing. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01change: preserve search term across different mod providersflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat+refactor: add shortcuts to mod downloader and clean upflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat: display the 'body' of a MR mod on the mod downloaderflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-01feat: create delegate for project item viewsflow
This allows us to define custom painting for list view items. In particular, this is applied to the mod downloader, in order to allow displaying both the mod name and mod description, and settings their effects (like bold or underline) independent of each other. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-06-14Merge pull request #634 from flowln/donate_linksEzekiel Smith
More links for CF / Modrinth mods / modpacks
2022-06-12chore: add license headersSefa Eyeoglu
2022-06-12refactor(test): fix loading mod metadata settingSefa Eyeoglu
2022-05-24feat: add remaining links to modrinth modsflow
2022-05-24fix: missing tr() and update donate messageflow
2022-05-24feat: add donate links for modrinth modsflow
2022-05-23feat: add mod index updating to ModDownloadTaskflow
This makes ModDownloadTask into a SequentialTask with 2 subtasks: Downloading the mod files and updating the index with the new information. The index updating is done first so that, in the future, we can prompt the user before download if, for instance, we discover there's another version already installed.
2022-05-19refactor: allow tracking multiple mod loadersSefa Eyeoglu
2022-04-19fix: fix Modrinth query when Quilt is in useSefa Eyeoglu
2022-04-15ui: underline search button text when changing filtersflow
This hopefully makes it easier to the user to know that their changes will only apply after hitting the search button. I tried setting the background color, but it seems more unreliable on cross-platform than underlining. Also, it could be worse for daltonic people, so I don't know what to do :(
2022-04-15rework: make the filter as a tabbed widget in the dialog itselfflow
Still needs a clear indication that the filter only applies after you click the search button...
2022-04-15fix: Polish usage in some casesflow
Also fiz some typos