Files
UnrealEngineUWP/Engine/Source/Developer/DesktopPlatform/Private/Linux/DesktopPlatformLinux.h
Dmitry Rekman 435196963c Support for Linux in DesktopPlatform module.
- Part of PR #306 by amigo and #ue4linux folks.
- LinuxNativeDialogs on hold until clarified with the author (their Build.cs needs to be modified to add WITH_LINUX_NATIVE_DIALOGS=1).

[CL 2237890 by Dmitry Rekman in Main branch]
2014-07-30 23:26:47 -04:00

37 lines
2.2 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "../DesktopPlatformBase.h"
class FDesktopPlatformLinux : 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::Type& OutFlags) 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 FFeedbackContext* GetNativeFeedbackContext() override;
private:
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);
};
typedef FDesktopPlatformLinux FDesktopPlatform;