2014-03-14 14:13:41 -04:00
|
|
|
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "CurveAssetEditorPrivatePCH.h"
|
|
|
|
|
#include "ModuleManager.h"
|
|
|
|
|
#include "CurveAssetEditor.h"
|
2014-08-14 11:09:42 -04:00
|
|
|
#include "RichCurveEditorCommands.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
//#include "Toolkits/ToolkitManager.h"
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_MODULE( FCurveAssetEditorModule, CurveAssetEditor );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const FName FCurveAssetEditorModule::CurveAssetEditorAppIdentifier( TEXT( "CurveAssetEditorApp" ) );
|
|
|
|
|
|
|
|
|
|
void FCurveAssetEditorModule::StartupModule()
|
|
|
|
|
{
|
|
|
|
|
MenuExtensibilityManager = MakeShareable(new FExtensibilityManager);
|
2014-08-14 11:09:42 -04:00
|
|
|
FRichCurveEditorCommands::Register();
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FCurveAssetEditorModule::ShutdownModule()
|
|
|
|
|
{
|
|
|
|
|
MenuExtensibilityManager.Reset();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TSharedRef<ICurveAssetEditor> FCurveAssetEditorModule::CreateCurveAssetEditor( const EToolkitMode::Type Mode, const TSharedPtr< IToolkitHost >& InitToolkitHost, UCurveBase* CurveToEdit )
|
|
|
|
|
{
|
|
|
|
|
TSharedRef< FCurveAssetEditor > NewCurveAssetEditor( new FCurveAssetEditor() );
|
|
|
|
|
NewCurveAssetEditor->InitCurveAssetEditor( Mode, InitToolkitHost, CurveToEdit );
|
|
|
|
|
return NewCurveAssetEditor;
|
|
|
|
|
}
|
|
|
|
|
|