Commit Graph

217 Commits

Author SHA1 Message Date
patrick boutot
52e687f13f MVVM: Instead of saving the name of the root widget for self reference, use a different flag. When the Blueprint asset is renamed the root widget is also renamed and self reference do not work anymore. Redirect the previously saved reference.
IsEmpty is renamed to IsValid. It used to be that we wanted to know if there was a source and a path but now the IsEmpty is confusing.
Fix Widget rename for conversion function pins and event pins.
#jira UE-191812
[REVIEW] editor-ui-systems

[CL 28965810 by patrick boutot in ue5-main branch]
2023-10-20 10:45:57 -04:00
patrick boutot
f852893a58 MVVM: Allow a property or a function if it's from the blueprint we are currently compiling.
#jira UE-191812
#rb editor-ui-systems

[CL 28963236 by patrick boutot in ue5-main branch]
2023-10-20 09:15:33 -04:00
patrick boutot
6708c354bd MVVM: Event generated function are none const.
#jira UE-191812
#rb editor-ui-systems

[CL 28915262 by patrick boutot in ue5-main branch]
2023-10-19 08:48:47 -04:00
patrick boutot
e53c801770 MVVM: Only create properties when needed. Viewmodel properties should always be created (no inheritance). Widget should be created if they are not already. Support BindWidget.
Rename FCreateVariableContext::GetSkeletonGeneratedClass to GetGeneratedClass because it returns the current class it generates and not the skeletal. It will be the skeletal if it's generating the skeletal.
#jira UE-194135
#rb editor-ui-systems

[CL 28672606 by patrick boutot in ue5-main branch]
2023-10-11 13:52:26 -04:00
bob tellez
f1e730f370 [Backout] - CL28648528
[FYI] Patrick.Boutot
Original CL Desc
-----------------------------------------------------------------
MVVM: Only create properties when needed. Viewmodel properties should always be created (no inheritance). Widget should be created if they are not already. Support BindWidget.
Rename FCreateVariableContext::GetSkeletonGeneratedClass to GetGeneratedClass because it returns the current class it generates and not the skeletal. It will be the skeletal if it's generating the skeletal.
#jira UE-194135
#rb editor-ui-systems

[CL 28650523 by bob tellez in ue5-main branch]
2023-10-10 21:44:56 -04:00
patrick boutot
7de8a4e609 MVVM: Only create properties when needed. Viewmodel properties should always be created (no inheritance). Widget should be created if they are not already. Support BindWidget.
Rename FCreateVariableContext::GetSkeletonGeneratedClass to GetGeneratedClass because it returns the current class it generates and not the skeletal. It will be the skeletal if it's generating the skeletal.
#jira UE-194135
#rb editor-ui-systems

[CL 28648555 by patrick boutot in ue5-main branch]
2023-10-10 20:39:10 -04:00
daren cheng
6feb5780e6 Fix MVVM failing validation due to checking if object nodes were allowed within themselves
Add PropertyHasFiltering method to complete MVVM allowlist API.
Make LocalizableMessage API exposed so that it can be allowlisted.

#rb yohann.dossantos byron.cornejo
[FYI] [at]Patrick.boutot

[CL 28521880 by daren cheng in ue5-main branch]
2023-10-05 18:27:37 -04:00
asil karatas
295ec0a854 MVVM: Sort the view bindings and the view sources to make sure we have a reliable order of execution.
Initialize each bindings source one at the time. That allow a binding to set a variable that will then be read by another binding. That other binding can also change another source (by calling SetViewmodel internally). The bindings of the new source need to execute only if that source was already initialized. Delay bindings executed that way if they are complex.

[REVIEW] [at]daren.cheng [at]christian.savoie [at]jc.authier
#jira UE-194167

[CL 28323824 by asil karatas in ue5-main branch]
2023-09-28 14:01:37 -04:00
christian savoie
2a0659be78 [MVVM] Fix inverted hierarchy check
* Specialized some error messages for more clarity

[REVIEW] [at]editor-ui-systems
#tests Refactored some code so property is returning a derived class but binding is refering to data from base, abstract, class.
#rnx

[CL 28002641 by christian savoie in ue5-main branch]
2023-09-19 13:29:38 -04:00
byron cornejo
5cf5c7226c Removing blueprint Callable and Blueprint Event flag from OnRepFunction. Clears Class children while handling compilation finish.
[CL 27798402 by byron cornejo in ue5-main branch]
2023-09-12 13:22:15 -04:00
patrick boutot
9aa134b6c2 MVVM: Rework how we find the property for RepNotify function in InstancedViewModel
#rb editor-ui-systems

[CL 27710548 by patrick boutot in ue5-main branch]
2023-09-08 10:12:25 -04:00
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