Universite-Gustave-Eiffel / I-Simpa

An Open Source software for 3D sound propagation modelling
https://i-simpa.univ-gustave-eiffel.fr/
GNU General Public License v3.0
234 stars 57 forks source link

Desactivate Contextual menu on Directivity file #129

Closed Picaut closed 3 years ago

Picaut commented 7 years ago

Desactivate "Set the same value" on this element image

nicolas-f commented 7 years ago

Currently an element does not control the grid menu of its properties.

I don't understand in which circumstance this menu have to be disabled.

However I could disable "Set the same value" menu item depending on grid cell editor (Float, Int, String, List, File, Color)

Picaut commented 7 years ago

Yes, this option should only be available for grids with the same kind of elements (i.e. values or strings or check boxes...). This issue finally concerns all grid elements in I-Simpa.

In addition, for the directivity. You can copy/paste a directivity as an XML in a text file, but you can not copy/paste a directivity in a User Directivity folder. In this last case, the "Paste" option should not be available.

Picaut commented 5 years ago

@nicolas-f Not fully resolved. The menu "Ste the same value">"To the row" is still enabled

image

nicolas-f commented 5 years ago

The fix will disable the option when one of other cell is not of the same type. All the columns of the selected cell have the same attribute type (file path), so this option is still enabled (because there is only 1 column in this property)