Commit Graph

376 Commits

Author SHA1 Message Date
Dan Hertzka
8efb77b6b9 Fixed Undo History being an unrecognized tab on restart
[CL 2327633 by Dan Hertzka in Main branch]
2014-10-13 16:13:17 -04:00
Nick Darnell
8e9dff67df Slate - Now initializing the scale box parameters in the construct function.
[CL 2325693 by Nick Darnell in Main branch]
2014-10-10 12:57:26 -04:00
Nick Darnell
38d0e2a429 Editor/Slate - The multiline text editor now allows you to specify a modifer key that is required to create a new line. Normally this is none, but you can set it to Shift, for example to require shift +enter to create a new line. Failing to press Shift+Enter and instead just Enter would now commit the text. The multiline property editors for the editor now use this. Enter by default now always commits the values, but in multiline property fields you can now add new lines by using Shift+Enter.
#codereview Nick.Atamas Matt Kuhlenschmidt

[CL 2324663 by Nick Darnell in Main branch]
2014-10-09 17:40:30 -04:00
Dan Hertzka
f3092790eb Window menu refactor & polish
- Window menu is now sectioned and labeled based on the current editor. There's now a local workspace root member in FTabManager and a workspace category in FAssetEditorToolkit (both are FWorkspaceItem objects). Individual editors attach their local category to the tab manager's local root. Workflow app modes have their own category members that are swapped out when the mode changes.

- Finally, the AssetEditorCategory of FWorkspaceMenuStructure has been removed entirely.

- Replaced the AddMenuSeparator() call in FTabManager::PopulateSpawnerMenu_Helper() with a section of the same title as the workspace category.

- Tab spawner menu entries for the local editor now properly show the icon of the associated tab. To accomplish this it was necessary to change FWorkflowTabFactory::TabIcon to be an FSlateIcon instead of an FSlateBrush*. All factory instances have been updated accordingly.

- Added & updated lots of icons! (those missing will be TTP'd)

- The nomad tab spawner section (named "General" in the menu) has been largely compressed into the Developer Tools submenu, which has also been organized into sections for readability.

- Unreal frontend options were also moved into a context menu within the General section

- Moved all experimental tools to their own section of the Window menu. When they're no longer experimental they should register as nomads in the appropriate category

- Undo history now under Edit menu

[CL 2324285 by Dan Hertzka in Main branch]
2014-10-09 12:34:55 -04:00
Matt Kuhlenschmidt
944cb2d04e Fix mac menu specific crash not clearing focus before menu action is executed, leaving widgets in dangerous states.
[CL 2324282 by Matt Kuhlenschmidt in Main branch]
2014-10-09 12:29:49 -04:00
Max Preussner
1fab6e586f Slate: Added support for convertible laptops on Windows (GitHub PR #380 by JeffRous)
https://github.com/EpicGames/UnrealEngine/pull/380

#CodeReview: nick.atamas

[CL 2324225 by Max Preussner in Main branch]
2014-10-09 11:44:41 -04:00
Matthew Griffin
9b32170b72 Making sure that Web Browser does not affect monolithic game builds
Ensured that the Developer level Web Browser module is only referenced in editor and program builds. This means that you can create an SWebBrowser wherever you like but it won't have any functionality in game.

[CL 2323927 by Matthew Griffin in Main branch]
2014-10-09 06:36:35 -04:00
Michael Trepka
d3bff494f1 Force update Mac menu bar in FTabManager::OnTabRelocated()
[CL 2323114 by Michael Trepka in Main branch]
2014-10-08 15:22:15 -04:00
Thomas Sarkanen
8011ba0c1b Adding external link indicator to tutorial hyperlinks
Slate changes:
Allowed hyperlink decorator and hyperlink run to be more easily derived from by moving some functions/variables to protected.

Added new run & decorator for hyperlinks in tutorials that add an icon to the end of the run if required.
Only use icon-style run if in display mode (not in edit mode).

reviewed by Jamie.Dale

[CL 2322460 by Thomas Sarkanen in Main branch]
2014-10-08 06:07:52 -04:00
Jamie Dale
0eb6d819e1 Fixed some clipping issues with text shadows
FSlateTextRun and FSlateHyperlinkRun now support negative shadow offsets.

This also fixes the maximum size of a text run being reported incorrectly when it was using a shadow offset.

ReviewedBy Justin.Sargent

[CL 2322437 by Jamie Dale in Main branch]
2014-10-08 05:42:44 -04:00
Josh Adams
fae2f823c0 - Fixed compile error with LOCTEXT_NAMESPACE not being undef'd
[CL 2321592 by Josh Adams in Main branch]
2014-10-07 14:19:12 -04:00
Carlos Cuello
550e19fb8d [INTEGRATE] Merging using UE4-To-UE4-LauncherReleases, all up to cl 2321357
[CL 2321404 by Carlos Cuello in Main branch]
2014-10-07 12:28:45 -04:00
Matthew Griffin
3604069889 Allowing transparency in web browser windows and improved viewport resizing
Allow user to chose whether transparency is used for individual browser windows.
When browser viewport is resized or rendered with old size afterwards, made sure that the texture is copied row by row to avoid distortion.
Store size of viewport as an FIntPoint to avoid various casts that would be needed.

[CL 2321219 by Matthew Griffin in Main branch]
2014-10-07 09:58:47 -04:00
Fred Kimberley
27c0402283 Integrating changes from the Fortnite branch up to CL 2318231.
Merging using UE4-Fortnite-To-UE4

[CL 2321212 by Fred Kimberley in Main branch]
2014-10-07 09:53:56 -04:00
Michael Trepka
f3a117c5ef Update Mac menu in UpdateWithMultiBox() even if multibox didn't change in case some menu items were added or removed
[CL 2321195 by Michael Trepka in Main branch]
2014-10-07 09:48:45 -04:00
Jamie Dale
f977a6a3b3 Fixed FSlateTextRun::Measure not taking the shadow offset into account when working out the size
[CL 2321070 by Jamie Dale in Main branch]
2014-10-07 07:01:17 -04:00
Nick Darnell
c121ba5113 Slate - The Menu anchor now handles the case where it has no content, but still wants to display a popped up child.
[CL 2320232 by Nick Darnell in Main branch]
2014-10-06 14:33:01 -04:00
Michael Trepka
7e59e05149 Updated Mac menu code to not depend on active tab being always correctly set and instead check if there's any visible, regular window open when deciding whether or not menus need update. This solves an issue with menu being empty in some cases.
#codereview Mark.Satterthwaite

[CL 2320168 by Michael Trepka in Main branch]
2014-10-06 13:57:34 -04:00
Nick Darnell
c245b471b6 Slate - We no longer create the menus when destroying the menu.
[CL 2319970 by Nick Darnell in Main branch]
2014-10-06 11:35:07 -04:00
Matthew Griffin
45637d612e Added an SWebBrowser widget
Web Browser widget displays a web page and allows for some optional basic controls.
Added initialisation and update of Web Browser module to Slate Application so that each web browser window doesn't have to manage this individually.
Added example usage of the widget to STestSuite so that it can be used via the SlateViewer app.
Fixed error in name of CEF3Utils module.

[CL 2319730 by Matthew Griffin in Main branch]
2014-10-06 10:05:03 -04:00
Nick Darnell
2e11c8b655 Slate - The Menu Anchor now allows content to appear on the left. Customized the enum display names to be less wordy for UMG.
[CL 2319410 by Nick Darnell in Main branch]
2014-10-04 09:35:30 -04:00
Michael Trepka
ca3e2411ac Don't call BringToFront on mouse up if the window is already active
[CL 2317215 by Michael Trepka in Main branch]
2014-10-02 10:51:03 -04:00
Mark Satterthwaite
f61b5a8a08 Fix MAC: CRASH: Closing level blueprint after PIE without changing Slate - when updating the multi-box we must reset the cached state, not just remove the same entries, because not all of them will exist. This ensures we don't keep around menus pointing to invalid FMenuExtenders.
#codereview michael.trepka

[CL 2317183 by Mark Satterthwaite in Main branch]
2014-10-02 08:04:04 -04:00
Andrew Rodham
e81d39b527 Fixed list views scrolling backwards when touch-scrolling
This regression was caused by a change to the touch FPointerEvent constructor in CL#2303366, which corrects the sign of the cursor delta. List view touch scrolling had previously (perhaps unknowingly) worked around this issue by negating the scroll direction. Touch scrolling and mouse scrolling now work in the same way.

This addresses TTP#348351 - Slate lists scroll backwards when using touch.

#codereview Nick.Atamas, Dan.Hertzka

[CL 2317124 by Andrew Rodham in Main branch]
2014-10-02 05:38:26 -04:00
Nick Atamas
75f1d1293a Fixed Slate synthesizing pointer moves even on platforms that do not support a cursor.
[CL 2316211 by Nick Atamas in Main branch]
2014-10-01 13:19:43 -04:00