2014-03-14 14:13:41 -04:00
|
|
|
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The device details commands
|
|
|
|
|
*/
|
|
|
|
|
class FSessionConsoleCommands
|
|
|
|
|
: public TCommands<FSessionConsoleCommands>
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Default constructor.
|
|
|
|
|
*/
|
2014-06-05 00:03:19 -04:00
|
|
|
FSessionConsoleCommands( )
|
2014-03-14 14:13:41 -04:00
|
|
|
: TCommands<FSessionConsoleCommands>(
|
|
|
|
|
"SessionConsole",
|
|
|
|
|
NSLOCTEXT("Contexts", "SessionConsole", "Session Console"),
|
|
|
|
|
NAME_None, FEditorStyle::GetStyleSetName()
|
|
|
|
|
)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
2014-06-12 23:22:18 -04:00
|
|
|
// TCommands interface
|
2014-03-14 14:13:41 -04:00
|
|
|
|
2014-06-12 23:22:18 -04:00
|
|
|
virtual void RegisterCommands( ) override
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
};
|