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

#include <SDialogueBrowser.h>

Inheritance diagram for SDialogueBrowser:
[legend]

Public Member Functions

void Construct (const FArguments &InArgs)
 
FText GetFilterText () const
 
void RefreshTree (bool bPreserveExpansion)
 
 SLATE_BEGIN_ARGS (Self)
 

Protected Member Functions

void AddDialogueChildrenToItemFromProperty (const TSharedPtr< FDialogueBrowserTreeNode > &InItem, const TSharedPtr< FDialogueBrowserTreeVariableProperties > *PropertyPtr, EDialogueTreeNodeTextType TextType)
 
void AddEdgeNodeChildrenToItem (const TSharedPtr< FDialogueBrowserTreeNode > &InItem, const TSet< TWeakObjectPtr< const UDialogueGraphNode_Edge > > &EdgeNodes, EDialogueTreeNodeTextType TextType)
 
void AddGraphNodeBaseChildrenToItemFromProperty (const TSharedPtr< FDialogueBrowserTreeNode > &InItem, const TSharedPtr< FDialogueBrowserTreeVariableProperties > *PropertyPtr, EDialogueTreeNodeTextType GraphNodeTextType, EDialogueTreeNodeTextType EdgeNodeTextType)
 
void AddGraphNodeChildrenToItem (const TSharedPtr< FDialogueBrowserTreeNode > &InItem, const TSet< TWeakObjectPtr< const UDialogueGraphNode > > &GraphNodes, EDialogueTreeNodeTextType TextType)
 
void AddVariableChildrenToItem (const TSharedPtr< FDialogueBrowserTreeNode > &Item, const TMap< FName, TSharedPtr< FDialogueBrowserTreeVariableProperties > > &Variables, EDialogueTreeNodeTextType VariableType)
 
void BuildTreeViewItem (const TSharedPtr< FDialogueBrowserTreeNode > &Item)
 
TSharedRef< SWidget > FillViewOptionsEntries ()
 
FReply FindInContentBrowserForItem (TSharedPtr< FDialogueBrowserTreeNode > InItem)
 
void GenerateFilteredItems ()
 
TSharedRef< SWidget > GetFilterTextBoxWidget ()
 
void HandleDoubleClick (TSharedPtr< FDialogueBrowserTreeNode > InItem)
 
TSharedRef< ITableRow > HandleGenerateRow (TSharedPtr< FDialogueBrowserTreeNode > InItem, const TSharedRef< STableViewBase > &OwnerTable)
 
void HandleGetChildren (TSharedPtr< FDialogueBrowserTreeNode > InItem, TArray< TSharedPtr< FDialogueBrowserTreeNode > > &OutChildren)
 
FReply HandleOnRefresh ()
 
void HandleSearchTextCommitted (const FText &InText, ETextCommit::Type InCommitType)
 
void HandleSetExpansionRecursive (TSharedPtr< FDialogueBrowserTreeNode > InItem, bool bInIsItemExpanded)
 
void HandleSortSelectionChanged (SortOptionType Selection, ESelectInfo::Type SelectInfo)
 
void HandleTreeSelectionChanged (TSharedPtr< FDialogueBrowserTreeNode > NewValue, ESelectInfo::Type SelectInfo)
 
TSharedRef< SWidget > MakeButtonsWidgetForDialogue (const TSharedPtr< FDialogueBrowserTreeNode > &InItem)
 
TSharedRef< SWidget > MakeButtonWidgetForGraphNodes (const TArray< TSharedPtr< FDialogueBrowserTreeNode > > &InChildren)
 
TArray< TSharedPtr< FDialogueBrowserTreeNode > > MakeClassVariableCategoriesChildren (const TSharedPtr< FDialogueBrowserTreeNode > &Parent, const TSharedPtr< FDialogueBrowserTreeParticipantProperties > &ParticipantProperties, bool bHideEmptyCategories) const
 
TSharedRef< SHorizontalBox > MakeCustomObjectIconAndTextWidget (const FText &InText, const FSlateBrush *IconBrush, UClass *Class, EDialogueBlueprintOpenType OpenType, FName FunctionNameToOpen, int32 IconSize=24)
 
TSharedRef< SHorizontalBox > MakeIconAndTextWidget (const FText &InText, const FSlateBrush *IconBrush, int32 IconSize=24)
 
TSharedRef< SWidget > MakeInlineWidget (const TSharedPtr< FDialogueBrowserTreeNode > &InItem)
 
TArray< TSharedPtr< FDialogueBrowserTreeNode > > MakeParticipantCategoriesChildren (const TSharedPtr< FDialogueBrowserTreeNode > &Parent, const TSharedPtr< FDialogueBrowserTreeParticipantProperties > &ParticipantProperties, bool bHideEmptyCategories) const
 
TArray< TSharedPtr< FDialogueBrowserTreeNode > > MakeVariableCategoriesChildren (const TSharedPtr< FDialogueBrowserTreeNode > &Parent, const TSharedPtr< FDialogueBrowserTreeParticipantProperties > &ParticipantProperties, bool bHideEmptyCategories) const
 

Static Protected Member Functions

static EVisibility GetBrowseAssetButtonVisibility (UClass *Class)
 
static FText GetBrowseAssetText (UClass *Class)
 
static FText GetJumpToAssetText (UClass *Class)
 
static EVisibility GetOpenAssetButtonVisibility (UClass *Class)
 
static FReply OnBrowseAssetClicked (UClass *Class)
 
static FReply OnOpenAssetClicked (UClass *Class, EDialogueBlueprintOpenType OpenType, FName FunctionNameToOpen)
 

Protected Attributes

SortOptionType DefaultSortOption
 
FString FilterString
 
TSharedPtr< SSearchBox > FilterTextBoxWidget
 
TMap< FName, TSharedPtr< FDialogueBrowserTreeParticipantProperties > > ParticipantsProperties
 
TSharedPtr< STreeView< TSharedPtr< FDialogueBrowserTreeNode > > > ParticipantsTreeView
 
TArray< TSharedPtr< FDialogueBrowserTreeNode > > RootChildren
 
TSharedPtr< FDialogueBrowserTreeNodeRootTreeItem
 
SortOptionType SelectedSortOption
 
TArray< SortOptionTypeSortOptions
 

Private Types

typedef SDialogueBrowser Self
 
typedef TSharedPtr< FDialogueBrowserSortOptionSortOptionType
 

Detailed Description

Implements the Dialogue Browser

Definition at line 21 of file SDialogueBrowser.h.

Member Typedef Documentation

◆ Self

Definition at line 23 of file SDialogueBrowser.h.

◆ SortOptionType

Definition at line 24 of file SDialogueBrowser.h.

Member Function Documentation

◆ AddDialogueChildrenToItemFromProperty()

void SDialogueBrowser::AddDialogueChildrenToItemFromProperty ( const TSharedPtr< FDialogueBrowserTreeNode > & InItem,
const TSharedPtr< FDialogueBrowserTreeVariableProperties > * PropertyPtr,
EDialogueTreeNodeTextType TextType )
protected

Definition at line 561 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ AddEdgeNodeChildrenToItem()

void SDialogueBrowser::AddEdgeNodeChildrenToItem ( const TSharedPtr< FDialogueBrowserTreeNode > & InItem,
const TSet< TWeakObjectPtr< const UDialogueGraphNode_Edge > > & EdgeNodes,
EDialogueTreeNodeTextType TextType )
protected

Definition at line 612 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ AddGraphNodeBaseChildrenToItemFromProperty()

void SDialogueBrowser::AddGraphNodeBaseChildrenToItemFromProperty ( const TSharedPtr< FDialogueBrowserTreeNode > & InItem,
const TSharedPtr< FDialogueBrowserTreeVariableProperties > * PropertyPtr,
EDialogueTreeNodeTextType GraphNodeTextType,
EDialogueTreeNodeTextType EdgeNodeTextType )
protected

Definition at line 643 of file SDialogueBrowser.cpp.

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

◆ AddGraphNodeChildrenToItem()

void SDialogueBrowser::AddGraphNodeChildrenToItem ( const TSharedPtr< FDialogueBrowserTreeNode > & InItem,
const TSet< TWeakObjectPtr< const UDialogueGraphNode > > & GraphNodes,
EDialogueTreeNodeTextType TextType )
protected

Definition at line 591 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ AddVariableChildrenToItem()

void SDialogueBrowser::AddVariableChildrenToItem ( const TSharedPtr< FDialogueBrowserTreeNode > & Item,
const TMap< FName, TSharedPtr< FDialogueBrowserTreeVariableProperties > > & Variables,
EDialogueTreeNodeTextType VariableType )
protected

Definition at line 676 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ BuildTreeViewItem()

void SDialogueBrowser::BuildTreeViewItem ( const TSharedPtr< FDialogueBrowserTreeNode > & Item)
protected

Definition at line 692 of file SDialogueBrowser.cpp.

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

◆ Construct()

void SDialogueBrowser::Construct ( const FArguments & InArgs)

Definition at line 104 of file SDialogueBrowser.cpp.

Here is the call graph for this function:

◆ FillViewOptionsEntries()

TSharedRef< SWidget > SDialogueBrowser::FillViewOptionsEntries ( )
protected

Definition at line 1874 of file SDialogueBrowser.cpp.

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

◆ FindInContentBrowserForItem()

FReply SDialogueBrowser::FindInContentBrowserForItem ( TSharedPtr< FDialogueBrowserTreeNode > InItem)
protected

Definition at line 1501 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ GenerateFilteredItems()

void SDialogueBrowser::GenerateFilteredItems ( )
protected

Definition at line 509 of file SDialogueBrowser.cpp.

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

◆ GetBrowseAssetButtonVisibility()

EVisibility SDialogueBrowser::GetBrowseAssetButtonVisibility ( UClass * Class)
staticprotected

Definition at line 1790 of file SDialogueBrowser.cpp.

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

◆ GetBrowseAssetText()

FText SDialogueBrowser::GetBrowseAssetText ( UClass * Class)
staticprotected

Definition at line 1869 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ GetFilterText()

FText SDialogueBrowser::GetFilterText ( ) const
inline

Definition at line 36 of file SDialogueBrowser.h.

Here is the caller graph for this function:

◆ GetFilterTextBoxWidget()

TSharedRef< SWidget > SDialogueBrowser::GetFilterTextBoxWidget ( )
protected

Definition at line 541 of file SDialogueBrowser.cpp.

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

◆ GetJumpToAssetText()

FText SDialogueBrowser::GetJumpToAssetText ( UClass * Class)
staticprotected

Definition at line 1854 of file SDialogueBrowser.cpp.

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

◆ GetOpenAssetButtonVisibility()

EVisibility SDialogueBrowser::GetOpenAssetButtonVisibility ( UClass * Class)
staticprotected

Definition at line 1778 of file SDialogueBrowser.cpp.

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

◆ HandleDoubleClick()

void SDialogueBrowser::HandleDoubleClick ( TSharedPtr< FDialogueBrowserTreeNode > InItem)
protected

Definition at line 1461 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ HandleGenerateRow()

TSharedRef< ITableRow > SDialogueBrowser::HandleGenerateRow ( TSharedPtr< FDialogueBrowserTreeNode > InItem,
const TSharedRef< STableViewBase > & OwnerTable )
protected

Definition at line 1234 of file SDialogueBrowser.cpp.

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

◆ HandleGetChildren()

void SDialogueBrowser::HandleGetChildren ( TSharedPtr< FDialogueBrowserTreeNode > InItem,
TArray< TSharedPtr< FDialogueBrowserTreeNode > > & OutChildren )
protected

Definition at line 1444 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ HandleOnRefresh()

FReply SDialogueBrowser::HandleOnRefresh ( )
inlineprotected

Definition at line 108 of file SDialogueBrowser.h.

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

◆ HandleSearchTextCommitted()

void SDialogueBrowser::HandleSearchTextCommitted ( const FText & InText,
ETextCommit::Type InCommitType )
protected

Definition at line 1226 of file SDialogueBrowser.cpp.

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

◆ HandleSetExpansionRecursive()

void SDialogueBrowser::HandleSetExpansionRecursive ( TSharedPtr< FDialogueBrowserTreeNode > InItem,
bool bInIsItemExpanded )
protected

Definition at line 1480 of file SDialogueBrowser.cpp.

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

◆ HandleSortSelectionChanged()

void SDialogueBrowser::HandleSortSelectionChanged ( SortOptionType Selection,
ESelectInfo::Type SelectInfo )
protected

Definition at line 1492 of file SDialogueBrowser.cpp.

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

◆ HandleTreeSelectionChanged()

void SDialogueBrowser::HandleTreeSelectionChanged ( TSharedPtr< FDialogueBrowserTreeNode > NewValue,
ESelectInfo::Type SelectInfo )
protected

Definition at line 1456 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ MakeButtonsWidgetForDialogue()

TSharedRef< SWidget > SDialogueBrowser::MakeButtonsWidgetForDialogue ( const TSharedPtr< FDialogueBrowserTreeNode > & InItem)
protected

Definition at line 1178 of file SDialogueBrowser.cpp.

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

◆ MakeButtonWidgetForGraphNodes()

TSharedRef< SWidget > SDialogueBrowser::MakeButtonWidgetForGraphNodes ( const TArray< TSharedPtr< FDialogueBrowserTreeNode > > & InChildren)
protected

Definition at line 1098 of file SDialogueBrowser.cpp.

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

◆ MakeClassVariableCategoriesChildren()

TArray< TSharedPtr< FDialogueBrowserTreeNode > > SDialogueBrowser::MakeClassVariableCategoriesChildren ( const TSharedPtr< FDialogueBrowserTreeNode > & Parent,
const TSharedPtr< FDialogueBrowserTreeParticipantProperties > & ParticipantProperties,
bool bHideEmptyCategories ) const
protected

Definition at line 1630 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ MakeCustomObjectIconAndTextWidget()

TSharedRef< SHorizontalBox > SDialogueBrowser::MakeCustomObjectIconAndTextWidget ( const FText & InText,
const FSlateBrush * IconBrush,
UClass * Class,
EDialogueBlueprintOpenType OpenType,
FName FunctionNameToOpen,
int32 IconSize = 24 )
protected

Definition at line 1724 of file SDialogueBrowser.cpp.

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

◆ MakeIconAndTextWidget()

TSharedRef< SHorizontalBox > SDialogueBrowser::MakeIconAndTextWidget ( const FText & InText,
const FSlateBrush * IconBrush,
int32 IconSize = 24 )
protected

Definition at line 1691 of file SDialogueBrowser.cpp.

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

◆ MakeInlineWidget()

TSharedRef< SWidget > SDialogueBrowser::MakeInlineWidget ( const TSharedPtr< FDialogueBrowserTreeNode > & InItem)
protected

Definition at line 1134 of file SDialogueBrowser.cpp.

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

◆ MakeParticipantCategoriesChildren()

TArray< TSharedPtr< FDialogueBrowserTreeNode > > SDialogueBrowser::MakeParticipantCategoriesChildren ( const TSharedPtr< FDialogueBrowserTreeNode > & Parent,
const TSharedPtr< FDialogueBrowserTreeParticipantProperties > & ParticipantProperties,
bool bHideEmptyCategories ) const
protected

Definition at line 1521 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ MakeVariableCategoriesChildren()

TArray< TSharedPtr< FDialogueBrowserTreeNode > > SDialogueBrowser::MakeVariableCategoriesChildren ( const TSharedPtr< FDialogueBrowserTreeNode > & Parent,
const TSharedPtr< FDialogueBrowserTreeParticipantProperties > & ParticipantProperties,
bool bHideEmptyCategories ) const
protected

Definition at line 1580 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ OnBrowseAssetClicked()

FReply SDialogueBrowser::OnBrowseAssetClicked ( UClass * Class)
staticprotected

Definition at line 1802 of file SDialogueBrowser.cpp.

Here is the caller graph for this function:

◆ OnOpenAssetClicked()

FReply SDialogueBrowser::OnOpenAssetClicked ( UClass * Class,
EDialogueBlueprintOpenType OpenType,
FName FunctionNameToOpen )
staticprotected

Definition at line 1821 of file SDialogueBrowser.cpp.

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

◆ RefreshTree()

void SDialogueBrowser::RefreshTree ( bool bPreserveExpansion)

Definition at line 243 of file SDialogueBrowser.cpp.

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

◆ SLATE_BEGIN_ARGS()

SDialogueBrowser::SLATE_BEGIN_ARGS ( Self )
inline

Definition at line 27 of file SDialogueBrowser.h.

Member Data Documentation

◆ DefaultSortOption

SortOptionType SDialogueBrowser::DefaultSortOption
protected

Definition at line 206 of file SDialogueBrowser.h.

◆ FilterString

FString SDialogueBrowser::FilterString
protected

Definition at line 180 of file SDialogueBrowser.h.

◆ FilterTextBoxWidget

TSharedPtr<SSearchBox> SDialogueBrowser::FilterTextBoxWidget
protected

Definition at line 177 of file SDialogueBrowser.h.

◆ ParticipantsProperties

TMap<FName, TSharedPtr<FDialogueBrowserTreeParticipantProperties> > SDialogueBrowser::ParticipantsProperties
protected

Used for fast lookup of each participants Key: Participant Name Value: participant properties

Definition at line 196 of file SDialogueBrowser.h.

◆ ParticipantsTreeView

TSharedPtr<STreeView<TSharedPtr<FDialogueBrowserTreeNode> > > SDialogueBrowser::ParticipantsTreeView
protected

Definition at line 189 of file SDialogueBrowser.h.

◆ RootChildren

TArray<TSharedPtr<FDialogueBrowserTreeNode> > SDialogueBrowser::RootChildren
protected

Definition at line 186 of file SDialogueBrowser.h.

◆ RootTreeItem

TSharedPtr<FDialogueBrowserTreeNode> SDialogueBrowser::RootTreeItem
protected

Definition at line 183 of file SDialogueBrowser.h.

◆ SelectedSortOption

SortOptionType SDialogueBrowser::SelectedSortOption
protected

Definition at line 209 of file SDialogueBrowser.h.

◆ SortOptions

TArray<SortOptionType> SDialogueBrowser::SortOptions
protected

Definition at line 203 of file SDialogueBrowser.h.


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