You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-OWNER: ryan.durand #ROBOMERGE-AUTHOR: ryan.durand #ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900 #ROBOMERGE-BOT: (v613-10869866) [CL 10870549 by ryan durand in Main branch]
54 lines
1.4 KiB
C++
54 lines
1.4 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Widgets/Testing/SPerfSuite.h"
|
|
#include "Modules/ModuleManager.h"
|
|
#include "Widgets/DeclarativeSyntaxSupport.h"
|
|
#include "Application/SlateWindowHelper.h"
|
|
#include "Framework/Docking/TabManager.h"
|
|
|
|
#if !UE_BUILD_SHIPPING
|
|
|
|
#include "Widgets/Docking/SDockTab.h"
|
|
#include "Framework/Testing/STableViewTesting.h"
|
|
#include "ISlateReflectorModule.h"
|
|
|
|
void SummonPerfTestSuite()
|
|
{
|
|
// Need to load this module so we have the widget reflector tab available
|
|
FModuleManager::LoadModuleChecked<ISlateReflectorModule>("SlateReflector");
|
|
|
|
auto SpawnTableViewTesting = [](const FSpawnTabArgs&) -> TSharedRef<SDockTab>
|
|
{
|
|
return SNew(SDockTab)
|
|
.TabRole(ETabRole::NomadTab)
|
|
[
|
|
MakeTableViewTesting()
|
|
];
|
|
};
|
|
|
|
FGlobalTabmanager::Get()->RegisterNomadTabSpawner("TableViewTesting", FOnSpawnTab::CreateLambda(SpawnTableViewTesting));
|
|
|
|
TSharedRef<FTabManager::FLayout> Layout = FTabManager::NewLayout( "PerfTestSuite_Layout" )
|
|
->AddArea
|
|
(
|
|
FTabManager::NewArea(1920,1200)
|
|
->Split
|
|
(
|
|
FTabManager::NewStack()
|
|
->AddTab("TableViewTesting", ETabState::OpenedTab)
|
|
)
|
|
)
|
|
->AddArea
|
|
(
|
|
FTabManager::NewArea(640,800)
|
|
->Split
|
|
(
|
|
FTabManager::NewStack()->AddTab("WidgetReflector", ETabState::OpenedTab)
|
|
)
|
|
);
|
|
|
|
FGlobalTabmanager::Get()->RestoreFrom(Layout, TSharedPtr<SWindow>());
|
|
}
|
|
|
|
#endif // #if !UE_BUILD_SHIPPING
|