PrismLauncher/launcher/ui/dialogs
flow 6a18079953
refactor: generalize mod models and APIs to resources
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-13 16:23:00 -03:00
..
AboutDialog.cpp refactor: replace hoedown markdown parser with cmark 2023-01-12 10:08:52 -05:00
AboutDialog.h remove patreon stuff 2022-01-09 13:51:46 -05:00
AboutDialog.ui Fix version labels width 2022-10-23 03:35:23 +08:00
BlockedModsDialog.cpp refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
BlockedModsDialog.h fix(blockedmods): Track and use targetFolder for blocked files 2022-12-08 18:42:51 -07:00
BlockedModsDialog.ui fix: remove rogue notr 2022-12-06 20:52:32 +01:00
ChooseProviderDialog.cpp refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
ChooseProviderDialog.h refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
ChooseProviderDialog.ui feat: add ChooseProviderDialog 2022-07-17 11:33:41 -03:00
CopyInstanceDialog.cpp added option to not copy screenshots 2022-10-29 22:27:31 -04:00
CopyInstanceDialog.h added option to not copy screenshots 2022-10-29 22:27:31 -04:00
CopyInstanceDialog.ui added option to not copy screenshots 2022-10-29 22:27:31 -04:00
CustomMessageBox.cpp NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
CustomMessageBox.h NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
EditAccountDialog.cpp NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
EditAccountDialog.h NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
EditAccountDialog.ui NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
ExportInstanceDialog.cpp refactor: move MMCStrings -> StringUtils 2022-11-04 16:53:24 -03:00
ExportInstanceDialog.h NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
ExportInstanceDialog.ui NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
IconPickerDialog.cpp Merge pull request #630 from leo78913/yeet-scrollbars 2022-12-17 08:02:41 -08:00
IconPickerDialog.h make removeButton a member of IconPickerDialog 2022-12-08 11:13:53 -03:00
IconPickerDialog.ui NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
ImportResourcePackDialog.cpp fix: only show scrollbars when needed 2022-12-15 16:34:52 -03:00
ImportResourcePackDialog.h fix: resource pack import dialog icons and add message 2022-11-20 00:14:16 +08:00
ImportResourcePackDialog.ui fix: resource pack import dialog icons and add message 2022-11-20 00:14:16 +08:00
LoginDialog.cpp refactor+fix: use QSharedPointer for shared_qobject_ptr 2022-08-04 15:33:51 -03:00
LoginDialog.h NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
LoginDialog.ui NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
ModDownloadDialog.cpp refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
ModDownloadDialog.h refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
ModUpdateDialog.cpp refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
ModUpdateDialog.h refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
MSALoginDialog.cpp refactor+fix: use QSharedPointer for shared_qobject_ptr 2022-08-04 15:33:51 -03:00
MSALoginDialog.h NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
MSALoginDialog.ui feat(MSALogin): add open page & copy code button 2022-01-20 21:04:48 +01:00
NewComponentDialog.cpp chore: update license headers 2022-07-10 12:19:15 +02:00
NewComponentDialog.h NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
NewComponentDialog.ui NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
NewInstanceDialog.cpp fix: abort search if we're already trying to download a pack 2022-10-13 13:49:06 -03:00
NewInstanceDialog.h huge nit: added const refs, everywhere 2022-09-26 11:50:31 +02:00
NewInstanceDialog.ui fix: limit instance names to 128 chars 2022-03-19 23:23:08 +01:00
NewsDialog.cpp feat: add image support for the news reader :^) 2022-10-11 16:11:08 -03:00
NewsDialog.h feat: add news reader dialog 2022-06-25 20:15:16 -03:00
NewsDialog.ui feat: add image support for the news reader :^) 2022-10-11 16:11:08 -03:00
OfflineLoginDialog.cpp refactor+fix: use QSharedPointer for shared_qobject_ptr 2022-08-04 15:33:51 -03:00
OfflineLoginDialog.h Limit offline username to 16 characters with override 2022-03-19 10:12:07 -04:00
OfflineLoginDialog.ui Limit offline username to 16 characters with override 2022-03-19 10:12:07 -04:00
ProfileSelectDialog.cpp NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
ProfileSelectDialog.h NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
ProfileSelectDialog.ui NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
ProfileSetupDialog.cpp chore: update license headers 2022-07-10 12:19:15 +02:00
ProfileSetupDialog.h NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
ProfileSetupDialog.ui NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
ProgressDialog.cpp fix: prevent abort for un-abortable tasks 2022-11-12 20:28:30 +01:00
ProgressDialog.h feat: Use a single progress dialog when doing multiple tasks 2022-04-01 09:32:00 -03:00
ProgressDialog.ui fix: various issues with ProgressDialog and SequentialTasks 2022-05-21 08:36:36 -03:00
ResourceDownloadDialog.cpp refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
ResourceDownloadDialog.h refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
ReviewMessageBox.cpp refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
ReviewMessageBox.h refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
ReviewMessageBox.ui feat: allow deselecting mods from the mod confirmation dialog 2022-05-21 08:02:27 -03:00
ScrollMessageBox.cpp Restore ScrollMessageBox 2022-07-17 02:40:27 -04:00
ScrollMessageBox.h Restore ScrollMessageBox 2022-07-17 02:40:27 -04:00
ScrollMessageBox.ui feat: add mod update dialog 2022-07-17 11:33:42 -03:00
SkinUploadDialog.cpp Make skin upload optional 2022-07-15 12:23:11 +10:00
SkinUploadDialog.h NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
SkinUploadDialog.ui Make skin upload optional 2022-07-15 12:23:11 +10:00
UpdateDialog.cpp refactor: replace hoedown markdown parser with cmark 2023-01-12 10:08:52 -05:00
UpdateDialog.h NOISSUE continue reshuffling the codebase 2021-11-22 03:55:16 +01:00
UpdateDialog.ui fix(i18n): remove brand names from translations 2022-03-29 15:25:21 +02:00
VersionSelectDialog.cpp fix: don't use forward-declared Ptr types in meta/ 2022-11-01 19:48:26 -03:00
VersionSelectDialog.h fix: don't use forward-declared Ptr types in meta/ 2022-11-01 19:48:26 -03:00