// Copyright Epic Games, Inc. All Rights Reserved. #include "TableColumn.h" #include "Insights/Table/ViewModels/TableCellValueFormatter.h" #include "Insights/Table/ViewModels/TableCellValueGetter.h" #include "Insights/Table/ViewModels/TableCellValueSorter.h" #define LOCTEXT_NAMESPACE "TableColumn" namespace Insights { //////////////////////////////////////////////////////////////////////////////////////////////////// TSharedRef FTableColumn::GetDefaultValueGetter() { return MakeShared(); } //////////////////////////////////////////////////////////////////////////////////////////////////// const TOptional FTableColumn::GetValue(const FBaseTreeNode& InNode) const { return ValueGetter->GetValue(*this, InNode); } //////////////////////////////////////////////////////////////////////////////////////////////////// TSharedRef FTableColumn::GetDefaultValueFormatter() { return MakeShared(); } //////////////////////////////////////////////////////////////////////////////////////////////////// FText FTableColumn::GetValueAsText(const FBaseTreeNode& InNode) const { return ValueFormatter->FormatValue(*this, InNode); } //////////////////////////////////////////////////////////////////////////////////////////////////// FText FTableColumn::GetValueAsTooltipText(const FBaseTreeNode& InNode) const { return ValueFormatter->FormatValueForTooltip(*this, InNode); } //////////////////////////////////////////////////////////////////////////////////////////////////// } // namespace Insights #undef LOCTEXT_NAMESPACE