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

#include <DialogueSearchManager.h>

Public Member Functions

 FDialogueSearchManager ()
 
 ~FDialogueSearchManager ()
 
void CloseGlobalFindResults (const TSharedRef< SFindInDialogues > &FindResults)
 
void DisableGlobalFindResults ()
 
void EnableGlobalFindResults (TSharedPtr< FWorkspaceItem > ParentTabCategory=nullptr)
 
TSharedPtr< SFindInDialoguesGetGlobalFindResults ()
 
FText GetGlobalFindResultsTabLabel (int32 TabIdx)
 
void Initialize (TSharedPtr< FWorkspaceItem > ParentTabCategory=nullptr)
 
void QueryAllDialogues (const FDialogueSearchFilter &SearchFilter, TSharedPtr< FDialogueSearchResult > &OutParentNode)
 
bool QueryCommentNode (const FDialogueSearchFilter &SearchFilter, const UEdGraphNode_Comment *InCommentNode, const TSharedPtr< FDialogueSearchResult > &OutParentNode)
 
bool QueryDlgCondition (const FDialogueSearchFilter &SearchFilter, const FDlgCondition &InDlgCondition, const TSharedPtr< FDialogueSearchResult > &OutParentNode, int32 ConditionIndex=INDEX_NONE, FName ConditionMemberName=TEXT("Condition"))
 
bool QueryDlgEdge (const FDialogueSearchFilter &SearchFilter, const FDlgEdge &InDlgEdge, const TSharedPtr< FDialogueSearchResult > &OutParentNode)
 
bool QueryDlgEvent (const FDialogueSearchFilter &SearchFilter, const FDlgEvent &InDlgEvent, const TSharedPtr< FDialogueSearchResult > &OutParentNode, int32 EventIndex=INDEX_NONE, FName EventMemberName=TEXT("Event"))
 
bool QueryDlgTextArgument (const FDialogueSearchFilter &SearchFilter, const FDlgTextArgument &InDlgTextArgument, const TSharedPtr< FDialogueSearchResult > &OutParentNode, int32 ArgumentIndex=INDEX_NONE)
 
bool QueryEdgeNode (const FDialogueSearchFilter &SearchFilter, const UDialogueGraphNode_Edge *InEdgeNode, const TSharedPtr< FDialogueSearchResult > &OutParentNode)
 
bool QueryGraphNode (const FDialogueSearchFilter &SearchFilter, const UDialogueGraphNode *InGraphNode, const TSharedPtr< FDialogueSearchResult > &OutParentNode)
 
bool QuerySingleDialogue (const FDialogueSearchFilter &SearchFilter, const UDlgDialogue *InDialogue, TSharedPtr< FDialogueSearchResult > &OutParentNode)
 
void UnInitialize ()
 

Static Public Member Functions

static SelfGet ()
 

Private Types

typedef FDialogueSearchManager Self
 

Private Member Functions

void BuildCache ()
 
void HandleOnAssetAdded (const FAssetData &InAssetData)
 
void HandleOnAssetLoaded (UObject *InAsset)
 
void HandleOnAssetRegistryFilesLoaded ()
 
void HandleOnAssetRemoved (const FAssetData &InAssetData)
 
void HandleOnAssetRenamed (const FAssetData &InAssetData, const FString &InOldName)
 
TSharedPtr< FDialogueSearchResultMakeChildTextNode (const TSharedPtr< FDialogueSearchResult > &ParentNode, const FText &DisplayName, const FText &Category, const FString &CommentString)
 
TSharedPtr< SFindInDialoguesOpenGlobalFindResultsTab ()
 
bool SearchForTextLocalizationData (const TSharedPtr< FDialogueSearchResult > &ParentNode, const FString &SearchString, const FText &Text, const FText &NamespaceCategory, const FString &NamespaceCommentString, const FText &KeyCategory, const FString &KeyCommentString)
 
TSharedRef< SDockTab > SpawnGlobalFindResultsTab (const FSpawnTabArgs &SpawnTabArgs, int32 TabIdx)
 

Private Attributes

IAssetRegistry * AssetRegistry = nullptr
 
TSharedPtr< FWorkspaceItem > GlobalFindResultsMenuItem
 
FName GlobalFindResultsTabIDs [MAX_GLOBAL_DIALOGUE_SEARCH_RESULTS]
 
TArray< TWeakPtr< SFindInDialogues > > GlobalFindResultsWidgets
 
FDelegateHandle OnAssetAddedHandle
 
FDelegateHandle OnAssetLoadedHandle
 
FDelegateHandle OnAssetRemovedHandle
 
FDelegateHandle OnAssetRenamedHandle
 
FDelegateHandle OnFilesLoadedHandle
 
TMap< FName, FDialogueSearchDataSearchMap
 

Static Private Attributes

static SelfInstance = nullptr
 

Detailed Description

Singleton manager for handling all Dialogue searches

Definition at line 33 of file DialogueSearchManager.h.

Member Typedef Documentation

◆ Self

Constructor & Destructor Documentation

◆ FDialogueSearchManager()

FDialogueSearchManager::FDialogueSearchManager ( )

Definition at line 44 of file DialogueSearchManager.cpp.

◆ ~FDialogueSearchManager()

FDialogueSearchManager::~FDialogueSearchManager ( )

Definition at line 54 of file DialogueSearchManager.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ BuildCache()

void FDialogueSearchManager::BuildCache ( )
private

Definition at line 1181 of file DialogueSearchManager.cpp.

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

◆ CloseGlobalFindResults()

void FDialogueSearchManager::CloseGlobalFindResults ( const TSharedRef< SFindInDialogues > & FindResults)

Definition at line 941 of file DialogueSearchManager.cpp.

◆ DisableGlobalFindResults()

void FDialogueSearchManager::DisableGlobalFindResults ( )

Definition at line 1083 of file DialogueSearchManager.cpp.

Here is the caller graph for this function:

◆ EnableGlobalFindResults()

void FDialogueSearchManager::EnableGlobalFindResults ( TSharedPtr< FWorkspaceItem > ParentTabCategory = nullptr)

Definition at line 1036 of file DialogueSearchManager.cpp.

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

◆ Get()

FDialogueSearchManager * FDialogueSearchManager::Get ( )
static

Definition at line 34 of file DialogueSearchManager.cpp.

Here is the caller graph for this function:

◆ GetGlobalFindResults()

TSharedPtr< SFindInDialogues > FDialogueSearchManager::GetGlobalFindResults ( )

Definition at line 1008 of file DialogueSearchManager.cpp.

Here is the call graph for this function:

◆ GetGlobalFindResultsTabLabel()

FText FDialogueSearchManager::GetGlobalFindResultsTabLabel ( int32 TabIdx)

Definition at line 911 of file DialogueSearchManager.cpp.

Here is the caller graph for this function:

◆ HandleOnAssetAdded()

void FDialogueSearchManager::HandleOnAssetAdded ( const FAssetData & InAssetData)
private

Definition at line 1205 of file DialogueSearchManager.cpp.

Here is the caller graph for this function:

◆ HandleOnAssetLoaded()

void FDialogueSearchManager::HandleOnAssetLoaded ( UObject * InAsset)
private

Definition at line 1244 of file DialogueSearchManager.cpp.

Here is the caller graph for this function:

◆ HandleOnAssetRegistryFilesLoaded()

void FDialogueSearchManager::HandleOnAssetRegistryFilesLoaded ( )
private

Definition at line 1249 of file DialogueSearchManager.cpp.

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

◆ HandleOnAssetRemoved()

void FDialogueSearchManager::HandleOnAssetRemoved ( const FAssetData & InAssetData)
private

Definition at line 1234 of file DialogueSearchManager.cpp.

Here is the caller graph for this function:

◆ HandleOnAssetRenamed()

void FDialogueSearchManager::HandleOnAssetRenamed ( const FAssetData & InAssetData,
const FString & InOldName )
private

Definition at line 1239 of file DialogueSearchManager.cpp.

Here is the caller graph for this function:

◆ Initialize()

void FDialogueSearchManager::Initialize ( TSharedPtr< FWorkspaceItem > ParentTabCategory = nullptr)

Definition at line 1121 of file DialogueSearchManager.cpp.

Here is the call graph for this function:

◆ MakeChildTextNode()

TSharedPtr< FDialogueSearchResult > FDialogueSearchManager::MakeChildTextNode ( const TSharedPtr< FDialogueSearchResult > & ParentNode,
const FText & DisplayName,
const FText & Category,
const FString & CommentString )
inlineprivate

Definition at line 155 of file DialogueSearchManager.h.

Here is the caller graph for this function:

◆ OpenGlobalFindResultsTab()

TSharedPtr< SFindInDialogues > FDialogueSearchManager::OpenGlobalFindResultsTab ( )
private

Definition at line 976 of file DialogueSearchManager.cpp.

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

◆ QueryAllDialogues()

void FDialogueSearchManager::QueryAllDialogues ( const FDialogueSearchFilter & SearchFilter,
TSharedPtr< FDialogueSearchResult > & OutParentNode )

Definition at line 895 of file DialogueSearchManager.cpp.

Here is the call graph for this function:

◆ QueryCommentNode()

bool FDialogueSearchManager::QueryCommentNode ( const FDialogueSearchFilter & SearchFilter,
const UEdGraphNode_Comment * InCommentNode,
const TSharedPtr< FDialogueSearchResult > & OutParentNode )

Searches for InSearchString in the Comment Node. Adds the result as a child in OutParentNode.

Returns
True if found anything matching the InSearchString

Definition at line 796 of file DialogueSearchManager.cpp.

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

◆ QueryDlgCondition()

bool FDialogueSearchManager::QueryDlgCondition ( const FDialogueSearchFilter & SearchFilter,
const FDlgCondition & InDlgCondition,
const TSharedPtr< FDialogueSearchResult > & OutParentNode,
int32 ConditionIndex = INDEX_NONE,
FName ConditionMemberName = TEXT("Condition") )

Searches for InSearchString in the InDlgCondition. Adds the result as a child in OutParentNode.

Returns
True if found anything matching the InSearchString

Definition at line 145 of file DialogueSearchManager.cpp.

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

◆ QueryDlgEdge()

bool FDialogueSearchManager::QueryDlgEdge ( const FDialogueSearchFilter & SearchFilter,
const FDlgEdge & InDlgEdge,
const TSharedPtr< FDialogueSearchResult > & OutParentNode )

Searches for InSearchString in the InDlgEdge. Adds the result as a child in OutParentNode.

Returns
True if found anything matching the InSearchString

Definition at line 448 of file DialogueSearchManager.cpp.

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

◆ QueryDlgEvent()

bool FDialogueSearchManager::QueryDlgEvent ( const FDialogueSearchFilter & SearchFilter,
const FDlgEvent & InDlgEvent,
const TSharedPtr< FDialogueSearchResult > & OutParentNode,
int32 EventIndex = INDEX_NONE,
FName EventMemberName = TEXT("Event") )

Searches for InSearchString in the InDlgEvent. Adds the result as a child in OutParentNode.

Returns
True if found anything matching the InSearchString

Definition at line 324 of file DialogueSearchManager.cpp.

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

◆ QueryDlgTextArgument()

bool FDialogueSearchManager::QueryDlgTextArgument ( const FDialogueSearchFilter & SearchFilter,
const FDlgTextArgument & InDlgTextArgument,
const TSharedPtr< FDialogueSearchResult > & OutParentNode,
int32 ArgumentIndex = INDEX_NONE )

Searches for InSearchString in the InDlgTextArgument. Adds the result as a child in OutParentNode.

Returns
True if found anything matching the InSearchString

Definition at line 59 of file DialogueSearchManager.cpp.

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

◆ QueryEdgeNode()

bool FDialogueSearchManager::QueryEdgeNode ( const FDialogueSearchFilter & SearchFilter,
const UDialogueGraphNode_Edge * InEdgeNode,
const TSharedPtr< FDialogueSearchResult > & OutParentNode )

Searches for InSearchString in the InEdgeNode. Adds the result as a child in OutParentNode.

Returns
True if found anything matching the InSearchString

Definition at line 755 of file DialogueSearchManager.cpp.

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

◆ QueryGraphNode()

bool FDialogueSearchManager::QueryGraphNode ( const FDialogueSearchFilter & SearchFilter,
const UDialogueGraphNode * InGraphNode,
const TSharedPtr< FDialogueSearchResult > & OutParentNode )

Searches for InSearchString in the InGraphNode. Adds the result as a child in OutParentNode.

Returns
True if found anything matching the InSearchString

Definition at line 520 of file DialogueSearchManager.cpp.

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

◆ QuerySingleDialogue()

bool FDialogueSearchManager::QuerySingleDialogue ( const FDialogueSearchFilter & SearchFilter,
const UDlgDialogue * InDialogue,
TSharedPtr< FDialogueSearchResult > & OutParentNode )

Searches for InSearchString in the InDialogue. Adds the result as a child of OutParentNode.

Returns
True if found anything matching the InSearchString

Definition at line 827 of file DialogueSearchManager.cpp.

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

◆ SearchForTextLocalizationData()

bool FDialogueSearchManager::SearchForTextLocalizationData ( const TSharedPtr< FDialogueSearchResult > & ParentNode,
const FString & SearchString,
const FText & Text,
const FText & NamespaceCategory,
const FString & NamespaceCommentString,
const FText & KeyCategory,
const FString & KeyCommentString )
inlineprivate

Definition at line 171 of file DialogueSearchManager.h.

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

◆ SpawnGlobalFindResultsTab()

TSharedRef< SDockTab > FDialogueSearchManager::SpawnGlobalFindResultsTab ( const FSpawnTabArgs & SpawnTabArgs,
int32 TabIdx )
private

Definition at line 954 of file DialogueSearchManager.cpp.

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

◆ UnInitialize()

void FDialogueSearchManager::UnInitialize ( )

Definition at line 1145 of file DialogueSearchManager.cpp.

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

Member Data Documentation

◆ AssetRegistry

IAssetRegistry* FDialogueSearchManager::AssetRegistry = nullptr
private

Definition at line 241 of file DialogueSearchManager.h.

◆ GlobalFindResultsMenuItem

TSharedPtr<FWorkspaceItem> FDialogueSearchManager::GlobalFindResultsMenuItem
private

Definition at line 250 of file DialogueSearchManager.h.

◆ GlobalFindResultsTabIDs

FName FDialogueSearchManager::GlobalFindResultsTabIDs[MAX_GLOBAL_DIALOGUE_SEARCH_RESULTS]
private

Definition at line 244 of file DialogueSearchManager.h.

◆ GlobalFindResultsWidgets

TArray<TWeakPtr<SFindInDialogues> > FDialogueSearchManager::GlobalFindResultsWidgets
private

Definition at line 247 of file DialogueSearchManager.h.

◆ Instance

FDialogueSearchManager * FDialogueSearchManager::Instance = nullptr
staticprivate

Definition at line 235 of file DialogueSearchManager.h.

◆ OnAssetAddedHandle

FDelegateHandle FDialogueSearchManager::OnAssetAddedHandle
private

Definition at line 253 of file DialogueSearchManager.h.

◆ OnAssetLoadedHandle

FDelegateHandle FDialogueSearchManager::OnAssetLoadedHandle
private

Definition at line 257 of file DialogueSearchManager.h.

◆ OnAssetRemovedHandle

FDelegateHandle FDialogueSearchManager::OnAssetRemovedHandle
private

Definition at line 254 of file DialogueSearchManager.h.

◆ OnAssetRenamedHandle

FDelegateHandle FDialogueSearchManager::OnAssetRenamedHandle
private

Definition at line 255 of file DialogueSearchManager.h.

◆ OnFilesLoadedHandle

FDelegateHandle FDialogueSearchManager::OnFilesLoadedHandle
private

Definition at line 256 of file DialogueSearchManager.h.

◆ SearchMap

TMap<FName, FDialogueSearchData> FDialogueSearchManager::SearchMap
private

Definition at line 238 of file DialogueSearchManager.h.


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