Files
UnrealEngineUWP/Engine/Source/Developer/ProjectLauncher/Private/Widgets/SProjectLauncherDeployTaskSettings.cpp
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

127 lines
3.2 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Widgets/SProjectLauncherDeployTaskSettings.h"
#include "Fonts/SlateFontInfo.h"
#include "Widgets/SOverlay.h"
#include "SlateOptMacros.h"
#include "Widgets/Layout/SSeparator.h"
#include "Widgets/Text/STextBlock.h"
#include "Widgets/Layout/SGridPanel.h"
#include "Widgets/Layout/SScrollBox.h"
#include "Widgets/Project/SProjectLauncherProjectPage.h"
#include "Widgets/Deploy/SProjectLauncherDeployPage.h"
#include "Widgets/Launch/SProjectLauncherLaunchPage.h"
#define LOCTEXT_NAMESPACE "SProjectLauncherDeployTaskSettings"
/* SProjectLauncherDeployTaskSettings structors
*****************************************************************************/
SProjectLauncherDeployTaskSettings::~SProjectLauncherDeployTaskSettings( )
{
}
/* SProjectLauncherDeployTaskSettings interface
*****************************************************************************/
BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION
void SProjectLauncherDeployTaskSettings::Construct( const FArguments& InArgs, const FProjectLauncherModelRef& InModel )
{
Model = InModel;
ChildSlot
[
SNew(SOverlay)
+ SOverlay::Slot()
.HAlign(HAlign_Fill)
[
SNew(SScrollBox)
+ SScrollBox::Slot()
.Padding(0.0f, 0.0f, 8.0f, 0.0f)
[
SNew(SGridPanel)
.FillColumn(1, 1.0f)
// project section
+ SGridPanel::Slot(0, 0)
.Padding(8.0f, 0.0f, 0.0f, 0.0f)
.VAlign(VAlign_Top)
[
SNew(STextBlock)
.Font(FSlateFontInfo(FPaths::EngineContentDir() / TEXT("Slate/Fonts/Roboto-Bold.ttf"), 13))
.Text(LOCTEXT("ProjectSectionHeader", "Project"))
]
+ SGridPanel::Slot(1, 0)
.Padding(32.0f, 0.0f, 8.0f, 0.0f)
[
SNew(SProjectLauncherProjectPage, InModel)
]
// deploy section
+ SGridPanel::Slot(0, 7)
.ColumnSpan(3)
.Padding(0.0f, 16.0f)
[
SNew(SSeparator)
.Orientation(Orient_Horizontal)
]
+ SGridPanel::Slot(0, 8)
.Padding(8.0f, 0.0f, 0.0f, 0.0f)
.VAlign(VAlign_Top)
[
SNew(STextBlock)
.Font(FSlateFontInfo(FPaths::EngineContentDir() / TEXT("Slate/Fonts/Roboto-Bold.ttf"), 13))
.Text(LOCTEXT("DeploySectionHeader", "Deploy"))
]
+ SGridPanel::Slot(1, 8)
.Padding(32.0f, 0.0f, 8.0f, 0.0f)
[
SNew(SProjectLauncherDeployPage, InModel, true)
]
// launch section
+ SGridPanel::Slot(0, 9)
.ColumnSpan(3)
.Padding(0.0f, 16.0f)
[
SNew(SSeparator)
.Orientation(Orient_Horizontal)
]
+ SGridPanel::Slot(0, 10)
.Padding(8.0f, 0.0f, 0.0f, 0.0f)
.VAlign(VAlign_Top)
[
SNew(STextBlock)
.Font(FSlateFontInfo(FPaths::EngineContentDir() / TEXT("Slate/Fonts/Roboto-Bold.ttf"), 13))
.Text(LOCTEXT("LaunchSectionHeader", "Launch"))
]
+ SGridPanel::Slot(1, 10)
.HAlign(HAlign_Fill)
.Padding(32.0f, 0.0f, 8.0f, 0.0f)
[
SNew(SProjectLauncherLaunchPage, InModel)
]
]
]
];
}
END_SLATE_FUNCTION_BUILD_OPTIMIZATION
/* SProjectLauncherDeployTaskSettings callbacks
*****************************************************************************/
#undef LOCTEXT_NAMESPACE