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

#include <DialogueSearchResult.h>

Inheritance diagram for FDialogueSearchResult_GraphNode:
[legend]

Public Member Functions

 FDialogueSearchResult_GraphNode (const FText &InDisplayText, const TSharedPtr< FDialogueSearchResult > &InParent)
 
virtual void AddChild (const TSharedPtr< FDialogueSearchResult > &ChildNode)
 
virtual void ClearChildren ()
 
void ClearParent ()
 
TSharedRef< SWidget > CreateIcon () const override
 
bool DoesDisplayTextContains (const FString &InSearch, ESearchCase::Type SearchCase=ESearchCase::IgnoreCase)
 
void ExpandAllChildren (const TSharedPtr< STreeView< TSharedPtr< FDialogueSearchResult > > > &TreeView, bool bRecursive=true)
 
virtual void FilterPathsToNodesThatContainText (const FString &InSearch, TArray< TArray< TSharedPtr< FDialogueSearchResult > > > &OutNodes)
 
void GetAllNodes (TArray< TSharedPtr< FDialogueSearchResult > > &OutNodeArray) const
 
FText GetCategory () const
 
const TArray< TSharedPtr< FDialogueSearchResult > > & GetChildren () const
 
FString GetCommentString () const
 
FText GetDisplayText () const
 
FName GetDisplayTextAsFName () const
 
TWeakPtr< FDialogueSearchResultGetParent () const
 
virtual TWeakObjectPtr< const UDlgDialogueGetParentDialogue () const
 
void GetVisibleChildren (TArray< TSharedPtr< FDialogueSearchResult > > &OutChildren)
 
bool HasChildren () const
 
bool HasParent () const
 
bool IsLeaf () const
 
bool IsRoot () const
 
bool IsVisible () const
 
FReply OnClick () override
 
void SetCategory (const FText &InCategory)
 
virtual void SetChildren (const TArray< TSharedPtr< FDialogueSearchResult > > &InChildren)
 
void SetCommentString (const FString &InCommentString)
 
void SetDisplayText (const FText &InText)
 
void SetGraphNode (TWeakObjectPtr< const UDialogueGraphNode > InGraphNode)
 
void SetIsVisible (bool InIsVisible)
 
void SetParent (TWeakPtr< FDialogueSearchResult > InParentNode)
 

Protected Member Functions

virtual bool FilterDoesChildContainText (const TSharedPtr< FDialogueSearchResult > &Child, const FString &InSearch)
 
virtual bool FilterIsChildVisible (const TSharedPtr< FDialogueSearchResult > &GrandChild)
 
virtual void GetPathToChildThatContainsText (const TSharedPtr< FDialogueSearchResult > &Child, const FString &InSearch, TArray< TArray< TSharedPtr< FDialogueSearchResult > > > &OutNodes)
 
virtual void PostBuildPathToTopMostParent (const TSharedPtr< FDialogueSearchResult > &CurrentParentNode)
 
virtual void PostFilterPathsToNodes (const TSharedPtr< FDialogueSearchResult > &Child)
 

Protected Attributes

bool bIsVisible
 
FText Category
 
TArray< TSharedPtr< FDialogueSearchResult > > Children
 
FString CommentString
 
FText DisplayText
 
TWeakObjectPtr< const UDialogueGraphNodeGraphNode
 
TWeakPtr< FDialogueSearchResultParent
 

Private Types

typedef FDialogueSearchResult Self
 
typedef FDialogueSearchResult Super
 

Detailed Description

Definition at line 118 of file DialogueSearchResult.h.

Member Typedef Documentation

◆ Self

Definition at line 59 of file DialogueSearchResult.h.

◆ Super

Constructor & Destructor Documentation

◆ FDialogueSearchResult_GraphNode()

FDialogueSearchResult_GraphNode::FDialogueSearchResult_GraphNode ( const FText & InDisplayText,
const TSharedPtr< FDialogueSearchResult > & InParent )

Definition at line 93 of file DialogueSearchResult.cpp.

Member Function Documentation

◆ AddChild()

virtual void FDlgTreeViewNode< FDialogueSearchResult >::AddChild ( const TSharedPtr< FDialogueSearchResult > & ChildNode)
inlinevirtualinherited

Definition at line 57 of file DlgTreeViewNode.h.

◆ ClearChildren()

virtual void FDlgTreeViewNode< FDialogueSearchResult >::ClearChildren ( )
inlinevirtualinherited

Definition at line 72 of file DlgTreeViewNode.h.

◆ ClearParent()

void FDlgTreeViewNode< FDialogueSearchResult >::ClearParent ( )
inlineinherited

Definition at line 42 of file DlgTreeViewNode.h.

◆ CreateIcon()

TSharedRef< SWidget > FDialogueSearchResult_GraphNode::CreateIcon ( ) const
overridevirtual

Reimplemented from FDialogueSearchResult.

Definition at line 108 of file DialogueSearchResult.cpp.

Here is the call graph for this function:

◆ DoesDisplayTextContains()

bool FDlgTreeViewNode< FDialogueSearchResult >::DoesDisplayTextContains ( const FString & InSearch,
ESearchCase::Type SearchCase = ESearchCase::IgnoreCase )
inlineinherited

Definition at line 33 of file DlgTreeViewNode.h.

◆ ExpandAllChildren()

void FDlgTreeViewNode< FDialogueSearchResult >::ExpandAllChildren ( const TSharedPtr< STreeView< TSharedPtr< FDialogueSearchResult > > > & TreeView,
bool bRecursive = true )
inlineinherited

Takes the tree view and expands its elements for each child.

Parameters
TreeViewThe tree responsible for visualizing this node hierarchy.
bRecursiveDetermines if you want children/descendants to expand their children as well.

Definition at line 93 of file DlgTreeViewNode.h.

◆ FilterDoesChildContainText()

virtual bool FDlgTreeViewNode< FDialogueSearchResult >::FilterDoesChildContainText ( const TSharedPtr< FDialogueSearchResult > & Child,
const FString & InSearch )
inlineprotectedvirtualinherited

Called inside GetPathToChildThatContainsText to determine if the child has the text

Definition at line 163 of file DlgTreeViewNode.h.

◆ FilterIsChildVisible()

virtual bool FDlgTreeViewNode< FDialogueSearchResult >::FilterIsChildVisible ( const TSharedPtr< FDialogueSearchResult > & GrandChild)
inlineprotectedvirtualinherited

Called inside GetPathToChildThatContainsText after we got the path of the GrandChild

Definition at line 157 of file DlgTreeViewNode.h.

◆ FilterPathsToNodesThatContainText()

virtual void FDlgTreeViewNode< FDialogueSearchResult >::FilterPathsToNodesThatContainText ( const FString & InSearch,
TArray< TArray< TSharedPtr< FDialogueSearchResult > > > & OutNodes )
inlinevirtualinherited

Searches the node so that the OutNodes will only contains paths to nodes that contains the specified string.

Parameters
InSearchThe string to search by
OutNodesArray of arrays, each array inside represents a node path that points to the Node that contains the InSearch

Definition at line 136 of file DlgTreeViewNode.h.

◆ GetAllNodes()

void FDlgTreeViewNode< FDialogueSearchResult >::GetAllNodes ( TArray< TSharedPtr< FDialogueSearchResult > > & OutNodeArray) const
inlineinherited

Recursively collects all child/grandchild/descendant nodes. Aka Flattened tree.

Parameters
OutNodeArrayThe array to fill out with descendant nodes.

Definition at line 122 of file DlgTreeViewNode.h.

◆ GetCategory()

FText FDialogueSearchResult::GetCategory ( ) const
inlineinherited

Definition at line 72 of file DialogueSearchResult.h.

Here is the caller graph for this function:

◆ GetChildren()

const TArray< TSharedPtr< FDialogueSearchResult > > & FDlgTreeViewNode< FDialogueSearchResult >::GetChildren ( ) const
inlineinherited

Definition at line 46 of file DlgTreeViewNode.h.

◆ GetCommentString()

FString FDialogueSearchResult::GetCommentString ( ) const
inlineinherited

Definition at line 76 of file DialogueSearchResult.h.

◆ GetDisplayText()

FText FDlgTreeViewNode< FDialogueSearchResult >::GetDisplayText ( ) const
inlineinherited

Definition at line 30 of file DlgTreeViewNode.h.

◆ GetDisplayTextAsFName()

FName FDlgTreeViewNode< FDialogueSearchResult >::GetDisplayTextAsFName ( ) const
inlineinherited

Definition at line 31 of file DlgTreeViewNode.h.

◆ GetParent()

TWeakPtr< FDialogueSearchResult > FDlgTreeViewNode< FDialogueSearchResult >::GetParent ( ) const
inlineinherited

Definition at line 40 of file DlgTreeViewNode.h.

◆ GetParentDialogue()

TWeakObjectPtr< const UDlgDialogue > FDialogueSearchResult::GetParentDialogue ( ) const
virtualinherited

Reimplemented in FDialogueSearchResult_DialogueNode.

Definition at line 32 of file DialogueSearchResult.cpp.

Here is the caller graph for this function:

◆ GetPathToChildThatContainsText()

virtual void FDlgTreeViewNode< FDialogueSearchResult >::GetPathToChildThatContainsText ( const TSharedPtr< FDialogueSearchResult > & Child,
const FString & InSearch,
TArray< TArray< TSharedPtr< FDialogueSearchResult > > > & OutNodes )
inlineprotectedvirtualinherited

Definition at line 168 of file DlgTreeViewNode.h.

◆ GetVisibleChildren()

void FDlgTreeViewNode< FDialogueSearchResult >::GetVisibleChildren ( TArray< TSharedPtr< FDialogueSearchResult > > & OutChildren)
inlineinherited

Definition at line 47 of file DlgTreeViewNode.h.

◆ HasChildren()

bool FDlgTreeViewNode< FDialogueSearchResult >::HasChildren ( ) const
inlineinherited

Definition at line 45 of file DlgTreeViewNode.h.

◆ HasParent()

bool FDlgTreeViewNode< FDialogueSearchResult >::HasParent ( ) const
inlineinherited

Definition at line 39 of file DlgTreeViewNode.h.

◆ IsLeaf()

bool FDlgTreeViewNode< FDialogueSearchResult >::IsLeaf ( ) const
inlineinherited

Is this the leaf node? Aka no children.

Definition at line 85 of file DlgTreeViewNode.h.

◆ IsRoot()

bool FDlgTreeViewNode< FDialogueSearchResult >::IsRoot ( ) const
inlineinherited

Is this the root node? Aka no parent.

Definition at line 82 of file DlgTreeViewNode.h.

◆ IsVisible()

bool FDlgTreeViewNode< FDialogueSearchResult >::IsVisible ( ) const
inlineinherited

Definition at line 78 of file DlgTreeViewNode.h.

◆ OnClick()

FReply FDialogueSearchResult_GraphNode::OnClick ( )
overridevirtual

Reimplemented from FDlgTreeViewNode< FDialogueSearchResult >.

Definition at line 98 of file DialogueSearchResult.cpp.

Here is the call graph for this function:

◆ PostBuildPathToTopMostParent()

virtual void FDlgTreeViewNode< FDialogueSearchResult >::PostBuildPathToTopMostParent ( const TSharedPtr< FDialogueSearchResult > & CurrentParentNode)
inlineprotectedvirtualinherited

Called inside GetPathToChildThatContainsText after we advanced one parent in the path

Definition at line 154 of file DlgTreeViewNode.h.

◆ PostFilterPathsToNodes()

virtual void FDlgTreeViewNode< FDialogueSearchResult >::PostFilterPathsToNodes ( const TSharedPtr< FDialogueSearchResult > & Child)
inlineprotectedvirtualinherited

Called inside FilterPathsToNodesThatContainText after we got the path for the current Child.

Definition at line 151 of file DlgTreeViewNode.h.

◆ SetCategory()

void FDialogueSearchResult::SetCategory ( const FText & InCategory)
inlineinherited

Definition at line 73 of file DialogueSearchResult.h.

◆ SetChildren()

virtual void FDlgTreeViewNode< FDialogueSearchResult >::SetChildren ( const TArray< TSharedPtr< FDialogueSearchResult > > & InChildren)
inlinevirtualinherited

Definition at line 63 of file DlgTreeViewNode.h.

◆ SetCommentString()

void FDialogueSearchResult::SetCommentString ( const FString & InCommentString)
inlineinherited

Definition at line 77 of file DialogueSearchResult.h.

◆ SetDisplayText()

void FDlgTreeViewNode< FDialogueSearchResult >::SetDisplayText ( const FText & InText)
inlineinherited

Definition at line 32 of file DlgTreeViewNode.h.

◆ SetGraphNode()

void FDialogueSearchResult_GraphNode::SetGraphNode ( TWeakObjectPtr< const UDialogueGraphNode > InGraphNode)
inline

Definition at line 128 of file DialogueSearchResult.h.

◆ SetIsVisible()

void FDlgTreeViewNode< FDialogueSearchResult >::SetIsVisible ( bool InIsVisible)
inlineinherited

Definition at line 79 of file DlgTreeViewNode.h.

◆ SetParent()

void FDlgTreeViewNode< FDialogueSearchResult >::SetParent ( TWeakPtr< FDialogueSearchResult > InParentNode)
inlineinherited

Definition at line 41 of file DlgTreeViewNode.h.

Member Data Documentation

◆ bIsVisible

bool FDlgTreeViewNode< FDialogueSearchResult >::bIsVisible
protectedinherited

Is this node displayed?

Definition at line 226 of file DlgTreeViewNode.h.

◆ Category

FText FDialogueSearchResult::Category
protectedinherited

Definition at line 81 of file DialogueSearchResult.h.

◆ Children

TArray<TSharedPtr<FDialogueSearchResult > > FDlgTreeViewNode< FDialogueSearchResult >::Children
protectedinherited

Any children listed under this node.

Definition at line 217 of file DlgTreeViewNode.h.

◆ CommentString

FString FDialogueSearchResult::CommentString
protectedinherited

Definition at line 84 of file DialogueSearchResult.h.

◆ DisplayText

FText FDlgTreeViewNode< FDialogueSearchResult >::DisplayText
protectedinherited

The displayed text for this item.

Definition at line 223 of file DlgTreeViewNode.h.

◆ GraphNode

TWeakObjectPtr<const UDialogueGraphNode> FDialogueSearchResult_GraphNode::GraphNode
protected

Definition at line 132 of file DialogueSearchResult.h.

◆ Parent

TWeakPtr<FDialogueSearchResult > FDlgTreeViewNode< FDialogueSearchResult >::Parent
protectedinherited

The node that this is a direct child of (empty if this is a root node)

Definition at line 220 of file DlgTreeViewNode.h.


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