Files
UnrealEngineUWP/Engine/Source/Developer/SuperSearch/Private/SuperSearchModule.cpp
bruce nesbit 15873e22b5 Added suport for classes to register with super search for handling/acting on searches
Hooked in feature packs to show in super search using tags in the FP manifests
Added some keywords to manifests for super search

[CL 2526727 by bruce nesbit in Main branch]
2015-04-27 05:56:20 -04:00

37 lines
934 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "SuperSearchPrivatePCH.h"
#include "SSuperSearch.h"
IMPLEMENT_MODULE( FSuperSearchModule,SuperSearch );
namespace SuperSearchModule
{
static const FName FNameSuperSearchApp = FName(TEXT("SuperSearchApp"));
}
FSearchEntry * FSearchEntry::MakeCategoryEntry(const FString & InTitle)
{
FSearchEntry * SearchEntry = new FSearchEntry();
SearchEntry->Title = InTitle;
SearchEntry->bCategory = true;
return SearchEntry;
}
void FSuperSearchModule::StartupModule()
{
}
void FSuperSearchModule::ShutdownModule()
{
}
TSharedRef< SWidget > FSuperSearchModule::MakeSearchBox(TSharedPtr< SEditableTextBox >& OutExposedEditableTextBox, const TOptional<const FSearchBoxStyle*> InStyle) const
{
TSharedRef< SSuperSearchBox > NewSearchBox = SNew(SSuperSearchBox).Style(InStyle);
OutExposedEditableTextBox = NewSearchBox->GetEditableTextBox();
return NewSearchBox;
}