Commit Graph

3 Commits

Author SHA1 Message Date
Jesse Qu 130225e9b8 Add collapsed group child count display
Show "(N)" in the value area when a property group is collapsed,
indicating how many properties are inside. Also restore original
expand/unexpand icon logic.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 12:14:20 +08:00
Jesse Qu 3d88a3615a Add property grouping support to PropertyEditor
Introduce IPropertyGroupProvider interface that lets QObjects declare
which group each property belongs to. PropertyEditor then renders
collapsible group headers in the tree view, with properties sorted
under their respective groups.

Key changes:
- New IPropertyGroupProvider interface (getPropertyGroup method)
- QDetailsViewRow_Group row type with bold group header rendering
- isGroup model role and delegate property for styled group rows
- TapHandler-based expand/collapse toggle in delegate template
- One-time C++ auto-expand for groups in setObject() to avoid
  re-expansion loop with delegate recreation
- Grouped property children added via LayoutBuilder::addGroup()
- GraphicsBusSectionItem demonstrates grouping with 5 categories

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 11:52:54 +08:00
Jesse Qu ab6960acb5 Initial commit: BayTemplate Grid Framework DesignTime tool
- Qt-based application for designing electrical power grid structures
- Features dockable UI with graphics canvas for placing grid elements
- Includes QtADS (Advanced Docking System v4.3.1) and PropertyEditor
- Supports Qt5/Qt6, multiple platforms (Windows, macOS, Linux, Android)
- Architecture: DesignerView/Scene, SelectorManager, Command Pattern for undo/redo
2026-03-25 17:15:51 +08:00