Commit Graph

156 Commits

Author SHA1 Message Date
patrick boutot
c7f13014dc Fix issue 361586 with ModelViewViewModelBlueprint.cpp introduced with CL 27701383
[CL 27702146 by patrick boutot in ue5-main branch]
2023-09-07 22:51:03 -04:00
patrick boutot
a0960c2081 MVVM: Update the InstanceViewModel to be more generic. Force a compilation when the widget loads, in case something changed in the cpp. Only rebuild the class when needed. Change the default name of the generated viewmodel.
#rb editor-ui-systems

[CL 27701308 by patrick boutot in ue5-main branch]
2023-09-07 22:17:40 -04:00
patrick boutot
5cb485e853 MVVM: Clean up the code after CL 27409229 code review
#rb zahra.nikbakht

[CL 27460042 by patrick boutot in ue5-main branch]
2023-08-29 15:17:52 -04:00
patrick boutot
579e1254c5 MVVM: Remove cached functions that was affecting GC cluster.
#rb editor-ui-systems

[CL 27452576 by patrick boutot in ue5-main branch]
2023-08-29 12:44:06 -04:00
jc authier
180e8af8a4 MVVM:
- Remove FPropertyEditorPermissionList call that was massively slowing down launching Frontend in PIE

[REVIEW] [at]patrick.boutot

[CL 27421227 by jc authier in ue5-main branch]
2023-08-28 15:35:11 -04:00
patrick boutot
c30be13533 MVVM: Fix bad compilation unit on linux.
[CL 27409541 by patrick boutot in ue5-main branch]
2023-08-28 09:24:07 -04:00
patrick boutot
7055c5a8d6 MVVM: Add instanced viewmodel. A way to create your viewmodel inside the view. The viewmodel is private and can only be used by the view. The feature is enabled by a setting. Change how the customization for the viewmodel context hide properties. Add a new submenu for the viewmodel panel.
#rb editor-ui-systems

[CL 27409246 by patrick boutot in ue5-main branch]
2023-08-28 08:59:49 -04:00
patrick boutot
30997ca639 MVVM: Reuse the same library when generating the view class. It helps the cook make smaller diff packages when the cook is deterministic.
[REVIEW] editor-ui-systems

[CL 27359733 by patrick boutot in ue5-main branch]
2023-08-24 17:34:17 -04:00
patrick boutot
1ffbe228b6 Add setting to disable Binding Event
#jira UE-166284
#rb editor-ui-systems

[CL 27302901 by patrick boutot in ue5-main branch]
2023-08-23 08:39:32 -04:00
patrick boutot
b26e2d88d4 MVVM: Backend for binding event. Didn't use the ComponentDelegateBinding because of initialization order is different. Create a new entry in the ViewClass and reuse the binding library to find the delegate property. At editor time, a BP function is gnerated, similar to Complex Conversion function. When the event is broadcast at runtim, the BP function is executed.
The generated function can assign a property value on a viewmodel, a widget or any property of the UserWidget.
#jira UE-166284
#rb editor-ui-systems

[CL 27236611 by patrick boutot in ue5-main branch]
2023-08-21 08:46:45 -04:00
patrick boutot
35862acde5 MVVM: If we are not allowed to add the view, remove all the generated functions added by the view.
#rb none
#jira UE-130879

[CL 26883465 by patrick boutot in ue5-main branch]
2023-08-07 11:10:21 -04:00
patrick boutot
42657bf51b MVVM: Fix conversion function allow test when the graph is a wrapper.
[CL 26870847 by patrick boutot in ue5-main branch]
2023-08-05 11:50:12 -04:00
patrick boutot
ffcc9c9fce MVVM: Add setting to show the View settings.
[CL 26870803 by patrick boutot in ue5-main branch]
2023-08-05 11:47:54 -04:00
patrick boutot
a39450ea32 MVVM: Add flag on viewmodel context to allow edit, remove and rename in the editor.
#rb editor-ui-systems

[CL 26853896 by patrick boutot in ue5-main branch]
2023-08-04 14:01:32 -04:00
patrick boutot
d679e0536e MVVM: Undo modification made to make property blueprintreadonly. Introduced with CL 26845876
#rb trivial

[CL 26848773 by patrick boutot in ue5-main branch]
2023-08-04 11:43:08 -04:00
patrick boutot
b5cd4278b5 MVVM: Fix conversion function with multiples input paths.
Bindings will only be executed once at initialization. The bug happend when more than once source can activate the same binding.
Binding can now be OneWay if at least one argument is a FieldNotify. Otherwise it needs to be a OneTime.
Binding that has hardcoded value, no paths, are now supported.
#rb vincent.gauthier

[CL 26846320 by patrick boutot in ue5-main branch]
2023-08-04 10:49:38 -04:00
patrick boutot
54edf80986 MVVM: Fix bad order in ToString introduced with CL26629088
#rb trivial

[CL 26807157 by patrick boutot in ue5-main branch]
2023-08-03 08:37:59 -04:00
patrick boutot
6113ca1d6b MVVM: Rework how nodes are read and created for complex conversion function.
#rb editor-ui-systems

[CL 26773890 by patrick boutot in ue5-main branch]
2023-08-02 11:15:36 -04:00
patrick boutot
d955ead9f4 MVVM: Fix bad format syntax.
#rnx
#rb trivial

[CL 26769442 by patrick boutot in ue5-main branch]
2023-08-02 09:11:30 -04:00
patrick boutot
c1b001cd61 MVVM: Add UX for view's settings. Seperate bindings initialization and sources initialization. Use can now select if it wants the bindings and the sources to be initialized.
#rb editor-ui-systems

[CL 26715851 by patrick boutot in ue5-main branch]
2023-07-31 14:43:55 -04:00
patrick boutot
4caca31df5 MVVM: Fix bad refactor code introduced with CL 26614337
#jira UE-191378
#rb none

[CL 26652353 by patrick boutot in ue5-main branch]
2023-07-27 16:00:59 -04:00
patrick boutot
f053a1822f Temporary fix for UE-191378. Log an error instead of crashing until we figure out what is going on.
#rnx
#jira UE-191378

[CL 26651228 by patrick boutot in ue5-main branch]
2023-07-27 15:38:11 -04:00
patrick boutot
e86df75535 MVVM: When a conversion function is virtual, reevaluate at runtime the function.
#jira UE-189301
#rb vincent.gauthier

[CL 26629172 by patrick boutot in ue5-main branch]
2023-07-26 20:20:26 -04:00
patrick boutot
4cc085e73a Fix 338325 build issue.
[CL 26629005 by patrick boutot in ue5-main branch]
2023-07-26 20:16:56 -04:00
patrick boutot
b8b7b1e074 MVVM: Add option to generate conversion graph when compiling and not saved in the packages.
Useful when graph cannot be saved.
#jira UE-130879

[CL 26614927 by patrick boutot in ue5-main branch]
2023-07-26 14:04:59 -04:00