2015-06-15 18:14:07 -04:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Core.h"
|
|
|
|
|
#include "ModuleInterface.h"
|
|
|
|
|
#include "ISlateFileDialogModule.h"
|
|
|
|
|
|
2015-06-18 19:27:23 -04:00
|
|
|
class FSlateFileDialogsStyle;
|
|
|
|
|
|
2015-06-15 18:14:07 -04:00
|
|
|
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);
|
2015-06-18 19:27:23 -04:00
|
|
|
|
2015-06-15 18:14:07 -04:00
|
|
|
bool OpenFileDialog(const void* ParentWindowHandle, const FString& DialogTitle, const FString& DefaultPath,
|
|
|
|
|
const FString& DefaultFile, const FString& FileTypes, uint32 Flags, TArray<FString>& OutFilenames);
|
2015-06-18 19:27:23 -04:00
|
|
|
|
2015-06-15 18:14:07 -04:00
|
|
|
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);
|
2015-06-18 19:27:23 -04:00
|
|
|
|
2015-06-15 18:14:07 -04:00
|
|
|
ISlateFileDialogsModule* Get();
|
|
|
|
|
|
2015-06-18 19:27:23 -04:00
|
|
|
FSlateFileDialogsStyle *GetFileDialogsStyle() { return FileDialogStyle; }
|
|
|
|
|
|
2015-06-15 18:14:07 -04:00
|
|
|
private:
|
|
|
|
|
ISlateFileDialogsModule *SlateFileDialog;
|
2015-06-18 19:27:23 -04:00
|
|
|
|
|
|
|
|
FSlateFileDialogsStyle *FileDialogStyle;
|
2015-06-15 18:14:07 -04:00
|
|
|
};
|