Files
UnrealEngine/Engine/Source/Editor/GraphEditor/Public/SGraphPinDataTableRowName.h
2025-05-18 13:04:45 +08:00

36 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "DataTableEditorUtils.h"
#include "Engine/DataTable.h"
#include "SGraphPinNameList.h"
#include "UObject/SoftObjectPtr.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
class UDataTable;
class UEdGraphPin;
class GRAPHEDITOR_API SGraphPinDataTableRowName : public SGraphPinNameList, public FDataTableEditorUtils::INotifyOnDataTableChanged
{
public:
SLATE_BEGIN_ARGS(SGraphPinDataTableRowName) {}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs, UEdGraphPin* InGraphPinObj, class UDataTable* InDataTable);
SGraphPinDataTableRowName();
virtual ~SGraphPinDataTableRowName();
// FDataTableEditorUtils::INotifyOnDataTableChanged
virtual void PreChange(const UDataTable* Changed, FDataTableEditorUtils::EDataTableChangeInfo Info) override;
virtual void PostChange(const UDataTable* Changed, FDataTableEditorUtils::EDataTableChangeInfo Info) override;
protected:
void RefreshNameList();
TSoftObjectPtr<class UDataTable> DataTable;
};