Commit Graph

52 Commits

Author SHA1 Message Date
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
Adric Worley
a7e384f876 Moved particle promotion tests into Cascade
Exposed promotion test keybinding methods
Refactored keybinding settings tests

[CL 2575597 by Adric Worley in Main branch]
2015-06-03 10:44:38 -04:00
Simon Tovey
91281e5b9a Fix for UE-11697 - Major performance hit with multiple Particle Systems open and tabbed
This was caused by the cascade viewport widget rendering all the time, even when in a hidden tab.

[CL 2533407 by Simon Tovey in Main branch]
2015-05-01 07:30:06 -04:00
Olaf Piesche
57dfc6a74d Fix for UE-11697
With many particle emitters open, perf tanks. Cascade is ticking even if the editor tab is not visible/active, which can cause all sorts of performance issues. Cascade ticks through engine tick, so the only way to properly avoid this is to check for ticking of the viewport widget; added a flag to it to keep track of ticking in the last frame, then checking and clearing that in the Cascade tick function.

#codreview nick.atamas dave.ratti

[CL 2523454 by Olaf Piesche in Main branch]
2015-04-23 17:36:57 -04:00
Andrew Rodham
5194f5cfc0 Fixed some windows not gaining focus when opened
On mac, window activation is not guaranteed syncronously when a window is created, thus any code that opened a window, then immediately opened some focus-sensitive operation, may fail.

I've fixed up three of the most common cases (SAssetView::ItemScrolledIntoView, STextEntryPopup and STextComboPopup) so they register an active tick to focus the widget when the window gains focus (optionally controllable from the .AutoFocus() argument)

This addresses UE-12929.

[CL 2521062 by Andrew Rodham in Main branch]
2015-04-22 10:34:02 -04:00
Dan Oconnor
15c50b5a5d Fixes for warnings found by PVS-Studio, these have been modified from PR#996
[CL 2500335 by Dan Oconnor in Main branch]
2015-04-02 16:32:47 -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
Marc Audy
a425eba9ed Unify Slate's FInputGesture and Engine's FInputChord as FInputChord defined in Slate
[CL 2481648 by Marc Audy in Main branch]
2015-03-17 11:36:28 -04:00
Jaroslaw Palczynski
f23f29257b Back out changelist 2481333
Rob asked me to back out GENERATED_*_BODY -> GENERATED_BODY change for now until the "_Validate and _Implementation auto-generation" discussion is over.

#codereview Robert.Manuszewski

[CL 2481343 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:38:32 -04:00
Jaroslaw Palczynski
fa31560e2d Enabled UHT to digest GENERATED_BODY instead of GENERATED_UCLASS_BODY, GENERATED_USTRUCT_BODY, GENERATED_UINTERFACE_BODY or GENERATED_IINTERFACE_BODY, changed every occurence to the new syntax and fixed every warning that have fallen out of this change.
#codereview Robert.Manuszewski

[CL 2481333 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:19:11 -04:00
Saul Abreu
e9a1f089e7 Fixed UI_COMMAND macro implementation so that it requires use of the LOCTEXT_NAMESPACE macro in the same file it is invoked from. Added necessary LOCTEXT_NAMESPACE definitions to files missing them using UI_COMMAND.
[CL 2477295 by Saul Abreu in Main branch]
2015-03-12 15:26:31 -04:00
Michael Noland
642f3db76c Cascade: Fix light preview visualization not showing up in Cascade [UE-10906]
[CL 2461672 by Michael Noland in Main branch]
2015-02-25 23:46:21 -05:00
Matthew Griffin
01f2d4ea83 [INTEGRATE] Change 2429206 by Nick.Darnell@Nick.Darnell_Dev on 2015/02/02 22:06:28
Editor - Removing some old code that causes crashes in the editor when attempting to click on viewport menu anchors under low framerates, or when the frame rate is articially low, like coming back from the window not being focused.  The viewport toolbar no longer attempts to collapse when the frame rate is low, or the window is not focused.

[CL 2436762 by Matthew Griffin in Main branch]
2015-02-07 11:26:43 -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
Max Preussner
166960ed36 Fixed non-unity
#CodeReview: dan.hertzka

[CL 2398882 by Max Preussner in Main branch]
2015-01-06 13:37:55 -05:00
Dan Hertzka
27c2559898 Updated editor viewports & editor viewport clients to allow for inertial movement and animated/lerped transitions when Slate is asleep
- SEditorViewportClient now has an additional optional parameter in its constructor for the SEditorViewport that the client is attached to
- SBasePoseViewport, SDestructibleMeshEditorViewport, and SPhATPreviewViewport were all updated to inherit from SEditorViewport (previously just inherited from SCompoundWidget)

[CL 2398765 by Dan Hertzka in Main branch]
2015-01-06 11:09:55 -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
Michael Noland
6573fc933a Editor: Pushed basic ModeTools support into FEditorViewportClient
[CL 2378053 by Michael Noland in Main branch]
2014-12-05 15:08:09 -05:00
Richard TalbotWatkin
c83a8e8e98 Fixed issue with Undo when converting a particle module to seeded.
#jira UE-1204 - CRASH: EDITOR: CASCADE: Undo convert to a seeded module does not correctly undo the action and can lead to a crash

[CL 2374538 by Richard TalbotWatkin in Main branch]
2014-12-03 02:57:48 -05:00
Jamie Dale
d21cff33f7 Fixed code relying on SLATE_TEXT_ARGUMENT for STextEntryPopup
Made sure everything was using FText rather than FString.

[CL 2373660 by Jamie Dale in Main branch]
2014-12-02 08:37:25 -05:00
Mikolaj Sieluzycki
51f5333986 Prepare cpp files for header cleanup.
#codereview Robert.Manuszewski

[CL 2356864 by Mikolaj Sieluzycki in Main branch]
2014-11-12 04:58:53 -05:00
Mikolaj Sieluzycki
59df49651b Engine private PCH cleanup.
#codereview Robert.Manuszewski

[CL 2348191 by Mikolaj Sieluzycki in Main branch]
2014-11-04 06:12:25 -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
Dan Hertzka
2ab1556645 Adjusted access to the LocalWorkspaceMenuRoot within FTabManager - GetLocalWorkspaceRoot() now returns a const and provides methods to expose adding a category and clearing categories
#codereview nick.atamas

[CL 2338925 by Dan Hertzka in Main branch]
2014-10-23 15:11:28 -04:00