Commit Graph

134 Commits

Author SHA1 Message Date
daren cheng
f810d2c9b8 Speculative fix crash when packaging due to logging.
#jira UE-163994, UE-166147, UE-162995
#rb Patrick.Boutot
#preflight 6345c6cbcc615cdcf718993d
#lockdown jeanmichel.dignard

[CL 22513035 by daren cheng in ue5-main branch]
2022-10-13 17:42:11 -04:00
yohann dossantos
59b5769eca -Text font size changes in Text Box (Multy-Line) widget applies only after moving the text widget
It was the initial bug, but while looking at it, I noticed that the MultilineEditableTextBox was containing both a Font via FEditableTextBoxStyle, and another one via FTextBlockStyle, thus being error prone / inconsistent.
In order to fix the underlying issue (in addition to fix the initial bug), I removed the Font from FEditableTextBoxStyle, and moved the FTextBlockStyle from MultilineEditableTextBox to FEditableTextBoxStyle.
It solves the duplication issue and so make it clear where the Font should be set/read from.
However, as the text block style is now embedded in the editable text box style, it cannot be initialized the exact same way, and I had to do some changes to ensure there was no regression, by configuring various FEditableTextBoxStyle in some style files. I also change the default value for TextBlockStyle to better match our default theme.

-Default font is not set for text widgets.
EditableWidget: ensure to have a default font, and to set the style when calling SynchronizeProperties to ensure it reacts directly without having to force a refresh (by moving the widget for instance)

Bonus:
-Move to cpp some private methods that where 'forced' inline (and we were using function pointer on them). It will avoid some noise in public interface and speed up iteration / compile time when playing with them.

#jira UE-96464
#jira UE-137126

[RN] MultilineEditableTextBox was containing both a Font via FEditableTextBoxStyle, and another one via FTextBlockStyle, thus being error prone / inconsistent.The Font from FEditableTextBoxStyle has been removed, and the FTextBlockStyle moved from MultilineEditableTextBox to FEditableTextBoxStyle. It solves the duplication issue and so make it clear where the Font should be set/read from.
However, as the FTextBlockStyle is now embedded in the FEditableTextBoxStyle, it cannot be initialized the exact same way, and you can now configure the FTextBlockStyle of FEditableTextBoxStyle when creating one from scratch, by calling SetTextStyle on it.


Test
- created a Widget blueprint with different editable types combination: multiline or single line, box or no box.
    -Validated that everything was reacting live as expected now.
    -Created a blue print to set the text style and validated it was working.
    -Create data with old version, then open it with updated version to validate that the visual was still the same and deprecation of style working as expected.
-checked different places in the editor using variation of editable text to ensure they were behaving as before (detail view, console command entry, comment on blueprint node).
#preflight 63344b9f110bb3721ef8aa77

[CL 22232366 by yohann dossantos in ue5-main branch]
2022-09-28 17:59:29 -04:00
Brandon Schaefer
3e98eb1e5e Prevent trying to remove output device while in a signal handling from this callback which is no longer logging during a crash anymore
#jira UE-149024
#rb Devin.Doucette
#preflight none

[CL 22144985 by Brandon Schaefer in ue5-main branch]
2022-09-22 17:08:12 -04:00
Wojciech Krywult
036b741e80 Editor: DeviceOutputLog: Ensured the right destrubtion order between ITargetDeviceOutput and its owning SDeviceOutputLog.
Previously, ITargetDeviceOutput was automatically destroyed as part of destruction of SDeviceOutputLog. It means that if ITargetDeviceOutput tried to deference the owner during its own destruction it could potentially dereference members that have already been destroyed.

Resolved by manually clearing CurrentDeviceOutputPtr which triggers destruction of ITargetDeviceOutput a bit sooner when all the owners members are still valid.

#preflight 6329d973a236a029ded37af3
#rb David.Harvey
#rnx

[CL 22115300 by Wojciech Krywult in ue5-main branch]
2022-09-21 12:26:23 -04:00
bryan sefcik
010300bcc6 Possible compile fix for OutputLog found on the release line.
#jira
#preflight 631e854acb1bdb7ecb5ac3c6

[CL 21960633 by bryan sefcik in ue5-main branch]
2022-09-11 23:22:42 -04:00
bryan sefcik
a3dddc6630 Pass 1 on Developer include fixes:
Removed redundant private include paths from build.cs files.
Fixed include paths to be relative to the private or public folders.
Hid or removed includes that reached into other private module folders.
Updated PublicInclude paths when necessary.

#jira
#preflight 631e281694758d0bf2ea1399

[CL 21960082 by bryan sefcik in ue5-main branch]
2022-09-11 18:32:18 -04:00
karen jirak
300a63e8c4 Altering SOutputLog.cpp to fix compilation issues
#jira UE-161677, UE-161693
#rb Aditya.Ravichandran
#preflight 6304f8885366f61a426d2a7b

[CL 21513298 by karen jirak in ue5-main branch]
2022-08-23 13:36:31 -04:00
karen jirak
556048b32e Added new methods to SOutputLog.h and SOutputLog.cpp to create a new timestamp menu item in the output log settings menu.
#jira UE-160689
#preflight 6303f71c03520e063ca06c88

[CL 21495056 by karen jirak in ue5-main branch]
2022-08-22 17:49:55 -04:00
UnrealBot
73409369c0 Branch snapshot for CL 21319338
[CL 21319338 in ue5-main branch]
2022-08-10 16:03:37 +00:00
lina lam
82ae71bfdd [Backout] - CL20985288
#fyi aurel.cordonnier
#rb marc.audy
Original CL Desc
-----------------------------------------------------------------
[Backout] - CL20972352
#fyi lina.lam
Original CL Desc
-----------------------------------------------------------------
Added a new function FocusOutputLog that determines whether to open an output log tab or output log drawer. Fixed focus issue that made drawers close immediately when focus change is window activated.

#jira UE-130893 - Selecting "Show Output Log" in packaging toasts opens a standalone Output Log instead of the Output Log drawer on the Status Bar
#preflight 62c5e139b47aed4cf11621fc
#rb editor-ux

[CL 21041671 by lina lam in ue5-main branch]
2022-07-11 12:04:12 -04:00
aurel cordonnier
173a055b00 [Backout] - CL20972352
#fyi lina.lam
Original CL Desc
-----------------------------------------------------------------
Added a new function FocusOutputLog that determines whether to open an output log tab or output log drawer. Fixed focus issue that made drawers close immediately when focus change is window activated.

#jira UE-130893 - Selecting "Show Output Log" in packaging toasts opens a standalone Output Log instead of the Output Log drawer on the Status Bar
#preflight 62c5e139b47aed4cf11621fc
#rb editor-ux

[CL 20985288 by aurel cordonnier in ue5-main branch]
2022-07-07 12:14:43 -04:00
lina lam
3b9415d9db Added a new function FocusOutputLog that determines whether to open an output log tab or output log drawer. Fixed focus issue that made drawers close immediately when focus change is window activated.
#jira UE-130893 - Selecting "Show Output Log" in packaging toasts opens a standalone Output Log instead of the Output Log drawer on the Status Bar
#preflight 62c5e139b47aed4cf11621fc
#rb editor-ux

[CL 20972352 by lina lam in ue5-main branch]
2022-07-06 16:02:58 -04:00
matt hoffman
3757ca3b91 Editor: Ctrl + Console Key ( by default) now iterates through active Console Command Executors, so you can switch between Cmd and Python by hitting Ctrl + .
#jira None
#rb Yafes.Sahin, Rob.Millar
#preflight 62a0fabe232daff7b301295f

[CL 20563100 by matt hoffman in ue5-main branch]
2022-06-08 16:13:16 -04:00
matt hoffman
486432df9a [Backout] - CL20492521
#fyi Matt.Hoffman
Original CL Desc
-----------------------------------------------------------------
Editor: Ctrl + Console Key (` by default) now iterates through active Console Command Executors, so you can switch between Cmd and Python by hitting Ctrl + `.

#jira None
#rb Yafes.Sahin, Rob.Millar
#preflight 629a542d5818a74ce53fd524

[CL 20497486 by matt hoffman in ue5-main branch]
2022-06-03 20:03:28 -04:00
Matt Hoffman
fc255ec0e7 Editor: Ctrl + Console Key ( by default) now iterates through active Console Command Executors, so you can switch between Cmd and Python by hitting Ctrl + .
#jira None
#rb Yafes.Sahin, Rob.Millar
#preflight 629a542d5818a74ce53fd524

[CL 20492521 by Matt Hoffman in ue5-main branch]
2022-06-03 16:45:45 -04:00
Marc Audy
08d6ba782d Fix compile errors when WITH_EDITOR is 0
#codereview Lauren.Barnes
#preflight
#rnx

[CL 20376109 by Marc Audy in ue5-main branch]
2022-05-26 00:48:06 -04:00
lauren barnes
53488dc718 Updating CrashReportClient style to only use images from certain folders, and moving developer tool style setup to individual style classes.
#jira UE-152623
#rb Josh.Adams, Patrick.Boutot, Patrick.Laflamme, Louise.Rasmussen
#preflight 628d6c5faf7a2e956b8de990

#ROBOMERGE-OWNER: lauren.barnes
#ROBOMERGE-AUTHOR: lauren.barnes
#ROBOMERGE-SOURCE: CL 20366551 via CL 20368551 via CL 20369147 via CL 20369164
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20370889 by lauren barnes in ue5-main branch]
2022-05-25 16:27:45 -04:00
Lauren Barnes
6248f8d412 Replacing legacy EditorStyle calls with AppStyle
#preflight 6272a74d2f6d177be3c6fdda
#rb Matt.Kuhlenschmidt

#ROBOMERGE-OWNER: Lauren.Barnes
#ROBOMERGE-AUTHOR: lauren.barnes
#ROBOMERGE-SOURCE: CL 20057269 via CL 20070159 via CL 20072035 via CL 20072203
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)
#ROBOMERGE-CONFLICT from-shelf

[CL 20105363 by Lauren Barnes in ue5-main branch]
2022-05-09 13:12:28 -04:00
aditya ravichandran
3fba7c938e StarshipStyle: Rename "EditorViewport.SubMenu.Layouts" to "Icons.Layout" and move it to StarshipCoreStyle
#rn deprecation editor
#jira UE-147073
#rb louise.rasmussen
#preflight 623e14b96d39f6b5a05b87fe

[CL 19517936 by aditya ravichandran in ue5-main branch]
2022-03-25 15:45:41 -04:00
Dominik Peacock
75e237c25c Fix log categories filtering not working
#jira UE-147192
#rb Lauren.Barnes
#preflight 623dd663a67e4e1ab7031588

[CL 19512940 by Dominik Peacock in ue5-main branch]
2022-03-25 10:59:27 -04:00
jason stasik
3577db85eb Allow external code to change Output Log's filter
#rb scott.nelson
#preflight 62214987aa27915dd670ade3

#ROBOMERGE-OWNER: jason.stasik
#ROBOMERGE-AUTHOR: jason.stasik
#ROBOMERGE-SOURCE: CL 19292235 via CL 19338893 via CL 19343836 via CL 19350027 via CL 19350028
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19351672 by jason stasik in ue5-main branch]
2022-03-11 03:54:40 -05:00
Dominik Peacock
de8e4de047 Add more flexible MakeOutputLogWidget function to OutputLog module
#jira none
#rb Lauren.Barnes
#preflight 6202908056614ff35c3a650d

[CL 18922543 by Dominik Peacock in ue5-main branch]
2022-02-09 14:21:46 -05:00
sebastian nordgren
b89a39b7f2 Fixed crash when SDockingTab::GetTabManager() dereferenced an invalid weak pointer. GetTabManager has been deprecated in favor of GetTabManagerPtr which returns a TSharedPtr.
#jira UE-140354
#preflight 61fbda35176256ec4f6ffa17
#rnx
#lockdown jeanmichel.dignard
#rb patrick.boutot

#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 18861915 in //UE5/Release-5.0/... via CL 18862125 via CL 18862236
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18862253 by sebastian nordgren in ue5-main branch]
2022-02-04 08:33:30 -05:00
aurel cordonnier
a12d56ff31 Merge from Release-Engine-Staging @ 17791557 to Release-Engine-Test
This represents UE4/Main @17774255, Release-5.0 @17791557 and Dev-PerfTest @17789485

[CL 17794212 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-12 21:21:22 -04:00
michael noland
2b8274a9a0 Tools: Output log category improvements
- You can now choose to color-code entire log lines by category, or just the category itself (CategoryColorizationMode in editor appearance settings)
- You can also choose to highlight all messages for a particular category by right-clicking on a line
- Also includes plumbing to expose GetCursorLocation up to SMultiLineEditableTextBox
- Known issues: If you edit editor appearance preferences after scrolling (but not clicking) in the output log, the view in the output log will be snapped to the last clicked cursor location
#jira UE-119864
#rb jamie.dale

#ROBOMERGE-SOURCE: CL 16941163 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v838-16927207)

[CL 16941172 by michael noland in ue5-release-engine-test branch]
2021-07-23 15:57:30 -04:00