Files
UnrealEngineUWP/Engine/Source/Developer/LogVisualizer/Private/SVisualLoggerStatusView.h
Chris Gagnon 8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00

41 lines
1.5 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Framework/Commands/UICommandList.h"
#include "VisualLogger/VisualLoggerTypes.h"
#include "Developer/LogVisualizer/Private/LogVisualizerPrivate.h"
#include "Widgets/Views/STableViewBase.h"
#include "Widgets/Views/STableRow.h"
#include "Widgets/Views/STreeView.h"
struct FLogStatusItem;
struct FVisualLoggerDBRow;
class SVisualLoggerStatusView : public SVisualLoggerBaseWidget
{
public:
SLATE_BEGIN_ARGS(SVisualLoggerStatusView){}
SLATE_END_ARGS();
virtual ~SVisualLoggerStatusView();
void Construct(const FArguments& InArgs, const TSharedRef<FUICommandList>& InCommandList);
void ResetData();
protected:
void OnObjectSelectionChanged(const TArray<FName>& SelectedRows);
void OnItemSelectionChanged(const FVisualLoggerDBRow& DBRow, int32 ItemIndex);
void GenerateStatusData(const FVisualLogDevice::FVisualLogEntryItem&, bool bAddHeader);
TSharedRef<ITableRow> HandleGenerateLogStatus(TSharedPtr<struct FLogStatusItem> InItem, const TSharedRef<STableViewBase>& OwnerTable);
void OnLogStatusGetChildren(TSharedPtr<struct FLogStatusItem> InItem, TArray< TSharedPtr<FLogStatusItem> >& OutItems);
void OnExpansionChanged(TSharedPtr<FLogStatusItem> Item, bool);
protected:
TArray<FString> ExpandedCategories;
TSharedPtr< STreeView< TSharedPtr<FLogStatusItem> > > StatusItemsView;
TArray< TSharedPtr<FLogStatusItem> > StatusItems;
};