Navigation
API > API/Editor > API/Editor/Kismet
Inheritance Hierarchy
References
| Module | Kismet |
| Header | /Engine/Source/Editor/Kismet/Public/SDetailsDiff.h |
| Include | #include "SDetailsDiff.h" |
Syntax
class SDetailsDiff : public SCompoundWidget
Remarks
Visual Diff between two Assets
Variables
| Type | Name | Description | |
|---|---|---|---|
| FDelegateHandle | AssetEditorCloseDelegate | ||
| FName | CurrentMode | ||
| TSharedPtr< STreeView< TSharedPtr< FBlueprintDifferenceTreeEntry > > > | DifferencesTreeView | Tree view that displays the differences, cached for the buttons that iterate the differences: | |
| 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 an object, from the mode name | |
| FOnSetOutputObjectEvent | OnOutputObjectSetEvent | ||
| FOnWindowClosedEvent | OnWindowClosedEvent | ||
| UObject * | OutputObjectModified | ||
| const UObject * | OutputObjectUnmodified | If set, actions like "Choose Left" and "Choose Right" will be enabled and modify the OutputObject | |
| FDetailsDiffPanel | PanelNew | ||
| FDetailsDiffPanel | 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 |
||
| TSharedRef< SDetailsDiff > | CreateDiffWindow
(
FText WindowTitle, |
Helper function to create a window that holds a diff widget | |
| TSharedRef< SDetailsDiff > | CreateDiffWindow
(
const UObject* OldObject, |
Helper function to create a window that holds a diff widget (default window title) | |
| TSharedRef< SWidget > | Helper function for generating an empty widget | ||
| FDiffControl | |||
| void | Function used to generate the list of differences and the widgets needed to calculate that list | ||
| TSharedRef< SBox > | GenerateRevisionInfoWidgetForPanel
(
TSharedPtr< SWidget >& OutGeneratedWidget, |
||
| FName | |||
| void | GetModifications
(
FArchive& Archive |
Return a serialized buffer of change requests made by the user | |
| bool | HasNextDiff () |
Called to determine whether we have a list of differences to cycle through | |
| bool | HasPrevDiff () |
||
| bool | Returns whether SetOutputObject was called with a valid object | ||
| void | NextDiff () |
Called when user clicks button to go to next difference | |
| 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 | OnModeChanged
(
const FName& InNewViewMode |
||
| void | PrevDiff () |
Called when user clicks button to go to prev difference | |
| void | RequestModifications
(
FArchive& Archive |
Submit an archive with change requests to make to OutputObject | |
| void | SetCurrentMode
(
FName NewMode |
Accessor and event handler for toggling between diff view modes (defaults, components, graph view, interface, macro): | |
| void | SetOutputObject
(
const UObject* OutputObject |
Enables actions like "Choose Left" and "Choose Right" which will modify the OutputObject | |
| 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 |
|---|---|
| FOnSetOutputObjectEvent | |
| FOnWindowClosedEvent |