Files
UnrealEngineUWP/Engine/Source/Developer/LogVisualizer/Private/SVisualLoggerView.h
sebastian kowalczyk 49aba11ae5 Optimizations to Visual Logger edytor tool:
Much faster filters due to Async framework, it's paraller now,
Optimizations to items rendered on sequencer,
Optimization to graphs rendered on canvas,
Changed as much as possible to event driven flot, to update data only when needed.

[CL 2670708 by sebastian kowalczyk in Main branch]
2015-08-27 05:21:28 -04:00

51 lines
1.9 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
class SVisualLoggerView : public SVisualLoggerBaseWidget
{
public:
SLATE_BEGIN_ARGS(SVisualLoggerView)
: _ViewRange(TRange<float>(0.0f, 5.0f))
, _ScrubPosition(1.0f)
{}
/** The current view range (seconds) */
SLATE_ATTRIBUTE(TRange<float>, ViewRange)
/** The current scrub position in (seconds) */
SLATE_ATTRIBUTE(float, ScrubPosition)
SLATE_EVENT(FOnFiltersSearchChanged, OnFiltersSearchChanged)
SLATE_END_ARGS();
virtual ~SVisualLoggerView();
void Construct(const FArguments& InArgs, const TSharedRef<FUICommandList>& InCommandList);
float GetAnimationOutlinerFillPercentage() const {
SSplitter::FSlot const& LeftSplitterSlot = SearchSplitter->SlotAt(0);
SSplitter::FSlot const& RightSplitterSlot = SearchSplitter->SlotAt(1);
return LeftSplitterSlot.SizeValue.Get()/ RightSplitterSlot.SizeValue.Get();
}
void SetAnimationOutlinerFillPercentage(float FillPercentage);
TSharedRef<SWidget> MakeSectionOverlay(TSharedRef<class FVisualLoggerTimeSliderController> TimeSliderController, const TAttribute< TRange<float> >& ViewRange, const TAttribute<float>& ScrubPosition, bool bTopOverlay);
void SetSearchString(FText SearchString);
void OnFiltersChanged();
void OnSearchChanged(const FText& Filter);
void OnFiltersSearchChanged(const FText& Filter);
void OnSearchSplitterResized();
void OnChangedClassesFilter();
virtual FCursorReply OnCursorQuery(const FGeometry& MyGeometry, const FPointerEvent& CursorEvent) const override;
TSharedRef<SWidget> MakeClassesFilterMenu();
void ResetData();
protected:
TSharedPtr<class STimelinesContainer> TimelinesContainer;
TSharedPtr<class SSplitter> SearchSplitter;
TSharedPtr<class SScrollBox> ScrollBox;
TSharedPtr<class SSearchBox> SearchBox;
TSharedPtr<class SComboButton> ClassesComboButton;
float AnimationOutlinerFillPercentage;
};