Files
UnrealEngineUWP/Engine/Source/Developer/SessionFrontend/Private/Models/SessionConsoleCommands.h
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

40 lines
1.0 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
/**
* 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, FInputGesture());
UI_COMMAND(SessionCopy, "Copy", "Copy the selected log messages to the clipboard", EUserInterfaceActionType::Button, FInputGesture());
UI_COMMAND(SessionSave, "Save Log...", "Save the entire log to a file", EUserInterfaceActionType::ToggleButton, FInputGesture());
}
public:
TSharedPtr<FUICommandInfo> Clear;
TSharedPtr<FUICommandInfo> SessionCopy;
TSharedPtr<FUICommandInfo> SessionSave;
};