2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2015-03-12 15:26:31 -04:00
|
|
|
#define LOCTEXT_NAMESPACE ""
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
/**
|
2014-10-24 22:33:36 -04:00
|
|
|
* The device details commands.
|
2014-03-14 14:13:41 -04:00
|
|
|
*/
|
|
|
|
|
class FSessionConsoleCommands
|
|
|
|
|
: public TCommands<FSessionConsoleCommands>
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
2014-10-24 22:33:36 -04:00
|
|
|
/** Default constructor. */
|
|
|
|
|
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-10-24 22:33:36 -04:00
|
|
|
virtual void RegisterCommands() override
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
2015-03-17 11:36:28 -04:00
|
|
|
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());
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
TSharedPtr<FUICommandInfo> Clear;
|
|
|
|
|
TSharedPtr<FUICommandInfo> SessionCopy;
|
|
|
|
|
TSharedPtr<FUICommandInfo> SessionSave;
|
|
|
|
|
};
|
2015-03-12 15:26:31 -04:00
|
|
|
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|