Files
UnrealEngineUWP/Engine/Source/Developer/SuperSearch/Private/SuperSearchModule.cpp

37 lines
934 B
C++
Raw Normal View History

// 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;
}