Files
UnrealEngineUWP/Engine/Source/Developer/DesktopPlatform/Private/Windows/DesktopPlatformWindows.h
Robert Manuszewski 694e7ca807 Hot-Reload: Make sure hot-reload is waiting for new modules only when UBT from the current branch is running
#change Added (desktop) platform abstraction for checking if UBT is running. Fully functional for Windows, WIP for Mac and Linux (should work, but can give false positives)

[CL 2302894 by Robert Manuszewski in Main branch]
2014-09-18 15:12:13 -04:00

44 lines
2.6 KiB
C++

// Copyright 1998-2014 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;
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;