Files
UnrealEngineUWP/Engine/Source/Editor/ContentBrowser/Private/ContentBrowserCommands.h
andrea botti 9c1aa7d20b [ContentBrowser] When CTRL+C on an asset can we copy the Package Path instead of the Class Path
Added 2 new commmands to copy the ObjectPath and the PackageName.
Leaved the CTRL+C keybind mapped to the same behavior as before.
Added new commands to the keybind system so that users can re-bind them.
Cleaned up some hardcoded checks for keys in the OnKeyDown.

#rb aditya.ravichandran, sebastian.arleryd
#jira UE-155995

[CL 33684273 by andrea botti in ue5-main branch]
2024-05-16 08:31:50 -04:00

43 lines
1.2 KiB
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"
#include "UObject/UnrealNames.h"
class FUICommandInfo;
class FContentBrowserCommands
: public TCommands<FContentBrowserCommands>
{
public:
/** Default constructor. */
FContentBrowserCommands()
: TCommands<FContentBrowserCommands>(TEXT("ContentBrowser"), NSLOCTEXT( "ContentBrowser", "ContentBrowser", "Content Browser" ), NAME_None, FAppStyle::GetAppStyleSetName() )
{ }
public:
//~ TCommands interface
virtual void RegisterCommands() override;
public:
TSharedPtr<FUICommandInfo> CreateNewFolder;
TSharedPtr<FUICommandInfo> OpenAssetsOrFolders;
TSharedPtr<FUICommandInfo> PreviewAssets;
TSharedPtr<FUICommandInfo> SaveSelectedAsset;
TSharedPtr<FUICommandInfo> SaveAllCurrentFolder;
TSharedPtr<FUICommandInfo> ResaveAllCurrentFolder;
TSharedPtr<FUICommandInfo> EditPath;
TSharedPtr<FUICommandInfo> AssetViewCopyObjectPath;
TSharedPtr<FUICommandInfo> AssetViewCopyPackageName;
};