A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
FDialogueEditor Class Reference

#include <DialogueEditor.h>

Inheritance diagram for FDialogueEditor:
[legend]

Public Member Functions

 FDialogueEditor ()
 
virtual ~FDialogueEditor ()
 
void AddReferencedObjects (FReferenceCollector &Collector) override
 
bool CanSaveAsset () const override
 
bool CanSaveAssetAs () const override
 
void CheckAll () const
 
void ClearViewportSelection () const
 
void FocusWindow (UObject *ObjectToFocusOn=nullptr) override
 
FText GetBaseToolkitName () const override
 
bool GetBoundsForSelectedNodes (class FSlateRect &Rect, float Padding) const override
 
UDlgDialogueGetDialogueBeingEdited ()
 
UDialogueGraphGetDialogueGraph () const
 
FString GetDocumentationLink () const override
 
UDialogueGraphNode_EdgeGetLastTargetGraphEdgeBeforeDrag () const override
 
TSet< UObject * > GetSelectedNodes () const override
 
FName GetToolkitFName () const override
 
FText GetToolkitName () const override
 
FText GetToolkitToolTipText () const override
 
FLinearColor GetWorldCentricTabColorScale () const override
 
FString GetWorldCentricTabPrefix () const override
 
void InitDialogueEditor (EToolkitMode::Type Mode, const TSharedPtr< IToolkitHost > &InitToolkitHost, UDlgDialogue *InitDialogue)
 
void JumpToObject (const UObject *Object) override
 
void PostRedo (bool bSuccess) override
 
void PostUndo (bool bSuccess) override
 
void Refresh (bool bRestorePreviousSelection) override
 
void RefreshDetailsView (bool bRestorePreviousSelection) override
 
void RefreshViewport () const
 
void RegisterTabSpawners (const TSharedRef< FTabManager > &TabManager) override
 
void SaveAsset_Execute () override
 
void SaveAssetAs_Execute () override
 
void SetDialogueBeingEdited (UDlgDialogue *NewDialogue)
 
void SetLastTargetGraphEdgeBeforeDrag (UDialogueGraphNode_Edge *InEdge) override
 
 SLATE_BEGIN_ARGS (Self)
 
void SummonSearchUI (bool bSetFindWithinDialogue, FString NewSearchTerms=FString(), bool bSelectFirstResult=false)
 
void UnregisterTabSpawners (const TSharedRef< FTabManager > &TabManager) override
 

Private Types

typedef FDialogueEditor Self
 

Private Member Functions

void BindEditorCommands ()
 
bool CanCopyNodes () const
 
bool CanDeleteNodes () const
 
bool CanPasteNodes () const
 
TSharedRef< SGraphEditor > CreateGraphEditorWidget ()
 
void CreateInternalWidgets ()
 
void ExtendMenu ()
 
void ExtendToolbar ()
 
TSharedRef< SWidget > GenerateExternalURLsMenu () const
 
TSharedRef< SWidget > GeneratePrimarySecondaryEdgesMenu () const
 
const UDlgSystemSettingsGetSettings () const
 
void NotifyPostChange (const FPropertyChangedEvent &PropertyChangedEvent, FNYProperty *PropertyThatChanged) override
 
void OnCommandConvertSpeechNodesToSpeechSequence () const
 
void OnCommandConvertSpeechSequenceNodeToSpeechNodes () const
 
void OnCommandCopySelectedNodes () const
 
void OnCommandDeleteSelectedNodes () const
 
void OnCommandDialogueReload () const
 
void OnCommandHideSelectedNodes ()
 
void OnCommandPasteNodes ()
 
void OnCommandRedoGraphAction () const
 
void OnCommandUndoGraphAction () const
 
void OnCommandUnHideAllNodes ()
 
FActionMenuContent OnCreateGraphActionMenu (UEdGraph *InGraph, const FVector2D &InNodePosition, const TArray< UEdGraphPin * > &InDraggedPins, bool bAutoExpand, SGraphEditor::FActionMenuClosed InOnMenuClosed)
 
void OnGraphActionMenuClosed (bool bActionExecuted, bool bGraphPinContext)
 
void OnNodeTitleCommitted (const FText &NewText, ETextCommit::Type CommitInfo, UEdGraphNode *NodeBeingChanged) const
 
void OnSelectedNodesChanged (const TSet< UObject * > &NewSelection)
 
void PasteNodesHere (const FVector2D &Location)
 
TSharedRef< SDockTab > SpawnTab_Details (const FSpawnTabArgs &Args) const
 
TSharedRef< SDockTab > SpawnTab_FindInDialogue (const FSpawnTabArgs &Args) const
 
TSharedRef< SDockTab > SpawnTab_GraphCanvas (const FSpawnTabArgs &Args) const
 
TSharedRef< SDockTab > SpawnTab_Palette (const FSpawnTabArgs &Args) const
 

Private Attributes

TSharedPtr< IDetailsView > DetailsView
 
UDlgDialogueDialogueBeingEdited
 
TSharedPtr< SFindInDialoguesFindResultsView
 
TSharedPtr< FUICommandList > GraphEditorCommands
 
TSharedPtr< SGraphEditor > GraphEditorView
 
UDialogueGraphNode_EdgeLastTargetGraphEdgeBeforeDrag = nullptr
 
TSharedPtr< SDialoguePalettePaletteView
 
TArray< TWeakObjectPtr< UObject > > PreviousSelectedNodeObjects
 
UDlgSystemSettingsSettings = nullptr
 

Static Private Attributes

static const FName DetailsTabID
 
static const FName FindInDialogueTabId
 
static const FName GraphCanvasTabID
 
static const FName PaletteTabId
 

Detailed Description

Definition at line 25 of file DialogueEditor.h.

Member Typedef Documentation

◆ Self

Definition at line 27 of file DialogueEditor.h.

Constructor & Destructor Documentation

◆ FDialogueEditor()

FDialogueEditor::FDialogueEditor ( )

Definition at line 46 of file DialogueEditor.cpp.

◆ ~FDialogueEditor()

FDialogueEditor::~FDialogueEditor ( )
virtual

Definition at line 51 of file DialogueEditor.cpp.

Member Function Documentation

◆ AddReferencedObjects()

void FDialogueEditor::AddReferencedObjects ( FReferenceCollector & Collector)
inlineoverride

Definition at line 83 of file DialogueEditor.h.

◆ BindEditorCommands()

void FDialogueEditor::BindEditorCommands ( )
private

Definition at line 499 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CanCopyNodes()

bool FDialogueEditor::CanCopyNodes ( ) const
private

Definition at line 1041 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CanDeleteNodes()

bool FDialogueEditor::CanDeleteNodes ( ) const
private

Definition at line 1002 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CanPasteNodes()

bool FDialogueEditor::CanPasteNodes ( ) const
private

Definition at line 1208 of file DialogueEditor.cpp.

Here is the caller graph for this function:

◆ CanSaveAsset()

bool FDialogueEditor::CanSaveAsset ( ) const
inlineoverride

Definition at line 56 of file DialogueEditor.h.

◆ CanSaveAssetAs()

bool FDialogueEditor::CanSaveAssetAs ( ) const
inlineoverride

Definition at line 57 of file DialogueEditor.h.

◆ CheckAll()

void FDialogueEditor::CheckAll ( ) const

Definition at line 403 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClearViewportSelection()

void FDialogueEditor::ClearViewportSelection ( ) const
inline

Definition at line 113 of file DialogueEditor.h.

Here is the caller graph for this function:

◆ CreateGraphEditorWidget()

TSharedRef< SGraphEditor > FDialogueEditor::CreateGraphEditorWidget ( )
private

Definition at line 475 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateInternalWidgets()

void FDialogueEditor::CreateInternalWidgets ( )
private

Definition at line 450 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExtendMenu()

void FDialogueEditor::ExtendMenu ( )
private

Definition at line 656 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExtendToolbar()

void FDialogueEditor::ExtendToolbar ( )
private

Definition at line 717 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FocusWindow()

void FDialogueEditor::FocusWindow ( UObject * ObjectToFocusOn = nullptr)
override

Definition at line 142 of file DialogueEditor.cpp.

Here is the call graph for this function:

◆ GenerateExternalURLsMenu()

TSharedRef< SWidget > FDialogueEditor::GenerateExternalURLsMenu ( ) const
private

Definition at line 701 of file DialogueEditor.cpp.

Here is the caller graph for this function:

◆ GeneratePrimarySecondaryEdgesMenu()

TSharedRef< SWidget > FDialogueEditor::GeneratePrimarySecondaryEdgesMenu ( ) const
private

Definition at line 687 of file DialogueEditor.cpp.

Here is the caller graph for this function:

◆ GetBaseToolkitName()

FText FDialogueEditor::GetBaseToolkitName ( ) const
override

Definition at line 109 of file DialogueEditor.cpp.

◆ GetBoundsForSelectedNodes()

bool FDialogueEditor::GetBoundsForSelectedNodes ( class FSlateRect & Rect,
float Padding ) const
inlineoverridevirtual

Get the bounding area for the currently selected nodes

Parameters
RectFinal output bounding area, including padding
PaddingAn amount of padding to add to all sides of the bounds
Returns
false if nothing is selected

Implements IDialogueEditor.

Definition at line 107 of file DialogueEditor.h.

◆ GetDialogueBeingEdited()

UDlgDialogue * FDialogueEditor::GetDialogueBeingEdited ( )
inline

Definition at line 156 of file DialogueEditor.h.

◆ GetDialogueGraph()

UDialogueGraph * FDialogueEditor::GetDialogueGraph ( ) const
inline

Definition at line 150 of file DialogueEditor.h.

Here is the caller graph for this function:

◆ GetDocumentationLink()

FString FDialogueEditor::GetDocumentationLink ( ) const
inlineoverride
Returns
the documentation location for this editor

Definition at line 54 of file DialogueEditor.h.

◆ GetLastTargetGraphEdgeBeforeDrag()

UDialogueGraphNode_Edge * FDialogueEditor::GetLastTargetGraphEdgeBeforeDrag ( ) const
inlineoverridevirtual

Implements IDialogueEditor.

Definition at line 164 of file DialogueEditor.h.

◆ GetSelectedNodes()

TSet< UObject * > FDialogueEditor::GetSelectedNodes ( ) const
inlineoverridevirtual

Implements IDialogueEditor.

Definition at line 93 of file DialogueEditor.h.

Here is the caller graph for this function:

◆ GetSettings()

const UDlgSystemSettings & FDialogueEditor::GetSettings ( ) const
inlineprivate

Called when the preview text changes

Definition at line 298 of file DialogueEditor.h.

Here is the caller graph for this function:

◆ GetToolkitFName()

FName FDialogueEditor::GetToolkitFName ( ) const
inlineoverride

Definition at line 44 of file DialogueEditor.h.

◆ GetToolkitName()

FText FDialogueEditor::GetToolkitName ( ) const
override

Definition at line 114 of file DialogueEditor.cpp.

◆ GetToolkitToolTipText()

FText FDialogueEditor::GetToolkitToolTipText ( ) const
inlineoverride

Definition at line 45 of file DialogueEditor.h.

◆ GetWorldCentricTabColorScale()

FLinearColor FDialogueEditor::GetWorldCentricTabColorScale ( ) const
inlineoverride

Definition at line 46 of file DialogueEditor.h.

◆ GetWorldCentricTabPrefix()

FString FDialogueEditor::GetWorldCentricTabPrefix ( ) const
inlineoverride

Definition at line 47 of file DialogueEditor.h.

◆ InitDialogueEditor()

void FDialogueEditor::InitDialogueEditor ( EToolkitMode::Type Mode,
const TSharedPtr< IToolkitHost > & InitToolkitHost,
UDlgDialogue * InitDialogue )

Definition at line 293 of file DialogueEditor.cpp.

Here is the call graph for this function:

◆ JumpToObject()

void FDialogueEditor::JumpToObject ( const UObject * Object)
overridevirtual

Implements IDialogueEditor.

Definition at line 228 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NotifyPostChange()

void FDialogueEditor::NotifyPostChange ( const FPropertyChangedEvent & PropertyChangedEvent,
FNYProperty * PropertyThatChanged )
overrideprivate

Definition at line 442 of file DialogueEditor.cpp.

◆ OnCommandConvertSpeechNodesToSpeechSequence()

void FDialogueEditor::OnCommandConvertSpeechNodesToSpeechSequence ( ) const
private

Definition at line 867 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnCommandConvertSpeechSequenceNodeToSpeechNodes()

void FDialogueEditor::OnCommandConvertSpeechSequenceNodeToSpeechNodes ( ) const
private

Definition at line 856 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnCommandCopySelectedNodes()

void FDialogueEditor::OnCommandCopySelectedNodes ( ) const
private

Definition at line 1015 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnCommandDeleteSelectedNodes()

void FDialogueEditor::OnCommandDeleteSelectedNodes ( ) const
private

Definition at line 883 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnCommandDialogueReload()

void FDialogueEditor::OnCommandDialogueReload ( ) const
private

Definition at line 1240 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnCommandHideSelectedNodes()

void FDialogueEditor::OnCommandHideSelectedNodes ( )
private

Definition at line 1216 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnCommandPasteNodes()

void FDialogueEditor::OnCommandPasteNodes ( )
private

Definition at line 1056 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnCommandRedoGraphAction()

void FDialogueEditor::OnCommandRedoGraphAction ( ) const
private

Definition at line 845 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnCommandUndoGraphAction()

void FDialogueEditor::OnCommandUndoGraphAction ( ) const
private

Definition at line 835 of file DialogueEditor.cpp.

Here is the caller graph for this function:

◆ OnCommandUnHideAllNodes()

void FDialogueEditor::OnCommandUnHideAllNodes ( )
private

Definition at line 1231 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnCreateGraphActionMenu()

FActionMenuContent FDialogueEditor::OnCreateGraphActionMenu ( UEdGraph * InGraph,
const FVector2D & InNodePosition,
const TArray< UEdGraphPin * > & InDraggedPins,
bool bAutoExpand,
SGraphEditor::FActionMenuClosed InOnMenuClosed )
private

Definition at line 1294 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnGraphActionMenuClosed()

void FDialogueEditor::OnGraphActionMenuClosed ( bool bActionExecuted,
bool bGraphPinContext )
private

Definition at line 1308 of file DialogueEditor.cpp.

Here is the caller graph for this function:

◆ OnNodeTitleCommitted()

void FDialogueEditor::OnNodeTitleCommitted ( const FText & NewText,
ETextCommit::Type CommitInfo,
UEdGraphNode * NodeBeingChanged ) const
private

Called when a node's title is committed for a rename

Parameters
NewTextNew title text
CommitInfoHow text was committed
NodeBeingChangedThe node being changed

Definition at line 1317 of file DialogueEditor.cpp.

Here is the caller graph for this function:

◆ OnSelectedNodesChanged()

void FDialogueEditor::OnSelectedNodesChanged ( const TSet< UObject * > & NewSelection)
private

Definition at line 1268 of file DialogueEditor.cpp.

Here is the caller graph for this function:

◆ PasteNodesHere()

void FDialogueEditor::PasteNodesHere ( const FVector2D & Location)
private

Definition at line 1061 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PostRedo()

void FDialogueEditor::PostRedo ( bool bSuccess)
override

Definition at line 161 of file DialogueEditor.cpp.

Here is the call graph for this function:

◆ PostUndo()

void FDialogueEditor::PostUndo ( bool bSuccess)
override

Definition at line 152 of file DialogueEditor.cpp.

Here is the call graph for this function:

◆ Refresh()

void FDialogueEditor::Refresh ( bool bRestorePreviousSelection)
overridevirtual

Implements IDialogueEditor.

Definition at line 220 of file DialogueEditor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RefreshDetailsView()

void FDialogueEditor::RefreshDetailsView ( bool bRestorePreviousSelection)
overridevirtual

Implements IDialogueEditor.

Definition at line 175 of file DialogueEditor.cpp.

Here is the caller graph for this function:

◆ RefreshViewport()

void FDialogueEditor::RefreshViewport ( ) const
inline

Definition at line 122 of file DialogueEditor.h.

Here is the caller graph for this function:

◆ RegisterTabSpawners()

void FDialogueEditor::RegisterTabSpawners ( const TSharedRef< FTabManager > & TabManager)
override

Definition at line 58 of file DialogueEditor.cpp.

Here is the call graph for this function:

◆ SaveAsset_Execute()

void FDialogueEditor::SaveAsset_Execute ( )
override

Definition at line 128 of file DialogueEditor.cpp.

◆ SaveAssetAs_Execute()

void FDialogueEditor::SaveAssetAs_Execute ( )
override

Definition at line 133 of file DialogueEditor.cpp.

◆ SetDialogueBeingEdited()

void FDialogueEditor::SetDialogueBeingEdited ( UDlgDialogue * NewDialogue)

Definition at line 421 of file DialogueEditor.cpp.

◆ SetLastTargetGraphEdgeBeforeDrag()

void FDialogueEditor::SetLastTargetGraphEdgeBeforeDrag ( UDialogueGraphNode_Edge * InEdge)
inlineoverridevirtual

Implements IDialogueEditor.

Definition at line 165 of file DialogueEditor.h.

◆ SLATE_BEGIN_ARGS()

FDialogueEditor::SLATE_BEGIN_ARGS ( Self )
inline

Definition at line 30 of file DialogueEditor.h.

◆ SpawnTab_Details()

TSharedRef< SDockTab > FDialogueEditor::SpawnTab_Details ( const FSpawnTabArgs & Args) const
private

Definition at line 790 of file DialogueEditor.cpp.

Here is the caller graph for this function:

◆ SpawnTab_FindInDialogue()

TSharedRef< SDockTab > FDialogueEditor::SpawnTab_FindInDialogue ( const FSpawnTabArgs & Args) const
private

Definition at line 824 of file DialogueEditor.cpp.

Here is the caller graph for this function:

◆ SpawnTab_GraphCanvas()

TSharedRef< SDockTab > FDialogueEditor::SpawnTab_GraphCanvas ( const FSpawnTabArgs & Args) const
private

Definition at line 803 of file DialogueEditor.cpp.

Here is the caller graph for this function:

◆ SpawnTab_Palette()

TSharedRef< SDockTab > FDialogueEditor::SpawnTab_Palette ( const FSpawnTabArgs & Args) const
private

Definition at line 813 of file DialogueEditor.cpp.

Here is the caller graph for this function:

◆ SummonSearchUI()

void FDialogueEditor::SummonSearchUI ( bool bSetFindWithinDialogue,
FString NewSearchTerms = FString(),
bool bSelectFirstResult = false )

Definition at line 270 of file DialogueEditor.cpp.

Here is the call graph for this function:

◆ UnregisterTabSpawners()

void FDialogueEditor::UnregisterTabSpawners ( const TSharedRef< FTabManager > & TabManager)
override

Definition at line 99 of file DialogueEditor.cpp.

Member Data Documentation

◆ DetailsTabID

const FName FDialogueEditor::DetailsTabID
staticprivate

The tab ids for all the tabs used

Definition at line 329 of file DialogueEditor.h.

◆ DetailsView

TSharedPtr<IDetailsView> FDialogueEditor::DetailsView
private

Definition at line 311 of file DialogueEditor.h.

◆ DialogueBeingEdited

UDlgDialogue* FDialogueEditor::DialogueBeingEdited
private

Definition at line 302 of file DialogueEditor.h.

◆ FindInDialogueTabId

const FName FDialogueEditor::FindInDialogueTabId
staticprivate

Definition at line 332 of file DialogueEditor.h.

◆ FindResultsView

TSharedPtr<SFindInDialogues> FDialogueEditor::FindResultsView
private

Find results log as well as the search filter

Definition at line 317 of file DialogueEditor.h.

◆ GraphCanvasTabID

const FName FDialogueEditor::GraphCanvasTabID
staticprivate

Definition at line 330 of file DialogueEditor.h.

◆ GraphEditorCommands

TSharedPtr<FUICommandList> FDialogueEditor::GraphEditorCommands
private

Definition at line 320 of file DialogueEditor.h.

◆ GraphEditorView

TSharedPtr<SGraphEditor> FDialogueEditor::GraphEditorView
private

Definition at line 308 of file DialogueEditor.h.

◆ LastTargetGraphEdgeBeforeDrag

UDialogueGraphNode_Edge* FDialogueEditor::LastTargetGraphEdgeBeforeDrag = nullptr
private

Keep the reference to the target Node Edge before dragging. Only set on output pins from UDialogueGraphNode.

Definition at line 323 of file DialogueEditor.h.

◆ PaletteTabId

const FName FDialogueEditor::PaletteTabId
staticprivate

Definition at line 331 of file DialogueEditor.h.

◆ PaletteView

TSharedPtr<SDialoguePalette> FDialogueEditor::PaletteView
private

Definition at line 314 of file DialogueEditor.h.

◆ PreviousSelectedNodeObjects

TArray<TWeakObjectPtr<UObject> > FDialogueEditor::PreviousSelectedNodeObjects
private

Definition at line 326 of file DialogueEditor.h.

◆ Settings

UDlgSystemSettings* FDialogueEditor::Settings = nullptr
private

Definition at line 305 of file DialogueEditor.h.


The documentation for this class was generated from the following files: