Files
UnrealEngineUWP/Engine/Source/Developer/NewLogVisualizer/Private/SSequencerSectionOverlay.cpp
sebastian kowalczyk f05ee1bdd9 LogVisualizer fixes and improvements (integrated from Dev to Main):
- Fixed and polished how we scroll/drag or zoom data in timelines using mouse. It should be much easier now.
- Added scroll bar while working with zoomed data. It's clear that we have it zoomed and it's faster to scroll that kind of data now.
- Fixed how timeline's context menu works with timelines selection.
- it's possible to copy log lines to system clipboard now,
- bunch of other fixes and tweaks here and there (like GrabHand" mouse cursor while dragging timelines, etc.)

[CL 2383375 by sebastian kowalczyk in Main branch]
2014-12-10 09:22:32 -05:00

37 lines
1.6 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "LogVisualizer.h"
#include "SSequencerSectionOverlay.h"
#include "TimeSliderController.h"
int32 SSequencerSectionOverlay::OnPaint( const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyClippingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled ) const
{
TimeSliderController->OnPaintSectionView( AllottedGeometry, MyClippingRect, OutDrawElements, LayerId, ShouldBeEnabled( bParentEnabled ), bDisplayTickLines.Get(), bDisplayScrubPosition.Get() );
return SCompoundWidget::OnPaint( Args, AllottedGeometry, MyClippingRect, OutDrawElements, LayerId, InWidgetStyle, bParentEnabled );
}
FReply SSequencerSectionOverlay::OnMouseButtonDown( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )
{
return TimeSliderController->OnMouseButtonDown(SharedThis(this), MyGeometry, MouseEvent);
}
FReply SSequencerSectionOverlay::OnMouseButtonUp( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )
{
return TimeSliderController->OnMouseButtonUp( SharedThis(this), MyGeometry, MouseEvent );
}
FReply SSequencerSectionOverlay::OnMouseMove( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )
{
return TimeSliderController->OnMouseMove( SharedThis(this), MyGeometry, MouseEvent );
}
FReply SSequencerSectionOverlay::OnMouseWheel( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )
{
if (MouseEvent.IsLeftShiftDown() || MouseEvent.IsLeftControlDown())
{
return TimeSliderController->OnMouseWheel(SharedThis(this), MyGeometry, MouseEvent);
}
return FReply::Unhandled();
}