Files
UnrealEngineUWP/Engine/Source/Developer/SessionFrontend/Private/Models/SessionConsoleCommands.h
ben marsh 2b46ba7b94 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking)

[CL 4662413 by ben marsh in Dev-Networking branch]
2018-12-14 13:44:01 -05:00

48 lines
1.2 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Framework/Commands/InputChord.h"
#include "EditorStyleSet.h"
#include "Framework/Commands/Commands.h"
#define LOCTEXT_NAMESPACE "SessionConsoleCommands"
/**
* The device details commands.
*/
class FSessionConsoleCommands
: public TCommands<FSessionConsoleCommands>
{
public:
/** Default constructor. */
FSessionConsoleCommands()
: TCommands<FSessionConsoleCommands>(
"SessionConsole",
NSLOCTEXT("Contexts", "SessionConsole", "Session Console"),
NAME_None, FEditorStyle::GetStyleSetName()
)
{ }
public:
// TCommands interface
virtual void RegisterCommands() override
{
UI_COMMAND(Clear, "Clear Log", "Clear the log window", EUserInterfaceActionType::Button, FInputChord());
UI_COMMAND(SessionCopy, "Copy", "Copy the selected log messages to the clipboard", EUserInterfaceActionType::Button, FInputChord());
UI_COMMAND(SessionSave, "Save Log...", "Save the entire log to a file", EUserInterfaceActionType::ToggleButton, FInputChord());
}
public:
TSharedPtr<FUICommandInfo> Clear;
TSharedPtr<FUICommandInfo> SessionCopy;
TSharedPtr<FUICommandInfo> SessionSave;
};
#undef LOCTEXT_NAMESPACE