Files
UnrealEngineUWP/Engine/Source/Developer/AutomationWindow/Private/AutomationWindowModule.cpp
Max Preussner 121fccd2ab Code and documentation cleanup pass
- removed dummy UClasses (no longer needed)
- removed file header comments (not used)
- removed duplicated function documentation in cpp files
- documentation cleanup, punctuation, spelling etc.
- pragma once include guards (now work on all platforms)
- relative public includes (are auto-discovered by UBT)
- fixed too many/too few line breaks
- deleted empty files
- missing override
- NULL to nullptr

[CL 2305058 by Max Preussner in Main branch]
2014-09-21 20:35:48 -04:00

57 lines
1.3 KiB
C++

// Copyright 1998-2014 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 ISessionManagerRef& 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);