2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-11-19 07:43:07 -05:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#define LOCTEXT_NAMESPACE "FVisualLoggerCommands"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FVisualLoggerCommands : public TCommands<FVisualLoggerCommands>
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
/** Default constructor. */
|
|
|
|
|
FVisualLoggerCommands()
|
|
|
|
|
: TCommands<FVisualLoggerCommands>("VisualLogger", NSLOCTEXT("Contexts", "VisualLogger", "Visual Logger"), NAME_None, "LogVisualizerStyle")
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// TCommands interface
|
|
|
|
|
|
|
|
|
|
virtual void RegisterCommands() override
|
|
|
|
|
{
|
2015-03-17 11:36:28 -04:00
|
|
|
UI_COMMAND(StartRecording, "Start", "Start the debugger", EUserInterfaceActionType::Button, FInputChord());
|
|
|
|
|
UI_COMMAND(StopRecording, "Stop", "Step over the current message", EUserInterfaceActionType::Button, FInputChord());
|
|
|
|
|
UI_COMMAND(Pause, "Pause", "Stop the debugger", EUserInterfaceActionType::Button, FInputChord());
|
|
|
|
|
UI_COMMAND(Resume, "Resume", "Stop the debugger", EUserInterfaceActionType::Button, FInputChord());
|
|
|
|
|
UI_COMMAND(FreeCamera, "FreeCamera", "Enable free camera", EUserInterfaceActionType::ToggleButton, FInputChord());
|
|
|
|
|
UI_COMMAND(LoadFromVLog, "Load", "Load external vlogs", EUserInterfaceActionType::Button, FInputChord());
|
|
|
|
|
UI_COMMAND(SaveToVLog, "Save", "Save selected data to vlog file", EUserInterfaceActionType::Button, FInputChord());
|
|
|
|
|
UI_COMMAND(ToggleGraphs, "ToggleGraphs", "Toggle graphs visualization on/off", EUserInterfaceActionType::ToggleButton, FInputChord());
|
|
|
|
|
UI_COMMAND(ResetData, "Clear", "Clear all data", EUserInterfaceActionType::Button, FInputChord());
|
|
|
|
|
UI_COMMAND(HideEmpty, "HideEmpty", "Hide logs without text information", EUserInterfaceActionType::ToggleButton, FInputChord());
|
2015-01-15 06:19:24 -05:00
|
|
|
|
2015-03-17 11:36:28 -04:00
|
|
|
UI_COMMAND(MoveCursorLeft, "MoveCursorLeft", "Move cursor left on timeline", EUserInterfaceActionType::Button, FInputChord(EKeys::Left));
|
|
|
|
|
UI_COMMAND(MoveCursorRight, "MoveCursorLeft", "Move cursor right on timeline", EUserInterfaceActionType::Button, FInputChord(EKeys::Right));
|
2014-11-19 07:43:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
TSharedPtr<FUICommandInfo> StartRecording;
|
|
|
|
|
TSharedPtr<FUICommandInfo> StopRecording;
|
|
|
|
|
TSharedPtr<FUICommandInfo> Pause;
|
|
|
|
|
TSharedPtr<FUICommandInfo> Resume;
|
2014-11-21 08:26:27 -05:00
|
|
|
TSharedPtr<FUICommandInfo> FreeCamera;
|
2015-01-07 13:24:58 -05:00
|
|
|
TSharedPtr<FUICommandInfo> LoadFromVLog;
|
|
|
|
|
TSharedPtr<FUICommandInfo> SaveToVLog;
|
2014-12-10 09:28:26 -05:00
|
|
|
TSharedPtr<FUICommandInfo> ToggleGraphs;
|
2015-01-07 08:06:36 -05:00
|
|
|
TSharedPtr<FUICommandInfo> ResetData;
|
2015-01-12 07:48:45 -05:00
|
|
|
TSharedPtr<FUICommandInfo> HideEmpty;
|
2015-01-15 06:19:24 -05:00
|
|
|
TSharedPtr<FUICommandInfo> MoveCursorLeft;
|
|
|
|
|
TSharedPtr<FUICommandInfo> MoveCursorRight;
|
2014-11-19 07:43:07 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|