pollymc/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
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
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
CustomMessageBox.h
EditAccountDialog.cpp
EditAccountDialog.h
EditAccountDialog.ui
ExportInstanceDialog.cpp refactor: move MMCStrings -> StringUtils 2022-11-04 16:53:24 -03:00
ExportInstanceDialog.h
ExportInstanceDialog.ui
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
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
LoginDialog.ui
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
MSALoginDialog.ui
NewComponentDialog.cpp
NewComponentDialog.h
NewComponentDialog.ui
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
NewsDialog.cpp feat: add image support for the news reader :^) 2022-10-11 16:11:08 -03:00
NewsDialog.h
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
OfflineLoginDialog.ui
ProfileSelectDialog.cpp
ProfileSelectDialog.h
ProfileSelectDialog.ui
ProfileSetupDialog.cpp
ProfileSetupDialog.h
ProfileSetupDialog.ui
ProgressDialog.cpp fix: prevent abort for un-abortable tasks 2022-11-12 20:28:30 +01:00
ProgressDialog.h
ProgressDialog.ui
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
ScrollMessageBox.cpp
ScrollMessageBox.h
ScrollMessageBox.ui
SkinUploadDialog.cpp
SkinUploadDialog.h
SkinUploadDialog.ui
UpdateDialog.cpp refactor: replace hoedown markdown parser with cmark 2023-01-12 10:08:52 -05:00
UpdateDialog.h
UpdateDialog.ui
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