diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | application/CMakeLists.txt | 2 | ||||
-rw-r--r-- | application/ConsoleWindow.cpp | 2 | ||||
-rw-r--r-- | application/InstanceProxyModel.cpp | 11 | ||||
-rw-r--r-- | application/InstanceProxyModel.h | 3 | ||||
-rw-r--r-- | application/MainWindow.cpp | 12 | ||||
-rw-r--r-- | application/MultiMC.cpp | 4 | ||||
-rw-r--r-- | application/MultiMC.h | 6 | ||||
-rw-r--r-- | application/dialogs/CopyInstanceDialog.cpp | 4 | ||||
-rw-r--r-- | application/dialogs/ExportInstanceDialog.cpp | 4 | ||||
-rw-r--r-- | application/dialogs/IconPickerDialog.cpp | 8 | ||||
-rw-r--r-- | application/dialogs/NewInstanceDialog.cpp | 4 | ||||
-rw-r--r-- | application/pages/VersionPage.cpp | 2 | ||||
-rw-r--r-- | libraries/gui/CMakeLists.txt | 28 | ||||
-rw-r--r-- | libraries/gui/DesktopServices.cpp (renamed from logic/DesktopServices.cpp) | 0 | ||||
-rw-r--r-- | libraries/gui/DesktopServices.h | 37 | ||||
-rw-r--r-- | libraries/gui/SkinUtils.cpp (renamed from logic/minecraft/SkinUtils.cpp) | 2 | ||||
-rw-r--r-- | libraries/gui/SkinUtils.h (renamed from logic/minecraft/SkinUtils.h) | 4 | ||||
-rw-r--r-- | libraries/gui/icons/IconList.cpp (renamed from logic/icons/IconList.cpp) | 0 | ||||
-rw-r--r-- | libraries/gui/icons/IconList.h (renamed from logic/icons/IconList.h) | 0 | ||||
-rw-r--r-- | libraries/gui/icons/MMCIcon.cpp (renamed from logic/icons/MMCIcon.cpp) | 0 | ||||
-rw-r--r-- | libraries/gui/icons/MMCIcon.h (renamed from logic/icons/MMCIcon.h) | 6 | ||||
-rw-r--r-- | libraries/logic/AbstractCommonModel.cpp (renamed from logic/AbstractCommonModel.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/AbstractCommonModel.h (renamed from logic/AbstractCommonModel.h) | 0 | ||||
-rw-r--r-- | libraries/logic/BaseConfigObject.cpp (renamed from logic/BaseConfigObject.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/BaseConfigObject.h (renamed from logic/BaseConfigObject.h) | 0 | ||||
-rw-r--r-- | libraries/logic/BaseInstaller.cpp (renamed from logic/BaseInstaller.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/BaseInstaller.h (renamed from logic/BaseInstaller.h) | 0 | ||||
-rw-r--r-- | libraries/logic/BaseInstance.cpp (renamed from logic/BaseInstance.cpp) | 5 | ||||
-rw-r--r-- | libraries/logic/BaseInstance.h (renamed from logic/BaseInstance.h) | 0 | ||||
-rw-r--r-- | libraries/logic/BaseVersion.h (renamed from logic/BaseVersion.h) | 0 | ||||
-rw-r--r-- | libraries/logic/BaseVersionList.cpp (renamed from logic/BaseVersionList.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/BaseVersionList.h (renamed from logic/BaseVersionList.h) | 0 | ||||
-rw-r--r-- | libraries/logic/CMakeLists.txt (renamed from logic/CMakeLists.txt) | 14 | ||||
-rw-r--r-- | libraries/logic/Commandline.cpp (renamed from logic/Commandline.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/Commandline.h (renamed from logic/Commandline.h) | 0 | ||||
-rw-r--r-- | libraries/logic/DefaultVariable.h (renamed from logic/DefaultVariable.h) | 0 | ||||
-rw-r--r-- | libraries/logic/Env.cpp (renamed from logic/Env.cpp) | 12 | ||||
-rw-r--r-- | libraries/logic/Env.h (renamed from logic/Env.h) | 6 | ||||
-rw-r--r-- | libraries/logic/Exception.h (renamed from logic/Exception.h) | 0 | ||||
-rw-r--r-- | libraries/logic/FileSystem.cpp (renamed from logic/FileSystem.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/FileSystem.h (renamed from logic/FileSystem.h) | 0 | ||||
-rw-r--r-- | libraries/logic/GZip.cpp (renamed from logic/GZip.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/GZip.h (renamed from logic/GZip.h) | 0 | ||||
-rw-r--r-- | libraries/logic/InstanceList.cpp (renamed from logic/InstanceList.cpp) | 4 | ||||
-rw-r--r-- | libraries/logic/InstanceList.h (renamed from logic/InstanceList.h) | 0 | ||||
-rw-r--r-- | libraries/logic/Json.cpp (renamed from logic/Json.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/Json.h (renamed from logic/Json.h) | 0 | ||||
-rw-r--r-- | libraries/logic/MMCStrings.cpp (renamed from logic/MMCStrings.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/MMCStrings.h (renamed from logic/MMCStrings.h) | 0 | ||||
-rw-r--r-- | libraries/logic/MMCZip.cpp (renamed from logic/MMCZip.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/MMCZip.h (renamed from logic/MMCZip.h) | 0 | ||||
-rw-r--r-- | libraries/logic/NullInstance.h (renamed from logic/NullInstance.h) | 0 | ||||
-rw-r--r-- | libraries/logic/QObjectPtr.h (renamed from logic/QObjectPtr.h) | 0 | ||||
-rw-r--r-- | libraries/logic/RWStorage.h (renamed from logic/RWStorage.h) | 0 | ||||
-rw-r--r-- | libraries/logic/RecursiveFileSystemWatcher.cpp (renamed from logic/RecursiveFileSystemWatcher.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/RecursiveFileSystemWatcher.h (renamed from logic/RecursiveFileSystemWatcher.h) | 0 | ||||
-rw-r--r-- | libraries/logic/SeparatorPrefixTree.h (renamed from logic/SeparatorPrefixTree.h) | 0 | ||||
-rw-r--r-- | libraries/logic/TypeMagic.h (renamed from logic/TypeMagic.h) | 0 | ||||
-rw-r--r-- | libraries/logic/Version.cpp (renamed from logic/Version.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/Version.h (renamed from logic/Version.h) | 0 | ||||
-rw-r--r-- | libraries/logic/java/JavaChecker.cpp (renamed from logic/java/JavaChecker.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/java/JavaChecker.h (renamed from logic/java/JavaChecker.h) | 0 | ||||
-rw-r--r-- | libraries/logic/java/JavaCheckerJob.cpp (renamed from logic/java/JavaCheckerJob.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/java/JavaCheckerJob.h (renamed from logic/java/JavaCheckerJob.h) | 1 | ||||
-rw-r--r-- | libraries/logic/java/JavaInstall.cpp (renamed from logic/java/JavaInstall.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/java/JavaInstall.h (renamed from logic/java/JavaInstall.h) | 0 | ||||
-rw-r--r-- | libraries/logic/java/JavaInstallList.cpp (renamed from logic/java/JavaInstallList.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/java/JavaInstallList.h (renamed from logic/java/JavaInstallList.h) | 0 | ||||
-rw-r--r-- | libraries/logic/java/JavaUtils.cpp (renamed from logic/java/JavaUtils.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/java/JavaUtils.h (renamed from logic/java/JavaUtils.h) | 1 | ||||
-rw-r--r-- | libraries/logic/java/JavaVersion.cpp (renamed from logic/java/JavaVersion.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/java/JavaVersion.h (renamed from logic/java/JavaVersion.h) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/LaunchStep.cpp (renamed from logic/launch/LaunchStep.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/LaunchStep.h (renamed from logic/launch/LaunchStep.h) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/LaunchTask.cpp (renamed from logic/launch/LaunchTask.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/LaunchTask.h (renamed from logic/launch/LaunchTask.h) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/LoggedProcess.cpp (renamed from logic/launch/LoggedProcess.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/LoggedProcess.h (renamed from logic/launch/LoggedProcess.h) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/MessageLevel.cpp (renamed from logic/launch/MessageLevel.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/MessageLevel.h (renamed from logic/launch/MessageLevel.h) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/CheckJava.cpp (renamed from logic/launch/steps/CheckJava.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/CheckJava.h (renamed from logic/launch/steps/CheckJava.h) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/LaunchMinecraft.cpp (renamed from logic/launch/steps/LaunchMinecraft.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/LaunchMinecraft.h (renamed from logic/launch/steps/LaunchMinecraft.h) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/ModMinecraftJar.cpp (renamed from logic/launch/steps/ModMinecraftJar.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/ModMinecraftJar.h (renamed from logic/launch/steps/ModMinecraftJar.h) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/PostLaunchCommand.cpp (renamed from logic/launch/steps/PostLaunchCommand.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/PostLaunchCommand.h (renamed from logic/launch/steps/PostLaunchCommand.h) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/PreLaunchCommand.cpp (renamed from logic/launch/steps/PreLaunchCommand.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/PreLaunchCommand.h (renamed from logic/launch/steps/PreLaunchCommand.h) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/TextPrint.cpp (renamed from logic/launch/steps/TextPrint.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/TextPrint.h (renamed from logic/launch/steps/TextPrint.h) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/Update.cpp (renamed from logic/launch/steps/Update.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/launch/steps/Update.h (renamed from logic/launch/steps/Update.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/AssetsUtils.cpp (renamed from logic/minecraft/AssetsUtils.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/AssetsUtils.h (renamed from logic/minecraft/AssetsUtils.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/GradleSpecifier.h (renamed from logic/minecraft/GradleSpecifier.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/JarMod.h (renamed from logic/minecraft/JarMod.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/Library.cpp (renamed from logic/minecraft/Library.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/Library.h (renamed from logic/minecraft/Library.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/MinecraftInstance.cpp (renamed from logic/minecraft/MinecraftInstance.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/MinecraftInstance.h (renamed from logic/minecraft/MinecraftInstance.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/MinecraftProfile.cpp (renamed from logic/minecraft/MinecraftProfile.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/MinecraftProfile.h (renamed from logic/minecraft/MinecraftProfile.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/MinecraftVersion.cpp (renamed from logic/minecraft/MinecraftVersion.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/MinecraftVersion.h (renamed from logic/minecraft/MinecraftVersion.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/MinecraftVersionList.cpp (renamed from logic/minecraft/MinecraftVersionList.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/MinecraftVersionList.h (renamed from logic/minecraft/MinecraftVersionList.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/Mod.cpp (renamed from logic/minecraft/Mod.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/Mod.h (renamed from logic/minecraft/Mod.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ModList.cpp (renamed from logic/minecraft/ModList.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ModList.h (renamed from logic/minecraft/ModList.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/MojangDownloadInfo.h (renamed from logic/minecraft/MojangDownloadInfo.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/MojangVersionFormat.cpp (renamed from logic/minecraft/MojangVersionFormat.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/MojangVersionFormat.h (renamed from logic/minecraft/MojangVersionFormat.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/OpSys.cpp (renamed from logic/minecraft/OpSys.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/OpSys.h (renamed from logic/minecraft/OpSys.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ParseUtils.cpp (renamed from logic/minecraft/ParseUtils.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ParseUtils.h (renamed from logic/minecraft/ParseUtils.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ProfilePatch.h (renamed from logic/minecraft/ProfilePatch.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ProfileStrategy.h (renamed from logic/minecraft/ProfileStrategy.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ProfileUtils.cpp (renamed from logic/minecraft/ProfileUtils.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ProfileUtils.h (renamed from logic/minecraft/ProfileUtils.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/Rule.cpp (renamed from logic/minecraft/Rule.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/Rule.h (renamed from logic/minecraft/Rule.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/VersionBuildError.h (renamed from logic/minecraft/VersionBuildError.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/VersionFile.cpp (renamed from logic/minecraft/VersionFile.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/VersionFile.h (renamed from logic/minecraft/VersionFile.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/VersionFilterData.cpp (renamed from logic/minecraft/VersionFilterData.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/VersionFilterData.h (renamed from logic/minecraft/VersionFilterData.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/World.cpp (renamed from logic/minecraft/World.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/World.h (renamed from logic/minecraft/World.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/WorldList.cpp (renamed from logic/minecraft/WorldList.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/WorldList.h (renamed from logic/minecraft/WorldList.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/AuthSession.cpp (renamed from logic/minecraft/auth/AuthSession.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/AuthSession.h (renamed from logic/minecraft/auth/AuthSession.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/MojangAccount.cpp (renamed from logic/minecraft/auth/MojangAccount.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/MojangAccount.h (renamed from logic/minecraft/auth/MojangAccount.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/MojangAccountList.cpp (renamed from logic/minecraft/auth/MojangAccountList.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/MojangAccountList.h (renamed from logic/minecraft/auth/MojangAccountList.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/YggdrasilTask.cpp (renamed from logic/minecraft/auth/YggdrasilTask.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/YggdrasilTask.h (renamed from logic/minecraft/auth/YggdrasilTask.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/flows/AuthenticateTask.cpp (renamed from logic/minecraft/auth/flows/AuthenticateTask.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/flows/AuthenticateTask.h (renamed from logic/minecraft/auth/flows/AuthenticateTask.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/flows/RefreshTask.cpp (renamed from logic/minecraft/auth/flows/RefreshTask.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/flows/RefreshTask.h (renamed from logic/minecraft/auth/flows/RefreshTask.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/flows/ValidateTask.cpp (renamed from logic/minecraft/auth/flows/ValidateTask.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/auth/flows/ValidateTask.h (renamed from logic/minecraft/auth/flows/ValidateTask.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/forge/ForgeInstaller.cpp (renamed from logic/minecraft/forge/ForgeInstaller.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/forge/ForgeInstaller.h (renamed from logic/minecraft/forge/ForgeInstaller.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/forge/ForgeVersion.cpp (renamed from logic/minecraft/forge/ForgeVersion.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/forge/ForgeVersion.h (renamed from logic/minecraft/forge/ForgeVersion.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/forge/ForgeVersionList.cpp (renamed from logic/minecraft/forge/ForgeVersionList.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/forge/ForgeVersionList.h (renamed from logic/minecraft/forge/ForgeVersionList.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/forge/ForgeXzDownload.cpp (renamed from logic/minecraft/forge/ForgeXzDownload.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/forge/ForgeXzDownload.h (renamed from logic/minecraft/forge/ForgeXzDownload.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/forge/LegacyForge.cpp (renamed from logic/minecraft/forge/LegacyForge.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/forge/LegacyForge.h (renamed from logic/minecraft/forge/LegacyForge.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ftb/FTBPlugin.cpp (renamed from logic/minecraft/ftb/FTBPlugin.cpp) | 4 | ||||
-rw-r--r-- | libraries/logic/minecraft/ftb/FTBPlugin.h (renamed from logic/minecraft/ftb/FTBPlugin.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ftb/FTBProfileStrategy.cpp (renamed from logic/minecraft/ftb/FTBProfileStrategy.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ftb/FTBProfileStrategy.h (renamed from logic/minecraft/ftb/FTBProfileStrategy.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ftb/FTBVersion.h (renamed from logic/minecraft/ftb/FTBVersion.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ftb/LegacyFTBInstance.cpp (renamed from logic/minecraft/ftb/LegacyFTBInstance.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ftb/LegacyFTBInstance.h (renamed from logic/minecraft/ftb/LegacyFTBInstance.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ftb/OneSixFTBInstance.cpp (renamed from logic/minecraft/ftb/OneSixFTBInstance.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/ftb/OneSixFTBInstance.h (renamed from logic/minecraft/ftb/OneSixFTBInstance.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/legacy/LegacyInstance.cpp (renamed from logic/minecraft/legacy/LegacyInstance.cpp) | 6 | ||||
-rw-r--r-- | libraries/logic/minecraft/legacy/LegacyInstance.h (renamed from logic/minecraft/legacy/LegacyInstance.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/legacy/LegacyUpdate.cpp (renamed from logic/minecraft/legacy/LegacyUpdate.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/legacy/LegacyUpdate.h (renamed from logic/minecraft/legacy/LegacyUpdate.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/legacy/LwjglVersionList.cpp (renamed from logic/minecraft/legacy/LwjglVersionList.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/legacy/LwjglVersionList.h (renamed from logic/minecraft/legacy/LwjglVersionList.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/liteloader/LiteLoaderInstaller.cpp (renamed from logic/minecraft/liteloader/LiteLoaderInstaller.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/liteloader/LiteLoaderInstaller.h (renamed from logic/minecraft/liteloader/LiteLoaderInstaller.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/liteloader/LiteLoaderVersionList.cpp (renamed from logic/minecraft/liteloader/LiteLoaderVersionList.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/liteloader/LiteLoaderVersionList.h (renamed from logic/minecraft/liteloader/LiteLoaderVersionList.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/onesix/OneSixInstance.cpp (renamed from logic/minecraft/onesix/OneSixInstance.cpp) | 6 | ||||
-rw-r--r-- | libraries/logic/minecraft/onesix/OneSixInstance.h (renamed from logic/minecraft/onesix/OneSixInstance.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/onesix/OneSixProfileStrategy.cpp (renamed from logic/minecraft/onesix/OneSixProfileStrategy.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/onesix/OneSixProfileStrategy.h (renamed from logic/minecraft/onesix/OneSixProfileStrategy.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/onesix/OneSixUpdate.cpp (renamed from logic/minecraft/onesix/OneSixUpdate.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/onesix/OneSixUpdate.h (renamed from logic/minecraft/onesix/OneSixUpdate.h) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/onesix/OneSixVersionFormat.cpp (renamed from logic/minecraft/onesix/OneSixVersionFormat.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/minecraft/onesix/OneSixVersionFormat.h (renamed from logic/minecraft/onesix/OneSixVersionFormat.h) | 0 | ||||
-rw-r--r-- | libraries/logic/net/ByteArrayDownload.cpp (renamed from logic/net/ByteArrayDownload.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/net/ByteArrayDownload.h (renamed from logic/net/ByteArrayDownload.h) | 0 | ||||
-rw-r--r-- | libraries/logic/net/CacheDownload.cpp (renamed from logic/net/CacheDownload.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/net/CacheDownload.h (renamed from logic/net/CacheDownload.h) | 0 | ||||
-rw-r--r-- | libraries/logic/net/HttpMetaCache.cpp (renamed from logic/net/HttpMetaCache.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/net/HttpMetaCache.h (renamed from logic/net/HttpMetaCache.h) | 0 | ||||
-rw-r--r-- | libraries/logic/net/MD5EtagDownload.cpp (renamed from logic/net/MD5EtagDownload.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/net/MD5EtagDownload.h (renamed from logic/net/MD5EtagDownload.h) | 0 | ||||
-rw-r--r-- | libraries/logic/net/NetAction.h (renamed from logic/net/NetAction.h) | 0 | ||||
-rw-r--r-- | libraries/logic/net/NetJob.cpp (renamed from logic/net/NetJob.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/net/NetJob.h (renamed from logic/net/NetJob.h) | 1 | ||||
-rw-r--r-- | libraries/logic/net/PasteUpload.cpp (renamed from logic/net/PasteUpload.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/net/PasteUpload.h (renamed from logic/net/PasteUpload.h) | 1 | ||||
-rw-r--r-- | libraries/logic/net/URLConstants.cpp (renamed from logic/net/URLConstants.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/net/URLConstants.h (renamed from logic/net/URLConstants.h) | 0 | ||||
-rw-r--r-- | libraries/logic/news/NewsChecker.cpp (renamed from logic/news/NewsChecker.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/news/NewsChecker.h (renamed from logic/news/NewsChecker.h) | 0 | ||||
-rw-r--r-- | libraries/logic/news/NewsEntry.cpp (renamed from logic/news/NewsEntry.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/news/NewsEntry.h (renamed from logic/news/NewsEntry.h) | 0 | ||||
-rw-r--r-- | libraries/logic/notifications/NotificationChecker.cpp (renamed from logic/notifications/NotificationChecker.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/notifications/NotificationChecker.h (renamed from logic/notifications/NotificationChecker.h) | 0 | ||||
-rw-r--r-- | libraries/logic/pathmatcher/FSTreeMatcher.h (renamed from logic/pathmatcher/FSTreeMatcher.h) | 0 | ||||
-rw-r--r-- | libraries/logic/pathmatcher/IPathMatcher.h (renamed from logic/pathmatcher/IPathMatcher.h) | 0 | ||||
-rw-r--r-- | libraries/logic/pathmatcher/MultiMatcher.h (renamed from logic/pathmatcher/MultiMatcher.h) | 0 | ||||
-rw-r--r-- | libraries/logic/pathmatcher/RegexpMatcher.h (renamed from logic/pathmatcher/RegexpMatcher.h) | 0 | ||||
-rw-r--r-- | libraries/logic/resources/Resource.cpp (renamed from logic/resources/Resource.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/resources/Resource.h (renamed from logic/resources/Resource.h) | 0 | ||||
-rw-r--r-- | libraries/logic/resources/ResourceHandler.cpp (renamed from logic/resources/ResourceHandler.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/resources/ResourceHandler.h (renamed from logic/resources/ResourceHandler.h) | 0 | ||||
-rw-r--r-- | libraries/logic/resources/ResourceObserver.cpp (renamed from logic/resources/ResourceObserver.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/resources/ResourceObserver.h (renamed from logic/resources/ResourceObserver.h) | 0 | ||||
-rw-r--r-- | libraries/logic/resources/ResourceProxyModel.cpp (renamed from logic/resources/ResourceProxyModel.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/resources/ResourceProxyModel.h (renamed from logic/resources/ResourceProxyModel.h) | 0 | ||||
-rw-r--r-- | libraries/logic/screenshots/ImgurAlbumCreation.cpp (renamed from logic/screenshots/ImgurAlbumCreation.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/screenshots/ImgurAlbumCreation.h (renamed from logic/screenshots/ImgurAlbumCreation.h) | 0 | ||||
-rw-r--r-- | libraries/logic/screenshots/ImgurUpload.cpp (renamed from logic/screenshots/ImgurUpload.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/screenshots/ImgurUpload.h (renamed from logic/screenshots/ImgurUpload.h) | 0 | ||||
-rw-r--r-- | libraries/logic/screenshots/Screenshot.h (renamed from logic/screenshots/Screenshot.h) | 0 | ||||
-rw-r--r-- | libraries/logic/settings/INIFile.cpp (renamed from logic/settings/INIFile.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/settings/INIFile.h (renamed from logic/settings/INIFile.h) | 0 | ||||
-rw-r--r-- | libraries/logic/settings/INISettingsObject.cpp (renamed from logic/settings/INISettingsObject.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/settings/INISettingsObject.h (renamed from logic/settings/INISettingsObject.h) | 0 | ||||
-rw-r--r-- | libraries/logic/settings/OverrideSetting.cpp (renamed from logic/settings/OverrideSetting.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/settings/OverrideSetting.h (renamed from logic/settings/OverrideSetting.h) | 0 | ||||
-rw-r--r-- | libraries/logic/settings/PassthroughSetting.cpp (renamed from logic/settings/PassthroughSetting.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/settings/PassthroughSetting.h (renamed from logic/settings/PassthroughSetting.h) | 0 | ||||
-rw-r--r-- | libraries/logic/settings/Setting.cpp (renamed from logic/settings/Setting.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/settings/Setting.h (renamed from logic/settings/Setting.h) | 0 | ||||
-rw-r--r-- | libraries/logic/settings/SettingsObject.cpp (renamed from logic/settings/SettingsObject.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/settings/SettingsObject.h (renamed from logic/settings/SettingsObject.h) | 0 | ||||
-rw-r--r-- | libraries/logic/status/StatusChecker.cpp (renamed from logic/status/StatusChecker.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/status/StatusChecker.h (renamed from logic/status/StatusChecker.h) | 0 | ||||
-rw-r--r-- | libraries/logic/tasks/SequentialTask.cpp (renamed from logic/tasks/SequentialTask.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/tasks/SequentialTask.h (renamed from logic/tasks/SequentialTask.h) | 0 | ||||
-rw-r--r-- | libraries/logic/tasks/Task.cpp (renamed from logic/tasks/Task.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/tasks/Task.h (renamed from logic/tasks/Task.h) | 0 | ||||
-rw-r--r-- | libraries/logic/tasks/ThreadTask.cpp (renamed from logic/tasks/ThreadTask.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/tasks/ThreadTask.h (renamed from logic/tasks/ThreadTask.h) | 0 | ||||
-rw-r--r-- | libraries/logic/tools/BaseExternalTool.cpp (renamed from logic/tools/BaseExternalTool.cpp) | 1 | ||||
-rw-r--r-- | libraries/logic/tools/BaseExternalTool.h (renamed from logic/tools/BaseExternalTool.h) | 0 | ||||
-rw-r--r-- | libraries/logic/tools/BaseProfiler.cpp (renamed from logic/tools/BaseProfiler.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/tools/BaseProfiler.h (renamed from logic/tools/BaseProfiler.h) | 0 | ||||
-rw-r--r-- | libraries/logic/tools/JProfiler.cpp (renamed from logic/tools/JProfiler.cpp) | 1 | ||||
-rw-r--r-- | libraries/logic/tools/JProfiler.h (renamed from logic/tools/JProfiler.h) | 0 | ||||
-rw-r--r-- | libraries/logic/tools/JVisualVM.cpp (renamed from logic/tools/JVisualVM.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/tools/JVisualVM.h (renamed from logic/tools/JVisualVM.h) | 0 | ||||
-rw-r--r-- | libraries/logic/tools/MCEditTool.cpp (renamed from logic/tools/MCEditTool.cpp) | 8 | ||||
-rw-r--r-- | libraries/logic/tools/MCEditTool.h (renamed from logic/tools/MCEditTool.h) | 0 | ||||
-rw-r--r-- | libraries/logic/trans/TranslationDownloader.cpp (renamed from logic/trans/TranslationDownloader.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/trans/TranslationDownloader.h (renamed from logic/trans/TranslationDownloader.h) | 0 | ||||
-rw-r--r-- | libraries/logic/updater/DownloadTask.cpp (renamed from logic/updater/DownloadTask.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/updater/DownloadTask.h (renamed from logic/updater/DownloadTask.h) | 0 | ||||
-rw-r--r-- | libraries/logic/updater/GoUpdate.cpp (renamed from logic/updater/GoUpdate.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/updater/GoUpdate.h (renamed from logic/updater/GoUpdate.h) | 0 | ||||
-rw-r--r-- | libraries/logic/updater/UpdateChecker.cpp (renamed from logic/updater/UpdateChecker.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/updater/UpdateChecker.h (renamed from logic/updater/UpdateChecker.h) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/BaseWonkoEntity.cpp (renamed from logic/wonko/BaseWonkoEntity.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/BaseWonkoEntity.h (renamed from logic/wonko/BaseWonkoEntity.h) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/WonkoIndex.cpp (renamed from logic/wonko/WonkoIndex.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/WonkoIndex.h (renamed from logic/wonko/WonkoIndex.h) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/WonkoReference.cpp (renamed from logic/wonko/WonkoReference.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/WonkoReference.h (renamed from logic/wonko/WonkoReference.h) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/WonkoUtil.cpp (renamed from logic/wonko/WonkoUtil.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/WonkoUtil.h (renamed from logic/wonko/WonkoUtil.h) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/WonkoVersion.cpp (renamed from logic/wonko/WonkoVersion.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/WonkoVersion.h (renamed from logic/wonko/WonkoVersion.h) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/WonkoVersionList.cpp (renamed from logic/wonko/WonkoVersionList.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/WonkoVersionList.h (renamed from logic/wonko/WonkoVersionList.h) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/format/WonkoFormat.cpp (renamed from logic/wonko/format/WonkoFormat.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/format/WonkoFormat.h (renamed from logic/wonko/format/WonkoFormat.h) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/format/WonkoFormatV1.cpp (renamed from logic/wonko/format/WonkoFormatV1.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/format/WonkoFormatV1.h (renamed from logic/wonko/format/WonkoFormatV1.h) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/tasks/BaseWonkoEntityLocalLoadTask.cpp (renamed from logic/wonko/tasks/BaseWonkoEntityLocalLoadTask.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/tasks/BaseWonkoEntityLocalLoadTask.h (renamed from logic/wonko/tasks/BaseWonkoEntityLocalLoadTask.h) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/tasks/BaseWonkoEntityRemoteLoadTask.cpp (renamed from logic/wonko/tasks/BaseWonkoEntityRemoteLoadTask.cpp) | 0 | ||||
-rw-r--r-- | libraries/logic/wonko/tasks/BaseWonkoEntityRemoteLoadTask.h (renamed from logic/wonko/tasks/BaseWonkoEntityRemoteLoadTask.h) | 0 | ||||
-rw-r--r-- | logic/DesktopServices.h | 37 | ||||
-rw-r--r-- | tests/tst_Resource.cpp | 1 | ||||
-rw-r--r-- | wonkoclient/WonkoClient.cpp | 2 | ||||
-rw-r--r-- | wonkoclient/main.cpp | 4 |
286 files changed, 126 insertions, 132 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5739f923..2c021578 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,6 +117,8 @@ include(Coverity) ############################### Built Artifacts ############################### add_subdirectory(tests) -add_subdirectory(logic) +add_subdirectory(libraries/logic) +add_subdirectory(libraries/gui) + add_subdirectory(application) add_subdirectory(wonkoclient) diff --git a/application/CMakeLists.txt b/application/CMakeLists.txt index 5983fb42..f1a95a8a 100644 --- a/application/CMakeLists.txt +++ b/application/CMakeLists.txt @@ -318,7 +318,7 @@ qt5_add_resources(MULTIMC_RESOURCES ${MULTIMC_QRCS}) # Add executable add_executable(MultiMC MACOSX_BUNDLE WIN32 ${MULTIMC_SOURCES} ${MULTIMC_UI} ${MULTIMC_RESOURCES} ${MULTIMC_RCS}) -target_link_libraries(MultiMC MultiMC_logic xz-embedded unpack200 iconfix ${QUAZIP_LIBRARIES} hoedown rainbow) +target_link_libraries(MultiMC MultiMC_gui ${QUAZIP_LIBRARIES} hoedown rainbow) if(APPLE) find_library(OSX_CORE_FOUNDATION CoreFoundation) diff --git a/application/ConsoleWindow.cpp b/application/ConsoleWindow.cpp index a843536b..e620d700 100644 --- a/application/ConsoleWindow.cpp +++ b/application/ConsoleWindow.cpp @@ -58,7 +58,7 @@ ConsoleWindow::ConsoleWindow(std::shared_ptr<LaunchTask> proc, QWidget *parent) setAttribute(Qt::WA_DeleteOnClose); auto instance = m_proc->instance(); - auto icon = ENV.icons()->getIcon(instance->iconKey()); + auto icon = MMC->icons()->getIcon(instance->iconKey()); QString windowTitle = tr("Console window for ") + instance->name(); // Set window properties diff --git a/application/InstanceProxyModel.cpp b/application/InstanceProxyModel.cpp index 2048252c..d0e9e10d 100644 --- a/application/InstanceProxyModel.cpp +++ b/application/InstanceProxyModel.cpp @@ -1,11 +1,22 @@ #include "InstanceProxyModel.h" #include "MultiMC.h" #include <BaseInstance.h> +#include <icons/IconList.h> InstanceProxyModel::InstanceProxyModel(QObject *parent) : GroupedProxyModel(parent) { } +QVariant InstanceProxyModel::data(const QModelIndex & index, int role) const +{ + QVariant data = QSortFilterProxyModel::data(index, role); + if(role == Qt::DecorationRole) + { + return QVariant(MMC->icons()->getIcon(data.toString())); + } + return data; +} + bool InstanceProxyModel::subSortLessThan(const QModelIndex &left, const QModelIndex &right) const { diff --git a/application/InstanceProxyModel.h b/application/InstanceProxyModel.h index cc6c1b86..c063f526 100644 --- a/application/InstanceProxyModel.h +++ b/application/InstanceProxyModel.h @@ -9,7 +9,8 @@ class InstanceProxyModel : public GroupedProxyModel { public: explicit InstanceProxyModel(QObject *parent = 0); + QVariant data(const QModelIndex & index, int role) const override; protected: - virtual bool subSortLessThan(const QModelIndex &left, const QModelIndex &right) const; + virtual bool subSortLessThan(const QModelIndex &left, const QModelIndex &right) const override; }; diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index e1d306b0..97c0b02a 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -56,7 +56,7 @@ #include <launch/LaunchTask.h> #include <minecraft/MinecraftVersionList.h> #include <minecraft/legacy/LwjglVersionList.h> -#include <minecraft/SkinUtils.h> +#include <SkinUtils.h> #include <net/URLConstants.h> #include <net/NetJob.h> #include <net/CacheDownload.h> @@ -468,7 +468,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new MainWindow connect(view->selectionModel(), &QItemSelectionModel::currentChanged, this, &MainWindow::instanceChanged); // track icon changes and update the toolbar! - connect(ENV.icons().get(), &IconList::iconUpdated, this, &MainWindow::iconUpdated); + connect(MMC->icons().get(), &IconList::iconUpdated, this, &MainWindow::iconUpdated); // model reset -> selection is invalid. All the instance pointers are wrong. connect(MMC->instances().get(), &InstanceList::dataIsInvalid, this, &MainWindow::selectionBad); @@ -1108,7 +1108,7 @@ InstancePtr MainWindow::instanceFromZipPack(QString instName, QString instGroup, if (QFile::exists(importIconPath)) { // import icon - auto iconList = ENV.icons(); + auto iconList = MMC->icons(); // FIXME: check if the file is OK before removing the existing one... if (iconList->iconFileExists(instIcon)) { @@ -1311,7 +1311,7 @@ void MainWindow::on_actionChangeInstIcon_triggered() if (dlg.result() == QDialog::Accepted) { m_selectedInstance->setIconKey(dlg.selectedIconKey); - auto ico = ENV.icons()->getBigIcon(dlg.selectedIconKey); + auto ico = MMC->icons()->getBigIcon(dlg.selectedIconKey); ui->actionChangeInstIcon->setIcon(ico); } } @@ -1320,14 +1320,14 @@ void MainWindow::iconUpdated(QString icon) { if (icon == m_currentInstIcon) { - ui->actionChangeInstIcon->setIcon(ENV.icons()->getBigIcon(m_currentInstIcon)); + ui->actionChangeInstIcon->setIcon(MMC->icons()->getBigIcon(m_currentInstIcon)); } } void MainWindow::updateInstanceToolIcon(QString new_icon) { m_currentInstIcon = new_icon; - ui->actionChangeInstIcon->setIcon(ENV.icons()->getBigIcon(m_currentInstIcon)); + ui->actionChangeInstIcon->setIcon(MMC->icons()->getBigIcon(m_currentInstIcon)); } void MainWindow::setSelectedInstanceById(const QString &id) diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp index 4a84c6bd..24e71fa0 100644 --- a/application/MultiMC.cpp +++ b/application/MultiMC.cpp @@ -342,10 +342,10 @@ void MultiMC::initTranslations() void MultiMC::initIcons() { auto setting = MMC->settings()->getSetting("IconsDir"); - ENV.m_icons.reset(new IconList(QString(":/icons/instances/"), setting->get().toString())); + m_icons.reset(new IconList(QString(":/icons/instances/"), setting->get().toString())); connect(setting.get(), &Setting::SettingChanged,[&](const Setting &, QVariant value) { - ENV.m_icons->directoryChanged(value.toString()); + m_icons->directoryChanged(value.toString()); }); //FIXME: none of this should be here. diff --git a/application/MultiMC.h b/application/MultiMC.h index 5b19db19..8219d66c 100644 --- a/application/MultiMC.h +++ b/application/MultiMC.h @@ -87,6 +87,11 @@ public: return m_instances; } + std::shared_ptr<IconList> icons() + { + return m_icons; + } + // APPLICATION ONLY std::shared_ptr<MojangAccountList> accounts() { @@ -154,6 +159,7 @@ private: std::shared_ptr<QTranslator> m_mmc_translator; std::shared_ptr<SettingsObject> m_settings; std::shared_ptr<InstanceList> m_instances; + std::shared_ptr<IconList> m_icons; std::shared_ptr<UpdateChecker> m_updateChecker; std::shared_ptr<MojangAccountList> m_accounts; std::shared_ptr<LWJGLVersionList> m_lwjgllist; diff --git a/application/dialogs/CopyInstanceDialog.cpp b/application/dialogs/CopyInstanceDialog.cpp index 67e2e8e1..85c70d91 100644 --- a/application/dialogs/CopyInstanceDialog.cpp +++ b/application/dialogs/CopyInstanceDialog.cpp @@ -36,7 +36,7 @@ CopyInstanceDialog::CopyInstanceDialog(InstancePtr original, QWidget *parent) layout()->setSizeConstraint(QLayout::SetFixedSize); InstIconKey = original->iconKey(); - ui->iconButton->setIcon(ENV.icons()->getIcon(InstIconKey)); + ui->iconButton->setIcon(MMC->icons()->getIcon(InstIconKey)); ui->instNameTextBox->setText(original->name()); ui->instNameTextBox->setFocus(); auto groups = MMC->instances()->getGroups().toSet(); @@ -88,7 +88,7 @@ void CopyInstanceDialog::on_iconButton_clicked() if (dlg.result() == QDialog::Accepted) { InstIconKey = dlg.selectedIconKey; - ui->iconButton->setIcon(ENV.icons()->getIcon(InstIconKey)); + ui->iconButton->setIcon(MMC->icons()->getIcon(InstIconKey)); } } diff --git a/application/dialogs/ExportInstanceDialog.cpp b/application/dialogs/ExportInstanceDialog.cpp index a38fd238..2712f24c 100644 --- a/application/dialogs/ExportInstanceDialog.cpp +++ b/application/dialogs/ExportInstanceDialog.cpp @@ -27,7 +27,7 @@ #include <QSaveFile> #include "MMCStrings.h" #include "SeparatorPrefixTree.h" -#include "Env.h" +#include "MultiMC.h" #include <icons/IconList.h> #include <FileSystem.h> @@ -339,7 +339,7 @@ ExportInstanceDialog::~ExportInstanceDialog() void SaveIcon(InstancePtr m_instance) { auto iconKey = m_instance->iconKey(); - auto iconList = ENV.icons(); + auto iconList = MMC->icons(); auto mmcIcon = iconList->icon(iconKey); if(mmcIcon) { diff --git a/application/dialogs/IconPickerDialog.cpp b/application/dialogs/IconPickerDialog.cpp index f750cd27..7ee7d045 100644 --- a/application/dialogs/IconPickerDialog.cpp +++ b/application/dialogs/IconPickerDialog.cpp @@ -57,7 +57,7 @@ IconPickerDialog::IconPickerDialog(QWidget *parent) contentsWidget->installEventFilter(this); - contentsWidget->setModel(ENV.icons().get()); + contentsWidget->setModel(MMC->icons().get()); auto buttonAdd = ui->buttonBox->addButton(tr("Add Icon"), QDialogButtonBox::ResetRole); auto buttonRemove = @@ -102,12 +102,12 @@ void IconPickerDialog::addNewIcon() //: The type of icon files QStringList fileNames = QFileDialog::getOpenFileNames(this, selectIcons, QString(), tr("Icons") + "(*.png *.jpg *.jpeg *.ico)"); - ENV.icons()->installIcons(fileNames); + MMC->icons()->installIcons(fileNames); } void IconPickerDialog::removeSelectedIcon() { - ENV.icons()->deleteIcon(selectedIconKey); + MMC->icons()->deleteIcon(selectedIconKey); } void IconPickerDialog::activated(QModelIndex index) @@ -128,7 +128,7 @@ void IconPickerDialog::selectionChanged(QItemSelection selected, QItemSelection int IconPickerDialog::execWithSelection(QString selection) { - auto list = ENV.icons(); + auto list = MMC->icons(); auto contentsWidget = ui->iconView; selectedIconKey = selection; diff --git a/application/dialogs/NewInstanceDialog.cpp b/application/dialogs/NewInstanceDialog.cpp index a883d1dc..1e12c9ba 100644 --- a/application/dialogs/NewInstanceDialog.cpp +++ b/application/dialogs/NewInstanceDialog.cpp @@ -64,7 +64,7 @@ NewInstanceDialog::NewInstanceDialog(const QString & initialGroup, QWidget *pare setSelectedVersion(MMC->minecraftlist()->getRecommended()); InstIconKey = "default"; - ui->iconButton->setIcon(ENV.icons()->getIcon(InstIconKey)); + ui->iconButton->setIcon(MMC->icons()->getIcon(InstIconKey)); ui->modpackEdit->setValidator(new UrlValidator(ui->modpackEdit)); @@ -211,7 +211,7 @@ void NewInstanceDialog::on_iconButton_clicked() if (dlg.result() == QDialog::Accepted) { InstIconKey = dlg.selectedIconKey; - ui->iconButton->setIcon(ENV.icons()->getIcon(InstIconKey)); + ui->iconButton->setIcon(MMC->icons()->getIcon(InstIconKey)); } } diff --git a/application/pages/VersionPage.cpp b/application/pages/VersionPage.cpp index 6cbc9e92..14e48cff 100644 --- a/application/pages/VersionPage.cpp +++ b/application/pages/VersionPage.cpp @@ -94,7 +94,7 @@ private: QIcon VersionPage::icon() const { - return ENV.icons()->getIcon(m_inst->iconKey()); + return MMC->icons()->getIcon(m_inst->iconKey()); } bool VersionPage::shouldDisplay() const { diff --git a/libraries/gui/CMakeLists.txt b/libraries/gui/CMakeLists.txt new file mode 100644 index 00000000..1551a927 --- /dev/null +++ b/libraries/gui/CMakeLists.txt @@ -0,0 +1,28 @@ +project(MultiMC_logic) + +set(GUI_SOURCES + DesktopServices.h + DesktopServices.cpp + + # Icons + icons/MMCIcon.h + icons/MMCIcon.cpp + icons/IconList.h + icons/IconList.cpp + + SkinUtils.cpp + SkinUtils.h +) +################################ COMPILE ################################ + +add_library(MultiMC_gui SHARED ${GUI_SOURCES}) +set_target_properties(MultiMC_gui PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1) + +generate_export_header(MultiMC_gui) + +# Link +target_link_libraries(MultiMC_gui iconfix MultiMC_logic) +qt5_use_modules(MultiMC_gui Gui) + +# Mark and export headers +target_include_directories(MultiMC_gui PUBLIC "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}") diff --git a/logic/DesktopServices.cpp b/libraries/gui/DesktopServices.cpp index 3154ea01..3154ea01 100644 --- a/logic/DesktopServices.cpp +++ b/libraries/gui/DesktopServices.cpp diff --git a/libraries/gui/DesktopServices.h b/libraries/gui/DesktopServices.h new file mode 100644 index 00000000..9daf192a --- /dev/null +++ b/libraries/gui/DesktopServices.h @@ -0,0 +1,37 @@ +#pragma once + +#include <QUrl> +#include <QString> +#include "multimc_gui_export.h" + +/** + * This wraps around QDesktopServices and adds workarounds where needed + * Use this instead of QDesktopServices! + */ +namespace DesktopServices +{ + /** + * Open a file in whatever application is applicable + */ + MULTIMC_GUI_EXPORT bool openFile(const QString &path); + + /** + * Open a file in the specified application + */ + MULTIMC_GUI_EXPORT bool openFile(const QString &application, const QString &path, const QString & workingDirectory = QString(), qint64 *pid = 0); + + /** + * Run an application + */ + MULTIMC_GUI_EXPORT bool run(const QString &application,const QStringList &args, const QString & workingDirectory = QString(), qint64 *pid = 0); + + /** + * Open a directory + */ + MULTIMC_GUI_EXPORT bool openDirectory(const QString &path, bool ensureExists = false); + + /** + * Open the URL, most likely in a browser. Maybe. + */ + MULTIMC_GUI_EXPORT bool openUrl(const QUrl &url); +}; diff --git a/logic/minecraft/SkinUtils.cpp b/libraries/gui/SkinUtils.cpp index e6e513a5..f69a1071 100644 --- a/logic/minecraft/SkinUtils.cpp +++ b/libraries/gui/SkinUtils.cpp @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "minecraft/SkinUtils.h" +#include "SkinUtils.h" #include "net/HttpMetaCache.h" #include "Env.h" diff --git a/logic/minecraft/SkinUtils.h b/libraries/gui/SkinUtils.h index 5f5b1897..29dcd6a6 100644 --- a/logic/minecraft/SkinUtils.h +++ b/libraries/gui/SkinUtils.h @@ -17,9 +17,9 @@ #include <QPixmap> -#include "multimc_logic_export.h" +#include "multimc_gui_export.h" namespace SkinUtils { -QPixmap MULTIMC_LOGIC_EXPORT getFaceFromCache(QString id, int height = 64, int width = 64); +QPixmap MULTIMC_GUI_EXPORT getFaceFromCache(QString id, int height = 64, int width = 64); } diff --git a/logic/icons/IconList.cpp b/libraries/gui/icons/IconList.cpp index 99def3b7..99def3b7 100644 --- a/logic/icons/IconList.cpp +++ b/libraries/gui/icons/IconList.cpp diff --git a/logic/icons/IconList.h b/libraries/gui/icons/IconList.h index 971db824..971db824 100644 --- a/logic/icons/IconList.h +++ b/libraries/gui/icons/IconList.h diff --git a/logic/icons/MMCIcon.cpp b/libraries/gui/icons/MMCIcon.cpp index 6b4eef39..6b4eef39 100644 --- a/logic/icons/MMCIcon.cpp +++ b/libraries/gui/icons/MMCIcon.cpp diff --git a/logic/icons/MMCIcon.h b/libraries/gui/icons/MMCIcon.h index 753e916d..6f9617c2 100644 --- a/logic/icons/MMCIcon.h +++ b/libraries/gui/icons/MMCIcon.h @@ -18,9 +18,9 @@ #include <QDateTime> #include <QIcon> -#include "multimc_logic_export.h" +#include "multimc_gui_export.h" -struct MULTIMC_LOGIC_EXPORT MMCImage +struct MULTIMC_GUI_EXPORT MMCImage { QIcon icon; QString filename; @@ -31,7 +31,7 @@ struct MULTIMC_LOGIC_EXPORT MMCImage } }; -struct MULTIMC_LOGIC_EXPORT MMCIcon +struct MULTIMC_GUI_EXPORT MMCIcon { enum Type : unsigned { diff --git a/logic/AbstractCommonModel.cpp b/libraries/logic/AbstractCommonModel.cpp index 71d75829..71d75829 100644 --- a/logic/AbstractCommonModel.cpp +++ b/libraries/logic/AbstractCommonModel.cpp diff --git a/logic/AbstractCommonModel.h b/libraries/logic/AbstractCommonModel.h index 31b86a23..31b86a23 100644 --- a/logic/AbstractCommonModel.h +++ b/libraries/logic/AbstractCommonModel.h diff --git a/logic/BaseConfigObject.cpp b/libraries/logic/BaseConfigObject.cpp index 3040ac2e..3040ac2e 100644 --- a/logic/BaseConfigObject.cpp +++ b/libraries/logic/BaseConfigObject.cpp diff --git a/logic/BaseConfigObject.h b/libraries/logic/BaseConfigObject.h index 1c96b3d1..1c96b3d1 100644 --- a/logic/BaseConfigObject.h +++ b/libraries/logic/BaseConfigObject.h diff --git a/logic/BaseInstaller.cpp b/libraries/logic/BaseInstaller.cpp index cb762ebd..cb762ebd 100644 --- a/logic/BaseInstaller.cpp +++ b/libraries/logic/BaseInstaller.cpp diff --git a/logic/BaseInstaller.h b/libraries/logic/BaseInstaller.h index a50c8cb1..a50c8cb1 100644 --- a/logic/BaseInstaller.h +++ b/libraries/logic/BaseInstaller.h diff --git a/logic/BaseInstance.cpp b/libraries/logic/BaseInstance.cpp index f8530c9d..ce55d5e4 100644 --- a/logic/BaseInstance.cpp +++ b/libraries/logic/BaseInstance.cpp @@ -23,7 +23,6 @@ #include "settings/OverrideSetting.h" #include "minecraft/MinecraftVersionList.h" -#include "icons/IconList.h" #include "FileSystem.h" #include "Commandline.h" @@ -35,10 +34,6 @@ BaseInstance::BaseInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr s m_settings->registerSetting("name", "Unnamed Instance"); m_settings->registerSetting("iconKey", "default"); - if (ENV.hasIcons()) - { - connect(ENV.icons().get(), SIGNAL(iconUpdated(QString)), SLOT(iconUpdated(QString))); - } m_settings->registerSetting("notes", ""); m_settings->registerSetting("lastLaunchTime", 0); m_settings->registerSetting("totalTimePlayed", 0); diff --git a/logic/BaseInstance.h b/libraries/logic/BaseInstance.h index 5e587c48..5e587c48 100644 --- a/logic/BaseInstance.h +++ b/libraries/logic/BaseInstance.h diff --git a/logic/BaseVersion.h b/libraries/logic/BaseVersion.h index 80767518..80767518 100644 --- a/logic/BaseVersion.h +++ b/libraries/logic/BaseVersion.h diff --git a/logic/BaseVersionList.cpp b/libraries/logic/BaseVersionList.cpp index b34f318c..b34f318c 100644 --- a/logic/BaseVersionList.cpp +++ b/libraries/logic/BaseVersionList.cpp diff --git a/logic/BaseVersionList.h b/libraries/logic/BaseVersionList.h index 73d2ee1f..73d2ee1f 100644 --- a/logic/BaseVersionList.h +++ b/libraries/logic/BaseVersionList.h diff --git a/logic/CMakeLists.txt b/libraries/logic/CMakeLists.txt index cd8aa246..317627d5 100644 --- a/logic/CMakeLists.txt +++ b/libraries/logic/CMakeLists.txt @@ -35,8 +35,6 @@ set(LOGIC_SOURCES FileSystem.h FileSystem.cpp - DesktopServices.h - DesktopServices.cpp Exception.h @@ -171,8 +169,6 @@ set(LOGIC_SOURCES minecraft/legacy/LegacyInstance.cpp minecraft/legacy/LwjglVersionList.h minecraft/legacy/LwjglVersionList.cpp - minecraft/SkinUtils.h - minecraft/SkinUtils.cpp minecraft/GradleSpecifier.h minecraft/MinecraftProfile.cpp minecraft/MinecraftProfile.h @@ -233,12 +229,6 @@ set(LOGIC_SOURCES screenshots/ImgurAlbumCreation.h screenshots/ImgurAlbumCreation.cpp - # Icons - icons/MMCIcon.h - icons/MMCIcon.cpp - icons/IconList.h - icons/IconList.cpp - # Tasks tasks/Task.h tasks/Task.cpp @@ -346,8 +336,8 @@ set_target_properties(MultiMC_logic PROPERTIES CXX_VISIBILITY_PRESET hidden VISI generate_export_header(MultiMC_logic) # Link -target_link_libraries(MultiMC_logic xz-embedded unpack200 iconfix LogicalGui ${QUAZIP_LIBRARIES} nbt++ ${ZLIB_LIBRARIES}) -qt5_use_modules(MultiMC_logic Core Xml Widgets Network Concurrent) +target_link_libraries(MultiMC_logic xz-embedded unpack200 ${QUAZIP_LIBRARIES} nbt++ ${ZLIB_LIBRARIES}) +qt5_use_modules(MultiMC_logic Core Xml Network Concurrent) add_dependencies(MultiMC_logic QuaZIP) # Mark and export headers diff --git a/logic/Commandline.cpp b/libraries/logic/Commandline.cpp index 9a8ddbf1..9a8ddbf1 100644 --- a/logic/Commandline.cpp +++ b/libraries/logic/Commandline.cpp diff --git a/logic/Commandline.h b/libraries/logic/Commandline.h index bee02bad..bee02bad 100644 --- a/logic/Commandline.h +++ b/libraries/logic/Commandline.h diff --git a/logic/DefaultVariable.h b/libraries/logic/DefaultVariable.h index 38d7ecc2..38d7ecc2 100644 --- a/logic/DefaultVariable.h +++ b/libraries/logic/DefaultVariable.h diff --git a/logic/Env.cpp b/libraries/logic/Env.cpp index d66ec184..cc0c5981 100644 --- a/logic/Env.cpp +++ b/libraries/logic/Env.cpp @@ -1,6 +1,5 @@ #include "Env.h" #include "net/HttpMetaCache.h" -#include "icons/IconList.h" #include "BaseVersion.h" #include "BaseVersionList.h" #include <QDir> @@ -24,7 +23,6 @@ void Env::destroy() { m_metacache.reset(); m_qnam.reset(); - m_icons.reset(); m_versionLists.clear(); } @@ -45,16 +43,6 @@ std::shared_ptr< QNetworkAccessManager > Env::qnam() return m_qnam; } -std::shared_ptr<IconList> Env::icons() -{ - Q_ASSERT(m_icons != nullptr); - return m_icons; -} - -bool Env::hasIcons() -{ - return m_icons != nullptr; -} /* class NullVersion : public BaseVersion { diff --git a/logic/Env.h b/libraries/logic/Env.h index 2b29acaa..4d8945d7 100644 --- a/logic/Env.h +++ b/libraries/logic/Env.h @@ -6,7 +6,6 @@ #include "multimc_logic_export.h" -class IconList; class QNetworkAccessManager; class HttpMetaCache; class BaseVersionList; @@ -33,10 +32,6 @@ public: std::shared_ptr<HttpMetaCache> metacache(); - std::shared_ptr<IconList> icons(); - - bool hasIcons(); - /// init the cache. FIXME: possible future hook point void initHttpMetaCache(); @@ -59,7 +54,6 @@ public: protected: std::shared_ptr<QNetworkAccessManager> m_qnam; std::shared_ptr<HttpMetaCache> m_metacache; - std::shared_ptr<IconList> m_icons; QMap<QString, std::shared_ptr<BaseVersionList>> m_versionLists; std::shared_ptr<WonkoIndex> m_wonkoIndex; QString m_wonkoRootUrl; diff --git a/logic/Exception.h b/libraries/logic/Exception.h index 30c7aa45..30c7aa45 100644 --- a/logic/Exception.h +++ b/libraries/logic/Exception.h diff --git a/logic/FileSystem.cpp b/libraries/logic/FileSystem.cpp index 049f1e38..049f1e38 100644 --- a/logic/FileSystem.cpp +++ b/libraries/logic/FileSystem.cpp diff --git a/logic/FileSystem.h b/libraries/logic/FileSystem.h index 80637f90..80637f90 100644 --- a/logic/FileSystem.h +++ b/libraries/logic/FileSystem.h diff --git a/logic/GZip.cpp b/libraries/logic/GZip.cpp index 38605df6..38605df6 100644 --- a/logic/GZip.cpp +++ b/libraries/logic/GZip.cpp diff --git a/logic/GZip.h b/libraries/logic/GZip.h index 6993a222..6993a222 100644 --- a/logic/GZip.h +++ b/libraries/logic/GZip.h diff --git a/logic/InstanceList.cpp b/libraries/logic/InstanceList.cpp index 741b8611..783df660 100644 --- a/logic/InstanceList.cpp +++ b/libraries/logic/InstanceList.cpp @@ -27,7 +27,6 @@ #include <QDebug> #include "InstanceList.h" -#include "icons/IconList.h" #include "BaseInstance.h" //FIXME: this really doesn't belong *here* @@ -98,8 +97,7 @@ QVariant InstanceList::data(const QModelIndex &index, int role) const } case Qt::DecorationRole: { - QString key = pdata->iconKey(); - return ENV.icons()->getIcon(key); + return pdata->iconKey(); } // HACK: see GroupView.h in gui! case GroupRole: diff --git a/logic/InstanceList.h b/libraries/logic/InstanceList.h index 074cca7c..074cca7c 100644 --- a/logic/InstanceList.h +++ b/libraries/logic/InstanceList.h diff --git a/logic/Json.cpp b/libraries/logic/Json.cpp index f2cbc8a3..f2cbc8a3 100644 --- a/logic/Json.cpp +++ b/libraries/logic/Json.cpp diff --git a/logic/Json.h b/libraries/logic/Json.h index 2cb60f0e..2cb60f0e 100644 --- a/logic/Json.h +++ b/libraries/logic/Json.h diff --git a/logic/MMCStrings.cpp b/libraries/logic/MMCStrings.cpp index c50d596e..c50d596e 100644 --- a/logic/MMCStrings.cpp +++ b/libraries/logic/MMCStrings.cpp diff --git a/logic/MMCStrings.h b/libraries/logic/MMCStrings.h index 5606b909..5606b909 100644 --- a/logic/MMCStrings.h +++ b/libraries/logic/MMCStrings.h diff --git a/logic/MMCZip.cpp b/libraries/logic/MMCZip.cpp index 0f35bc70..0f35bc70 100644 --- a/logic/MMCZip.cpp +++ b/libraries/logic/MMCZip.cpp diff --git a/logic/MMCZip.h b/libraries/logic/MMCZip.h index f350e668..f350e668 100644 --- a/logic/MMCZip.h +++ b/libraries/logic/MMCZip.h diff --git a/logic/NullInstance.h b/libraries/logic/NullInstance.h index fbb2d985..fbb2d985 100644 --- a/logic/NullInstance.h +++ b/libraries/logic/NullInstance.h diff --git a/logic/QObjectPtr.h b/libraries/logic/QObjectPtr.h index b81b3234..b81b3234 100644 --- a/logic/QObjectPtr.h +++ b/libraries/logic/QObjectPtr.h diff --git a/logic/RWStorage.h b/libraries/logic/RWStorage.h index b1598ca4..b1598ca4 100644 --- a/logic/RWStorage.h +++ b/libraries/logic/RWStorage.h diff --git a/logic/RecursiveFileSystemWatcher.cpp b/libraries/logic/RecursiveFileSystemWatcher.cpp index 59c3f0f0..59c3f0f0 100644 --- a/logic/RecursiveFileSystemWatcher.cpp +++ b/libraries/logic/RecursiveFileSystemWatcher.cpp diff --git a/logic/RecursiveFileSystemWatcher.h b/libraries/logic/RecursiveFileSystemWatcher.h index 07bce0b9..07bce0b9 100644 --- a/logic/RecursiveFileSystemWatcher.h +++ b/libraries/logic/RecursiveFileSystemWatcher.h diff --git a/logic/SeparatorPrefixTree.h b/libraries/logic/SeparatorPrefixTree.h index fd149af0..fd149af0 100644 --- a/logic/SeparatorPrefixTree.h +++ b/libraries/logic/SeparatorPrefixTree.h diff --git a/logic/TypeMagic.h b/libraries/logic/TypeMagic.h index fa9d12a9..fa9d12a9 100644 --- a/logic/TypeMagic.h +++ b/libraries/logic/TypeMagic.h diff --git a/logic/Version.cpp b/libraries/logic/Version.cpp index 3c4727ad..3c4727ad 100644 --- a/logic/Version.cpp +++ b/libraries/logic/Version.cpp diff --git a/logic/Version.h b/libraries/logic/Version.h index b5946ced..b5946ced 100644 --- a/logic/Version.h +++ b/libraries/logic/Version.h diff --git a/logic/java/JavaChecker.cpp b/libraries/logic/java/JavaChecker.cpp index 54d552a9..54d552a9 100644 --- a/logic/java/JavaChecker.cpp +++ b/libraries/logic/java/JavaChecker.cpp diff --git a/logic/java/JavaChecker.h b/libraries/logic/java/JavaChecker.h index 650e7ce3..650e7ce3 100644 --- a/logic/java/JavaChecker.h +++ b/libraries/logic/java/JavaChecker.h diff --git a/logic/java/JavaCheckerJob.cpp b/libraries/logic/java/JavaCheckerJob.cpp index 0b040e43..0b040e43 100644 --- a/logic/java/JavaCheckerJob.cpp +++ b/libraries/logic/java/JavaCheckerJob.cpp diff --git a/logic/java/JavaCheckerJob.h b/libraries/logic/java/JavaCheckerJob.h index d031c435..aca0d02e 100644 --- a/logic/java/JavaCheckerJob.h +++ b/libraries/logic/java/JavaCheckerJob.h @@ -16,7 +16,6 @@ #pragma once #include <QtNetwork> -#include <QLabel> #include "JavaChecker.h" #include "tasks/Task.h" diff --git a/logic/java/JavaInstall.cpp b/libraries/logic/java/JavaInstall.cpp index bb262b6e..bb262b6e 100644 --- a/logic/java/JavaInstall.cpp +++ b/libraries/logic/java/JavaInstall.cpp diff --git a/logic/java/JavaInstall.h b/libraries/logic/java/JavaInstall.h index 882c7386..882c7386 100644 --- a/logic/java/JavaInstall.h +++ b/libraries/logic/java/JavaInstall.h diff --git a/logic/java/JavaInstallList.cpp b/libraries/logic/java/JavaInstallList.cpp index c0729227..c0729227 100644 --- a/logic/java/JavaInstallList.cpp +++ b/libraries/logic/java/JavaInstallList.cpp diff --git a/logic/java/JavaInstallList.h b/libraries/logic/java/JavaInstallList.h index cf0e5784..cf0e5784 100644 --- a/logic/java/JavaInstallList.h +++ b/libraries/logic/java/JavaInstallList.h diff --git a/logic/java/JavaUtils.cpp b/libraries/logic/java/JavaUtils.cpp index 88996e9f..88996e9f 100644 --- a/logic/java/JavaUtils.cpp +++ b/libraries/logic/java/JavaUtils.cpp diff --git a/logic/java/JavaUtils.h b/libraries/logic/java/JavaUtils.h index b671d0a5..3fb88341 100644 --- a/logic/java/JavaUtils.h +++ b/libraries/logic/java/JavaUtils.h @@ -16,7 +16,6 @@ #pragma once #include <QStringList> -#include <QWidget> #include "JavaCheckerJob.h" #include "JavaChecker.h" diff --git a/logic/java/JavaVersion.cpp b/libraries/logic/java/JavaVersion.cpp index 84fc48a4..84fc48a4 100644 --- a/logic/java/JavaVersion.cpp +++ b/libraries/logic/java/JavaVersion.cpp diff --git a/logic/java/JavaVersion.h b/libraries/logic/java/JavaVersion.h index f9a733d3..f9a733d3 100644 --- a/logic/java/JavaVersion.h +++ b/libraries/logic/java/JavaVersion.h diff --git a/logic/launch/LaunchStep.cpp b/libraries/logic/launch/LaunchStep.cpp index 3078043b..3078043b 100644 --- a/logic/launch/LaunchStep.cpp +++ b/libraries/logic/launch/LaunchStep.cpp diff --git a/logic/launch/LaunchStep.h b/libraries/logic/launch/LaunchStep.h index ea472c0d..ea472c0d 100644 --- a/logic/launch/LaunchStep.h +++ b/libraries/logic/launch/LaunchStep.h diff --git a/logic/launch/LaunchTask.cpp b/libraries/logic/launch/LaunchTask.cpp index 5b7ff182..5b7ff182 100644 --- a/logic/launch/LaunchTask.cpp +++ b/libraries/logic/launch/LaunchTask.cpp diff --git a/logic/launch/LaunchTask.h b/libraries/logic/launch/LaunchTask.h index 447445ca..447445ca 100644 --- a/logic/launch/LaunchTask.h +++ b/libraries/logic/launch/LaunchTask.h diff --git a/logic/launch/LoggedProcess.cpp b/libraries/logic/launch/LoggedProcess.cpp index 88ca40aa..88ca40aa 100644 --- a/logic/launch/LoggedProcess.cpp +++ b/libraries/logic/launch/LoggedProcess.cpp diff --git a/logic/launch/LoggedProcess.h b/libraries/logic/launch/LoggedProcess.h index baa53d79..baa53d79 100644 --- a/logic/launch/LoggedProcess.h +++ b/libraries/logic/launch/LoggedProcess.h diff --git a/logic/launch/MessageLevel.cpp b/libraries/logic/launch/MessageLevel.cpp index a5191290..a5191290 100644 --- a/logic/launch/MessageLevel.cpp +++ b/libraries/logic/launch/MessageLevel.cpp diff --git a/logic/launch/MessageLevel.h b/libraries/logic/launch/MessageLevel.h index 0128148d..0128148d 100644 --- a/logic/launch/MessageLevel.h +++ b/libraries/logic/launch/MessageLevel.h diff --git a/logic/launch/steps/CheckJava.cpp b/libraries/logic/launch/steps/CheckJava.cpp index a4eaa307..a4eaa307 100644 --- a/logic/launch/steps/CheckJava.cpp +++ b/libraries/logic/launch/steps/CheckJava.cpp diff --git a/logic/launch/steps/CheckJava.h b/libraries/logic/launch/steps/CheckJava.h index b63dd4f4..b63dd4f4 100644 --- a/logic/launch/steps/CheckJava.h +++ b/libraries/logic/launch/steps/CheckJava.h diff --git a/logic/launch/steps/LaunchMinecraft.cpp b/libraries/logic/launch/steps/LaunchMinecraft.cpp index 77a89f17..77a89f17 100644 --- a/logic/launch/steps/LaunchMinecraft.cpp +++ b/libraries/logic/launch/steps/LaunchMinecraft.cpp diff --git a/logic/launch/steps/LaunchMinecraft.h b/libraries/logic/launch/steps/LaunchMinecraft.h index 6b9f7919..6b9f7919 100644 --- a/logic/launch/steps/LaunchMinecraft.h +++ b/libraries/logic/launch/steps/LaunchMinecraft.h diff --git a/logic/launch/steps/ModMinecraftJar.cpp b/libraries/logic/launch/steps/ModMinecraftJar.cpp index fce2d70a..fce2d70a 100644 --- a/logic/launch/steps/ModMinecraftJar.cpp +++ b/libraries/logic/launch/steps/ModMinecraftJar.cpp diff --git a/logic/launch/steps/ModMinecraftJar.h b/libraries/logic/launch/steps/ModMinecraftJar.h index b35dfafa..b35dfafa 100644 --- a/logic/launch/steps/ModMinecraftJar.h +++ b/libraries/logic/launch/steps/ModMinecraftJar.h diff --git a/logic/launch/steps/PostLaunchCommand.cpp b/libraries/logic/launch/steps/PostLaunchCommand.cpp index 29a45f1b..29a45f1b 100644 --- a/logic/launch/steps/PostLaunchCommand.cpp +++ b/libraries/logic/launch/steps/PostLaunchCommand.cpp diff --git a/logic/launch/steps/PostLaunchCommand.h b/libraries/logic/launch/steps/PostLaunchCommand.h index 4d5b0a52..4d5b0a52 100644 --- a/logic/launch/steps/PostLaunchCommand.h +++ b/libraries/logic/launch/steps/PostLaunchCommand.h diff --git a/logic/launch/steps/PreLaunchCommand.cpp b/libraries/logic/launch/steps/PreLaunchCommand.cpp index 47197a82..47197a82 100644 --- a/logic/launch/steps/PreLaunchCommand.cpp +++ b/libraries/logic/launch/steps/PreLaunchCommand.cpp diff --git a/logic/launch/steps/PreLaunchCommand.h b/libraries/logic/launch/steps/PreLaunchCommand.h index 077bdfca..077bdfca 100644 --- a/logic/launch/steps/PreLaunchCommand.h +++ b/libraries/logic/launch/steps/PreLaunchCommand.h diff --git a/logic/launch/steps/TextPrint.cpp b/libraries/logic/launch/steps/TextPrint.cpp index f307b1fd..f307b1fd 100644 --- a/logic/launch/steps/TextPrint.cpp +++ b/libraries/logic/launch/steps/TextPrint.cpp diff --git a/logic/launch/steps/TextPrint.h b/libraries/logic/launch/steps/TextPrint.h index fdd9014a..fdd9014a 100644 --- a/logic/launch/steps/TextPrint.h +++ b/libraries/logic/launch/steps/TextPrint.h diff --git a/logic/launch/steps/Update.cpp b/libraries/logic/launch/steps/Update.cpp index 4901f001..4901f001 100644 --- a/logic/launch/steps/Update.cpp +++ b/libraries/logic/launch/steps/Update.cpp diff --git a/logic/launch/steps/Update.h b/libraries/logic/launch/steps/Update.h index 14928253..14928253 100644 --- a/logic/launch/steps/Update.h +++ b/libraries/logic/launch/steps/Update.h diff --git a/logic/minecraft/AssetsUtils.cpp b/libraries/logic/minecraft/AssetsUtils.cpp index 7a525abe..7a525abe 100644 --- a/logic/minecraft/AssetsUtils.cpp +++ b/libraries/logic/minecraft/AssetsUtils.cpp diff --git a/logic/minecraft/AssetsUtils.h b/libraries/logic/minecraft/AssetsUtils.h index 90251c2d..90251c2d 100644 --- a/logic/minecraft/AssetsUtils.h +++ b/libraries/logic/minecraft/AssetsUtils.h diff --git a/logic/minecraft/GradleSpecifier.h b/libraries/logic/minecraft/GradleSpecifier.h index 18308537..18308537 100644 --- a/logic/minecraft/GradleSpecifier.h +++ b/libraries/logic/minecraft/GradleSpecifier.h diff --git a/logic/minecraft/JarMod.h b/libraries/logic/minecraft/JarMod.h index 42d05da9..42d05da9 100644 --- a/logic/minecraft/JarMod.h +++ b/libraries/logic/minecraft/JarMod.h diff --git a/logic/minecraft/Library.cpp b/libraries/logic/minecraft/Library.cpp index 922db84e..922db84e 100644 --- a/logic/minecraft/Library.cpp +++ b/libraries/logic/minecraft/Library.cpp diff --git a/logic/minecraft/Library.h b/libraries/logic/minecraft/Library.h index fdce93f3..fdce93f3 100644 --- a/logic/minecraft/Library.h +++ b/libraries/logic/minecraft/Library.h diff --git a/logic/minecraft/MinecraftInstance.cpp b/libraries/logic/minecraft/MinecraftInstance.cpp index 405ccd26..405ccd26 100644 --- a/logic/minecraft/MinecraftInstance.cpp +++ b/libraries/logic/minecraft/MinecraftInstance.cpp diff --git a/logic/minecraft/MinecraftInstance.h b/libraries/logic/minecraft/MinecraftInstance.h index cd3a8d90..cd3a8d90 100644 --- a/logic/minecraft/MinecraftInstance.h +++ b/libraries/logic/minecraft/MinecraftInstance.h diff --git a/logic/minecraft/MinecraftProfile.cpp b/libraries/logic/minecraft/MinecraftProfile.cpp index 70d0cee4..70d0cee4 100644 --- a/logic/minecraft/MinecraftProfile.cpp +++ b/libraries/logic/minecraft/MinecraftProfile.cpp diff --git a/logic/minecraft/MinecraftProfile.h b/libraries/logic/minecraft/MinecraftProfile.h index ca9288ad..ca9288ad 100644 --- a/logic/minecraft/MinecraftProfile.h +++ b/libraries/logic/minecraft/MinecraftProfile.h diff --git a/logic/minecraft/MinecraftVersion.cpp b/libraries/logic/minecraft/MinecraftVersion.cpp index 1e1d273c..1e1d273c 100644 --- a/logic/minecraft/MinecraftVersion.cpp +++ b/libraries/logic/minecraft/MinecraftVersion.cpp diff --git a/logic/minecraft/MinecraftVersion.h b/libraries/logic/minecraft/MinecraftVersion.h index b21427d9..b21427d9 100644 --- a/logic/minecraft/MinecraftVersion.h +++ b/libraries/logic/minecraft/MinecraftVersion.h diff --git a/logic/minecraft/MinecraftVersionList.cpp b/libraries/logic/minecraft/MinecraftVersionList.cpp index a5cc3a39..a5cc3a39 100644 --- a/logic/minecraft/MinecraftVersionList.cpp +++ b/libraries/logic/minecraft/MinecraftVersionList.cpp diff --git a/logic/minecraft/MinecraftVersionList.h b/libraries/logic/minecraft/MinecraftVersionList.h index 0fca02a7..0fca02a7 100644 --- a/logic/minecraft/MinecraftVersionList.h +++ b/libraries/logic/minecraft/MinecraftVersionList.h diff --git a/logic/minecraft/Mod.cpp b/libraries/logic/minecraft/Mod.cpp index 9b9f76f9..9b9f76f9 100644 --- a/logic/minecraft/Mod.cpp +++ b/libraries/logic/minecraft/Mod.cpp diff --git a/logic/minecraft/Mod.h b/libraries/logic/minecraft/Mod.h index 19f4c740..19f4c740 100644 --- a/logic/minecraft/Mod.h +++ b/libraries/logic/minecraft/Mod.h diff --git a/logic/minecraft/ModList.cpp b/libraries/logic/minecraft/ModList.cpp index d9ed4886..d9ed4886 100644 --- a/logic/minecraft/ModList.cpp +++ b/libraries/logic/minecraft/ModList.cpp diff --git a/logic/minecraft/ModList.h b/libraries/logic/minecraft/ModList.h index 05ada8ee..05ada8ee 100644 --- a/logic/minecraft/ModList.h +++ b/libraries/logic/minecraft/ModList.h diff --git a/logic/minecraft/MojangDownloadInfo.h b/libraries/logic/minecraft/MojangDownloadInfo.h index 1f3306e0..1f3306e0 100644 --- a/logic/minecraft/MojangDownloadInfo.h +++ b/libraries/logic/minecraft/MojangDownloadInfo.h diff --git a/logic/minecraft/MojangVersionFormat.cpp b/libraries/logic/minecraft/MojangVersionFormat.cpp index 34129c9e..34129c9e 100644 --- a/logic/minecraft/MojangVersionFormat.cpp +++ b/libraries/logic/minecraft/MojangVersionFormat.cpp diff --git a/logic/minecraft/MojangVersionFormat.h b/libraries/logic/minecraft/MojangVersionFormat.h index 4e141088..4e141088 100644 --- a/logic/minecraft/MojangVersionFormat.h +++ b/libraries/logic/minecraft/MojangVersionFormat.h diff --git a/logic/minecraft/OpSys.cpp b/libraries/logic/minecraft/OpSys.cpp index 4c2a236d..4c2a236d 100644 --- a/logic/minecraft/OpSys.cpp +++ b/libraries/logic/minecraft/OpSys.cpp diff --git a/logic/minecraft/OpSys.h b/libraries/logic/minecraft/OpSys.h index 9ebea3de..9ebea3de 100644 --- a/logic/minecraft/OpSys.h +++ b/libraries/logic/minecraft/OpSys.h diff --git a/logic/minecraft/ParseUtils.cpp b/libraries/logic/minecraft/ParseUtils.cpp index ca188432..ca188432 100644 --- a/logic/minecraft/ParseUtils.cpp +++ b/libraries/logic/minecraft/ParseUtils.cpp diff --git a/logic/minecraft/ParseUtils.h b/libraries/logic/minecraft/ParseUtils.h index 2b367a10..2b367a10 100644 --- a/logic/minecraft/ParseUtils.h +++ b/libraries/logic/minecraft/ParseUtils.h diff --git a/logic/minecraft/ProfilePatch.h b/libraries/logic/minecraft/ProfilePatch.h index f0c65360..f0c65360 100644 --- a/logic/minecraft/ProfilePatch.h +++ b/libraries/logic/minecraft/ProfilePatch.h diff --git a/logic/minecraft/ProfileStrategy.h b/libraries/logic/minecraft/ProfileStrategy.h index b4dfc4b3..b4dfc4b3 100644 --- a/logic/minecraft/ProfileStrategy.h +++ b/libraries/logic/minecraft/ProfileStrategy.h diff --git a/logic/minecraft/ProfileUtils.cpp b/libraries/logic/minecraft/ProfileUtils.cpp index ef9b3b28..ef9b3b28 100644 --- a/logic/minecraft/ProfileUtils.cpp +++ b/libraries/logic/minecraft/ProfileUtils.cpp diff --git a/logic/minecraft/ProfileUtils.h b/libraries/logic/minecraft/ProfileUtils.h index 267fd42b..267fd42b 100644 --- a/logic/minecraft/ProfileUtils.h +++ b/libraries/logic/minecraft/ProfileUtils.h diff --git a/logic/minecraft/Rule.cpp b/libraries/logic/minecraft/Rule.cpp index c8ba297b..c8ba297b 100644 --- a/logic/minecraft/Rule.cpp +++ b/libraries/logic/minecraft/Rule.cpp diff --git a/logic/minecraft/Rule.h b/libraries/logic/minecraft/Rule.h index c8bf6eaa..c8bf6eaa 100644 --- a/logic/minecraft/Rule.h +++ b/libraries/logic/minecraft/Rule.h diff --git a/logic/minecraft/VersionBuildError.h b/libraries/logic/minecraft/VersionBuildError.h index fda453e5..fda453e5 100644 --- a/logic/minecraft/VersionBuildError.h +++ b/libraries/logic/minecraft/VersionBuildError.h diff --git a/logic/minecraft/VersionFile.cpp b/libraries/logic/minecraft/VersionFile.cpp index 573c4cb4..573c4cb4 100644 --- a/logic/minecraft/VersionFile.cpp +++ b/libraries/logic/minecraft/VersionFile.cpp diff --git a/logic/minecraft/VersionFile.h b/libraries/logic/minecraft/VersionFile.h index 1b692f0f..1b692f0f 100644 --- a/logic/minecraft/VersionFile.h +++ b/libraries/logic/minecraft/VersionFile.h diff --git a/logic/minecraft/VersionFilterData.cpp b/libraries/logic/minecraft/VersionFilterData.cpp index 0c4a6e3d..0c4a6e3d 100644 --- a/logic/minecraft/VersionFilterData.cpp +++ b/libraries/logic/minecraft/VersionFilterData.cpp diff --git a/logic/minecraft/VersionFilterData.h b/libraries/logic/minecraft/VersionFilterData.h index f7d4ebe7..f7d4ebe7 100644 --- a/logic/minecraft/VersionFilterData.h +++ b/libraries/logic/minecraft/VersionFilterData.h diff --git a/logic/minecraft/World.cpp b/libraries/logic/minecraft/World.cpp index 6081a8ec..6081a8ec 100644 --- a/logic/minecraft/World.cpp +++ b/libraries/logic/minecraft/World.cpp diff --git a/logic/minecraft/World.h b/libraries/logic/minecraft/World.h index 3cde5ea4..3cde5ea4 100644 --- a/logic/minecraft/World.h +++ b/libraries/logic/minecraft/World.h diff --git a/logic/minecraft/WorldList.cpp b/libraries/logic/minecraft/WorldList.cpp index 42c8a3e6..42c8a3e6 100644 --- a/logic/minecraft/WorldList.cpp +++ b/libraries/logic/minecraft/WorldList.cpp diff --git a/logic/minecraft/WorldList.h b/libraries/logic/minecraft/WorldList.h index 34b30e9c..34b30e9c 100644 --- a/logic/minecraft/WorldList.h +++ b/libraries/logic/minecraft/WorldList.h diff --git a/logic/minecraft/auth/AuthSession.cpp b/libraries/logic/minecraft/auth/AuthSession.cpp index 8758bfbd..8758bfbd 100644 --- a/logic/minecraft/auth/AuthSession.cpp +++ b/libraries/logic/minecraft/auth/AuthSession.cpp diff --git a/logic/minecraft/auth/AuthSession.h b/libraries/logic/minecraft/auth/AuthSession.h index dede90a9..dede90a9 100644 --- a/logic/minecraft/auth/AuthSession.h +++ b/libraries/logic/minecraft/auth/AuthSession.h diff --git a/logic/minecraft/auth/MojangAccount.cpp b/libraries/logic/minecraft/auth/MojangAccount.cpp index 69a24c09..69a24c09 100644 --- a/logic/minecraft/auth/MojangAccount.cpp +++ b/libraries/logic/minecraft/auth/MojangAccount.cpp diff --git a/logic/minecraft/auth/MojangAccount.h b/libraries/logic/minecraft/auth/MojangAccount.h index 2de0c19c..2de0c19c 100644 --- a/logic/minecraft/auth/MojangAccount.h +++ b/libraries/logic/minecraft/auth/MojangAccount.h diff --git a/logic/minecraft/auth/MojangAccountList.cpp b/libraries/logic/minecraft/auth/MojangAccountList.cpp index 26cbc81a..26cbc81a 100644 --- a/logic/minecraft/auth/MojangAccountList.cpp +++ b/libraries/logic/minecraft/auth/MojangAccountList.cpp diff --git a/logic/minecraft/auth/MojangAccountList.h b/libraries/logic/minecraft/auth/MojangAccountList.h index c40fa6a3..c40fa6a3 100644 --- a/logic/minecraft/auth/MojangAccountList.h +++ b/libraries/logic/minecraft/auth/MojangAccountList.h diff --git a/logic/minecraft/auth/YggdrasilTask.cpp b/libraries/logic/minecraft/auth/YggdrasilTask.cpp index c6971c9f..c6971c9f 100644 --- a/logic/minecraft/auth/YggdrasilTask.cpp +++ b/libraries/logic/minecraft/auth/YggdrasilTask.cpp diff --git a/logic/minecraft/auth/YggdrasilTask.h b/libraries/logic/minecraft/auth/YggdrasilTask.h index c84cfc06..c84cfc06 100644 --- a/logic/minecraft/auth/YggdrasilTask.h +++ b/libraries/logic/minecraft/auth/YggdrasilTask.h diff --git a/logic/minecraft/auth/flows/AuthenticateTask.cpp b/libraries/logic/minecraft/auth/flows/AuthenticateTask.cpp index 8d136f0b..8d136f0b 100644 --- a/logic/minecraft/auth/flows/AuthenticateTask.cpp +++ b/libraries/logic/minecraft/auth/flows/AuthenticateTask.cpp diff --git a/logic/minecraft/auth/flows/AuthenticateTask.h b/libraries/logic/minecraft/auth/flows/AuthenticateTask.h index 398fab98..398fab98 100644 --- a/logic/minecraft/auth/flows/AuthenticateTask.h +++ b/libraries/logic/minecraft/auth/flows/AuthenticateTask.h diff --git a/logic/minecraft/auth/flows/RefreshTask.cpp b/libraries/logic/minecraft/auth/flows/RefreshTask.cpp index a0fb2e48..a0fb2e48 100644 --- a/logic/minecraft/auth/flows/RefreshTask.cpp +++ b/libraries/logic/minecraft/auth/flows/RefreshTask.cpp diff --git a/logic/minecraft/auth/flows/RefreshTask.h b/libraries/logic/minecraft/auth/flows/RefreshTask.h index 17714b4f..17714b4f 100644 --- a/logic/minecraft/auth/flows/RefreshTask.h +++ b/libraries/logic/minecraft/auth/flows/RefreshTask.h diff --git a/logic/minecraft/auth/flows/ValidateTask.cpp b/libraries/logic/minecraft/auth/flows/ValidateTask.cpp index 4deceb6a..4deceb6a 100644 --- a/logic/minecraft/auth/flows/ValidateTask.cpp +++ b/libraries/logic/minecraft/auth/flows/ValidateTask.cpp diff --git a/logic/minecraft/auth/flows/ValidateTask.h b/libraries/logic/minecraft/auth/flows/ValidateTask.h index 77d628a0..77d628a0 100644 --- a/logic/minecraft/auth/flows/ValidateTask.h +++ b/libraries/logic/minecraft/auth/flows/ValidateTask.h diff --git a/logic/minecraft/forge/ForgeInstaller.cpp b/libraries/logic/minecraft/forge/ForgeInstaller.cpp index 353328ab..353328ab 100644 --- a/logic/minecraft/forge/ForgeInstaller.cpp +++ b/libraries/logic/minecraft/forge/ForgeInstaller.cpp diff --git a/logic/minecraft/forge/ForgeInstaller.h b/libraries/logic/minecraft/forge/ForgeInstaller.h index 499a6fb3..499a6fb3 100644 --- a/logic/minecraft/forge/ForgeInstaller.h +++ b/libraries/logic/minecraft/forge/ForgeInstaller.h diff --git a/logic/minecraft/forge/ForgeVersion.cpp b/libraries/logic/minecraft/forge/ForgeVersion.cpp index b859a28c..b859a28c 100644 --- a/logic/minecraft/forge/ForgeVersion.cpp +++ b/libraries/logic/minecraft/forge/ForgeVersion.cpp diff --git a/logic/minecraft/forge/ForgeVersion.h b/libraries/logic/minecraft/forge/ForgeVersion.h index e77d32f1..e77d32f1 100644 --- a/logic/minecraft/forge/ForgeVersion.h +++ b/libraries/logic/minecraft/forge/ForgeVersion.h diff --git a/logic/minecraft/forge/ForgeVersionList.cpp b/libraries/logic/minecraft/forge/ForgeVersionList.cpp index de185e5f..de185e5f 100644 --- a/logic/minecraft/forge/ForgeVersionList.cpp +++ b/libraries/logic/minecraft/forge/ForgeVersionList.cpp diff --git a/logic/minecraft/forge/ForgeVersionList.h b/libraries/logic/minecraft/forge/ForgeVersionList.h index 62c08b2a..62c08b2a 100644 --- a/logic/minecraft/forge/ForgeVersionList.h +++ b/libraries/logic/minecraft/forge/ForgeVersionList.h diff --git a/logic/minecraft/forge/ForgeXzDownload.cpp b/libraries/logic/minecraft/forge/ForgeXzDownload.cpp index adf96552..adf96552 100644 --- a/logic/minecraft/forge/ForgeXzDownload.cpp +++ b/libraries/logic/minecraft/forge/ForgeXzDownload.cpp diff --git a/logic/minecraft/forge/ForgeXzDownload.h b/libraries/logic/minecraft/forge/ForgeXzDownload.h index 67524405..67524405 100644 --- a/logic/minecraft/forge/ForgeXzDownload.h +++ b/libraries/logic/minecraft/forge/ForgeXzDownload.h diff --git a/logic/minecraft/forge/LegacyForge.cpp b/libraries/logic/minecraft/forge/LegacyForge.cpp index aa2c8063..aa2c8063 100644 --- a/logic/minecraft/forge/LegacyForge.cpp +++ b/libraries/logic/minecraft/forge/LegacyForge.cpp diff --git a/logic/minecraft/forge/LegacyForge.h b/libraries/logic/minecraft/forge/LegacyForge.h index f51d5e85..f51d5e85 100644 --- a/logic/minecraft/forge/LegacyForge.h +++ b/libraries/logic/minecraft/forge/LegacyForge.h diff --git a/logic/minecraft/ftb/FTBPlugin.cpp b/libraries/logic/minecraft/ftb/FTBPlugin.cpp index 8a08f916..a142c106 100644 --- a/logic/minecraft/ftb/FTBPlugin.cpp +++ b/libraries/logic/minecraft/ftb/FTBPlugin.cpp @@ -1,9 +1,9 @@ #include "FTBPlugin.h" +#include <Env.h> #include "FTBVersion.h" #include "LegacyFTBInstance.h" #include "OneSixFTBInstance.h" #include <BaseInstance.h> -#include <icons/IconList.h> #include <InstanceList.h> #include <minecraft/MinecraftVersionList.h> #include <settings/INISettingsObject.h> @@ -257,7 +257,7 @@ void FTBPlugin::loadInstances(SettingsObjectPtr globalSettings, QMap<QString, QS { qDebug() << "Loading FTB instance from " << record.instanceDir; QString iconKey = record.iconKey; - ENV.icons()->addIcon(iconKey, iconKey, FS::PathCombine(record.templateDir, record.logo), MMCIcon::Transient); + // MMC->icons()->addIcon(iconKey, iconKey, FS::PathCombine(record.templateDir, record.logo), MMCIcon::Transient); auto settingsFilePath = FS::PathCombine(record.instanceDir, "instance.cfg"); qDebug() << "ICON get!"; diff --git a/logic/minecraft/ftb/FTBPlugin.h b/libraries/logic/minecraft/ftb/FTBPlugin.h index 6851d8a5..6851d8a5 100644 --- a/logic/minecraft/ftb/FTBPlugin.h +++ b/libraries/logic/minecraft/ftb/FTBPlugin.h diff --git a/logic/minecraft/ftb/FTBProfileStrategy.cpp b/libraries/logic/minecraft/ftb/FTBProfileStrategy.cpp index f5faacae..f5faacae 100644 --- a/logic/minecraft/ftb/FTBProfileStrategy.cpp +++ b/libraries/logic/minecraft/ftb/FTBProfileStrategy.cpp diff --git a/logic/minecraft/ftb/FTBProfileStrategy.h b/libraries/logic/minecraft/ftb/FTBProfileStrategy.h index 522af098..522af098 100644 --- a/logic/minecraft/ftb/FTBProfileStrategy.h +++ b/libraries/logic/minecraft/ftb/FTBProfileStrategy.h diff --git a/logic/minecraft/ftb/FTBVersion.h b/libraries/logic/minecraft/ftb/FTBVersion.h index 805319b4..805319b4 100644 --- a/logic/minecraft/ftb/FTBVersion.h +++ b/libraries/logic/minecraft/ftb/FTBVersion.h diff --git a/logic/minecraft/ftb/LegacyFTBInstance.cpp b/libraries/logic/minecraft/ftb/LegacyFTBInstance.cpp index a7091f1d..a7091f1d 100644 --- a/logic/minecraft/ftb/LegacyFTBInstance.cpp +++ b/libraries/logic/minecraft/ftb/LegacyFTBInstance.cpp diff --git a/logic/minecraft/ftb/LegacyFTBInstance.h b/libraries/logic/minecraft/ftb/LegacyFTBInstance.h index 7178bca4..7178bca4 100644 --- a/logic/minecraft/ftb/LegacyFTBInstance.h +++ b/libraries/logic/minecraft/ftb/LegacyFTBInstance.h diff --git a/logic/minecraft/ftb/OneSixFTBInstance.cpp b/libraries/logic/minecraft/ftb/OneSixFTBInstance.cpp index 81e939a1..81e939a1 100644 --- a/logic/minecraft/ftb/OneSixFTBInstance.cpp +++ b/libraries/logic/minecraft/ftb/OneSixFTBInstance.cpp diff --git a/logic/minecraft/ftb/OneSixFTBInstance.h b/libraries/logic/minecraft/ftb/OneSixFTBInstance.h index e7f8f485..e7f8f485 100644 --- a/logic/minecraft/ftb/OneSixFTBInstance.h +++ b/libraries/logic/minecraft/ftb/OneSixFTBInstance.h diff --git a/logic/minecraft/legacy/LegacyInstance.cpp b/libraries/logic/minecraft/legacy/LegacyInstance.cpp index 6650598d..f8264f20 100644 --- a/logic/minecraft/legacy/LegacyInstance.cpp +++ b/libraries/logic/minecraft/legacy/LegacyInstance.cpp @@ -15,13 +15,11 @@ #include <QFileInfo> #include <QDir> -#include <QImage> #include <settings/Setting.h> #include "LegacyInstance.h" #include "minecraft/legacy/LegacyUpdate.h" -#include "icons/IconList.h" #include "launch/LaunchTask.h" #include <launch/steps/LaunchMinecraft.h> #include <launch/steps/PostLaunchCommand.h> @@ -105,10 +103,6 @@ std::shared_ptr<Task> LegacyInstance::createUpdateTask() std::shared_ptr<LaunchTask> LegacyInstance::createLaunchTask(AuthSessionPtr session) { - QIcon icon = ENV.icons()->getIcon(iconKey()); - auto pixmap = icon.pixmap(128, 128); - pixmap.save(FS::PathCombine(minecraftRoot(), "icon.png"), "PNG"); - auto process = LaunchTask::create(std::dynamic_pointer_cast<MinecraftInstance>(getSharedPtr())); auto pptr = process.get(); diff --git a/logic/minecraft/legacy/LegacyInstance.h b/libraries/logic/minecraft/legacy/LegacyInstance.h index 3bef240d..3bef240d 100644 --- a/logic/minecraft/legacy/LegacyInstance.h +++ b/libraries/logic/minecraft/legacy/LegacyInstance.h diff --git a/logic/minecraft/legacy/LegacyUpdate.cpp b/libraries/logic/minecraft/legacy/LegacyUpdate.cpp index 2d7e8dd2..2d7e8dd2 100644 --- a/logic/minecraft/legacy/LegacyUpdate.cpp +++ b/libraries/logic/minecraft/legacy/LegacyUpdate.cpp diff --git a/logic/minecraft/legacy/LegacyUpdate.h b/libraries/logic/minecraft/legacy/LegacyUpdate.h index c52bf934..c52bf934 100644 --- a/logic/minecraft/legacy/LegacyUpdate.h +++ b/libraries/logic/minecraft/legacy/LegacyUpdate.h diff --git a/logic/minecraft/legacy/LwjglVersionList.cpp b/libraries/logic/minecraft/legacy/LwjglVersionList.cpp index bb017368..bb017368 100644 --- a/logic/minecraft/legacy/LwjglVersionList.cpp +++ b/libraries/logic/minecraft/legacy/LwjglVersionList.cpp diff --git a/logic/minecraft/legacy/LwjglVersionList.h b/libraries/logic/minecraft/legacy/LwjglVersionList.h index f043f6e2..f043f6e2 100644 --- a/logic/minecraft/legacy/LwjglVersionList.h +++ b/libraries/logic/minecraft/legacy/LwjglVersionList.h diff --git a/logic/minecraft/liteloader/LiteLoaderInstaller.cpp b/libraries/logic/minecraft/liteloader/LiteLoaderInstaller.cpp index 25297fa4..25297fa4 100644 --- a/logic/minecraft/liteloader/LiteLoaderInstaller.cpp +++ b/libraries/logic/minecraft/liteloader/LiteLoaderInstaller.cpp diff --git a/logic/minecraft/liteloader/LiteLoaderInstaller.h b/libraries/logic/minecraft/liteloader/LiteLoaderInstaller.h index fe0aee3d..fe0aee3d 100644 --- a/logic/minecraft/liteloader/LiteLoaderInstaller.h +++ b/libraries/logic/minecraft/liteloader/LiteLoaderInstaller.h diff --git a/logic/minecraft/liteloader/LiteLoaderVersionList.cpp b/libraries/logic/minecraft/liteloader/LiteLoaderVersionList.cpp index b0c9736a..b0c9736a 100644 --- a/logic/minecraft/liteloader/LiteLoaderVersionList.cpp +++ b/libraries/logic/minecraft/liteloader/LiteLoaderVersionList.cpp diff --git a/logic/minecraft/liteloader/LiteLoaderVersionList.h b/libraries/logic/minecraft/liteloader/LiteLoaderVersionList.h index 1dba4b6a..1dba4b6a 100644 --- a/logic/minecraft/liteloader/LiteLoaderVersionList.h +++ b/libraries/logic/minecraft/liteloader/LiteLoaderVersionList.h diff --git a/logic/minecraft/onesix/OneSixInstance.cpp b/libraries/logic/minecraft/onesix/OneSixInstance.cpp index 8d46eefc..258e26c5 100644 --- a/logic/minecraft/onesix/OneSixInstance.cpp +++ b/libraries/logic/minecraft/onesix/OneSixInstance.cpp @@ -13,8 +13,8 @@ * limitations under the License. */ -#include <QIcon> #include <QDebug> +#include <Env.h> #include "OneSixInstance.h" #include "OneSixUpdate.h" @@ -33,7 +33,6 @@ #include "MMCZip.h" #include "minecraft/AssetsUtils.h" -#include "icons/IconList.h" #include "minecraft/WorldList.h" #include <FileSystem.h> @@ -146,9 +145,6 @@ QStringList OneSixInstance::processMinecraftArgs(AuthSessionPtr session) QString OneSixInstance::createLaunchScript(AuthSessionPtr session) { QString launchScript; - QIcon icon = ENV.icons()->getIcon(iconKey()); - auto pixmap = icon.pixmap(128, 128); - pixmap.save(FS::PathCombine(minecraftRoot(), "icon.png"), "PNG"); if (!m_profile) return nullptr; diff --git a/logic/minecraft/onesix/OneSixInstance.h b/libraries/logic/minecraft/onesix/OneSixInstance.h index 2dfab48c..2dfab48c 100644 --- a/logic/minecraft/onesix/OneSixInstance.h +++ b/libraries/logic/minecraft/onesix/OneSixInstance.h diff --git a/logic/minecraft/onesix/OneSixProfileStrategy.cpp b/libraries/logic/minecraft/onesix/OneSixProfileStrategy.cpp index af42286d..af42286d 100644 --- a/logic/minecraft/onesix/OneSixProfileStrategy.cpp +++ b/libraries/logic/minecraft/onesix/OneSixProfileStrategy.cpp diff --git a/logic/minecraft/onesix/OneSixProfileStrategy.h b/libraries/logic/minecraft/onesix/OneSixProfileStrategy.h index 96c1ba7b..96c1ba7b 100644 --- a/logic/minecraft/onesix/OneSixProfileStrategy.h +++ b/libraries/logic/minecraft/onesix/OneSixProfileStrategy.h diff --git a/logic/minecraft/onesix/OneSixUpdate.cpp b/libraries/logic/minecraft/onesix/OneSixUpdate.cpp index 1c2cd196..1c2cd196 100644 --- a/logic/minecraft/onesix/OneSixUpdate.cpp +++ b/libraries/logic/minecraft/onesix/OneSixUpdate.cpp diff --git a/logic/minecraft/onesix/OneSixUpdate.h b/libraries/logic/minecraft/onesix/OneSixUpdate.h index b5195364..b5195364 100644 --- a/logic/minecraft/onesix/OneSixUpdate.h +++ b/libraries/logic/minecraft/onesix/OneSixUpdate.h diff --git a/logic/minecraft/onesix/OneSixVersionFormat.cpp b/libraries/logic/minecraft/onesix/OneSixVersionFormat.cpp index 541fb109..541fb109 100644 --- a/logic/minecraft/onesix/OneSixVersionFormat.cpp +++ b/libraries/logic/minecraft/onesix/OneSixVersionFormat.cpp diff --git a/logic/minecraft/onesix/OneSixVersionFormat.h b/libraries/logic/minecraft/onesix/OneSixVersionFormat.h index 5696e79e..5696e79e 100644 --- a/logic/minecraft/onesix/OneSixVersionFormat.h +++ b/libraries/logic/minecraft/onesix/OneSixVersionFormat.h diff --git a/logic/net/ByteArrayDownload.cpp b/libraries/logic/net/ByteArrayDownload.cpp index 21990eeb..21990eeb 100644 --- a/logic/net/ByteArrayDownload.cpp +++ b/libraries/logic/net/ByteArrayDownload.cpp diff --git a/logic/net/ByteArrayDownload.h b/libraries/logic/net/ByteArrayDownload.h index e2fc2911..e2fc2911 100644 --- a/logic/net/ByteArrayDownload.h +++ b/libraries/logic/net/ByteArrayDownload.h diff --git a/logic/net/CacheDownload.cpp b/libraries/logic/net/CacheDownload.cpp index 1ac55180..1ac55180 100644 --- a/logic/net/CacheDownload.cpp +++ b/libraries/logic/net/CacheDownload.cpp diff --git a/logic/net/CacheDownload.h b/libraries/logic/net/CacheDownload.h index d83b2a0f..d83b2a0f 100644 --- a/logic/net/CacheDownload.h +++ b/libraries/logic/net/CacheDownload.h diff --git a/logic/net/HttpMetaCache.cpp b/libraries/logic/net/HttpMetaCache.cpp index ea3e2834..ea3e2834 100644 --- a/logic/net/HttpMetaCache.cpp +++ b/libraries/logic/net/HttpMetaCache.cpp diff --git a/logic/net/HttpMetaCache.h b/libraries/logic/net/HttpMetaCache.h index 7b626c70..7b626c70 100644 --- a/logic/net/HttpMetaCache.h +++ b/libraries/logic/net/HttpMetaCache.h diff --git a/logic/net/MD5EtagDownload.cpp b/libraries/logic/net/MD5EtagDownload.cpp index 3b4d5dcd..3b4d5dcd 100644 --- a/logic/net/MD5EtagDownload.cpp +++ b/libraries/logic/net/MD5EtagDownload.cpp diff --git a/logic/net/MD5EtagDownload.h b/libraries/logic/net/MD5EtagDownload.h index cd1cb550..cd1cb550 100644 --- a/logic/net/MD5EtagDownload.h +++ b/libraries/logic/net/MD5EtagDownload.h diff --git a/logic/net/NetAction.h b/libraries/logic/net/NetAction.h index 3c395605..3c395605 100644 --- a/logic/net/NetAction.h +++ b/libraries/logic/net/NetAction.h diff --git a/logic/net/NetJob.cpp b/libraries/logic/net/NetJob.cpp index 76c61c35..76c61c35 100644 --- a/logic/net/NetJob.cpp +++ b/libraries/logic/net/NetJob.cpp diff --git a/logic/net/NetJob.h b/libraries/logic/net/NetJob.h index afbe9ff3..167fe176 100644 --- a/logic/net/NetJob.h +++ b/libraries/logic/net/NetJob.h @@ -15,7 +15,6 @@ #pragma once #include <QtNetwork> -#include <QLabel> #include "NetAction.h" #include "ByteArrayDownload.h" #include "MD5EtagDownload.h" diff --git a/logic/net/PasteUpload.cpp b/libraries/logic/net/PasteUpload.cpp index 4b671d6f..4b671d6f 100644 --- a/logic/net/PasteUpload.cpp +++ b/libraries/logic/net/PasteUpload.cpp diff --git a/logic/net/PasteUpload.h b/libraries/logic/net/PasteUpload.h index 5bc3d276..06e3f955 100644 --- a/logic/net/PasteUpload.h +++ b/libraries/logic/net/PasteUpload.h @@ -1,6 +1,5 @@ #pragma once #include "tasks/Task.h" -#include <QMessageBox> #include <QNetworkReply> #include <QBuffer> #include <memory> diff --git a/logic/net/URLConstants.cpp b/libraries/logic/net/URLConstants.cpp index bd476b2c..bd476b2c 100644 --- a/logic/net/URLConstants.cpp +++ b/libraries/logic/net/URLConstants.cpp diff --git a/logic/net/URLConstants.h b/libraries/logic/net/URLConstants.h index 8923ef54..8923ef54 100644 --- a/logic/net/URLConstants.h +++ b/libraries/logic/net/URLConstants.h diff --git a/logic/news/NewsChecker.cpp b/libraries/logic/news/NewsChecker.cpp index be4aa1d1..be4aa1d1 100644 --- a/logic/news/NewsChecker.cpp +++ b/libraries/logic/news/NewsChecker.cpp diff --git a/logic/news/NewsChecker.h b/libraries/logic/news/NewsChecker.h index b8b90728..b8b90728 100644 --- a/logic/news/NewsChecker.h +++ b/libraries/logic/news/NewsChecker.h diff --git a/logic/news/NewsEntry.cpp b/libraries/logic/news/NewsEntry.cpp index 79abbaa3..79abbaa3 100644 --- a/logic/news/NewsEntry.cpp +++ b/libraries/logic/news/NewsEntry.cpp diff --git a/logic/news/NewsEntry.h b/libraries/logic/news/NewsEntry.h index adb79e8f..adb79e8f 100644 --- a/logic/news/NewsEntry.h +++ b/libraries/logic/news/NewsEntry.h diff --git a/logic/notifications/NotificationChecker.cpp b/libraries/logic/notifications/NotificationChecker.cpp index ab2570b7..ab2570b7 100644 --- a/logic/notifications/NotificationChecker.cpp +++ b/libraries/logic/notifications/NotificationChecker.cpp diff --git a/logic/notifications/NotificationChecker.h b/libraries/logic/notifications/NotificationChecker.h index a2d92ab9..a2d92ab9 100644 --- a/logic/notifications/NotificationChecker.h +++ b/libraries/logic/notifications/NotificationChecker.h diff --git a/logic/pathmatcher/FSTreeMatcher.h b/libraries/logic/pathmatcher/FSTreeMatcher.h index a5bed57c..a5bed57c 100644 --- a/logic/pathmatcher/FSTreeMatcher.h +++ b/libraries/logic/pathmatcher/FSTreeMatcher.h diff --git a/logic/pathmatcher/IPathMatcher.h b/libraries/logic/pathmatcher/IPathMatcher.h index 1d410947..1d410947 100644 --- a/logic/pathmatcher/IPathMatcher.h +++ b/libraries/logic/pathmatcher/IPathMatcher.h diff --git a/logic/pathmatcher/MultiMatcher.h b/libraries/logic/pathmatcher/MultiMatcher.h index 91f70aa4..91f70aa4 100644 --- a/logic/pathmatcher/MultiMatcher.h +++ b/libraries/logic/pathmatcher/MultiMatcher.h diff --git a/logic/pathmatcher/RegexpMatcher.h b/libraries/logic/pathmatcher/RegexpMatcher.h index da552123..da552123 100644 --- a/logic/pathmatcher/RegexpMatcher.h +++ b/libraries/logic/pathmatcher/RegexpMatcher.h diff --git a/logic/resources/Resource.cpp b/libraries/logic/resources/Resource.cpp index e95675d7..e95675d7 100644 --- a/logic/resources/Resource.cpp +++ b/libraries/logic/resources/Resource.cpp diff --git a/logic/resources/Resource.h b/libraries/logic/resources/Resource.h index 63e97b88..63e97b88 100644 --- a/logic/resources/Resource.h +++ b/libraries/logic/resources/Resource.h diff --git a/logic/resources/ResourceHandler.cpp b/libraries/logic/resources/ResourceHandler.cpp index 46a4422c..46a4422c 100644 --- a/logic/resources/ResourceHandler.cpp +++ b/libraries/logic/resources/ResourceHandler.cpp diff --git a/logic/resources/ResourceHandler.h b/libraries/logic/resources/ResourceHandler.h index f09d8904..f09d8904 100644 --- a/logic/resources/ResourceHandler.h +++ b/libraries/logic/resources/ResourceHandler.h diff --git a/logic/resources/ResourceObserver.cpp b/libraries/logic/resources/ResourceObserver.cpp index 4f168fd2..4f168fd2 100644 --- a/logic/resources/ResourceObserver.cpp +++ b/libraries/logic/resources/ResourceObserver.cpp diff --git a/logic/resources/ResourceObserver.h b/libraries/logic/resources/ResourceObserver.h index c42e41ba..c42e41ba 100644 --- a/logic/resources/ResourceObserver.h +++ b/libraries/logic/resources/ResourceObserver.h diff --git a/logic/resources/ResourceProxyModel.cpp b/libraries/logic/resources/ResourceProxyModel.cpp index f026d9a9..f026d9a9 100644 --- a/logic/resources/ResourceProxyModel.cpp +++ b/libraries/logic/resources/ResourceProxyModel.cpp diff --git a/logic/resources/ResourceProxyModel.h b/libraries/logic/resources/ResourceProxyModel.h index 98a3dbd1..98a3dbd1 100644 --- a/logic/resources/ResourceProxyModel.h +++ b/libraries/logic/resources/ResourceProxyModel.h diff --git a/logic/screenshots/ImgurAlbumCreation.cpp b/libraries/logic/screenshots/ImgurAlbumCreation.cpp index e009ef4d..e009ef4d 100644 --- a/logic/screenshots/ImgurAlbumCreation.cpp +++ b/libraries/logic/screenshots/ImgurAlbumCreation.cpp diff --git a/logic/screenshots/ImgurAlbumCreation.h b/libraries/logic/screenshots/ImgurAlbumCreation.h index 469174e4..469174e4 100644 --- a/logic/screenshots/ImgurAlbumCreation.h +++ b/libraries/logic/screenshots/ImgurAlbumCreation.h diff --git a/logic/screenshots/ImgurUpload.cpp b/libraries/logic/screenshots/ImgurUpload.cpp index 48e0ec18..48e0ec18 100644 --- a/logic/screenshots/ImgurUpload.cpp +++ b/libraries/logic/screenshots/ImgurUpload.cpp diff --git a/logic/screenshots/ImgurUpload.h b/libraries/logic/screenshots/ImgurUpload.h index 0a766b8f..0a766b8f 100644 --- a/logic/screenshots/ImgurUpload.h +++ b/libraries/logic/screenshots/ImgurUpload.h diff --git a/logic/screenshots/Screenshot.h b/libraries/logic/screenshots/Screenshot.h index b48cbe99..b48cbe99 100644 --- a/logic/screenshots/Screenshot.h +++ b/libraries/logic/screenshots/Screenshot.h diff --git a/logic/settings/INIFile.cpp b/libraries/logic/settings/INIFile.cpp index 69a6b87e..69a6b87e 100644 --- a/logic/settings/INIFile.cpp +++ b/libraries/logic/settings/INIFile.cpp diff --git a/logic/settings/INIFile.h b/libraries/logic/settings/INIFile.h index 5013eb2d..5013eb2d 100644 --- a/logic/settings/INIFile.h +++ b/libraries/logic/settings/INIFile.h diff --git a/logic/settings/INISettingsObject.cpp b/libraries/logic/settings/INISettingsObject.cpp index 5ccc7446..5ccc7446 100644 --- a/logic/settings/INISettingsObject.cpp +++ b/libraries/logic/settings/INISettingsObject.cpp diff --git a/logic/settings/INISettingsObject.h b/libraries/logic/settings/INISettingsObject.h index 4afa2a2c..4afa2a2c 100644 --- a/logic/settings/INISettingsObject.h +++ b/libraries/logic/settings/INISettingsObject.h diff --git a/logic/settings/OverrideSetting.cpp b/libraries/logic/settings/OverrideSetting.cpp index 25162dff..25162dff 100644 --- a/logic/settings/OverrideSetting.cpp +++ b/libraries/logic/settings/OverrideSetting.cpp diff --git a/logic/settings/OverrideSetting.h b/libraries/logic/settings/OverrideSetting.h index 68595cde..68595cde 100644 --- a/logic/settings/OverrideSetting.h +++ b/libraries/logic/settings/OverrideSetting.h diff --git a/logic/settings/PassthroughSetting.cpp b/libraries/logic/settings/PassthroughSetting.cpp index 45a560de..45a560de 100644 --- a/logic/settings/PassthroughSetting.cpp +++ b/libraries/logic/settings/PassthroughSetting.cpp diff --git a/logic/settings/PassthroughSetting.h b/libraries/logic/settings/PassthroughSetting.h index c4dc646c..c4dc646c 100644 --- a/logic/settings/PassthroughSetting.h +++ b/libraries/logic/settings/PassthroughSetting.h diff --git a/logic/settings/Setting.cpp b/libraries/logic/settings/Setting.cpp index b17101a2..b17101a2 100644 --- a/logic/settings/Setting.cpp +++ b/libraries/logic/settings/Setting.cpp diff --git a/logic/settings/Setting.h b/libraries/logic/settings/Setting.h index 6d53ac6d..6d53ac6d 100644 --- a/logic/settings/Setting.h +++ b/libraries/logic/settings/Setting.h diff --git a/logic/settings/SettingsObject.cpp b/libraries/logic/settings/SettingsObject.cpp index f2ffdf9b..f2ffdf9b 100644 --- a/logic/settings/SettingsObject.cpp +++ b/libraries/logic/settings/SettingsObject.cpp diff --git a/logic/settings/SettingsObject.h b/libraries/logic/settings/SettingsObject.h index 82193903..82193903 100644 --- a/logic/settings/SettingsObject.h +++ b/libraries/logic/settings/SettingsObject.h diff --git a/logic/status/StatusChecker.cpp b/libraries/logic/status/StatusChecker.cpp index 13cac037..13cac037 100644 --- a/logic/status/StatusChecker.cpp +++ b/libraries/logic/status/StatusChecker.cpp diff --git a/logic/status/StatusChecker.h b/libraries/logic/status/StatusChecker.h index c1a54dba..c1a54dba 100644 --- a/logic/status/StatusChecker.h +++ b/libraries/logic/status/StatusChecker.h diff --git a/logic/tasks/SequentialTask.cpp b/libraries/logic/tasks/SequentialTask.cpp index ac0e7820..ac0e7820 100644 --- a/logic/tasks/SequentialTask.cpp +++ b/libraries/logic/tasks/SequentialTask.cpp diff --git a/logic/tasks/SequentialTask.h b/libraries/logic/tasks/SequentialTask.h index 69031095..69031095 100644 --- a/logic/tasks/SequentialTask.h +++ b/libraries/logic/tasks/SequentialTask.h diff --git a/logic/tasks/Task.cpp b/libraries/logic/tasks/Task.cpp index 3c4e3188..3c4e3188 100644 --- a/logic/tasks/Task.cpp +++ b/libraries/logic/tasks/Task.cpp diff --git a/logic/tasks/Task.h b/libraries/logic/tasks/Task.h index 2b0ccbcd..2b0ccbcd 100644 --- a/logic/tasks/Task.h +++ b/libraries/logic/tasks/Task.h diff --git a/logic/tasks/ThreadTask.cpp b/libraries/logic/tasks/ThreadTask.cpp index ddd1dee5..ddd1dee5 100644 --- a/logic/tasks/ThreadTask.cpp +++ b/libraries/logic/tasks/ThreadTask.cpp diff --git a/logic/tasks/ThreadTask.h b/libraries/logic/tasks/ThreadTask.h index 718dbc91..718dbc91 100644 --- a/logic/tasks/ThreadTask.h +++ b/libraries/logic/tasks/ThreadTask.h diff --git a/logic/tools/BaseExternalTool.cpp b/libraries/logic/tools/BaseExternalTool.cpp index af7f9a3f..2b97c3c9 100644 --- a/logic/tools/BaseExternalTool.cpp +++ b/libraries/logic/tools/BaseExternalTool.cpp @@ -2,7 +2,6 @@ #include <QProcess> #include <QDir> -#include <QInputDialog> #ifdef Q_OS_WIN #include <windows.h> diff --git a/logic/tools/BaseExternalTool.h b/libraries/logic/tools/BaseExternalTool.h index fe1b5dc6..fe1b5dc6 100644 --- a/logic/tools/BaseExternalTool.h +++ b/libraries/logic/tools/BaseExternalTool.h diff --git a/logic/tools/BaseProfiler.cpp b/libraries/logic/tools/BaseProfiler.cpp index 5ff0fa44..5ff0fa44 100644 --- a/logic/tools/BaseProfiler.cpp +++ b/libraries/logic/tools/BaseProfiler.cpp diff --git a/logic/tools/BaseProfiler.h b/libraries/logic/tools/BaseProfiler.h index 3340b7e4..3340b7e4 100644 --- a/logic/tools/BaseProfiler.h +++ b/libraries/logic/tools/BaseProfiler.h diff --git a/logic/tools/JProfiler.cpp b/libraries/logic/tools/JProfiler.cpp index 45b33f79..a0e3c895 100644 --- a/logic/tools/JProfiler.cpp +++ b/libraries/logic/tools/JProfiler.cpp @@ -1,7 +1,6 @@ #include "JProfiler.h" #include <QDir> -#include <QMessageBox> #include "settings/SettingsObject.h" #include "launch/LaunchTask.h" diff --git a/logic/tools/JProfiler.h b/libraries/logic/tools/JProfiler.h index d658d6c2..d658d6c2 100644 --- a/logic/tools/JProfiler.h +++ b/libraries/logic/tools/JProfiler.h diff --git a/logic/tools/JVisualVM.cpp b/libraries/logic/tools/JVisualVM.cpp index 169967d9..169967d9 100644 --- a/logic/tools/JVisualVM.cpp +++ b/libraries/logic/tools/JVisualVM.cpp diff --git a/logic/tools/JVisualVM.h b/libraries/logic/tools/JVisualVM.h index 0674da13..0674da13 100644 --- a/logic/tools/JVisualVM.h +++ b/libraries/logic/tools/JVisualVM.h diff --git a/logic/tools/MCEditTool.cpp b/libraries/logic/tools/MCEditTool.cpp index f0f715c3..32695c8d 100644 --- a/logic/tools/MCEditTool.cpp +++ b/libraries/logic/tools/MCEditTool.cpp @@ -3,14 +3,10 @@ #include <QDir> #include <QProcess> #include <QUrl> -// FIXME: mixing logic and UI!!!! -#include <QInputDialog> -#include <QApplication> #include "settings/SettingsObject.h" #include "BaseInstance.h" #include "minecraft/MinecraftInstance.h" -#include <DesktopServices.h> MCEditTool::MCEditTool(SettingsObjectPtr settings, InstancePtr instance, QObject *parent) : BaseDetachedTool(settings, instance, parent) @@ -37,12 +33,14 @@ QString MCEditTool::getSave() const } } bool ok = true; + /* const QString save = QInputDialog::getItem(QApplication::activeWindow(), tr("MCEdit"), tr("Choose which world to open:"), worlds, 0, false, &ok); if (ok) { return saves.absoluteFilePath(save); } + */ return QString(); } @@ -82,10 +80,12 @@ void MCEditTool::runImpl() program = mceditDir.absoluteFilePath("mcedit2.exe"); } #endif + /* if(program.size()) { DesktopServices::openFile(program, save, mceditPath); } + */ #endif } diff --git a/logic/tools/MCEditTool.h b/libraries/logic/tools/MCEditTool.h index c287f1ea..c287f1ea 100644 --- a/logic/tools/MCEditTool.h +++ b/libraries/logic/tools/MCEditTool.h diff --git a/logic/trans/TranslationDownloader.cpp b/libraries/logic/trans/TranslationDownloader.cpp index ee5c1fd2..ee5c1fd2 100644 --- a/logic/trans/TranslationDownloader.cpp +++ b/libraries/logic/trans/TranslationDownloader.cpp diff --git a/logic/trans/TranslationDownloader.h b/libraries/logic/trans/TranslationDownloader.h index e7893805..e7893805 100644 --- a/logic/trans/TranslationDownloader.h +++ b/libraries/logic/trans/TranslationDownloader.h diff --git a/logic/updater/DownloadTask.cpp b/libraries/logic/updater/DownloadTask.cpp index 6947e8bf..6947e8bf 100644 --- a/logic/updater/DownloadTask.cpp +++ b/libraries/logic/updater/DownloadTask.cpp diff --git a/logic/updater/DownloadTask.h b/libraries/logic/updater/DownloadTask.h index 83b4a142..83b4a142 100644 --- a/logic/updater/DownloadTask.h +++ b/libraries/logic/updater/DownloadTask.h diff --git a/logic/updater/GoUpdate.cpp b/libraries/logic/updater/GoUpdate.cpp index 60d50e04..60d50e04 100644 --- a/logic/updater/GoUpdate.cpp +++ b/libraries/logic/updater/GoUpdate.cpp diff --git a/logic/updater/GoUpdate.h b/libraries/logic/updater/GoUpdate.h index b8a534de..b8a534de 100644 --- a/logic/updater/GoUpdate.h +++ b/libraries/logic/updater/GoUpdate.h diff --git a/logic/updater/UpdateChecker.cpp b/libraries/logic/updater/UpdateChecker.cpp index 1cdac916..1cdac916 100644 --- a/logic/updater/UpdateChecker.cpp +++ b/libraries/logic/updater/UpdateChecker.cpp diff --git a/logic/updater/UpdateChecker.h b/libraries/logic/updater/UpdateChecker.h index c7fad10e..c7fad10e 100644 --- a/logic/updater/UpdateChecker.h +++ b/libraries/logic/updater/UpdateChecker.h diff --git a/logic/wonko/BaseWonkoEntity.cpp b/libraries/logic/wonko/BaseWonkoEntity.cpp index f5c59363..f5c59363 100644 --- a/logic/wonko/BaseWonkoEntity.cpp +++ b/libraries/logic/wonko/BaseWonkoEntity.cpp diff --git a/logic/wonko/BaseWonkoEntity.h b/libraries/logic/wonko/BaseWonkoEntity.h index 191b4184..191b4184 100644 --- a/logic/wonko/BaseWonkoEntity.h +++ b/libraries/logic/wonko/BaseWonkoEntity.h diff --git a/logic/wonko/WonkoIndex.cpp b/libraries/logic/wonko/WonkoIndex.cpp index 8306af84..8306af84 100644 --- a/logic/wonko/WonkoIndex.cpp +++ b/libraries/logic/wonko/WonkoIndex.cpp diff --git a/logic/wonko/WonkoIndex.h b/libraries/logic/wonko/WonkoIndex.h index 8b149c7d..8b149c7d 100644 --- a/logic/wonko/WonkoIndex.h +++ b/libraries/logic/wonko/WonkoIndex.h diff --git a/logic/wonko/WonkoReference.cpp b/libraries/logic/wonko/WonkoReference.cpp index 519d59aa..519d59aa 100644 --- a/logic/wonko/WonkoReference.cpp +++ b/libraries/logic/wonko/WonkoReference.cpp diff --git a/logic/wonko/WonkoReference.h b/libraries/logic/wonko/WonkoReference.h index 73a85d76..73a85d76 100644 --- a/logic/wonko/WonkoReference.h +++ b/libraries/logic/wonko/WonkoReference.h diff --git a/logic/wonko/WonkoUtil.cpp b/libraries/logic/wonko/WonkoUtil.cpp index 94726c6b..94726c6b 100644 --- a/logic/wonko/WonkoUtil.cpp +++ b/libraries/logic/wonko/WonkoUtil.cpp diff --git a/logic/wonko/WonkoUtil.h b/libraries/logic/wonko/WonkoUtil.h index b618ab71..b618ab71 100644 --- a/logic/wonko/WonkoUtil.h +++ b/libraries/logic/wonko/WonkoUtil.h diff --git a/logic/wonko/WonkoVersion.cpp b/libraries/logic/wonko/WonkoVersion.cpp index 7b7da86c..7b7da86c 100644 --- a/logic/wonko/WonkoVersion.cpp +++ b/libraries/logic/wonko/WonkoVersion.cpp diff --git a/logic/wonko/WonkoVersion.h b/libraries/logic/wonko/WonkoVersion.h index a1de4d9b..a1de4d9b 100644 --- a/logic/wonko/WonkoVersion.h +++ b/libraries/logic/wonko/WonkoVersion.h diff --git a/logic/wonko/WonkoVersionList.cpp b/libraries/logic/wonko/WonkoVersionList.cpp index e9d79327..e9d79327 100644 --- a/logic/wonko/WonkoVersionList.cpp +++ b/libraries/logic/wonko/WonkoVersionList.cpp diff --git a/logic/wonko/WonkoVersionList.h b/libraries/logic/wonko/WonkoVersionList.h index 8ea35be6..8ea35be6 100644 --- a/logic/wonko/WonkoVersionList.h +++ b/libraries/logic/wonko/WonkoVersionList.h diff --git a/logic/wonko/format/WonkoFormat.cpp b/libraries/logic/wonko/format/WonkoFormat.cpp index 11192cbe..11192cbe 100644 --- a/logic/wonko/format/WonkoFormat.cpp +++ b/libraries/logic/wonko/format/WonkoFormat.cpp diff --git a/logic/wonko/format/WonkoFormat.h b/libraries/logic/wonko/format/WonkoFormat.h index 450d6ccc..450d6ccc 100644 --- a/logic/wonko/format/WonkoFormat.h +++ b/libraries/logic/wonko/format/WonkoFormat.h diff --git a/logic/wonko/format/WonkoFormatV1.cpp b/libraries/logic/wonko/format/WonkoFormatV1.cpp index 363eebfb..363eebfb 100644 --- a/logic/wonko/format/WonkoFormatV1.cpp +++ b/libraries/logic/wonko/format/WonkoFormatV1.cpp diff --git a/logic/wonko/format/WonkoFormatV1.h b/libraries/logic/wonko/format/WonkoFormatV1.h index 92759804..92759804 100644 --- a/logic/wonko/format/WonkoFormatV1.h +++ b/libraries/logic/wonko/format/WonkoFormatV1.h diff --git a/logic/wonko/tasks/BaseWonkoEntityLocalLoadTask.cpp b/libraries/logic/wonko/tasks/BaseWonkoEntityLocalLoadTask.cpp index b54c592f..b54c592f 100644 --- a/logic/wonko/tasks/BaseWonkoEntityLocalLoadTask.cpp +++ b/libraries/logic/wonko/tasks/BaseWonkoEntityLocalLoadTask.cpp diff --git a/logic/wonko/tasks/BaseWonkoEntityLocalLoadTask.h b/libraries/logic/wonko/tasks/BaseWonkoEntityLocalLoadTask.h index 2affa17f..2affa17f 100644 --- a/logic/wonko/tasks/BaseWonkoEntityLocalLoadTask.h +++ b/libraries/logic/wonko/tasks/BaseWonkoEntityLocalLoadTask.h diff --git a/logic/wonko/tasks/BaseWonkoEntityRemoteLoadTask.cpp b/libraries/logic/wonko/tasks/BaseWonkoEntityRemoteLoadTask.cpp index 727ec89d..727ec89d 100644 --- a/logic/wonko/tasks/BaseWonkoEntityRemoteLoadTask.cpp +++ b/libraries/logic/wonko/tasks/BaseWonkoEntityRemoteLoadTask.cpp diff --git a/logic/wonko/tasks/BaseWonkoEntityRemoteLoadTask.h b/libraries/logic/wonko/tasks/BaseWonkoEntityRemoteLoadTask.h index 91ed6af0..91ed6af0 100644 --- a/logic/wonko/tasks/BaseWonkoEntityRemoteLoadTask.h +++ b/libraries/logic/wonko/tasks/BaseWonkoEntityRemoteLoadTask.h diff --git a/logic/DesktopServices.h b/logic/DesktopServices.h deleted file mode 100644 index 1e67e4cb..00000000 --- a/logic/DesktopServices.h +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once - -#include <QUrl> -#include <QString> -#include "multimc_logic_export.h" - -/** - * This wraps around QDesktopServices and adds workarounds where needed - * Use this instead of QDesktopServices! - */ -namespace DesktopServices -{ - /** - * Open a file in whatever application is applicable - */ - MULTIMC_LOGIC_EXPORT bool openFile(const QString &path); - - /** - * Open a file in the specified application - */ - MULTIMC_LOGIC_EXPORT bool openFile(const QString &application, const QString &path, const QString & workingDirectory = QString(), qint64 *pid = 0); - - /** - * Run an application - */ - MULTIMC_LOGIC_EXPORT bool run(const QString &application,const QStringList &args, const QString & workingDirectory = QString(), qint64 *pid = 0); - - /** - * Open a directory - */ - MULTIMC_LOGIC_EXPORT bool openDirectory(const QString &path, bool ensureExists = false); - - /** - * Open the URL, most likely in a browser. Maybe. - */ - MULTIMC_LOGIC_EXPORT bool openUrl(const QUrl &url); -}; diff --git a/tests/tst_Resource.cpp b/tests/tst_Resource.cpp index 54d029d5..4bf41a03 100644 --- a/tests/tst_Resource.cpp +++ b/tests/tst_Resource.cpp @@ -1,5 +1,4 @@ #include <QTest> -#include <QAction> #include "TestUtil.h" #include "resources/Resource.h" diff --git a/wonkoclient/WonkoClient.cpp b/wonkoclient/WonkoClient.cpp index 83efb285..ca22d407 100644 --- a/wonkoclient/WonkoClient.cpp +++ b/wonkoclient/WonkoClient.cpp @@ -11,8 +11,6 @@ #include <settings/INISettingsObject.h> #include <resources/Resource.h> #include "WonkoClient.h" -#include <icons/IconList.h> - WonkoClient &WonkoClient::getInstance() { static WonkoClient instance; diff --git a/wonkoclient/main.cpp b/wonkoclient/main.cpp index 1ee6d881..eaf92c5d 100644 --- a/wonkoclient/main.cpp +++ b/wonkoclient/main.cpp @@ -3,7 +3,7 @@ // #include "WonkoClient.h" -#include <QApplication> +#include <QCoreApplication> #include <QDebug> #include <QtWidgets/QInputDialog> #include <QtGui/QDesktopServices> @@ -11,7 +11,7 @@ int main(int argc, char *argv[]) { - QApplication a(argc, argv); + QCoreApplication a(argc, argv); if (a.arguments().contains("-d")) { int i = a.arguments().lastIndexOf("-d") + 1; |