You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- because the graphs were being diffed in two different ways - once to generate the list and once to determine how to render the nodes, there were some differences in the diff behavior that caused certain nodes to not render as diffed even though they showed up in the list. this change uses the same diff list for both now so there shouldn't be any differences anymore - This also solves an issue that caused highlighted pins from Blueprint Diff to persist to the blueprint itself. Now all visual modifications made by the diff viewer only appear in the diff panels rather than the main graph #jira UE-93061 #preflight 62a256ef2469f462fdd9c693 #rb daren.cheng This change sets up for future style changes allowing for us to render nodes in the diff graph based on their diff type. There are no style changes in this CL however. [CL 20584624 by jordan hoffmann in ue5-main branch]
57 lines
1.8 KiB
C++
57 lines
1.8 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,
|
|
TSharedPtr<TArray<FDiffSingleResult>> DiffResults,
|
|
TAttribute<int32> FocusedDiffResult,
|
|
FSimpleDelegate InOnNavigateHistoryBack,
|
|
FSimpleDelegate InOnNavigateHistoryForward,
|
|
TAttribute<bool> ShowGraphStateOverlay);
|
|
|
|
private:
|
|
/** All extender delegates for the graph menus */
|
|
TArray<FGraphEditorMenuExtender_SelectedNode> GraphEditorContextMenuExtender;
|
|
};
|