Commit Graph

126 Commits

Author SHA1 Message Date
patrick boutot
aa96bf075e MVVM: Move GlobalCollection to GameInstance subsystem.
#preflight 63d94e8b31334253e597fec0

[CL 23938784 by patrick boutot in ue5-main branch]
2023-01-31 17:03:58 -05:00
patrick boutot
eeb3c16fca MVVM: Add a allowed ExecutionMode list.
Move GlobalCollection to GameInstance subsystem.
Rename category from MVVM to Viewmodel.
#preflight 63d5e0bcba4fadeef09bdfc2

[CL 23927160 by patrick boutot in ue5-main branch]
2023-01-31 10:21:03 -05:00
jordan hoffmann
31b04b24ba [Feature/Bugfix] Support for diffing against nullptr (treated as an empty or nonexistent file)
#rb dan.oconnor
#preflight 63d83f963656ea96dc2a0a4c

#jira UE-173747
"Crash occurs when scrolling down through files in Review Changelist window upon loading of asset"
  - certain widget blueprints were crashing the review tool because we were working around the inability to diff against nullptr by constructing temprorary empty objects. This approach circumvents that problem entirely

#jira UE-173231
"Changelist Review tool allows diffing against previous revision for Deletion changes"
  - while this jira suggests that the ability to diff deletion changes is a bug, it was actually an intended feature. The real bug was that it would crash or fail to work in many cases. This has been fixed by either asset diffing against nullptr or text diffing against an empty file (depending on circumstance)

#jira UE-174610
"Reviewing Changelist with Deletion Changes results in LogLinker warnings & LoadErrors"
 - deletion changes were trying to load the new revision of files but obviously it doesn't exist because it's a deletion. Fixed by only loading the previous revision


note: since the review tool is going to be "Production Ready"  in 5.2, these changes are neccesary for stability

[CL 23924072 by jordan hoffmann in ue5-main branch]
2023-01-31 01:28:46 -05:00
henrik karlsson
9a1d5b1ad4 [Engine/Plugins]
* Ran IWYU on ~170 plugins to remove includes not needed. Public api still keep old includes inside #if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2

#preflight 63d09351574ab9cae4670216
#rb none

[CL 23844750 by henrik karlsson in ue5-main branch]
2023-01-25 02:42:36 -05:00
patrick boutot
b54ff37589 MVVM: Use the class display name in the select viewmodel menu.
[REVIEW] sebastian.nordgren

[CL 23814940 by patrick boutot in ue5-main branch]
2023-01-23 12:20:36 -05:00
sebastian nordgren
eccc28e691 Fixed static analysis warning about null Pin in SMVVMFunctionParameter.cpp.
#rb trivial
#preflight 63ce752ed83c1837b1182cc0

[CL 23809665 by sebastian nordgren in ue5-main branch]
2023-01-23 07:08:46 -05:00
patrick boutot
8b0766ff17 MVVM: Fix bad access to raw pointer.
#rb sebastian.nordgren

[CL 23774542 by patrick boutot in ue5-main branch]
2023-01-19 11:26:11 -05:00
patrick boutot
7e65cc6c27 MVVM: New binding mode SVG icons for the View Model plugin.
- One Time / One Way
- One Time / One Way to Source
- One Time / Two Way
[REVIEW] sebastian.nordgren

[CL 23747997 by patrick boutot in ue5-main branch]
2023-01-17 18:39:34 -05:00
patrick boutot
9ae72c9a26 MVVM: Change the MVVM category for Viewmodel
[FYI] shirley.man

[CL 23747985 by patrick boutot in ue5-main branch]
2023-01-17 18:39:09 -05:00
sebastian nordgren
aecc8e2db4 MVVM: Toggling the Bind button on a function parameter now restores the previously selected field instead of clearing it.
Non-boolean function parameters now have a dark background. Booleans are displayed as checkboxes and don't scale to the minimum width, so adding the background for them looks bad.

Tested in Bindings view with a conversion function: bind to viewmodel property, toggle binding off, toggle binding back on again. Observe that the viewmodel property is still bound.

[REVIEW] [at]patrick.boutot
#preflight 63c1519d70575f890029a3a6

[CL 23741270 by sebastian nordgren in ue5-main branch]
2023-01-17 13:15:03 -05:00
sebastian nordgren
b727f21732 MVVM - Removed unused GetConversionFunctionWrapperName() function.
#rb trivial
#preflight 63c1504c0b358b97d14e8a17

[CL 23677927 by sebastian nordgren in ue5-main branch]
2023-01-13 10:50:29 -05:00
henrik karlsson
3c9aacb1ad [Engine/Plugins]
* Updated public headers for ~170 engine plugins using iwyu to remove includes not needed. Removed includes are still available behind UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2

#preflight 63c08f4a2a6acaf1622bcc73
#rb none

[CL 23674775 by henrik karlsson in ue5-main branch]
2023-01-13 01:54:01 -05:00
henrik karlsson
68e1306935 [Engine/Plugins]
* Removed more includes using iwyu and marked up includes that is removed because of bugs in iwyu.

#preflight 63bfc8696c4f5668eb3a3cbd
#rb none

[CL 23666746 by henrik karlsson in ue5-main branch]
2023-01-12 13:53:03 -05:00
henrik karlsson
2f78497e67 [Engine/Plugins]
* Updated private files with IWYU for all plugins which had 3 or less changes made in ue5 main since last integration to fn

#preflight 63bf8d8b577437afe607dc72
#rb none

[CL 23659643 by henrik karlsson in ue5-main branch]
2023-01-12 01:48:34 -05:00
sebastian nordgren
e5621ab993 MVVM - Added new borders to Bindings view as per design.
[REVIEW] patrick.boutot
#rnx

[CL 23651687 by sebastian nordgren in ue5-main branch]
2023-01-11 14:45:52 -05:00
sebastian nordgren
ed36865aad The Bind menu is now shown even for properties that MVVM can bind to, but legacy UMG cannot.
#jira UE-170979
[REVIEW] [at]patrick.boutot
#preflight 639886642540a78d2718f3f2

[CL 23499939 by sebastian nordgren in ue5-main branch]
2022-12-13 18:20:54 -05:00
patrick boutot
d26ab4f46c MVVM: Make static function in MVVMSubsystem for faster access.
#rb sebastian.nordgren
#preflight 63973a35c709c727562393af

[CL 23499920 by patrick boutot in ue5-main branch]
2022-12-13 18:20:11 -05:00
patrick boutot
e9c392e679 MVVM: Add the viewmodal used by the UserWidget in the metadata
#jira UE-170872
#rb sebastian.nordgren
#preflight 638f71097e0feab0b7555610

[CL 23445713 by patrick boutot in ue5-main branch]
2022-12-08 09:06:03 -05:00
patrick boutot
a85ebb6aea MVVM: Add the BindingType icon in front of the binding for the MVVM view.
#rb sebastian.nordgren
#preflight 6389090f976b1644cb146b26

[CL 23389842 by patrick boutot in ue5-main branch]
2022-12-05 09:16:59 -05:00
patrick boutot
1ed29a4a8d MVVM: Selection fixes. Can now select the viewmodel self. Fix the reverse complexe function.
#rb sebastian.nordgren
#preflight 6380e372cc307d6fa5a387bb, 6380ea8833774509007f58f5

[CL 23267974 by patrick boutot in ue5-main branch]
2022-11-25 13:55:44 -05:00
sebastian nordgren
73c1172938 MVVM - Field selector clear now works for viewmodel properties.
It was erroneously not clearing if FixedSource wasn't set (ie. a widget field), but the intent was to clear only the path when editing a widget property, and the entire path when editing anything else.

[REVIEW] [at]patrick.boutot
#rnx
#preflight 637df1bdfa348e8480298a71

[CL 23247747 by sebastian nordgren in ue5-main branch]
2022-11-23 07:07:49 -05:00
patrick boutot
707d2e3eb5 MVVM: Fix the binding picker to select property when we are in read mode.
#jira UE-145739
#rb sebastian.nordgren
#preflight 6374f6ee324842530577f387

[CL 23174676 by patrick boutot in ue5-main branch]
2022-11-17 08:20:42 -05:00
patrick boutot
5fb63a6d59 MVVM: Execute Library Binding
#jira UE-132682
#rb sebastian.nordgren

[CL 23069825 by patrick boutot in ue5-main branch]
2022-11-09 21:03:55 -05:00
sebastian nordgren
44ecbee918 MVVM - Added missing transactions.
#rb none
#preflight 63691c11843e6ac7945129a4

[CL 23012684 by sebastian nordgren in ue5-main branch]
2022-11-07 12:09:57 -05:00
sebastian nordgren
9049daead1 MVVM: Field selector now show a tooltip of the full path, and functions show the function signature.
It is possible to show only the last field in a path when space is limited.

[REVIEW] [at]patrick.boutot
#rnx
#preflight 63611c20731604696a0f4e3a

[CL 22919758 by sebastian nordgren in ue5-main branch]
2022-11-02 12:50:43 -04:00