You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
53 lines
1.5 KiB
C++
53 lines
1.5 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#ifndef __LevelViewportLayoutTwoPanes_h__
|
|
#define __LevelViewportLayoutTwoPanes_h__
|
|
|
|
#pragma once
|
|
|
|
#include "LevelViewportLayout.h"
|
|
|
|
template <EOrientation TOrientation>
|
|
class TLevelViewportLayoutTwoPanes : public FLevelViewportLayout
|
|
{
|
|
public:
|
|
/**
|
|
* Saves viewport layout information between editor sessions
|
|
*/
|
|
virtual void SaveLayoutString(const FString& LayoutString) const override;
|
|
protected:
|
|
/**
|
|
* Creates the viewports and splitter for the two panes vertical layout
|
|
*/
|
|
virtual TSharedRef<SWidget> MakeViewportLayout(const FString& LayoutString) override;
|
|
|
|
/** Overridden from FLevelViewportLayout */
|
|
virtual void ReplaceWidget( TSharedRef< SWidget > Source, TSharedRef< SWidget > Replacement ) override;
|
|
|
|
|
|
private:
|
|
/** The splitter widget */
|
|
TSharedPtr< class SSplitter > SplitterWidget;
|
|
};
|
|
|
|
|
|
// FLevelViewportLayoutTwoPanesVert /////////////////////////////
|
|
|
|
class FLevelViewportLayoutTwoPanesVert : public TLevelViewportLayoutTwoPanes<EOrientation::Orient_Vertical>
|
|
{
|
|
public:
|
|
virtual const FName& GetLayoutTypeName() const override { return LevelViewportConfigurationNames::TwoPanesVert; }
|
|
};
|
|
|
|
|
|
// FLevelViewportLayoutTwoPanesHoriz /////////////////////////////
|
|
|
|
class FLevelViewportLayoutTwoPanesHoriz : public TLevelViewportLayoutTwoPanes<EOrientation::Orient_Horizontal>
|
|
{
|
|
public:
|
|
virtual const FName& GetLayoutTypeName() const override { return LevelViewportConfigurationNames::TwoPanesHoriz; }
|
|
};
|
|
|
|
#endif
|