From 8a16e01e392b030e2241b752fbb92c329f4767d7 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 19 Feb 2023 02:55:16 +0100 Subject: [PATCH] [FEM] fix material dialog logic - when the option "use this task panel" is not checked the edit fields must be disabled. This also fixes the often hard to understand issue that while scrolling to the end of the dialog the material suddenly changes to "_transient" because the scroll wheel can trigger to change the edit fields. --- src/Mod/Fem/Gui/Resources/ui/Material.ui | 171 ++++++++++++++++++++++- 1 file changed, 170 insertions(+), 1 deletion(-) diff --git a/src/Mod/Fem/Gui/Resources/ui/Material.ui b/src/Mod/Fem/Gui/Resources/ui/Material.ui index 910d42bdf5..5c68d36e7f 100755 --- a/src/Mod/Fem/Gui/Resources/ui/Material.ui +++ b/src/Mod/Fem/Gui/Resources/ui/Material.ui @@ -158,6 +158,9 @@ + + false + 0 @@ -224,6 +227,9 @@ + + false + 0 @@ -268,6 +274,9 @@ + + false + 0 @@ -328,6 +337,9 @@ + + false + 0 @@ -394,6 +406,9 @@ + + false + 0 @@ -438,6 +453,9 @@ + + false + 0 @@ -482,6 +500,9 @@ + + false + 0 @@ -526,6 +547,9 @@ + + false + 0 @@ -589,5 +613,150 @@ - + + + chbu_allow_edit + toggled(bool) + input_fd_density + setEnabled(bool) + + + 272 + 162 + + + 250 + 364 + + + + + chbu_allow_edit + toggled(bool) + input_fd_young_modulus + setEnabled(bool) + + + 272 + 162 + + + 242 + 425 + + + + + chbu_allow_edit + toggled(bool) + spinBox_poisson_ratio + setEnabled(bool) + + + 272 + 162 + + + 242 + 451 + + + + + chbu_allow_edit + toggled(bool) + input_fd_kinematic_viscosity + setEnabled(bool) + + + 272 + 162 + + + 247 + 512 + + + + + chbu_allow_edit + toggled(bool) + input_fd_thermal_conductivity + setEnabled(bool) + + + 272 + 162 + + + 254 + 573 + + + + + chbu_allow_edit + toggled(bool) + input_fd_expansion_coefficient + setEnabled(bool) + + + 272 + 162 + + + 254 + 599 + + + + + chbu_allow_edit + toggled(bool) + input_fd_specific_heat + setEnabled(bool) + + + 272 + 162 + + + 254 + 625 + + + + + chbu_allow_edit + toggled(bool) + label_vol_expansion_coefficient + setEnabled(bool) + + + 272 + 162 + + + 67 + 651 + + + + + chbu_allow_edit + toggled(bool) + pushButton_editMat + setDisabled(bool) + + + 272 + 162 + + + 91 + 162 + + + +