Files
UnrealEngineUWP/Engine/Source/Editor/Persona/Private/PoseWatchManagerPoseWatchTreeItem.h
lucas dower 4c6044db9d Minor fixes from pose watch manager extension merge
* Added GetElement to UPoseWatch.
* Fixed clicking on a pose watch element to show its properties in the details panel.
* Fixed blend profiles not showing when selecting a viewport mask.
* Fixed upgrade path for old pose watches.
* Deprecated SetColor and GetColor in UPoseWatch as only elements have colors now.

#rb nick.brett
#preflight 62fa25b3e67510be05389113
#jira none

[CL 21385162 by lucas dower in ue5-main branch]
2022-08-15 07:08:12 -04:00

41 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/SWidget.h"
#include "IPoseWatchManagerTreeItem.h"
class UPoseWatch;
struct FPoseWatchManagerPoseWatchTreeItem : IPoseWatchManagerTreeItem
{
public:
FPoseWatchManagerPoseWatchTreeItem(UPoseWatch* InPoseWatch);
/** Constant identifier for this tree item */
const FObjectKey ID;
/** The pose watch this item is describing */
TWeakObjectPtr<UPoseWatch> PoseWatch;
/** Static type identifier for this tree item class */
static const EPoseWatchTreeItemType Type;
bool IsValid() const override { return PoseWatch.IsValid(); }
/* Begin IPoseWatchManagerTreeItem Implementation */
virtual FObjectKey GetID() const override;
virtual FString GetDisplayString() const override;
virtual TSharedRef<SWidget> GenerateLabelWidget(IPoseWatchManager& Outliner, const STableRow<FPoseWatchManagerTreeItemPtr>& InRow) override;
virtual bool GetVisibility() const override;
virtual bool IsAssignedFolder() const;
virtual void SetIsVisible(const bool bVisible) override;
virtual TSharedPtr<SWidget> CreateContextMenu() override;
virtual void OnRemoved() override;
virtual bool IsEnabled() const override;
virtual void SetIsExpanded(const bool bIsExpanded) override;
virtual bool IsExpanded() const override;
/* End IPoseWatchManagerTreeItem Implementation */
};