2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
2014-12-12 17:38:18 -05:00
|
|
|
class ISessionManager;
|
|
|
|
|
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
/** Delegate to call when the automation window module is shutdown. */
|
|
|
|
|
DECLARE_DELEGATE(FOnAutomationWindowModuleShutdown);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Automation Window module
|
|
|
|
|
*/
|
|
|
|
|
class IAutomationWindowModule
|
|
|
|
|
: public IModuleInterface
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
/**
|
2014-09-21 20:35:48 -04:00
|
|
|
* Creates a Automation Window widget.
|
2014-03-14 14:13:41 -04:00
|
|
|
*
|
2014-09-21 20:35:48 -04:00
|
|
|
* @param AutomationController The automation controller to use.
|
|
|
|
|
* @param SessionManager The session manager to use.
|
2014-03-14 14:13:41 -04:00
|
|
|
* @return New Automation Test window widget
|
|
|
|
|
*/
|
2014-12-12 17:38:18 -05:00
|
|
|
virtual TSharedRef<class SWidget> CreateAutomationWindow( const IAutomationControllerManagerRef& AutomationController, const TSharedRef<ISessionManager>& SessionManager ) = 0;
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
/**
|
2014-09-21 20:35:48 -04:00
|
|
|
* Store a pointer to the AutomationWindowTab.
|
2014-03-14 14:13:41 -04:00
|
|
|
*
|
2014-09-21 20:35:48 -04:00
|
|
|
* @return a weak pointer to the automation tab.
|
2014-03-14 14:13:41 -04:00
|
|
|
*/
|
|
|
|
|
virtual TWeakPtr<class SDockTab> GetAutomationWindowTab() = 0;
|
|
|
|
|
|
|
|
|
|
/**
|
2014-09-21 20:35:48 -04:00
|
|
|
* Store a pointer to the AutomationWindowTab.
|
2014-03-14 14:13:41 -04:00
|
|
|
*
|
2014-09-21 20:35:48 -04:00
|
|
|
* @param AutomationWindowTab a weak pointer to the automation tab.
|
2014-03-14 14:13:41 -04:00
|
|
|
*/
|
|
|
|
|
virtual void SetAutomationWindowTab(TWeakPtr<class SDockTab> AutomationWindowTab) = 0;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets a delegate that is invoked when the automation window module shuts down.
|
|
|
|
|
*
|
|
|
|
|
* @return The delegate.
|
|
|
|
|
*/
|
|
|
|
|
virtual FOnAutomationWindowModuleShutdown& OnShutdown( ) = 0;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
2014-09-21 20:35:48 -04:00
|
|
|
/** Virtual destructor. */
|
2014-03-14 14:13:41 -04:00
|
|
|
~IAutomationWindowModule( ) { }
|
|
|
|
|
};
|