Files
UnrealEngineUWP/Engine/Source/Developer/ProjectLauncher/Private/Widgets/SProjectLauncherPreviewPage.h
Jamie Dale a569f6b356 Fixed code relying on SLATE_TEXT_ATTRIBUTE for STextBlock.
UETOOL-213 - Minimize Slate FString -> FText conversion (remove SLATE_TEXT_ATTRIBUTE)

This fixes any editor/engine specific code that was passing text to Slate as FString rather than FText.

[CL 2399803 by Jamie Dale in Main branch]
2015-01-07 09:52:40 -05:00

108 lines
3.5 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
/**
* Implements the launcher's preview page.
*/
class SProjectLauncherPreviewPage
: public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SProjectLauncherPreviewPage) { }
SLATE_END_ARGS()
public:
/**
* Constructs the widget.
*
* @param InArgs The Slate argument list.
* @param InModel The data model.
*/
void Construct( const FArguments& InArgs, const FProjectLauncherModelRef& InModel );
public:
virtual void Tick( const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime ) override;
protected:
/**
* Refreshes the list of device proxies.
*/
void RefreshDeviceProxyList( );
private:
// Callback for getting the text in the 'Build Configuration' text block.
FText HandleBuildConfigurationTextBlockText( ) const;
// Callback for getting the list of platforms to build for.
FText HandleBuildPlatformsTextBlockText() const;
// Callback for getting the text in the 'Command Line' text block.
FText HandleCommandLineTextBlockText() const;
// Callback for getting the text in the 'Cooked Cultures' text block.
FText HandleCookedCulturesTextBlockText() const;
// Callback for getting the text in the 'Cooked Maps' text block.
FText HandleCookedMapsTextBlockText() const;
// Callback for getting the text in the 'Cooker Options' text block.
FText HandleCookerOptionsTextBlockText() const;
// Callback for getting the visibility of the specified cook summary box.
EVisibility HandleCookSummaryBoxVisibility( ELauncherProfileCookModes::Type CookMode ) const;
// Callback for getting the visibility of the deploy details box.
EVisibility HandleDeployDetailsBoxVisibility( ) const;
// Callback for getting the visibility of the specified deploy summary box.
EVisibility HandleDeploySummaryBoxVisibility( ELauncherProfileDeploymentModes::Type DeploymentMode ) const;
// Callback for generating a row for the device list.
TSharedRef<ITableRow> HandleDeviceProxyListViewGenerateRow( ITargetDeviceProxyPtr InItem, const TSharedRef<STableViewBase>& OwnerTable );
// Callback for getting the text in the 'Initial Culture' text block.
FText HandleInitialCultureTextBlockText( ) const;
// Callback for getting the text in the 'Initial Map' text block.
FText HandleInitialMapTextBlockText( ) const;
// Callback for getting the visibility of the specified cook summary box.
EVisibility HandleLaunchSummaryBoxVisibility( ELauncherProfileLaunchModes::Type LaunchMode ) const;
// Callback for getting the text in the 'VSync' text block.
FText HandleLaunchVsyncTextBlockText( ) const;
// Callback for getting the visibility of the specified cook summary box.
EVisibility HandlePackageSummaryBoxVisibility( ELauncherProfilePackagingModes::Type PackagingMode ) const;
// Callback for getting the text in the 'Game' text block.
FText HandleProjectTextBlockText( ) const;
// Callback for getting the name of the selected device group.
FText HandleSelectedDeviceGroupTextBlockText( ) const;
// Callback for getting the name of the selected profile.
FText HandleSelectedProfileTextBlockText( ) const;
// Callback for determining the visibility of a validation error icon.
EVisibility HandleValidationErrorIconVisibility( ELauncherProfileValidationErrors::Type Error ) const;
private:
// Holds the list of available device proxies.
TArray<ITargetDeviceProxyPtr> DeviceProxyList;
// Holds the device proxy list view.
TSharedPtr<SListView<ITargetDeviceProxyPtr> > DeviceProxyListView;
// Holds a pointer to the data model.
FProjectLauncherModelPtr Model;
};