Files
UnrealEngineUWP/Engine/Source/Editor/UnrealEd/Private/EditorViewportLayoutEntity.cpp
brooke hubert 8af7d42fa5 Level Editor Viewports now inherit from SAssetEditorViewport.
#rnx
#Jira UE-94283
#rb lauren.barnes chris.gagnon

[CL 13873728 by brooke hubert in ue5-main branch]
2020-07-16 08:12:40 -04:00

56 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "EditorViewportLayoutEntity.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Editor/UnrealEdEngine.h"
#include "LevelEditorViewport.h"
#include "UnrealEdGlobals.h"
#include "SAssetEditorViewport.h"
#include "EditorViewportCommands.h"
#include "EditorViewportTabContent.h"
FEditorViewportLayoutEntity::FEditorViewportLayoutEntity(TSharedPtr<SAssetEditorViewport>& InViewport)
: AssetEditorViewport(InViewport)
{
check(AssetEditorViewport.IsValid());
}
TSharedRef<SWidget> FEditorViewportLayoutEntity::AsWidget() const
{
return AssetEditorViewport.ToSharedRef();
}
TSharedPtr<SAssetEditorViewport> FEditorViewportLayoutEntity::AsAssetEditorViewport() const
{
return AssetEditorViewport;
}
FName FEditorViewportLayoutEntity::GetType() const
{
static FName DefaultName("Default");
return DefaultName;
}
TSharedPtr<FEditorViewportClient> FEditorViewportLayoutEntity::GetViewportClient() const
{
return AssetEditorViewport->GetViewportClient();
}
void FEditorViewportLayoutEntity::SetKeyboardFocus()
{
}
void FEditorViewportLayoutEntity::OnLayoutDestroyed()
{
}
void FEditorViewportLayoutEntity::SaveConfig(const FString& ConfigSection)
{
}
void FEditorViewportLayoutEntity::TakeHighResScreenShot() const
{
GetViewportClient()->TakeHighResScreenShot();
}