Files
UnrealEngineUWP/Engine/Source/Developer/ProjectLauncher/Private/Models/ProjectLauncherCommands.h
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

70 lines
2.5 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "InputCoreTypes.h"
#include "Framework/Commands/InputChord.h"
#include "Framework/Commands/Commands.h"
#include "EditorStyleSet.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