// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "Framework/Commands/Commands.h" #include "SubmitToolStyle.h" #define LOCTEXT_NAMESPACE "FSubmitToolCommandList" class FSubmitToolCommandList : public TCommands { public: FSubmitToolCommandList() : TCommands("SubmitToolCommands", LOCTEXT("SubmitToolCommands","Submit Tool Commands"), NAME_None, FSubmitToolStyle::Get().GetStyleSetName()) { } public: #if !UE_BUILD_SHIPPING TSharedPtr ForceCrashCommandInfo; TSharedPtr WidgetReflectCommandInfo; #endif TSharedPtr HelpCommandInfo; TSharedPtr ExitCommandInfo; public: void RegisterCommands() { #if !UE_BUILD_SHIPPING UI_COMMAND(WidgetReflectCommandInfo, "Widget Reflector", "Open the Widget Reflector Tab.", EUserInterfaceActionType::Button, FInputChord()); UI_COMMAND(ForceCrashCommandInfo, "Force Crash", "Force A Crash", EUserInterfaceActionType::Button, FInputChord()); #endif UI_COMMAND(HelpCommandInfo, "Help", "Show the help page for the SubmitTool.", EUserInterfaceActionType::Button, FInputChord()); UI_COMMAND(ExitCommandInfo, "Exit", "Close the application.", EUserInterfaceActionType::Button, FInputChord()); } }; #undef LOCTEXT_NAMESPACE