You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- 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]
37 lines
1.6 KiB
C++
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();
|
|
}
|