Files
UnrealEngineUWP/Engine/Source/Editor/EditorWidgets/Public/SMetaDataView.h
jamie dale 9895b924bc Moved SMetaDataView to EditorWidgets so it can be shared
#jira
#rb none
#rnx

#ROBOMERGE-SOURCE: CL 13007011 via CL 13007020 via CL 13007028 via CL 13007032
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v682-12900288)

[CL 13007037 by jamie dale in Main branch]
2020-04-23 10:44:52 -04:00

35 lines
959 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
class ITableRow;
class STableViewBase;
struct FMetaDataLine;
/**
* The widget to display metadata as a table of tag/value rows
*/
class EDITORWIDGETS_API SMetaDataView : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SMetaDataView) {}
SLATE_END_ARGS()
/**
* Construct this widget. Called by the SNew() Slate macro.
*
* @param InArgs Declaration used by the SNew() macro to construct this widget
* @param InMetaData The metadata tags/values to display in the table view widget
*/
void Construct(const FArguments& InArgs, const TMap<FName, FString>& InMetadata);
private:
TArray< TSharedPtr< FMetaDataLine > > MetaDataLines;
TSharedRef< ITableRow > OnGenerateRow(const TSharedPtr< FMetaDataLine > Item, const TSharedRef< STableViewBase >& OwnerTable);
};