31 lines
736 B
C++
31 lines
736 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Widgets/Views/SListView.h"
|
|
|
|
class STableViewBase;
|
|
|
|
namespace UE::TraceTools
|
|
{
|
|
|
|
class ITraceObject;
|
|
|
|
class STraceObjectRowWidget : public STableRow<TSharedPtr<ITraceObject>>
|
|
{
|
|
SLATE_BEGIN_ARGS(STraceObjectRowWidget) {}
|
|
/** The current text to highlight */
|
|
SLATE_ATTRIBUTE(FText, HighlightText)
|
|
SLATE_END_ARGS()
|
|
|
|
void Construct(const FArguments& InArgs, const TSharedRef<STableViewBase>& InOwnerTableView, TSharedPtr<ITraceObject> InObject);
|
|
virtual ~STraceObjectRowWidget() {}
|
|
|
|
protected:
|
|
/* The trace object that this tree item represents */
|
|
TSharedPtr<ITraceObject> Object;
|
|
TAttribute<FText> HighlightTextAttribute;
|
|
|
|
};
|
|
|
|
} // namespace UE::TraceTools
|