How twisted-builds-llc/twisted_builds_harness_designer works
Twisted Builds Harness Designer is a desktop application for designing wiring harnesses. Users edit electrical connections in a schematic, place and route them in a physical layout, then inspect calculated wire lengths, bundle details, and a live bill of materials; designs can be saved as local .tbh files and BOM data exported. The graph also shows editing, recovery, library, and print-related subsystems. The README documents the principal workflow; some implementation links are based on the source index, so unsampled integrations are left unverified.
Main entry points: MainWindow.cpp Main window · Document.cpp Open document · layout Layout editor · BomView.cpp BOM view and CSV
Components 18
Desktop application
- Application startup
src/app/main.cpp - Main window
src/app/ui/MainWindow.cpp - Preferences
src/app/Preferences.cpp
Harness design
- Harness model
src/core/model/HarnessModel.cpp - Schematic editor
src/app/schematic - Layout editor
src/app/layout - Edit operations
src/app/commands/EditOps.cpp - Selection state
src/app/SelectionModel.h - Parts library
src/app/LibraryStore.cpp
Calculations and outputs
- Wire routing
src/core/calc/WireLength.cpp - Bundle sizing
src/core/calc/Bundle.cpp - Bill of materials
src/core/bom/Bom.cpp - BOM view and CSV
src/app/bom/BomView.cpp - Print export
src/app/print/PdfExport.cpp
Files and recovery
- Open document
src/app/Document.cpp - Harness file format
src/core/io/TbhFile.cpp - Autosave recovery
src/app/Autosave.cpp
Other components
- Designer
Connections 23
- Designer → Application startup: starts
README.md - Application startup → Main window: opens
src/app/main.cpp - Designer → Main window: uses editors
README.md - Main window → Open document: owns
src/app/ui/MainWindow.cpp - Open document → Harness model: maintains
- Main window → Schematic editor: presents
README.md - Main window → Layout editor: presents
README.md - Schematic editor → Edit operations: edits through
README.md - Layout editor → Edit operations: edits through
src/app/layout/LayoutView.cpp - Edit operations → Harness model: updates
src/app/commands/EditOps.cpp - Main window → Selection state: tracks selection
src/app/ui/MainWindow.cpp - Main window → Parts library: loads library
src/app/ui/MainWindow.cpp - Layout editor → Wire routing: shows wire lengths
README.md - Wire routing → Bundle sizing: uses wire sizing
src/core/calc/WireLength.cpp - Main window → BOM view and CSV: shows live BOM
README.md - BOM view and CSV → Bill of materials: generates
src/app/bom/BomView.cpp - Bill of materials → Wire routing: uses lengths
src/core/bom/Bom.cpp - BOM view and CSV → Designer: exports CSV
README.md - Main window → Print export: exports build package
- Open document → Harness file format: reads and writes
README.md - Main window → Autosave recovery: recovers work
src/app/ui/MainWindow.cpp - Autosave recovery → Open document: writes recovery copy
- Main window → Preferences: configures