Files
UnrealEngineUWP/Engine/Source/Developer/LogVisualizer/Private/SVisualLoggerView.h
sebastian kowalczyk 395f210254 Feature request for LogVisualizer:
- data reset for new PIE sessions (or for each new data loaded from file). This feature is disabled by default.
- fixes for  "stick to new data" feature, to work better with zoomed data, etc.
- tweaks and fixes for movement on timeline with keyboard
- fixed time range issues on timellines

[CL 2399729 by sebastian kowalczyk in Main branch]
2015-01-07 08:06:36 -05:00

55 lines
2.2 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
class SVisualLoggerView : public SCompoundWidget
{
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();
void Construct(const FArguments& InArgs, const TSharedRef<FUICommandList>& InCommandList, TSharedPtr<IVisualLoggerInterface> VisualLoggerInterface);
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 FSequencerTimeSliderController> TimeSliderController, const TAttribute< TRange<float> >& ViewRange, const TAttribute<float>& ScrubPosition, bool bTopOverlay);
void SetSearchString(FText SearchString);
void OnNewLogEntry(const FVisualLogDevice::FVisualLogEntryItem& Entry);
void OnFiltersChanged();
void OnSearchChanged(const FText& Filter);
void OnFiltersSearchChanged(const FText& Filter);
void OnSearchSplitterResized();
void OnObjectSelectionChanged(TSharedPtr<class STimeline> TimeLine);
void OnChangedClassesFilter();
void GetTimelines(TArray<TSharedPtr<class STimeline> >&, bool bOnlySelectedOnes = false);
virtual FCursorReply OnCursorQuery(const FGeometry& MyGeometry, const FPointerEvent& CursorEvent) const override;
TSharedRef<SWidget> MakeClassesFilterMenu();
void ResetData();
protected:
TWeakPtr<struct IVisualLoggerInterface> VisualLoggerInterface;
TSharedPtr<class STimelinesContainer> TimelinesContainer;
TSharedPtr<class SSplitter> SearchSplitter;
TSharedPtr<class SScrollBox> ScrollBox;
TSharedPtr<class SSearchBox> SearchBox;
TSharedPtr<class SComboButton> ClassesComboButton;
FVisualLoggerEvents VisualLoggerEvents;
float AnimationOutlinerFillPercentage;
};