Files
UnrealEngineUWP/Engine/Source/Developer/SessionFrontend/Private/Models/SessionConsoleCommands.h

42 lines
1.0 KiB
C
Raw Normal View History

// Copyright 1998-2014 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;
};