Files
UnrealEngineUWP/Engine/Source/Developer/ProjectLauncher/Private/Widgets/Cook/SProjectLauncherSimpleCookPage.h
ryan durand 471d972e62 Updating copyright for Engine Developer.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869240 via CL 10869516 via CL 10869902
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870584 by ryan durand in Main branch]
2019-12-26 15:32:37 -05:00

72 lines
1.9 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Layout/Visibility.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
#include "Models/ProjectLauncherModel.h"
class SEditableTextBox;
/**
* Implements the profile page for the session launcher wizard.
*/
class SProjectLauncherSimpleCookPage
: public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SProjectLauncherSimpleCookPage) { }
SLATE_END_ARGS()
public:
/**
* Destructor.
*/
~SProjectLauncherSimpleCookPage( );
public:
/**
* Constructs the widget.
*
* @param InArgs The Slate argument list.
* @param InModel The data model.
*/
void Construct( const FArguments& InArgs, const TSharedRef<FProjectLauncherModel>& InModel );
private:
// Callback for getting the visibility of the cook-by-the-book settings area.
EVisibility HandleCookByTheBookSettingsVisibility( ) const;
// Callback for getting the content text of the 'Cook Mode' combo button.
FText HandleCookModeComboButtonContentText( ) const;
// Callback for clicking an item in the 'Cook Mode' menu.
void HandleCookModeMenuEntryClicked( ELauncherProfileCookModes::Type CookMode );
// Callback for getting the visibility of the cook-on-the-fly settings area.
EVisibility HandleCookOnTheFlySettingsVisibility( ) const;
// Callback for changing the list of profiles in the profile manager.
void HandleProfileManagerProfileListChanged( );
// Callback for changing the selected profile in the profile manager.
void HandleProfileManagerProfileSelected( const ILauncherProfilePtr& SelectedProfile, const ILauncherProfilePtr& PreviousProfile );
private:
// Holds the cooker options text box.
TSharedPtr<SEditableTextBox> CookerOptionsTextBox;
// Holds the list of available cook modes.
TArray<TSharedPtr<FString> > CookModeList;
// Holds a pointer to the data model.
TSharedPtr<FProjectLauncherModel> Model;
};