aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/dialogs
AgeCommit message (Collapse)Author
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>
2022-12-17Merge pull request #630 from leo78913/yeet-scrollbarsflow
2022-12-15fix: only show scrollbars when neededleo78913
Signed-off-by: leo78913 <leo3758@riseup.net>
2022-12-14Merge pull request #561 from leo78913/iconpicker-stuffSefa Eyeoglu
closes https://github.com/PrismLauncher/PrismLauncher/issues/494
2022-12-09fix: prevent potental crash if droping non local filesRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-08fix(blockedmods): Track and use targetFolder for blocked filesRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-08make removeButton a member of IconPickerDialogleo78913
Signed-off-by: leo78913 <leo3758@riseup.net>
2022-12-06feat+refactor: trash instance iconsleo78913
also refactor IconList::deleteIcon Signed-off-by: leo78913 <leo3758@riseup.net>
2022-12-06fix: disable remove icon button for default iconsleo78913
pressing this button in the icon picker dialog when a default icon is selected does nothing so why not disable it Signed-off-by: leo78913 <leo3758@riseup.net>
2022-12-06fix: remove rogue notrSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-12-06chore: reformat codeSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-12-06chore: add license headersSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-12-06refactor: replace Open All with Open MissingSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-12-06feat: implement lax filename match in BlockedModsDialogSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-12-06fix: improve resize behavior of BlockedModsDialogSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-12-06chore: reformat codeSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-12-05dix: disable FS watcher after closing BlockedModsDialogSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-11-25fix(RPImportDialog): allow changing item size to accomodate wrapped textflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-11-21Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher ↵Ryan Cao
into import-resource-pack-dialog-uwu
2022-11-21Merge pull request #243 from Scrumplex/migration-dialogSefa Eyeoglu
Closes https://github.com/PrismLauncher/PrismLauncher/issues/46 Closes https://github.com/PrismLauncher/PrismLauncher/issues/204
2022-11-21fix: text wrappingRyan Cao
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
2022-11-20fix: resource pack import dialog icons and add messageRyan Cao
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
2022-11-19fix instance IDs and resource pack importsRyan Cao
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
2022-11-19feat: initial support for smart resource pack parsing on file handlerRyan Cao
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
2022-11-17feat(BlockModsDialog): remove redundant Ui infoRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-11-12fix: prevent abort for un-abortable tasksSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-11-11feat: mark folder paths as linksRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-11-11feat: add list of watched foldersRachel Powers
move explanation text into dialog class and it's own label Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-11-11always use the pending path set to avoid task duplication.Rachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-11-11chore: clang format & cleanupRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-11-11properly handle a currently running hashing taskRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-11-11drag&drop + add folder to watchRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-11-11Merge pull request #304 from Ryex/move-downloadsflow
Fixes https://github.com/PrismLauncher/PrismLauncher/issues/222
2022-11-10Merge pull request #367 from TheKodeToad/linkjumpingflow
fix https://github.com/PrismLauncher/PrismLauncher/issues/363
2022-11-10Merge pull request #397 from flowln/windows_mod_updater_fixes_maybeSefa Eyeoglu
Fixes https://github.com/PrismLauncher/PrismLauncher/issues/226
2022-11-06Implement Scrumplex's suggestionsTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-06Merge pull request #242 from marcelohdez/more-copy-optionsSefa Eyeoglu
2022-11-04refactor: move MMCStrings -> StringUtilsflow
General utilities can go in here >:) Signed-off-by: flow <flowlnlnln@gmail.com>
2022-11-02Formatting and forward-declarationTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-01fix: don't use forward-declared Ptr types in meta/flow
This would cause ODR violations when those headers were included in other places that also included stuff like "Version.h" (note the "meta/Version.h"), which can cause problems, especially in LTO. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-11-02change: Update creditstxtsd
Replaces txtsd's GitHub link with their website Moves DioEgizio and flowln from contributors to dev team Signed-off-by: txtsd <code@ihavea.quest>
2022-11-01Hacky tweaksTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-01Add more license headersTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-01Initial better mod browser link implementationTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-11-01clang_format and code cleanupRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-11-01fix mispellings and wrap strings for translationRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>