Files
UnrealEngineUWP/Engine/Source/Editor/GraphEditor/Private/AnimationStateNodes/SGraphNodeAnimTransition.h
Jaroslaw Palczynski ebce413232 UE4 Refactoring. Changed OVERRIDE and FINAL macros to keywords override and final.
[CL 2104397 by Jaroslaw Palczynski in Main branch]
2014-06-13 06:14:46 -04:00

44 lines
1.5 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
class SGraphNodeAnimTransition : public SGraphNode
{
public:
SLATE_BEGIN_ARGS(SGraphNodeAnimTransition){}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs, UAnimStateTransitionNode* InNode);
// SNodePanel::SNode interface
virtual void GetNodeInfoPopups(FNodeInfoContext* Context, TArray<FGraphInformationPopupInfo>& Popups) const override;
virtual void MoveTo(const FVector2D& NewPosition, FNodeSet& NodeFilter) override;
virtual bool RequiresSecondPassLayout() const override;
virtual void PerformSecondPassLayout(const TMap< UObject*, TSharedRef<SNode> >& NodeToWidgetLookup) const override;
// End of SNodePanel::SNode interface
// SGraphNode interface
virtual void UpdateGraphNode() override;
virtual TSharedPtr<SToolTip> GetComplexTooltip() override;
// End of SGraphNode interface
// SWidget interface
void OnMouseEnter(const FGeometry& MyGeometry, const FPointerEvent& MouseEvent) override;
void OnMouseLeave(const FPointerEvent& MouseEvent) override;
// End of SWidget interface
static FLinearColor StaticGetTransitionColor(UAnimStateTransitionNode* TransNode, bool bIsHovered);
private:
TSharedPtr<STextEntryPopup> TextEntryWidget;
private:
FString GetPreviewCornerText(bool reverse) const;
FSlateColor GetTransitionColor() const;
TSharedRef<SWidget> GenerateInlineDisplayOrEditingWidget(bool bShowGraphPreview);
TSharedRef<SWidget> GenerateRichTooltip();
FString GetCurrentDuration() const;
FString GetCurrentAlphaCurveMode() const;
};