You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
31 lines
993 B
C++
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();
|
|
};
|