28 lines
642 B
C++
28 lines
642 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Styling/CoreStyle.h"
|
|
#include "Framework/Commands/Commands.h"
|
|
|
|
class FTabCommands : public TCommands < FTabCommands >
|
|
{
|
|
public:
|
|
|
|
FTabCommands()
|
|
: TCommands<FTabCommands>(TEXT("TabCommands"), NSLOCTEXT("TabCommands", "DockingTabCommands", "Docking Tab Commands"), NAME_None, FCoreStyle::Get().GetStyleSetName())
|
|
{
|
|
}
|
|
|
|
virtual ~FTabCommands()
|
|
{
|
|
}
|
|
|
|
SLATE_API virtual void RegisterCommands() override;
|
|
|
|
TSharedPtr<FUICommandInfo> CloseMajorTab;
|
|
TSharedPtr<FUICommandInfo> CloseMinorTab;
|
|
TSharedPtr<FUICommandInfo> CloseFocusedTab;
|
|
};
|