Files
UnrealEngineUWP/Engine/Source/Editor/ContentBrowser/Private/NewAssetOrClassContextMenu.h
bryan sefcik 0837230669 Ran IWYU again on half of the Engine/Source/Editor/... source files.
#jira

[CL 21716414 by bryan sefcik in ue5-main branch]
2022-08-30 23:03:03 -04:00

33 lines
907 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/Array.h"
#include "Delegates/Delegate.h"
#include "UObject/NameTypes.h"
class FString;
class UToolMenu;
class FNewAssetOrClassContextMenu
{
public:
DECLARE_DELEGATE_OneParam( FOnNewFolderRequested, const FString& /*SelectedPath*/ );
DECLARE_DELEGATE( FOnGetContentRequested )
/** Makes the context menu widget */
static void MakeContextMenu(
UToolMenu* Menu,
const TArray<FName>& InSelectedPaths,
const FOnNewFolderRequested& InOnNewFolderRequested,
const FOnGetContentRequested& InOnGetContentRequested
);
private:
/** Create a new folder at the specified path */
static void ExecuteNewFolder(FName InPath, FOnNewFolderRequested InOnNewFolderRequested);
/** Handle when the "Get Content" button is clicked */
static void ExecuteGetContent( FOnGetContentRequested InOnGetContentRequested );
};