Files
UnrealEngine/Engine/Source/Editor/UnrealEd/Private/Toolkits/AssetEditorCommonCommands.h
2025-05-18 13:04:45 +08:00

34 lines
947 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Framework/Commands/Commands.h"
#include "HAL/Platform.h"
#include "Internationalization/Internationalization.h"
#include "Styling/AppStyle.h"
#include "Templates/SharedPointer.h"
#include "UObject/NameTypes.h"
class FUICommandInfo;
/** Asset editor common commands */
class FAssetEditorCommonCommands : public TCommands< FAssetEditorCommonCommands >
{
public:
FAssetEditorCommonCommands()
: TCommands< FAssetEditorCommonCommands >( TEXT("AssetEditor"), NSLOCTEXT("Contexts", "AssetEditor", "Asset Editor"), TEXT("EditorViewport"), FAppStyle::GetAppStyleSetName() )
{
}
virtual void RegisterCommands() override;
TSharedPtr< FUICommandInfo > SaveAsset;
TSharedPtr< FUICommandInfo > SaveAssetAs;
TSharedPtr< FUICommandInfo > ReimportAsset;
TSharedPtr< FUICommandInfo > SwitchToStandaloneEditor;
TSharedPtr< FUICommandInfo > SwitchToWorldCentricEditor;
};