Files
UnrealEngineUWP/Engine/Source/Editor/ReferenceViewer/Private/ReferenceViewerActions.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

53 lines
1.7 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "EditorStyleSet.h"
#include "Framework/Commands/Commands.h"
// Actions that can be invoked in the reference viewer
class FReferenceViewerActions : public TCommands<FReferenceViewerActions>
{
public:
FReferenceViewerActions() : TCommands<FReferenceViewerActions>
(
"ReferenceViewer",
NSLOCTEXT("Contexts", "ReferenceViewer", "Reference Viewer"),
"MainFrame", FEditorStyle::GetStyleSetName()
)
{
}
// TCommands<> interface
virtual void RegisterCommands() override;
// End of TCommands<> interface
public:
// Opens the selected asset in the asset editor
TSharedPtr<FUICommandInfo> OpenSelectedInAssetEditor;
// Re-constructs the graph with the selected asset as the center
TSharedPtr<FUICommandInfo> ReCenterGraph;
// Shows a list of objects that the selected asset references.
TSharedPtr<FUICommandInfo> ListReferencedObjects;
// Lists objects that reference the selected asset.
TSharedPtr<FUICommandInfo> ListObjectsThatReference;
// Shows a size map for the selected asset.
TSharedPtr<FUICommandInfo> ShowSizeMap;
// Shows a reference tree for the selected asset.
TSharedPtr<FUICommandInfo> ShowReferenceTree;
// Creates a new collection with the list of assets that this asset references, user selects which ECollectionShareType to use.
TSharedPtr<FUICommandInfo> MakeLocalCollectionWithReferencers;
TSharedPtr<FUICommandInfo> MakePrivateCollectionWithReferencers;
TSharedPtr<FUICommandInfo> MakeSharedCollectionWithReferencers;
TSharedPtr<FUICommandInfo> MakeLocalCollectionWithDependencies;
TSharedPtr<FUICommandInfo> MakePrivateCollectionWithDependencies;
TSharedPtr<FUICommandInfo> MakeSharedCollectionWithDependencies;
};