You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Headers are updated to contain any missing #includes needed to compile and #includes are sorted. Nothing is removed. #ushell-cherrypick of 21065896 by bryan.sefcik #preflight 62d4b1a5a6141b6adfb0c892 #jira #ROBOMERGE-OWNER: Bryan.sefcik #ROBOMERGE-AUTHOR: bryan.sefcik #ROBOMERGE-SOURCE: CL 21150156 via CL 21151754 via CL 21154719 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824) #ROBOMERGE-CONFLICT from-shelf [CL 21181076 by Bryan sefcik in ue5-main branch]
68 lines
2.6 KiB
C++
68 lines
2.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Containers/UnrealString.h"
|
|
#include "CoreMinimal.h"
|
|
#include "CoreTypes.h"
|
|
#include "Delegates/Delegate.h"
|
|
#include "Internationalization/Text.h"
|
|
#include "Misc/AssertionMacros.h"
|
|
#include "Templates/SharedPointer.h"
|
|
#include "UObject/Object.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "UObject/UObjectGlobals.h"
|
|
|
|
#include "LiveLinkSourceFactory.generated.h"
|
|
|
|
class ILiveLinkClient;
|
|
class ILiveLinkSource;
|
|
class SWidget;
|
|
|
|
/**
|
|
* Base class of factory that creates Source. A source can be created in the editor via the Live Link panel or at runtime via a connection string.
|
|
*/
|
|
UCLASS(Abstract)
|
|
class LIVELINKINTERFACE_API ULiveLinkSourceFactory : public UObject
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
/** The name of the menu item (of any EMenuType) */
|
|
virtual FText GetSourceDisplayName() const PURE_VIRTUAL( ULiveLinkSourceFactory::GetSourceDisplayName, return FText(); );
|
|
|
|
/** The tooltip of the menu item (of any EMenyType) */
|
|
virtual FText GetSourceTooltip() const PURE_VIRTUAL(ULiveLinkSourceFactory::GetSourceTooltip, return FText(); );
|
|
|
|
UE_DEPRECATED(4.23, "CreateSourceCreationPanel is deprecated. LiveLinkSourceFactory can now be used at runtime. This factory won't work until it's been updated.")
|
|
virtual TSharedPtr<SWidget> CreateSourceCreationPanel();
|
|
|
|
UE_DEPRECATED(4.23, "OnSourceCreationPanelClosed is deprecated. LiveLinkSourceFactory can now be used at runtime. The factory won't work until it's been updated.")
|
|
virtual TSharedPtr<ILiveLinkSource> OnSourceCreationPanelClosed(bool bMakeSource);
|
|
|
|
enum class EMenuType
|
|
{
|
|
SubPanel, // In the UI, a sub menu will used
|
|
MenuEntry, // In the UI, a button will be used
|
|
Disabled, // In the UI, the button will be used but it will be disabled
|
|
};
|
|
|
|
/**
|
|
* How the factory should be visible in the LiveLink UI.
|
|
* If SubPanel, BuildCreationPanel should be implemented.
|
|
*/
|
|
virtual EMenuType GetMenuType() const { return EMenuType::Disabled; }
|
|
|
|
DECLARE_DELEGATE_TwoParams(FOnLiveLinkSourceCreated, TSharedPtr<ILiveLinkSource> /*Created source*/, FString /*ConnectionString*/);
|
|
|
|
/**
|
|
* Create a widget responsible for the creation of a Live Link source.
|
|
* @param OnLiveLinkSourceCreated Callback to call when the source has been created by the custom UI.
|
|
* @return The subpanel UI created by the factory.
|
|
*/
|
|
virtual TSharedPtr<SWidget> BuildCreationPanel(FOnLiveLinkSourceCreated OnLiveLinkSourceCreated) const;
|
|
|
|
/** Create a new source from a ConnectionString */
|
|
virtual TSharedPtr<ILiveLinkSource> CreateSource(const FString& ConnectionString) const PURE_VIRTUAL(ULiveLinkSourceFactory::CreateSource, return TSharedPtr<ILiveLinkSource>(); );
|
|
};
|