2014-03-14 14:13:41 -04:00
|
|
|
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
struct FLogsListItem;
|
|
|
|
|
|
|
|
|
|
/** Implements a row widget for log list. */
|
|
|
|
|
class SLogsTableRow : public SMultiColumnTableRow< TSharedPtr<FLogsListItem> >
|
|
|
|
|
{
|
2014-06-26 06:25:26 -04:00
|
|
|
#if ENABLE_VISUAL_LOG
|
2014-03-14 14:13:41 -04:00
|
|
|
typedef SMultiColumnTableRow< TSharedPtr<FLogsListItem> > Super;
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
SLATE_BEGIN_ARGS(SLogsTableRow) {}
|
|
|
|
|
SLATE_ARGUMENT(TSharedPtr<class SLogVisualizer>, OwnerVisualizerWidget)
|
|
|
|
|
SLATE_ARGUMENT(TSharedPtr<FLogsListItem>, Item)
|
|
|
|
|
SLATE_END_ARGS()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
void Construct(const FArguments& InArgs, const TSharedRef<STableViewBase>& InOwnerTableView);
|
|
|
|
|
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual TSharedRef<SWidget> GenerateWidgetForColumn(const FName& ColumnName) override;
|
2014-03-14 14:13:41 -04:00
|
|
|
|
2014-07-07 17:19:49 -04:00
|
|
|
void UpdateEntries();
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
private:
|
|
|
|
|
int32 GetCurrentLogEntryIndex() const;
|
|
|
|
|
|
|
|
|
|
void OnBarGraphSelectionChanged(TSharedPtr<FVisLogEntry> Selection);
|
|
|
|
|
void OnBarGeometryChanged(FGeometry Geometry);
|
|
|
|
|
|
|
|
|
|
bool ShouldDrawSelection();
|
|
|
|
|
|
|
|
|
|
TArray<TSharedPtr<FVisLogEntry> > VisibleEntries;
|
|
|
|
|
|
|
|
|
|
/** Tree item */
|
|
|
|
|
TSharedPtr<FLogsListItem> Item;
|
|
|
|
|
/** Analyzer widget that owns us */
|
|
|
|
|
TWeakPtr<SLogVisualizer> OwnerVisualizerWidgetPtr;
|
|
|
|
|
|
|
|
|
|
TSharedPtr<class SLogBar> LogBar;
|
2014-06-26 06:25:26 -04:00
|
|
|
#endif //ENABLE_VISUAL_LOG
|
2014-03-14 14:13:41 -04:00
|
|
|
};
|