Commit Graph

5 Commits

Author SHA1 Message Date
Pieter Hijma
065d43f71b Core: Fix adding VarSet props with existing prefix 2024-08-12 11:44:24 -04:00
Chris Hennes
58eae9df6b Merge pull request #15172 from Ondsel-Development/varset-property-types
Gui: Handle various property types better in VarSet dialog
2024-07-15 11:24:46 -05:00
Pieter Hijma
855d3e5325 Gui: Handle property types better in VarSet dialog
This makes a distinction between types that cannot be instantiated and
types without an editor (editing values can be done in the property
view).  It adapts to DlgAddProperty.* using the same mechanism to filter
properties.
2024-07-15 09:38:29 +02:00
Pieter Hijma
fc6120b8dd Gui: Prevent invalid editors in VarSet dialog
In the VarSet dialog, we can create an editor after the name and type
has been determined.  However, if the name is changed after an editor
has been created, the editor is invalid because the underlying property
has been removed.  In that case, the function onNameDetermined() should
clean up the invalid editor and this happens in most cases.
Unfortunately, it cannot handle the case in which a click happens on the
invalid editor itself.  This click should result in onNameDetermined() but
since the editor is already invalid, onNameDetermined() is triggered too
late.

The current commit solves this by listening for every change in the name
of the property and handle the editors accordingly.
2024-07-13 22:51:46 -05:00
Pieter Hijma
b5b4b0cba9 Core: Add a dialog to add properties to a VarSet 2024-05-21 09:59:49 +02:00