Files
UnrealEngineUWP/Engine/Source/Editor/SkeletonEditor/Private/SkeletonTreeCommands.h
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

102 lines
2.8 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "EditorStyleSet.h"
#include "Framework/Commands/Commands.h"
/**
* Class containing commands for skeleton tree actions
*/
class FSkeletonTreeCommands : public TCommands<FSkeletonTreeCommands>
{
public:
FSkeletonTreeCommands()
: TCommands<FSkeletonTreeCommands>
(
TEXT("SkeletonTree"), // Context name for fast lookup
NSLOCTEXT("Contexts", "SkelTree", "Skeleton Tree"), // Localized context name for displaying
NAME_None, // Parent context name.
FEditorStyle::GetStyleSetName() // Icon Style Set
)
{
}
/** Initialize commands */
virtual void RegisterCommands() override;
/** Show all bones in the tree */
TSharedPtr< FUICommandInfo > ShowAllBones;
/** Show only bones that are present in the current mesh */
TSharedPtr< FUICommandInfo > ShowMeshBones;
/** Show only bones that are present in the current LOD */
TSharedPtr< FUICommandInfo > ShowLODBones;
/** Show only bones that have weighted vertices */
TSharedPtr< FUICommandInfo > ShowWeightedBones;
/** Hide all bones */
TSharedPtr< FUICommandInfo > HideBones;
/** Show retargeting options */
TSharedPtr< FUICommandInfo > ShowRetargeting;
/** Flatten hierarchy on filter */
TSharedPtr< FUICommandInfo > FilteringFlattensHierarchy;
/** Hide parents on filter */
TSharedPtr< FUICommandInfo > HideParentsWhenFiltering;
/** Add a socket to the skeleton */
TSharedPtr< FUICommandInfo > AddSocket;
/** Customize a socket for a mesh */
TSharedPtr< FUICommandInfo > CreateMeshSocket;
/** Remove customization for a socket (actually just deletes the mesh socket) */
TSharedPtr< FUICommandInfo > RemoveMeshSocket;
/** Promotes a mesh-only socket to the skeleton */
TSharedPtr< FUICommandInfo > PromoteSocketToSkeleton;
/** Delete selected rows (deletes any sockets or assets selected in the tree */
TSharedPtr< FUICommandInfo > DeleteSelectedRows;
/** Show active sockets */
TSharedPtr< FUICommandInfo > ShowActiveSockets;
/** Show skeletal mesh sockets */
TSharedPtr< FUICommandInfo > ShowMeshSockets;
/** Show skeleton sockets */
TSharedPtr< FUICommandInfo > ShowSkeletonSockets;
/** Show all sockets */
TSharedPtr< FUICommandInfo > ShowAllSockets;
/** Hide all sockets */
TSharedPtr< FUICommandInfo > HideSockets;
/** Copy bone names */
TSharedPtr< FUICommandInfo > CopyBoneNames;
/** Reset bone transforms */
TSharedPtr< FUICommandInfo > ResetBoneTransforms;
/** Copy sockets to clipboard */
TSharedPtr< FUICommandInfo > CopySockets;
/** Paste sockets from clipboard */
TSharedPtr< FUICommandInfo > PasteSockets;
/** Paste sockets from clipboard */
TSharedPtr< FUICommandInfo > PasteSocketsToSelectedBone;
/** Focus the camera on the current selection */
TSharedPtr< FUICommandInfo > FocusCamera;
};