You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#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]
50 lines
1.2 KiB
C++
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;
|
|
}; |