You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Added IDesktopPlatform::GetUserTempPath() and implemented it for windows
- Created SGetSuggestedIDEWidget class that handles whether to show a "Download X" hyperlink vs. an "Install X" button (depending on whether the platform supports on-demand installation)
- Analytics event added ("Editor.Usage.InstalledIDE") that fires whenever the "Install X" button is clicked
- Changed SourceCodeIDEURL_Windows in BaseEditor.ini from the VSC 2013 web page link to the installer download link (need to replace with perma-link once we have it)
[CL 2409158 by Dan Hertzka in Main branch]
46 lines
2.6 KiB
C++
46 lines
2.6 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "../DesktopPlatformBase.h"
|
|
#include "WindowsRegistry.h"
|
|
|
|
class FDesktopPlatformWindows : public FDesktopPlatformBase
|
|
{
|
|
public:
|
|
// IDesktopPlatform Implementation
|
|
virtual bool OpenFileDialog(const void* ParentWindowHandle, const FString& DialogTitle, const FString& DefaultPath, const FString& DefaultFile, const FString& FileTypes, uint32 Flags, TArray<FString>& OutFilenames) override;
|
|
virtual bool OpenFileDialog(const void* ParentWindowHandle, const FString& DialogTitle, const FString& DefaultPath, const FString& DefaultFile, const FString& FileTypes, uint32 Flags, TArray<FString>& OutFilenames, int32& OutFilterIndex) override;
|
|
virtual bool SaveFileDialog(const void* ParentWindowHandle, const FString& DialogTitle, const FString& DefaultPath, const FString& DefaultFile, const FString& FileTypes, uint32 Flags, TArray<FString>& OutFilenames) override;
|
|
virtual bool OpenDirectoryDialog(const void* ParentWindowHandle, const FString& DialogTitle, const FString& DefaultPath, FString& OutFolderName) override;
|
|
virtual bool OpenFontDialog(const void* ParentWindowHandle, FString& OutFontName, float& OutHeight, EFontImportFlags& OutFlags) override;
|
|
virtual bool CanOpenLauncher(bool Install) override;
|
|
virtual bool OpenLauncher(bool Install, FString CommandLineParams ) override;
|
|
|
|
virtual bool RegisterEngineInstallation(const FString &RootDir, FString &OutIdentifier) override;
|
|
virtual void EnumerateEngineInstallations(TMap<FString, FString> &OutInstallations) override;
|
|
|
|
virtual bool IsSourceDistribution(const FString &RootDir) override;
|
|
|
|
virtual bool VerifyFileAssociations() override;
|
|
virtual bool UpdateFileAssociations() override;
|
|
|
|
virtual bool OpenProject(const FString &ProjectFileName) override;
|
|
|
|
virtual bool RunUnrealBuildTool(const FText& Description, const FString& RootDir, const FString& Arguments, FFeedbackContext* Warn) override;
|
|
virtual bool IsUnrealBuildToolRunning() override;
|
|
|
|
virtual FFeedbackContext* GetNativeFeedbackContext() override;
|
|
|
|
virtual FString GetUserTempPath() override;
|
|
|
|
private:
|
|
bool GetLauncherPath(FString& OutLauncherPath);
|
|
bool GetLauncherInstallerPath(FString& OutInstallerPath);
|
|
bool FileDialogShared(bool bSave, const void* ParentWindowHandle, const FString& DialogTitle, const FString& DefaultPath, const FString& DefaultFile, const FString& FileTypes, uint32 Flags, TArray<FString>& OutFilenames, int32& OutFilterIndex);
|
|
void GetRequiredRegistrySettings(TIndirectArray<FRegistryRootedKey> &RootedKeys);
|
|
int32 GetShellIntegrationVersion(const FString &FileName);
|
|
};
|
|
|
|
typedef FDesktopPlatformWindows FDesktopPlatform;
|