Added WM api to handle PanelType parent/child relationships #104464
I have implemented a PanelType structure that includes an idname, a label, a parent, and a children list. The parent and children relation is used to create a hierarchy of PanelTypes. The functions WM_paneltype_add and WM_paneltype_remove allow adding and removing PanelTypes to/from the hierarchy. When a PanelType is added, it is also inserted in the children list of its parent. When a PanelType is removed, it is also removed from the children list of its parent. The parent and children relationship can be used to organize PanelTypes in a tree-like structure.
@Pratyaksh-Raj thanks for the patch, but we already have a
PanelType. And if we ever wanted to add a new one, it would need way way more changes than the one proposed here.
Please study the codebase and the task itself a bit more closely to be sure you understand what the task is about, before working on its implementation. :)
Ok Sir, Next time I will be careful also and am again try to work on it
Pull request closed
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?