Added WM api to handle PanelType parent/child relationships #104464

Closed
Pratyaksh Raj wants to merge 1 commits from Pratyaksh-Raj/blender:my-feature1 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
First-time contributor

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.

Ref. #104303

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. Ref. #104303
Pratyaksh Raj added 1 commit 2023-02-08 13:31:57 +01:00
Pratyaksh Raj requested review from Bastien Montagne 2023-02-08 13:33:49 +01:00

@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. :)

@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. :)
Bastien Montagne closed this pull request 2023-02-08 16:14:02 +01:00
Author
First-time contributor

Ok Sir, Next time I will be careful also and am again try to work on it

Ok Sir, Next time I will be careful also and am again try to work on it
Pratyaksh Raj changed title from Added WM api to handle Paneype parent/child relationships to Added WM api to handle PanelType parent/child relationships 2023-02-13 10:57:25 +01:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#104464
No description provided.