You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "ISlateFileDialogModule.h"
|
|
|
|
class FSlateFileDialogsStyle;
|
|
|
|
class FSlateFileDialogsModule : public ISlateFileDialogsModule
|
|
{
|
|
public:
|
|
|
|
// IModuleInterface interface
|
|
|
|
virtual void StartupModule() override;
|
|
virtual void ShutdownModule() override;
|
|
|
|
public:
|
|
//ISlateFileDialogModule interface
|
|
|
|
bool OpenFileDialog(const void* ParentWindowHandle, const FString& DialogTitle, const FString& DefaultPath,
|
|
const FString& DefaultFile, const FString& FileTypes, uint32 Flags, TArray<FString>& OutFilenames, int32& OutFilterIndex);
|
|
|
|
bool OpenFileDialog(const void* ParentWindowHandle, const FString& DialogTitle, const FString& DefaultPath,
|
|
const FString& DefaultFile, const FString& FileTypes, uint32 Flags, TArray<FString>& OutFilenames);
|
|
|
|
bool OpenDirectoryDialog(const void* ParentWindowHandle, const FString& DialogTitle, const FString& DefaultPath,
|
|
FString& OutFoldername);
|
|
|
|
bool SaveFileDialog(const void* ParentWindowHandle, const FString& DialogTitle, const FString& DefaultPath,
|
|
const FString& DefaultFile, const FString& FileTypes, uint32 Flags, TArray<FString>& OutFilenames);
|
|
|
|
ISlateFileDialogsModule* Get();
|
|
|
|
FSlateFileDialogsStyle *GetFileDialogsStyle() { return FileDialogStyle; }
|
|
|
|
private:
|
|
ISlateFileDialogsModule *SlateFileDialog;
|
|
|
|
FSlateFileDialogsStyle *FileDialogStyle;
|
|
};
|