Thin brush panel, preview, and node utility shells

This commit is contained in:
2026-06-16 23:57:39 +02:00
parent cb9751dcc7
commit acee4db356
14 changed files with 402 additions and 302 deletions

View File

@@ -81,14 +81,14 @@ Current hotspot files:
- `src/canvas.cpp`: 17 lines
- `src/app_layout.cpp`: 125 lines
- `src/canvas_modes.cpp`: 176 lines
- `src/node.cpp`: 222 lines
- `src/main.cpp`: 130 lines
- `src/node_panel_brush.cpp`: 182 lines
- `src/node_stroke_preview.cpp`: 192 lines
- `src/node_canvas.cpp`: 69 lines
- `src/app.cpp`: 105 lines
- `src/app_dialogs.cpp`: 106 lines
- `src/canvas_modes.cpp`: 191 lines
- `src/node.cpp`: 257 lines
- `src/main.cpp`: 156 lines
- `src/node_panel_brush.cpp`: 2 lines
- `src/node_stroke_preview.cpp`: 160 lines
- `src/node_canvas.cpp`: 85 lines
- `src/app.cpp`: 125 lines
- `src/app_dialogs.cpp`: 127 lines
Latest slice:
@@ -115,6 +115,22 @@ Latest slice:
`SetMinSize(...)`, `SetMaxSize(...)`, and `SetPosition(const glm::vec2)` now
lives in `src/legacy_ui_node_style.*` instead of staying inline in
`src/node.cpp`.
- `Node::app_redraw()` and `Node::watch(...)` now live in
`src/legacy_ui_node_execution.cpp` instead of staying inline in `src/node.cpp`.
- `NodeStrokePreview::draw_stroke_immediate()` now routes through
`execute_legacy_node_stroke_preview_immediate_draw(...)` in
`src/legacy_node_stroke_preview_runtime_services.*`, which moves render-target
validation, viewport/clear-color save-restore, and immediate-runtime request
assembly out of the live node file.
- The remaining `NodePanelBrush` and `NodePanelBrushPreset` member bodies now
live in the existing retained helper layers
(`src/legacy_brush_panel_item_ui.*`,
`src/legacy_brush_panel_ui.*`,
`src/legacy_brush_panel_services.*`,
`src/legacy_brush_preset_panel_ui.*`,
`src/legacy_brush_preset_list_services.*`, and
`src/legacy_brush_preset_services.*`), leaving
`src/node_panel_brush.cpp` as a thin translation unit.
Current architecture mismatches that must be treated as real blockers: