2014-06-05 17:01:39 -04:00
|
|
|
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "../DesktopPlatformBase.h"
|
|
|
|
|
|
|
|
|
|
class FDesktopPlatformLinux : public FDesktopPlatformBase
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
// IDesktopPlatform Implementation
|
2014-06-13 06:14:46 -04:00
|
|
|
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 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;
|
2014-06-05 17:01:39 -04:00
|
|
|
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual bool RegisterEngineInstallation(const FString &RootDir, FString &OutIdentifier) override;
|
|
|
|
|
virtual void EnumerateEngineInstallations(TMap<FString, FString> &OutInstallations) override;
|
2014-06-05 17:01:39 -04:00
|
|
|
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual bool VerifyFileAssociations() override;
|
|
|
|
|
virtual bool UpdateFileAssociations() override;
|
2014-06-05 17:01:39 -04:00
|
|
|
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual bool RunUnrealBuildTool(const FText& Description, const FString& RootDir, const FString& Arguments, FFeedbackContext* Warn) override;
|
2014-06-05 17:01:39 -04:00
|
|
|
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual FFeedbackContext* GetNativeFeedbackContext() override;
|
2014-06-05 17:01:39 -04:00
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
typedef FDesktopPlatformLinux FDesktopPlatform;
|