Commit Graph

31 Commits

Author SHA1 Message Date
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
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
patrick boutot
2a9085be0f Fix bad index uses introduced with CL23494894. Rename CompilerSourceContexts to CompilerUserWidgetPropertyContexts to help prevent futur issues.
#rb yohann.dossantos
#preflight 63b4d00d202bee5e27bd8563

[CL 23580206 by patrick boutot in ue5-main branch]
2023-01-04 15:47:23 -05:00
patrick boutot
f7e52e6daf MVVM: Rework GetBindingInfoFromFieldPath to support self.
#rb sebatian.nordren
#preflight 63989711776b61ba3b30d2d7

[CL 23500069 by patrick boutot in ue5-main branch]
2022-12-13 18:24:52 -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
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
8e4f5e6887 MVVM - Widgets without an explicit display name override are now displayed properly in the compile error log.
#rb trivial
#rnx
#preflight 63691c14d0174259ccd68041

[CL 23012905 by sebastian nordgren in ue5-main branch]
2022-11-07 12:24:30 -05:00
Patrick Boutot
cab5cb46a5 MVVM: Set the category on the generated widget property with the cagetory sent by the user.
#preflight 6346fd96663dafe4163a2b44

[CL 22482825 by Patrick Boutot in ue5-main branch]
2022-10-12 14:35:36 -04:00
sebastian nordgren
3fdafe9997 MVVM - Replaced all user-facing FStrings with FText. This includes all compiler error messages.
Binding display names now take into account complex conversion functions.

Complex conversion functions now compile correctly.

#rb patrick.boutot
#rnx
#preflight 633ebda6d910a076839e3ddf
#preflight 633ec514a712a61df1354aec

[CL 22388782 by sebastian nordgren in ue5-main branch]
2022-10-06 20:08:12 -04:00
sebastian nordgren
1fb1577293 MVVM - Bindings now have a GUID for identification purposes instead of using the index.
Display name is now more readable when conversion functions are involved.

Moved some conversion function code from MVVMEditorSubsystem to ConversionFunctionHelper so that it can be reused in the compiler.

#rb patrick.boutot
#rnx
#preflight 633d7020164ef40c2e3f308d

[CL 22362227 by sebastian nordgren in ue5-main branch]
2022-10-05 16:05:24 -04:00
Patrick Boutot
deb4338cda MVVM: Compile complex conversion functon and execute them as a regular binding.
#rb sebastian.nordgren
#prefligh 63062f5c5366f61a42bced80

[CL 21544671 by Patrick Boutot in ue5-main branch]
2022-08-24 13:14:51 -04:00
Patrick Boutot
65f39ee67f MVVM: Renamed variables for View Compiler. The indexes was confusing.
#preflight 62d991f03122bf80ae091b83

[CL 21204992 by Patrick Boutot in ue5-main branch]
2022-07-21 14:19:45 -04:00
Patrick Boutot
fc4418c410 MVVM: Fix view compiler that uses the same conversion function for forward and backward binding.
#review-21201833 sebastian.nordgren
#preflight 62d977223122bf80ae015b99

[CL 21202499 by Patrick Boutot in ue5-main branch]
2022-07-21 12:13:57 -04:00
Patrick Boutot
2d4bd9b8ce MVVM: Add "Optional" on viewmodel context to prevent logging warning when the viewmodel is not set and that it's optional.
#review-21184624 sebastian.nordgren
#preflight 62d813754b6d775f5fa770ca

[CL 21184623 by Patrick Boutot in ue5-main branch]
2022-07-20 13:37:40 -04:00
patrick boutot
d8956d00d0 MVVM: Work in progress for viewmodel in viewmodel
#rb sebatian.nordgren

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 21045209 via CL 21045498 via CL 21045763
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21075357 by patrick boutot in ue5-main branch]
2022-07-13 13:52:41 -04:00
patrick boutot
7a499cf935 MVVM: Use the viewmodel name instead of the class name. Create the menu to add a viewmodel. Use a UClass of any class at implement the NotifyFieldValue interface in BlueprintViewModelContext instead a ViewModelBase class.
#rb sebastien.nordgren
#preflight 62bc45213771c5710de91653

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 20874026 via CL 20881496 via CL 20881723
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995)

[CL 20885743 by patrick boutot in ue5-main branch]
2022-06-29 19:00:59 -04:00
sebastian nordgren
3a3f846e36 MVVM: Setting a conversion function with multiple arguments now generates a FunctionGraph in the widget blueprint that is used to call the function, which allows us to bind multiple properties to conversion functions.
Removed IFieldPathHelper. The functionality was moved to the editor subsystem, which made the abstraction unnecessary and unavailable to blueprint.

FBindingSource no longer contains the IsSelected member. This was very context-specific, and doesn't really make sense in the general case.

[REVIEW] [at]patrick.boutot
#jira UE-145128
#rnx
#preflight 62b9c947e77151e5996f3f36

#ROBOMERGE-OWNER: sebastian.nordgren
#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 20833893 via CL 20836430 via CL 20836446
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995)

[CL 20838757 by sebastian nordgren in ue5-main branch]
2022-06-27 16:24:02 -04:00
patrick boutot
ca3eb26f53 MVVM: Fix crash when a field is renamed after the path was created.
#rb sebastian.nordgren
#prefligh 62a0a61ae820a589df465387

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 20557185 via CL 20557206 via CL 20557218
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v954-20466795)

[CL 20559714 by patrick boutot in ue5-main branch]
2022-06-08 13:25:42 -04:00
patrick boutot
0051f8228b MVVM: Fix for range loop bind to temporary constructed type.
#rb none
#rnx none

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 20364466 via CL 20364472 via CL 20364475
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20366301 by patrick boutot in ue5-main branch]
2022-05-25 12:09:47 -04:00
patrick boutot
a22ebd3b60 MVVM: Generate full path for Object property. It now load properly and support downcast.
#rb sebastian.nordgren
#prefligh 628cd4005665463c2104be4b

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 20362934 via CL 20362942 via CL 20362944
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20366217 by patrick boutot in ue5-main branch]
2022-05-25 12:07:51 -04:00
sebastian nordgren
15e617f2aa MVVM: Removed FMVVMViewModelPropertyPath and FMVVMWidgetPropertyPath in favour of FMVVMBlueprintPropertyPath.
[REVIEW] [at]patrick.boutot
#jira UE-145128
#rnx
#preflight 6287737b1e478b95c703f783

#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 20293477 via CL 20293498 via CL 20293511
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20305090 by sebastian nordgren in ue5-main branch]
2022-05-20 18:54:05 -04:00
patrick boutot
38b2f19b88 MVVM: Blueprint Path can now support long path. A deprecation path exist. The compiler was modified to support long path. A ViewModelCreator is generated for Manual, this allow the setter to works in standalone.
#rb sebastian.nordgren

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 20259322 via CL 20259326 via CL 20259331
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20262972 by patrick boutot in ue5-main branch]
2022-05-18 12:54:12 -04:00
patrick boutot
99e021c9de MVVM: Add add EMVVMBlueprintViewModelContextCreationType::Manual. An option for how to create/select a view model.
Rename a graph temporary function when the compiler didn't requested a GC at the end of the compilation.
#rb sebastian.nordgren

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 20106550 via CL 20107643 via CL 20108182
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20110552 by patrick boutot in ue5-main branch]
2022-05-09 16:35:28 -04:00
patrick boutot
cfe2d6be17 MVVM: Convert function path to member reference. Use the proper function skel class when compiling the conversion function.
#rb vincent.gauthier
#prelfight 6273eb01de15651eeb3547de

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 20059860 via CL 20059875 via CL 20059885
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20062060 by patrick boutot in ue5-main branch]
2022-05-05 14:31:09 -04:00
sebastian nordgren
2301e39ae9 MVVM - Fixes to compiler error messages.
[REVIEW] [at]vincent.gauthier, [at]patrick.boutot
#jira UE-145736

#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 19937262 via CL 19937283 via CL 19937304
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19938019 by sebastian nordgren in ue5-main branch]
2022-04-27 08:52:49 -04:00