Files
UnrealEngineUWP/Engine/Source/Developer/LogVisualizer/Private/VisualLoggerCommands.h
yoan stamant a6fc646662 [VisualLogger]Refresh in Editor not running mode
#preflight 60cb55564ce02c0001d9c5d6


#ROBOMERGE-SOURCE: CL 16704676
#ROBOMERGE-BOT: (v835-16672529)

[CL 16704682 by yoan stamant in ue5-main branch]
2021-06-17 10:46:41 -04:00

58 lines
2.4 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Framework/Commands/InputChord.h"
#include "Framework/Commands/Commands.h"
#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
{
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", "Resume", 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(SaveAllToVLog, "SaveAll", "Save all 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(Refresh, "Refresh", "Refresh UI from memory buffer", EUserInterfaceActionType::Button, FInputChord());
UI_COMMAND(HideEmpty, "HideEmpty", "Hide logs without text information", EUserInterfaceActionType::ToggleButton, FInputChord());
}
public:
TSharedPtr<FUICommandInfo> StartRecording;
TSharedPtr<FUICommandInfo> StopRecording;
TSharedPtr<FUICommandInfo> Pause;
TSharedPtr<FUICommandInfo> Resume;
TSharedPtr<FUICommandInfo> FreeCamera;
TSharedPtr<FUICommandInfo> LoadFromVLog;
TSharedPtr<FUICommandInfo> SaveToVLog;
TSharedPtr<FUICommandInfo> SaveAllToVLog;
TSharedPtr<FUICommandInfo> ToggleGraphs;
TSharedPtr<FUICommandInfo> ResetData;
TSharedPtr<FUICommandInfo> Refresh;
TSharedPtr<FUICommandInfo> HideEmpty;
};
#undef LOCTEXT_NAMESPACE