2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Engine.h"
|
|
|
|
|
#include "GraphEditor.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Graph editor public interface
|
|
|
|
|
*/
|
|
|
|
|
class FGraphEditorModule : public IModuleInterface
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual void StartupModule() override;
|
|
|
|
|
virtual void ShutdownModule() override;
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
/** 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,
|
2014-09-12 18:42:03 -04:00
|
|
|
const TAttribute<bool>& InIsEmpty,
|
2014-03-14 14:13:41 -04:00
|
|
|
TAttribute<FGraphAppearanceInfo> Appearance,
|
|
|
|
|
TSharedPtr<SWidget> InTitleBar,
|
|
|
|
|
const TAttribute<bool>& InTitleBarEnabledOnly,
|
|
|
|
|
UEdGraph* InGraphToEdit,
|
|
|
|
|
SGraphEditor::FGraphEditorEvents GraphEvents,
|
|
|
|
|
bool InAutoExpandActionMenu,
|
|
|
|
|
UEdGraph* InGraphToDiff,
|
|
|
|
|
FSimpleDelegate InOnNavigateHistoryBack,
|
|
|
|
|
FSimpleDelegate InOnNavigateHistoryForward,
|
2014-06-09 11:12:17 -04:00
|
|
|
TAttribute<bool> ShowGraphStateOverlay);
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/** All extender delegates for the graph menus */
|
|
|
|
|
TArray<FGraphEditorMenuExtender_SelectedNode> GraphEditorContextMenuExtender;
|
|
|
|
|
};
|