Files
UnrealEngineUWP/Engine/Source/Editor/DistCurveEditor/Private/DistCurveEditorModule.cpp
Matthew Griffin bb70b349ce Merging CL 2804086 from //UE4/Release-4.11 to Dev-Main (//UE4/Dev-Main) to isolate copyright update
#lockdown Nick.Penwarden

[CL 2819020 by Matthew Griffin in Main branch]
2016-01-07 08:17:16 -05:00

45 lines
1.6 KiB
C++

// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "DistCurveEditorModule.h"
#include "ModuleManager.h"
#include "SDistributionCurveEditor.h"
const FName DistCurveEditorAppIdentifier = FName(TEXT("DistCurveEditorApp"));
/*-----------------------------------------------------------------------------
FDistributionCurveEditorModule
-----------------------------------------------------------------------------*/
class FDistributionCurveEditorModule : public IDistributionCurveEditorModule
{
public:
/** Constructor, set up console commands and variables **/
FDistributionCurveEditorModule()
{
}
/** Called right after the module DLL has been loaded and the module object has been created */
virtual void StartupModule() override
{
}
/** Called before the module is unloaded, right before the module object is destroyed. */
virtual void ShutdownModule() override
{
}
virtual TSharedRef<IDistributionCurveEditor> CreateCurveEditorWidget(UInterpCurveEdSetup* EdSetup, FCurveEdNotifyInterface* NotifyObject) override
{
return CreateCurveEditorWidget(EdSetup, NotifyObject, IDistributionCurveEditor::FCurveEdOptions());
}
virtual TSharedRef<IDistributionCurveEditor> CreateCurveEditorWidget(UInterpCurveEdSetup* EdSetup, FCurveEdNotifyInterface* NotifyObject, IDistributionCurveEditor::FCurveEdOptions Options) override
{
TSharedRef<IDistributionCurveEditor> Widget = SNew(SDistributionCurveEditor).EdSetup(EdSetup).NotifyObject(NotifyObject).CurveEdOptions(Options);
return Widget;
}
};
IMPLEMENT_MODULE( FDistributionCurveEditorModule, DistCurveEditor );