Files
UnrealEngineUWP/Engine/Source/Developer/DesktopPlatform/Private/Windows/DesktopPlatformWindows.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

48 lines
2.7 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "../DesktopPlatformBase.h"
#include "Containers/IndirectArray.h"
#include "WindowsHWrapper.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(const FOpenLauncherOptions& Options) 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 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;