SBlueprintDiff

Visual Diff between two Blueprints

Unreal Engine C++ API Reference > Editor > Kismet

Inheritance Hierarchy

References

   
Module Kismet
Header /Engine/Source/Editor/Kismet/Public/SBlueprintDiff.h
Include #include "SBlueprintDiff.h"

Syntax

class SBlueprintDiff : public [SCompoundWidget](API\Runtime\SlateCore\Widgets\SCompoundWidget)  

Remarks

Visual Diff between two Blueprints

Variables

Type Name Description
FDelegateHandle AssetEditorCloseDelegate  
bool bLockViews If the two views should be locked
bool bVerticalSplitGraphMode If the view on Graph Mode should be divided vertically
FName CurrentMode  
TSharedPtr< STr... DifferencesTreeView Tree view that displays the differences, cached for the buttons that iterate the differences:
TSharedPtr< SSp... DiffGraphSplitter  
TArray< TShared... Graphs List of graphs to diff, are added to panel last
TSharedPtr< SSp... GraphToolBarWidget  
TSharedPtr< SBo... ModeContents Contents widget that we swap when mode changes (defaults, components, etc)
TMap< FName, FD... ModePanels Stored references to widgets used to display various parts of a blueprint, from the mode name
FDiffPanel PanelNew  
FDiffPanel PanelOld The two panels used to show the old & new revision
TArray< TShared... PrimaryDifferencesList Tree of differences collected across all panels:
TArray< TShared... RealDifferences List of all differences, cached so that we can iterate only the differences and not labels, etc:
TSharedPtr< FTa... TabManager We can't use the global tab manager because we need to instance the diff control, so we have our own tab manager:
TSharedPtr< SSp... TopRevisionInfoWidget  
TWeakPtr< SWind... WeakParentWindow A pointer to the window holding this

Destructors

Type Name Description
  ~SBlueprintDiff ()  

Functions

Type Name Description
void Construct ( const FArguments& InArgs )  
TSharedPtr< ... CreateDiffWindow ( FText WindowTitle, const UBlueprint* OldBlueprint, const UBlueprint* NewBlueprint, const FRevisionInfo& OldRevision, const FRevisionInfo& NewRevision ) Helper function to create a window that holds a diff widget
TSharedPtr< ... CreateDiffWindow ( const UBlueprint* OldBlueprint, const UBlueprint* NewBlueprint, const FRevisionInfo& OldRevision, const FRevisionInfo& NewRevision, const UClass* BlueprintClass ) Helper function to create a window that holds a diff widget that defaults a window title
void CreateGraphEntry ( UEdGraph* GraphOld, UEdGraph* GraphNew ) Create a list item entry graph that exists in at least one of the blueprints
TSharedRef< ... DefaultEmptyPanel () Helper function for generating an empty widget
void DisablePinDiffFocus () Disable the focus on a particular pin
FGraphToDiff... FindGraphToDiffEntry ( const FString& GraphPath ) Find the FGraphToDiff that displays the graph with GraphPath relative path
void FocusOnGraphRevisions ( FGraphToDiff* Diff ) Bring these revisions of graph into focus on main display
FDiffControl GenerateBlueprintTypePanel ()  
FDiffControl GenerateClassSettingsPanel ()  
FDiffControl GenerateComponentsPanel ()  
FDiffControl GenerateDefaultsPanel ()  
void GenerateDifferencesList () Function used to generate the list of differences and the widgets needed to calculate that list
FDiffControl GenerateGeneralFileCommentEntries ()  
FDiffControl GenerateGraphPanel ()  
TSharedRef< ... GenerateGraphWidgetForPanel ( FDiffPanel& OutDiffPanel )  
FDiffControl GenerateMyBlueprintPanel ()  
TSharedRef< ... GenerateRevisionInfoWidgetForPanel ( TSharedPtr< SWidget >& OutGenerate..., const FText& InRevisionText )  
FName GetCurrentMode ()  
FDiffPanel & GetDiffPanelForNode ( UEdGraphNode& Node ) Get Graph editor associated with this Graph
FSlateIcon GetLockViewImage () Get the image to show for the toggle lock option
FSlateIcon GetSplitViewModeImage () Get the image to show for the toggle split view mode option
void HandleGraphChanged ( const FString& GraphPath ) Event handler that updates the graph view when user selects a new graph
bool HasNextDiff () Called to determine whether we have a list of differences to cycle through
bool HasPrevDiff ()  
bool IsGraphDiffNeeded ( UEdGraph* InGraph ) Checks if a graph is valid for diffing
void NextDiff () Called when user clicks button to go to next difference
void OnBlueprintChanged ( UBlueprint* InBlueprint ) Called when blueprint is modified
void OnCloseAssetEditor ( UObject* Asset, EAssetEditorCloseReason CloseReason ) Called when editor may need to be closed
void OnDiffListSelectionChanged ( TSharedPtr< struct FDiffResultItem ... ) Called when user clicks on an entry in the listview of differences
void OnGraphChanged ( FGraphToDiff* Diff ) Called when a new Graph is clicked on by user
void OnGraphSelectionChanged ( TSharedPtr< FGraphToDiff > Item, ESelectInfo::Type SelectionType ) Called when user clicks on a new graph list item
void OnModeChanged ( const FName& InNewViewMode )  
void OnToggleLockView () User toggles the option to lock the views between the two blueprints
void OnToggleSplitViewMode () User toggles the option to change the split view mode betwwen vertical and horizontal
void PrevDiff () Called when user clicks button to go to prev difference
void ResetGraphEditors () Reset the graph editor, called when user switches graphs to display
void SetCurrentMode ( FName NewMode ) Accessor and event handler for toggling between diff view modes (defaults, components, graph view, interface, macro):
void UpdateTopSectionVisibility ( const FName& InNewViewMode )  

Overridden from SWidget

Type Name Description
void Tick ( const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime ) Ticks this widget with Geometry.

Classes

Type Name Description
Public struct FArguments  
Protected struct FDiffControl  

Typedefs

Name Description
FOpenInDefaults  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library