Files
UnrealEngineUWP/Engine/Source/Developer/ProjectLauncher/Private/Models/ProjectLauncherCommands.h
Ben Marsh 7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00

65 lines
2.5 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "EditorStyleSet.h"
#include "InputCoreTypes.h"
#include "Framework/Commands/InputChord.h"
#include "Framework/Commands/Commands.h"
#include "Templates/SharedPointer.h"
#define LOCTEXT_NAMESPACE "ProjectLauncherCommands"
/**
* The project launcher UI commands
*/
class FProjectLauncherCommands
: public TCommands<FProjectLauncherCommands>
{
public:
/** Default constructor. */
FProjectLauncherCommands()
: TCommands<FProjectLauncherCommands>(
"LauncherCommand",
NSLOCTEXT("Contexts", "LauncherCommand", "Project Launcher Command"),
NAME_None,
FEditorStyle::GetStyleSetName()
)
{ }
public:
//~ TCommands interface
PRAGMA_DISABLE_OPTIMIZATION
virtual void RegisterCommands() override
{
UI_COMMAND(QuickLaunch, "Quick Launch", "Builds, cooks, and launches a build.", EUserInterfaceActionType::ToggleButton, FInputChord(EModifierKey::Control, EKeys::L));
UI_COMMAND(CreateBuild, "Build", "Creates a build.", EUserInterfaceActionType::ToggleButton, FInputChord(EModifierKey::Control, EKeys::B));
UI_COMMAND(DeployBuild, "Deploy Build", "Deploys a pre-made build.", EUserInterfaceActionType::ToggleButton, FInputChord(EModifierKey::Control, EKeys::D));
UI_COMMAND(AdvancedBuild, "Advanced...", "Advanced launcher.", EUserInterfaceActionType::ToggleButton, FInputChord(EModifierKey::Control, EKeys::A));
UI_COMMAND(CloseSettings, "Back", "Close the launch profile settings editor and go back to the launcher.", EUserInterfaceActionType::Button, FInputChord(EModifierKey::None, EKeys::Escape));
UI_COMMAND(RenameProfile, "Rename", "Rename the launch profile.", EUserInterfaceActionType::Button, FInputChord());// , FInputChord(EModifierKey::None, EKeys::F2));
UI_COMMAND(DuplicateProfile, "Duplicate", "Duplicate the launch profile.", EUserInterfaceActionType::Button, FInputChord());//, FInputChord(EModifierKey::Control, EKeys::W));
UI_COMMAND(DeleteProfile, "Delete", "Delete the launch profile.", EUserInterfaceActionType::Button, FInputChord());//, FInputChord(EModifierKey::Control, EKeys::Delete));
}
PRAGMA_ENABLE_OPTIMIZATION
public:
TSharedPtr<FUICommandInfo> CreateBuild;
TSharedPtr<FUICommandInfo> DeployBuild;
TSharedPtr<FUICommandInfo> QuickLaunch;
TSharedPtr<FUICommandInfo> AdvancedBuild;
TSharedPtr<FUICommandInfo> CloseSettings;
TSharedPtr<FUICommandInfo> RenameProfile;
TSharedPtr<FUICommandInfo> DuplicateProfile;
TSharedPtr<FUICommandInfo> DeleteProfile;
};
#undef LOCTEXT_NAMESPACE