2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-11-19 07:43:07 -05:00
|
|
|
|
|
|
|
|
#include "LogVisualizer.h"
|
|
|
|
|
#include "SSequencerSectionOverlay.h"
|
|
|
|
|
#include "TimeSliderController.h"
|
|
|
|
|
|
2015-01-30 00:33:20 -05:00
|
|
|
int32 SVisualLoggerSectionOverlay::OnPaint( const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyClippingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled ) const
|
2014-11-19 07:43:07 -05:00
|
|
|
{
|
|
|
|
|
TimeSliderController->OnPaintSectionView( AllottedGeometry, MyClippingRect, OutDrawElements, LayerId, ShouldBeEnabled( bParentEnabled ), bDisplayTickLines.Get(), bDisplayScrubPosition.Get() );
|
|
|
|
|
|
|
|
|
|
return SCompoundWidget::OnPaint( Args, AllottedGeometry, MyClippingRect, OutDrawElements, LayerId, InWidgetStyle, bParentEnabled );
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-30 00:33:20 -05:00
|
|
|
FReply SVisualLoggerSectionOverlay::OnMouseButtonDown( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )
|
2014-11-19 07:43:07 -05:00
|
|
|
{
|
2014-12-10 09:22:32 -05:00
|
|
|
return TimeSliderController->OnMouseButtonDown(SharedThis(this), MyGeometry, MouseEvent);
|
2014-11-19 07:43:07 -05:00
|
|
|
}
|
|
|
|
|
|
2015-01-30 00:33:20 -05:00
|
|
|
FReply SVisualLoggerSectionOverlay::OnMouseButtonUp( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )
|
2014-11-19 07:43:07 -05:00
|
|
|
{
|
|
|
|
|
return TimeSliderController->OnMouseButtonUp( SharedThis(this), MyGeometry, MouseEvent );
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-30 00:33:20 -05:00
|
|
|
FReply SVisualLoggerSectionOverlay::OnMouseMove( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )
|
2014-11-19 07:43:07 -05:00
|
|
|
{
|
|
|
|
|
return TimeSliderController->OnMouseMove( SharedThis(this), MyGeometry, MouseEvent );
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-30 00:33:20 -05:00
|
|
|
FReply SVisualLoggerSectionOverlay::OnMouseWheel( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )
|
2014-11-19 07:43:07 -05:00
|
|
|
{
|
2014-12-10 09:22:32 -05:00
|
|
|
if (MouseEvent.IsLeftShiftDown() || MouseEvent.IsLeftControlDown())
|
|
|
|
|
{
|
|
|
|
|
return TimeSliderController->OnMouseWheel(SharedThis(this), MyGeometry, MouseEvent);
|
|
|
|
|
}
|
|
|
|
|
return FReply::Unhandled();
|
2014-11-19 07:43:07 -05:00
|
|
|
}
|