Files
UnrealEngine/Engine/Source/Editor/UnrealEd/Public/Toolkits/GlobalEditorCommonCommands.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

61 lines
2.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/SWidget.h"
#include "Framework/Commands/UICommandList.h"
#include "Framework/Commands/Commands.h"
#include "Framework/Docking/TabManager.h"
#define UE_API UNREALED_API
class IMenu;
class SWindow;
UE_DECLARE_TCOMMANDS(class FGlobalEditorCommonCommands, UE_API)
// Global editor common commands
// Note: There is no real global command concept, so these must still be registered in each editor
class FGlobalEditorCommonCommands : public TCommands< FGlobalEditorCommonCommands >
{
public:
UE_API FGlobalEditorCommonCommands();
UE_API ~FGlobalEditorCommonCommands();
UE_API virtual void RegisterCommands() override;
UE_API static void MapActions(TSharedRef<FUICommandList>& ToolkitCommands);
protected:
static UE_API void OnPressedCtrlTab(TSharedPtr<FUICommandInfo> TriggeringCommand);
static UE_API void OnSummonedAssetPicker();
static UE_API void OnSummonedConsoleCommandBox();
static UE_API void OnOpenContentBrowserDrawer();
static UE_API void OnOpenOutputLogDrawer();
static UE_API void OnOpenFindInAllBlueprints();
static UE_API TSharedRef<SDockTab> SpawnAssetPicker(const FSpawnTabArgs& InArgs);
static UE_API TSharedPtr<IMenu> OpenPopupMenu(TSharedRef<SWidget> WindowContents, const FVector2D& PopupDesiredSize);
public:
TSharedPtr<FUICommandInfo> FindInContentBrowser;
TSharedPtr<FUICommandInfo> SummonControlTabNavigation;
TSharedPtr<FUICommandInfo> SummonControlTabNavigationAlternate;
TSharedPtr<FUICommandInfo> SummonControlTabNavigationBackwards;
TSharedPtr<FUICommandInfo> SummonControlTabNavigationBackwardsAlternate;
TSharedPtr<FUICommandInfo> SummonOpenAssetDialog;
TSharedPtr<FUICommandInfo> SummonOpenAssetDialogAlternate;
TSharedPtr<FUICommandInfo> OpenDocumentation;
TSharedPtr<FUICommandInfo> OpenConsoleCommandBox;
TSharedPtr<FUICommandInfo> SelectNextConsoleExecutor;
TSharedPtr<FUICommandInfo> OpenOutputLogDrawer;
TSharedPtr<FUICommandInfo> OpenContentBrowserDrawer;
TSharedPtr<FUICommandInfo> OpenFindInAllBlueprints;
/** Level file commands */
TSharedPtr<FUICommandInfo> OpenLevel;
};
#undef UE_API