Files
UnrealEngineUWP/Engine/Source/Editor/CurveEditor/Private/SCurveEditorToolProperties.h
ryan durand 627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00

50 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Widgets/SCompoundWidget.h"
#include "CurveEditor.h"
#include "UObject/Object.h"
class IStructureDetailsView;
/**
* Widget to show curve editor tool extension properties
*/
class CURVEEDITOR_API SCurveEditorToolProperties : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SCurveEditorToolProperties)
{}
SLATE_END_ARGS()
SCurveEditorToolProperties() : ToolId(FCurveEditorToolID::Unset()) {}
void Construct(const FArguments& InArgs, TSharedRef<FCurveEditor> InCurveEditor, FCurveEditorToolID ToolId);
/**
* Called when the curve editor tool changes
* Sets the new tool ID and rebuilds the details view
*/
void OnToolChanged(FCurveEditorToolID NewToolId);
private:
/**
* Rebuilds details view
* Called either by the tool itself when it's properties change or when the curve editor tool changes
*/
void RebuildProperties();
/**
* Called when the user enters in a new value for one of the properties
* Calls OnToolOptionsUpdated on the current tool
*/
void OnFinishedChangingProperties(const FPropertyChangedEvent& PropertyChangedEvent);
private:
TWeakPtr<FCurveEditor> WeakCurveEditor;
TSharedPtr<IStructureDetailsView> DetailsView;
FCurveEditorToolID ToolId;
};