Files
UnrealEngineUWP/Engine/Source/Editor/LevelEditor/Public/LevelViewportTabContent.h
brooke hubert a3564a7967 Fix for level viewport layout not saving/loading from user settings post CL 14066626.
#rnx
#Jira none
#rb lauren.barnes

[CL 14078925 by brooke hubert in ue5-main branch]
2020-08-11 13:54:17 -04:00

31 lines
993 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "LevelViewportLayout.h"
#include "EditorViewportTabContent.h"
class ILevelEditor;
class FEditorViewportLayout;
/**
* Represents the content in a viewport tab in the level editor.
* Each SDockTab holding viewports in the level editor contains and owns one of these.
*/
class LEVELEDITOR_API FLevelViewportTabContent : public FEditorViewportTabContent
{
public:
~FLevelViewportTabContent();
/** Starts the tab content object and creates the initial layout based on the layout string */
virtual void Initialize(AssetEditorViewportFactoryFunction Func, TSharedPtr<SDockTab> InParentTab, const FString& InLayoutString) override;
protected:
virtual TSharedPtr<FEditorViewportLayout> FactoryViewportLayout(bool bIsSwitchingLayouts) override;
virtual FName GetLayoutTypeNameFromLayoutString() const override;
void OnLayoutStartChange(bool bSwitchingLayouts);
void OnLayoutChanged();
};