Commit Graph

38 Commits

Author SHA1 Message Date
Nick Darnell
7077d50aa0 Slate/Core - Fixing a few cases where we were comparing TAttributes directly to literals.
[CL 2606119 by Nick Darnell in Main branch]
2015-06-30 14:04:31 -04:00
Andrew Rodham
b64966720f Unified curve editor frame selected/all behaviour. All operations now operate on the currently selected keys, or the whole curve where none are selected.
Hooked up the horizontal range of the sequencer curve editor to the sequencer itself

[CL 2598716 by Andrew Rodham in Main branch]
2015-06-24 08:02:15 -04:00
Frank Fella
3ddd53ab5f SCurveEditor - Make adding keys more predictable.
+ Keys are only added under the mouse when there is only one curve to edit.
+ When multiple curves are available clicking on a curve will add a key inline on that curve, and clicking off of the curve will add keys too all curves.
+ Changed the text of the menu item to make it clear what's going to happen.

Jira: UE-15095

[CL 2592320 by Frank Fella in Main branch]
2015-06-18 14:10:19 -04:00
Chris Wood
8a112d6140 PushMenu() now respects QueryPopupMethod(). All menus now support reusing windows.
UE-14641 - Fix PushMenu() to use QueryPopupMethod()

Pretty big refactor
Adds IMenu as way to identify menus. Replaces referring to menus as SWindows.
Lots of uses of PushMenu() fixed up to match new API

#codereview Nick.Atamas

[CL 2579277 by Chris Wood in Main branch]
2015-06-05 20:19:33 -04:00
Matt Kuhlenschmidt
3055ee81a6 Fix curve editor Time and Value boxes always showing "Time" for the label
[CL 2524940 by Matt Kuhlenschmidt in Main branch]
2015-04-24 16:41:41 -04:00
Marc Audy
cd2e652f99 Fix shadowed variables
[CL 2466598 by Marc Audy in Main branch]
2015-03-02 13:41:53 -05:00
Frank Fella
a68ec2ab9b Sequencer - Add a view to sequencer which uses a curve editor to show keyframes.
[CL 2447276 by Frank Fella in Main branch]
2015-02-16 11:59:08 -05:00
Mikolaj Sieluzycki
fa01cacb6c Trim down the amount of UObject constructors.
#codereview Robert.Manuszewski

[CL 2429641 by Mikolaj Sieluzycki in Main branch]
2015-02-03 05:40:57 -05:00
Frank Fella
05cc891b04 FCurveOwnerInterface - Add a method for validating that a previously retrieved curve is still valid for editing. This is needed to fix cases where curves become invalid due to undo/redo.
[CL 2426528 by Frank Fella in Main branch]
2015-01-30 17:41:04 -05:00
Nick Atamas
f5e19bef14 Slate : RelativeLayoutScale is now computed in the SlatePrepass(). ComputeDesiredSize() now takes a float parameter. API-breaking change!
[CL 2406629 by Nick Atamas in Main branch]
2015-01-14 19:04:45 -05:00
Jamie Dale
a569f6b356 Fixed code relying on SLATE_TEXT_ATTRIBUTE for STextBlock.
UETOOL-213 - Minimize Slate FString -> FText conversion (remove SLATE_TEXT_ATTRIBUTE)

This fixes any editor/engine specific code that was passing text to Slate as FString rather than FText.

[CL 2399803 by Jamie Dale in Main branch]
2015-01-07 09:52:40 -05:00
Nick Darnell
90e793745c Slate - ESlateCheckBoxState has been renamed to ECheckBoxState.
[CL 2384008 by Nick Darnell in Main branch]
2014-12-10 14:24:09 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Jamie Dale
09af8a9c60 Fixed code relying on SLATE_TEXT_ARGUMENT for SNumericEntryBox
Made sure everything was using FText rather than FString.

[CL 2373615 by Jamie Dale in Main branch]
2014-12-02 06:47:27 -05:00
Lina Halper
e108fbb56e #Animation Editing Feature
- If you select bone and modify, you can add to the additive layer track
- You can also move curve keys during SIE

[CL 2359126 by Lina Halper in Main branch]
2014-11-13 17:30:49 -05:00
Nick Darnell
7d27a97b6b [Jira UETOOL-102] The curve editor now allows metadata to control labeling of each axis. THe curve editor for user interface DPI scaling now labels the axises Resolution and Scale.
[CL 2348461 by Nick Darnell in Main branch]
2014-11-04 11:07:08 -05:00
Chris Gagnon
0e6d657c3d Refactor to unify keyboard and controller input and focus.
Native controller navigation support.

[CL 2345039 by Chris Gagnon in Main branch]
2014-10-30 12:29:36 -04:00
Matthew Griffin
c89ea03fa2 Adding a curve linear color struct that can be added as a property and edited in details panel.
Removed code that explicitly checks for UCurveLinearColor and added functions to curve owner interface so that this struct can display the gradient editor as well.
Tidied up some of the curve customisation that this was based on, only including what's needed, forward declarations in single place, removed unused comments.

UE-4434 - GitHub 529 : Curve linear color + Customization

Integrated from PR #529 by iniside

[CL 2339661 by Matthew Griffin in Main branch]
2014-10-24 08:09:10 -04:00
Wes Hunt
31e2bb00ac Removed a bunch of stuff from Slate standard include, created SlateBasics.h
* Moved Slate.h into SlateBasics.h and began shifting less commonly used headers into SlateExtras.h.
* Slate.h now simply includes SlateBasics.h and SlateExtras.h.
* Slate.h includes a deprecated warning now to indicate that SlateBasics.h + specific includes should be used instead.
* Moved dozens of inlined functions using Slate widgets into .cpp files to avoid header dependencies.
* All code samples now include SlateBasics.h and SlateExtras.h so future shifts will not break most those projects, but not trigger the deprecation warning of including Slate.h.
#BUN

[CL 2329610 by Wes Hunt in Main branch]
2014-10-14 22:50:06 -04:00
Michael Noland
928559eaa0 Editor: Coding-standards fixes (TypeName [*|&] VariableName -> TypeName[*|&] VariableName)
[CL 2316341 by Michael Noland in Main branch]
2014-10-01 14:45:23 -04:00
Andrew Brown
0626ee109e Curve graph min and max are now preserved during blueprint changing/saving.
#ttp 344632 - EDITOR: Timeline Editor: Zoom Fit resets on Play/Stop

#branch UE4

#change The æfitÆ state of the curve isnÆt maintained because itÆs only fit for the frame you press the button, if pan or add another key it may no longer be æbest-fitÆ either. The issue is, whenever the blueprint (not the curve) is modified, the curve editor widget is recreated due to a Blueprint->BroadcastChanged delegate, which is why the curve state isnÆt maintained because when you PIE or Save the blueprint is recreates the widget. However, I noticed that this is only the case with the Vertical as the Horizonal is saved externally due to attributes and delegates, so I modified the vertical to use the same system.

reviewed by Thomas.Sarkanen

[CL 2305512 by Andrew Brown in Main branch]
2014-09-22 09:47:37 -04:00
Frank Fella
8a665705f4 CurveEditor - Refactor curve selection controls.
+ Remove curve selection check boxes.
+ Add controls to show/hide curves, and to lock/unlock curves.
+ Small refactor to paint method to ensure correct draw order.

#codereview matt.kuhlenschmidt

[CL 2283042 by Frank Fella in Main branch]
2014-09-03 11:17:17 -04:00
Frank Fella
2614ea0d85 Curve Editor - Small enhancements
+ Add commands for zoom all, and zoom selected, and add buttons to the curve asset editor toolbar.
+ Add commands for setting interpolation modes and add buttons to the curve asset editor toolbar.
+ Add an "Add Key" menu option to the right click menu when clicking on a curve.

#codereview matt.kuhlenschmidt

[CL 2272132 by Frank Fella in Main branch]
2014-08-26 10:26:37 -04:00
Frank Fella
2342619dc5 CurveEditor - Small visual updates.
+ Make the tangent icons smaller and more distinct.
+ Make the tangent handles longer.

[CL 2270662 by Frank Fella in Main branch]
2014-08-25 12:21:17 -04:00
Frank Fella
a741e5497d Curve Editor - Add snapping support.
[CL 2268021 by Frank Fella in Main branch]
2014-08-22 17:36:08 -04:00