You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904 #ROBOMERGE-BOT: (v613-10869866) [CL 10870586 by ryan durand in Main branch]
56 lines
1.7 KiB
C++
56 lines
1.7 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Misc/Attribute.h"
|
|
#include "Framework/Commands/UICommandList.h"
|
|
#include "GraphEditor.h"
|
|
#include "Modules/ModuleInterface.h"
|
|
|
|
class FExtender;
|
|
class UEdGraph;
|
|
|
|
/**
|
|
* Graph editor public interface
|
|
*/
|
|
class FGraphEditorModule : public IModuleInterface
|
|
{
|
|
|
|
public:
|
|
virtual void StartupModule() override;
|
|
virtual void ShutdownModule() override;
|
|
|
|
/** Delegates to be called to extend the graph menus */
|
|
|
|
DECLARE_DELEGATE_RetVal_FiveParams( TSharedRef<FExtender>, FGraphEditorMenuExtender_SelectedNode, const TSharedRef<FUICommandList>, const UEdGraph*, const UEdGraphNode*, const UEdGraphPin*, bool);
|
|
virtual TArray<FGraphEditorMenuExtender_SelectedNode>& GetAllGraphEditorContextMenuExtender() {return GraphEditorContextMenuExtender;}
|
|
|
|
private:
|
|
friend class SGraphEditor;
|
|
|
|
/**
|
|
* DO NOT CALL THIS METHOD. Use SNew(SGraphEditor) to make instances of SGraphEditor.
|
|
*
|
|
* @return A GraphEditor implementation.
|
|
*/
|
|
virtual TSharedRef<SGraphEditor> PRIVATE_MakeGraphEditor(
|
|
const TSharedPtr<FUICommandList>& InAdditionalCommands,
|
|
const TAttribute<bool>& InIsEditable,
|
|
const TAttribute<bool>& InDisplayAsReadOnly,
|
|
const TAttribute<bool>& InIsEmpty,
|
|
TAttribute<FGraphAppearanceInfo> Appearance,
|
|
TSharedPtr<SWidget> InTitleBar,
|
|
UEdGraph* InGraphToEdit,
|
|
SGraphEditor::FGraphEditorEvents GraphEvents,
|
|
bool InAutoExpandActionMenu,
|
|
UEdGraph* InGraphToDiff,
|
|
FSimpleDelegate InOnNavigateHistoryBack,
|
|
FSimpleDelegate InOnNavigateHistoryForward,
|
|
TAttribute<bool> ShowGraphStateOverlay);
|
|
|
|
private:
|
|
/** All extender delegates for the graph menus */
|
|
TArray<FGraphEditorMenuExtender_SelectedNode> GraphEditorContextMenuExtender;
|
|
};
|