Files
UnrealEngineUWP/Engine/Source/Developer/SessionFrontend/Private/Models/SessionConsoleCommands.h
2015-03-17 11:36:28 -04:00

42 lines
1.1 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#define LOCTEXT_NAMESPACE ""
/**
* 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