Files
UnrealEngineUWP/Engine/Source/Developer/AutomationWindow/Private/AutomationWindowModule.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

57 lines
1.3 KiB
C++

// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "AutomationWindowPrivatePCH.h"
/**
* Implements the AutomationWindow module.
*/
class FAutomationWindowModule
: public IAutomationWindowModule
{
public:
// IAutomationWindowModule interface
virtual TSharedRef<class SWidget> CreateAutomationWindow( const IAutomationControllerManagerRef& AutomationController, const TSharedRef<ISessionManager>& SessionManager ) override
{
return SNew(SAutomationWindow, AutomationController, SessionManager);
}
virtual TWeakPtr<class SDockTab> GetAutomationWindowTab( ) override
{
return AutomationWindowTabPtr;
}
virtual FOnAutomationWindowModuleShutdown& OnShutdown( ) override
{
return ShutdownDelegate;
}
virtual void SetAutomationWindowTab(TWeakPtr<class SDockTab> AutomationWindowTab) override { AutomationWindowTabPtr = AutomationWindowTab; }
public:
// IModuleInterface interface
virtual void StartupModule( ) override
{
}
virtual void ShutdownModule( ) override
{
ShutdownDelegate.ExecuteIfBound();
}
private:
// Holds the DockTab for the AutomationWindow
TWeakPtr<class SDockTab> AutomationWindowTabPtr;
// Holds FAutomationWindowModuleShutdownCallback
FOnAutomationWindowModuleShutdown ShutdownDelegate;
};
IMPLEMENT_MODULE(FAutomationWindowModule, AutomationWindow);