Navigation
API > API/Editor > API/Editor/Kismet
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SBlueprintDiff
References
| Module | Kismet |
| Header | /Engine/Source/Editor/Kismet/Public/SBlueprintDiff.h |
| Include | #include "SBlueprintDiff.h" |
Syntax
class SBlueprintDiff : public 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< STreeView< TSharedPtr< FBlueprintDifferenceTreeEntry > > > | DifferencesTreeView | Tree view that displays the differences, cached for the buttons that iterate the differences: | |
| TSharedPtr< SSplitter > | DiffGraphSplitter | ||
| TArray< TSharedPtr< FGraphToDiff > > | Graphs | List of graphs to diff, are added to panel last | |
| TSharedPtr< SSplitter > | GraphToolBarWidget | ||
| TSharedPtr< SBox > | ModeContents | Contents widget that we swap when mode changes (defaults, components, etc) | |
| TMap< FName, FDiffControl > | 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< TSharedPtr< class FBlueprintDifferenceTreeEntry > > | PrimaryDifferencesList | Tree of differences collected across all panels: | |
| TArray< TSharedPtr< class FBlueprintDifferenceTreeEntry > > | RealDifferences | List of all differences, cached so that we can iterate only the differences and not labels, etc: | |
| TSharedPtr< FTabManager > | 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< SSplitter > | TopRevisionInfoWidget | ||
| TWeakPtr< SWindow > | WeakParentWindow | A pointer to the window holding this |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FArguments& InArgs |
||
| TSharedPtr< SWindow > | CreateDiffWindow
(
FText WindowTitle, |
Helper function to create a window that holds a diff widget | |
| TSharedPtr< SWindow > | CreateDiffWindow
(
const UBlueprint* OldBlueprint, |
Helper function to create a window that holds a diff widget that defaults a window title | |
| void | CreateGraphEntry
(
UEdGraph* GraphOld, |
Create a list item entry graph that exists in at least one of the blueprints | |
| TSharedRef< SWidget > | Helper function for generating an empty widget | ||
| void | 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 | |||
| FDiffControl | |||
| FDiffControl | |||
| FDiffControl | |||
| void | Function used to generate the list of differences and the widgets needed to calculate that list | ||
| FDiffControl | |||
| FDiffControl | |||
| TSharedRef< SOverlay > | GenerateGraphWidgetForPanel
(
FDiffPanel& OutDiffPanel |
||
| FDiffControl | |||
| TSharedRef< SBox > | GenerateRevisionInfoWidgetForPanel
(
TSharedPtr< SWidget >& OutGeneratedWidget, |
||
| FName | |||
| FDiffPanel & | GetDiffPanelForNode
(
UEdGraphNode& Node |
Get Graph editor associated with this Graph | |
| FSlateIcon | Get the image to show for the toggle lock option | ||
| FSlateIcon | 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, |
Called when editor may need to be closed | |
| void | OnDiffListSelectionChanged
(
TSharedPtr< struct FDiffResultItem > TheDiff |
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, |
Called when user clicks on a new graph list item | |
| void | OnModeChanged
(
const FName& InNewViewMode |
||
| void | User toggles the option to lock the views between the two blueprints | ||
| void | 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 | 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 | Ticks this widget with Geometry. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments | |||
| FDiffControl |
Typedefs
| Name | Description |
|---|---|
| FOpenInDefaults |