Files
UnrealEngineUWP/Engine/Source/Editor/EditorWidgets/Private/EditorWidgetsModule.cpp
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

42 lines
1.2 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "EditorWidgetsModule.h"
#include "Modules/ModuleManager.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "SObjectNameEditableTextBox.h"
#include "SAssetDiscoveryIndicator.h"
#include "ITransportControl.h"
#include "STransportControl.h"
IMPLEMENT_MODULE( FEditorWidgetsModule, EditorWidgets );
const FName FEditorWidgetsModule::EditorWidgetsAppIdentifier( TEXT( "EditorWidgetsApp" ) );
void FEditorWidgetsModule::StartupModule()
{
}
void FEditorWidgetsModule::ShutdownModule()
{
}
TSharedRef<IObjectNameEditableTextBox> FEditorWidgetsModule::CreateObjectNameEditableTextBox(const TArray<TWeakObjectPtr<UObject>>& Objects)
{
TSharedRef<SObjectNameEditableTextBox> Widget = SNew(SObjectNameEditableTextBox).Objects(Objects);
return Widget;
}
TSharedRef<SWidget> FEditorWidgetsModule::CreateAssetDiscoveryIndicator(EAssetDiscoveryIndicatorScaleMode::Type ScaleMode, FMargin Padding, bool bFadeIn)
{
return SNew(SAssetDiscoveryIndicator)
.ScaleMode(ScaleMode)
.Padding(Padding)
.FadeIn(bFadeIn);
}
TSharedRef<ITransportControl> FEditorWidgetsModule::CreateTransportControl(const FTransportControlArgs& Args)
{
return SNew(STransportControl)
.TransportArgs(Args);
}