Thin brush panel, preview, and node utility shells
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -385,6 +385,12 @@ Current slice:
|
||||
`src/legacy_node_stroke_preview_sample_services.*` instead of staying inline
|
||||
in `src/node_stroke_preview.cpp`, which trims another coherent preview
|
||||
execution pocket while preserving the live draw path.
|
||||
- `NodeStrokePreview::draw_stroke_immediate()` now also 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 and leaves
|
||||
`src/node_stroke_preview.cpp` at 160 lines.
|
||||
- `NodeCanvas::init()` plus the remaining `NodeCanvas::draw()` outer shell now
|
||||
also live in `src/legacy_node_canvas_draw_services.*` instead of staying
|
||||
inline in `src/node_canvas.cpp`, which materially reduces the live node to a
|
||||
@@ -394,10 +400,22 @@ Current slice:
|
||||
now also lives in `src/legacy_ui_node_style.*` instead of staying inline in
|
||||
`src/node.cpp`, which trims another coherent base scene-graph shell pocket
|
||||
without changing the public surface.
|
||||
- `Node::app_redraw()` and `Node::watch(...)` now also live in
|
||||
`src/legacy_ui_node_execution.cpp` instead of staying inline in `src/node.cpp`,
|
||||
which trims another small generic node utility pocket from the live file.
|
||||
- `NodePanelBrushPreset` global panel registration now also lives in
|
||||
`src/legacy_brush_preset_list_services.*` instead of staying on the live
|
||||
node type as a static registry field, which trims another retained
|
||||
controller-state pocket from `src/node_panel_brush.cpp`.
|
||||
- The remaining `NodePanelBrush` and `NodePanelBrushPreset` member bodies now
|
||||
also 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.*`), which leaves
|
||||
`src/node_panel_brush.cpp` as a 2-line translation unit.
|
||||
|
||||
Write scope:
|
||||
- `src/node_stroke_preview.cpp`
|
||||
|
||||
Reference in New Issue
Block a user