You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Slightly different solution than PR #778 (lesser impact on code). #codereview Sebastian.Kowalczyk [CL 2424806 by Dmitry Rekman in Main branch]
54 lines
2.1 KiB
C++
54 lines
2.1 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);
|
|
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 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:
|
|
TSharedPtr<class STimelinesContainer> TimelinesContainer;
|
|
TSharedPtr<class SSplitter> SearchSplitter;
|
|
TSharedPtr<class SScrollBox> ScrollBox;
|
|
TSharedPtr<class SSearchBox> SearchBox;
|
|
TSharedPtr<class SComboButton> ClassesComboButton;
|
|
|
|
FVisualLoggerEvents VisualLoggerEvents;
|
|
float AnimationOutlinerFillPercentage;
|
|
};
|