Commit Graph

354 Commits

Author SHA1 Message Date
Nick Atamas
8c35f7faff Slate mouse input now works with Application Scales < 1.0. Previously mouse input was erroneously clipped.
[CL 2528537 by Nick Atamas in Main branch]
2015-04-28 11:06:55 -04:00
Marcus Wassmer
0ba5c5f2e1 Merge Morpheus 120hz and reprojection support.
Also fixes for NGS2A3D

[CL 2521711 by Marcus Wassmer in Main branch]
2015-04-22 16:41:54 -04:00
Michael Trepka
f26a552270 Added an option to create Slate window without a close button and used it for Source Control Login window, replacing a custom title bar it was using that didn't look well on Mac
[CL 2521044 by Michael Trepka in Main branch]
2015-04-22 10:27:12 -04:00
Chris Wood
2c7d83c0cd Fix the inconsistency in the ownership hierarchy of 3D widgets
#change Allow ArrangeChildren() calls inside FWidgetPath::GeneratePathToWidget() to include 3D widgets.

#codereview Nick.Atamas

[CL 2517575 by Chris Wood in Main branch]
2015-04-20 10:30:11 -04:00
Matthew Griffin
6414672801 Added constructor to FSlateTextureData that takes a pointer to texture data
#codereview Matt.Kuhlenschmidt

[CL 2517442 by Matthew Griffin in Main branch]
2015-04-20 08:33:24 -04:00
Saul Abreu
901042c9ac Massive cleanup of text localization code and its uses. REVIEW API CHANGES FOR RELEASE NOTES.
[CL 2514827 by Saul Abreu in Main branch]
2015-04-16 15:39:05 -04:00
Marc Audy
a523efb225 Fix shadowed variables
[CL 2510461 by Marc Audy in Main branch]
2015-04-13 12:42:09 -04:00
Dan Hertzka
fcca7b991d Updated SPropertyEditorAsset to account for AllowedClasses metadata on properties when being created without a valid property editor
[CL 2508764 by Dan Hertzka in Main branch]
2015-04-10 15:22:21 -04:00
Nick Atamas
840f5522c0 Slate : fixed typo.
[CL 2505655 by Nick Atamas in Main branch]
2015-04-08 15:12:36 -04:00
Nick Atamas
678594279f Slate : Hittest grid no longer discards entire event path when a single widget in that path is broken. Instead, return a truncated path from root.
Fixes UE-13401.

[CL 2505635 by Nick Atamas in Main branch]
2015-04-08 15:06:23 -04:00
Mike Fricker
114458bf0f Clang warning fixes: Fixed missing 'override' specifiers
- Also removed some unreferenced functions that adding 'override' revealed

PR #1002 -- Thank you, Omar007!

[CL 2498415 by Mike Fricker in Main branch]
2015-04-01 07:20:55 -04:00
PaulEremeeff
3d878d5a79 PR #996: Fixing PVS-Studio warnings (Contributed by PaulEremeeff)
I have reviewed each change carefully, but it is a large change and I could have missed something! Here is a summary of the types of changes in this CL:
 * Made nullptr checks consistent (the plurality of the changes are of this type)
 * Completed switch statements (IE, switch did not explicitly handle default case, but had unhandled enum entries - this is the second most popular type of fix)
 * Removed unused variables
 * Removed redundant initializations
 * WidgetNavigationCustomization.cpp was fixed by the owner
 * integers converted to floats where result was stored in a float
 * Removed redundent null checks (e.g. before delete statements)
 * Renamed variables to prevent non-obvious shadowing
 * Fixed use of bitwise & when checking for equality to an enum entry (which is often 0)
 * Fixes for some copy paste errors (e.g. FoliageEdMode.cpp)

[CL 2498053 by Dan Oconnor in Main branch]
2015-03-31 20:12:31 -04:00
Maciej Mroz
34fcc85a6d Better fix for: UE-11733 Using a function to set button style causes a crash
[CL 2496754 by Maciej Mroz in Main branch]
2015-03-31 00:05:46 -04:00
Michael Noland
06013fa933 Optimizing various uses of Pop to prevent incremental reallocation for short-lived or frequently used TArray instances
[INTEGRATE] Change 2490222 by Michael.Noland@mnoland-T2784-HDepot on 2015/03/25 00:18:46

[CL 2494763 by Michael Noland in Main branch]
2015-03-27 20:05:10 -04:00
Nick Darnell
c194edd9f7 UMG/Slate - No longer exposing Disabled slate brush on the FButtonStyle. This was adding a lot of confusion. We want to support custom look and feel disabled buttons, but this particular property wasn't actually being used by any of the core slate widgets and so users were becoming confused why it didn't work as expected. Hiding from view until we have time to refactor disabled styling for buttons and more.
[CL 2493778 by Nick Darnell in Main branch]
2015-03-27 10:34:08 -04:00
Max Preussner
adc5266199 Slate: Added missing override keywords
[CL 2492771 by Max Preussner in Main branch]
2015-03-26 18:31:07 -04:00
Chris Gagnon
ac5f2e0fc1 Fix for hit test grid not navigating correctly when the primary monitor was to the right of a secondary monitor.
Resulted in an non zero grid offset which wasn't handled properly in navigations clip rect intersection code.
Fixes Jira UE-8052

[CL 2488678 by Chris Gagnon in Main branch]
2015-03-23 19:33:56 -04:00
Dan Oconnor
06806b2237 PR #946: Fixing PVS-Studio warning (Contributed by PaulEremeeff)
https://github.com/EpicGames/UnrealEngine/pull/946

I have gone through these changes and verified that whatever behavior change they cause could only be an improvement (generally they just prevent possible access to nullptrs, but there are also some style corrections). A separate changelist is being prepared that includes changes that could unintentionally caues behavior change for the worse.

[CL 2486801 by Dan Oconnor in Main branch]
2015-03-20 17:18:31 -04:00
Michael Trepka
6dea1c619b Temp fix for a mismatch between the order of windows on the Slate's list and the actual order of windows on screen caused by activating a panel window.
[CL 2485021 by Michael Trepka in Main branch]
2015-03-19 15:36:30 -04:00
Chris Gagnon
1e0cd38318 Added EConsumeMouseWheel functionality to the SScrollBox.
Inspired by pull request #886, however we deemed it better to use the previously existing EConsumeMouseWheel enumeration to keep the feature inline with the ListView functionality. UE-11386

[CL 2484807 by Chris Gagnon in Main branch]
2015-03-19 13:50:38 -04:00
Dan Hertzka
a67d86f455 - Drag-drop indicators take into account the tint on the indicator brush
- Added basic drag-drop outline indicators to the SCS tree
- Removed redundant definition of SlateEditorStyle::NormalTableRowStyle & added the basic drag-drop indicators to the normal style

#codereview Nick.Darnell

[CL 2484512 by Dan Hertzka in Main branch]
2015-03-19 10:49:15 -04:00
Dan Oconnor
84da45973f PR #936: Fixes for PVS-Studio warnings from Paul Eremeeff
These are mostly fixes to redundant comparisons and initialization code, but there's also a fix for serious looking scope issue in FontCache.cpp

[CL 2483865 by Dan Oconnor in Main branch]
2015-03-18 20:36:02 -04:00
Michael Noland
adff46d5c3 Slate: Expose a variant of SWidget::FindChildUnderMouse that takes the position to check directly instead of the pointer event
[CL 2483768 by Michael Noland in Main branch]
2015-03-18 19:28:29 -04:00
Jamie Dale
446e0d00ee Added warnings for when FSlateFontInfo is created with a null font, or a font that can't provide a valid composite font
This also stops offline (bitmap) cached fonts from reporting that they're able to provide a composite font (they can't).

This makes it clearer when Slate will be forced to use the fallback font path, which may not always be as fast as the standard font path.

[CL 2482035 by Jamie Dale in Main branch]
2015-03-17 15:39:05 -04:00
Jaroslaw Palczynski
6c305898e0 UE-8578: Slate Widget fails to compile once added to a new project
Slate Widget was failing, because of missing Slate dependencies. Testing introduced a couple of problems which all was fixed by this CL:
1. I introduced AdditionalDependencies in .uproject file and change "Add Code To Project..." procedure to fill this array if needed. UBT reads this field and builds the project with required modules. Needed for Slate classes.
2. Changed UHT to #include missing headers in generated.h files if it was missing an include for it's super class. It was causing problems if we were trying to add a subclass of BrushShape -- BrushShape.h didn't have #include "Brush.h" and UBrushShape was inheriting from UBrush.
3. Above problems also occured for Slate classes, but not all of them was UCLASSes, so I had to fixed that manually.
4. "Add Code To Project..." functionality was not invalidating UBT makefiles, which lead to omitting new source files during hot-reloading (even thought it was reporting a success). This change also should improve a bit performance, cause right now there is no "gathering" step -- there is only invalidate step which is a lot quicker.
5. Fixed "Selected Class Source" link to source class in Slate Widget and Slate Widget Style class.

#codereview Robert.Manuszewski

[CL 2481488 by Jaroslaw Palczynski in Main branch]
2015-03-17 09:34:18 -04:00