You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Widgets/SCompoundWidget.h"
|
|
#include "BLoggerSystem.h"
|
|
#include "Widgets/Views/STableRow.h"
|
|
#include "BLoggerStyleSet.h"
|
|
|
|
/**
|
|
* SLogEntriesListViewRow
|
|
* Row class for the LogEntriesListView
|
|
* Assigns the different elements of the LogEntry to their respective columns
|
|
* @param LogEntry - The LogEntry to display
|
|
* @param HighlightText - The text to highlight in the content column
|
|
*/
|
|
class BLOGGER_API SLogEntriesListViewRow final : public SMultiColumnTableRow<TSharedPtr<FLogEntry>>
|
|
{
|
|
public:
|
|
SLATE_BEGIN_ARGS(SLogEntriesListViewRow) {}
|
|
SLATE_ARGUMENT(FBLoggerStyleSet*, StyleSet)
|
|
SLATE_ARGUMENT(TSharedPtr<FLogEntry>, LogEntry)
|
|
SLATE_ATTRIBUTE(FText, HighlightText)
|
|
SLATE_END_ARGS()
|
|
|
|
void Construct(const FArguments& InArgs, const TSharedRef<STableViewBase>& InOwnerTableView);
|
|
|
|
/**
|
|
* Must be overridden from SMultiColumnTableRow. Decides what widget to display in each column
|
|
* @param ColumnName: The name of the column to generate a widget for
|
|
* @return A reference to the created widget
|
|
*/
|
|
virtual TSharedRef<SWidget> GenerateWidgetForColumn(const FName& ColumnName) override;
|
|
|
|
TSharedPtr<FLogEntry> LogEntry;
|
|
TAttribute<FText> HighlightText;
|
|
FBLoggerStyleSet* StyleSet;
|
|
};
|
|
|