From 5199c47c2dd606741e91c5b1d1f2f471da99062b Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Thu, 19 Feb 2026 09:30:12 +0100 Subject: [PATCH] BIM: _Panel uses generic options task box on edit --- src/Mod/BIM/ArchPanel.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/Mod/BIM/ArchPanel.py b/src/Mod/BIM/ArchPanel.py index 665c79da8e..aaccf0cf89 100644 --- a/src/Mod/BIM/ArchPanel.py +++ b/src/Mod/BIM/ArchPanel.py @@ -568,6 +568,23 @@ class _Panel(ArchComponent.Component): obj.Placement = pl +class PanelTaskPanel(ArchComponent.ComponentOptionsTaskPanel): + """A task panel for Curtain Walls using the generic options task box""" + + def __init__(self, obj): + definitions = [ + {"prop": "Length", "label": translate("Arch", "Length")}, + {"prop": "Width", "label": translate("Arch", "Width")}, + {"prop": "Thickness", "label": translate("Arch", "Thickness")}, + {"prop": "Sheets", "label": translate("Arch", "Sheets")}, + {"prop": "WaveLength", "label": translate("Arch", "Wave Length")}, + {"prop": "WaveHeight", "label": translate("Arch", "Wave Height")}, + {"prop": "WaveBottom", "label": translate("Arch", "Wave Bottom")}, + {"prop": "WaveType", "label": translate("Arch", "Wave Type")}, + ] + super().__init__(obj, definitions) + + class _ViewProviderPanel(ArchComponent.ViewProviderComponent): "A View Provider for the Panel object" @@ -623,6 +640,12 @@ class _ViewProviderPanel(ArchComponent.ViewProviderComponent): obj.ViewObject.DiffuseColor = cols ArchComponent.ViewProviderComponent.updateData(self, obj, prop) + def setEdit(self, vobj, mode): + if mode != 0: + return None + FreeCADGui.Control.showDialog(PanelTaskPanel(vobj.Object)) + return True + class PanelCut(Draft.DraftObject): "A flat, 2D view of an Arch Panel"