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

65 lines
2.5 KiB
C++

// Copyright 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