// 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& ToolkitCommands); protected: static UE_API void OnPressedCtrlTab(TSharedPtr 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 SpawnAssetPicker(const FSpawnTabArgs& InArgs); static UE_API TSharedPtr OpenPopupMenu(TSharedRef WindowContents, const FVector2D& PopupDesiredSize); public: TSharedPtr FindInContentBrowser; TSharedPtr SummonControlTabNavigation; TSharedPtr SummonControlTabNavigationAlternate; TSharedPtr SummonControlTabNavigationBackwards; TSharedPtr SummonControlTabNavigationBackwardsAlternate; TSharedPtr SummonOpenAssetDialog; TSharedPtr SummonOpenAssetDialogAlternate; TSharedPtr OpenDocumentation; TSharedPtr OpenConsoleCommandBox; TSharedPtr SelectNextConsoleExecutor; TSharedPtr OpenOutputLogDrawer; TSharedPtr OpenContentBrowserDrawer; TSharedPtr OpenFindInAllBlueprints; /** Level file commands */ TSharedPtr OpenLevel; }; #undef UE_API