Another interesting feature would be to have a context variable for the
current type of edit form
see QgsAttributeEditorContext.Mode

Le mar. 10 déc. 2019 à 13:39, Andreas Neumann <[email protected]> a
écrit :

> Hi,
>
> I agree, it would be a useful. Not only for forms, but also for symbology
> and labeling. One could switch symbology from something complex to simple
> during edition and then back to the complicated symbology. Or hide/change
> labels.
>
> We already have the "layer_property" expression. It could either be
> extended with edit_state, or it could be a separate expression.
>
> Good idea!
>
> Andreas
>
> On 2019-12-10 13:02, Pedro Venâncio wrote:
>
> Hi all,
>
> I was thinking that it would be very useful to have an expression to check
> if one layer, or at least, the current layer, is in edit mode.
>
> One use case I'm seeing is: imagine that you have a form tab or group
> container, and you want to hide that tab or container just when the layer
> is in editing mode. If this option was available, simply using the control
> visibility by expression with something like (with a behaviour similar to
> is_selected([feature=current feature][,layer=current layer])) :
>
> NOT( is_edition_active([layer=current layer]) )
>
>
>
> could hide the tab/container in edit mode, and show in "identify" mode.
>
> Could this expression be useful? If you think so, I will fill a feature
> request.
>
> Thank you very much!
>
> Best regards,
> Pedro
>
> _______________________________________________
> QGIS-Developer mailing list
> [email protected]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
> _______________________________________________
> QGIS-Developer mailing list
> [email protected]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to