UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TabCommands.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Styling/CoreStyle.h"
8
9class FTabCommands : public TCommands < FTabCommands >
10{
11public:
12
14 : TCommands<FTabCommands>(TEXT("TabCommands"), NSLOCTEXT("TabCommands", "DockingTabCommands", "Docking Tab Commands"), NAME_None, FCoreStyle::Get().GetStyleSetName())
15 {
16 }
17
18 virtual ~FTabCommands()
19 {
20 }
21
22 SLATE_API virtual void RegisterCommands() override;
23
27};
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define NSLOCTEXT(InNamespace, InKey, InTextLiteral)
Definition Internationalization.h:300
FName GetStyleSetName() const
Definition UICommandInfo.h:127
Definition CoreStyle.h:15
Definition TabCommands.h:10
FTabCommands()
Definition TabCommands.h:13
TSharedPtr< FUICommandInfo > CloseFocusedTab
Definition TabCommands.h:26
virtual SLATE_API void RegisterCommands() override
Definition TabCommands.cpp:7
TSharedPtr< FUICommandInfo > CloseMinorTab
Definition TabCommands.h:25
virtual ~FTabCommands()
Definition TabCommands.h:18
TSharedPtr< FUICommandInfo > CloseMajorTab
Definition TabCommands.h:24
Definition Commands.h:33
static FTabCommands & Get()
Definition Commands.h:73
Definition SharedPointer.h:692