Add cable management: drawing, cores, numbering, cross-references and cable list

Cables are drawn line objects (toolbar button next to the auto
break/reconnect button, click-move-click, right click cancels), not
components. The type comes from a CSV catalog following the material
list pattern (designation, cores, core colours, editable through the
entry dialog with "Nouvelle entrée" / "Modifier l'entrée").

Each core is bound to the wire its colour label stands on, and the
cable reference is generated per core and written into the Conductor
entry via Conductor::setCableReference(label, cable uuid, slot). The
conductor entry is where it has to live because the terminal strip
plan (Klemmenplan) consumes it in the next step.

Numbering: "Cables" rule under Programmeinstellungen/Neues
Projekt/Nummerierung auto (mirrored in project properties), literal
"W" fallback without a rule, French gate dialog when no rule exists,
Nummerierung menu with the renumber dialog (preferred axis, per-folio
counter, rule and counter state written back, hand-typed names ask,
whole-project scope).

Also included: label block and under-line texts with per-text font and
alignment plus the material-list cell margins, free-core placement and
right-click removal, claim questions for wires of other cables,
multi-selection drag as one undo step, type change with confirmation,
cross-references for type "Cable" (%f-%l%c, own font, clickable links
in exported PDFs), report propagation of the cable definition,
Listes menu (table of contents, material list, terminal strip manager,
terminal generator plugin, cable list), cable list with freely
selectable columns (installation/localisation of cable, start and end,
Blatt start/end, length, used cores...), CSV export dialog with column
pick and preview in the Projekt menu, script API (addTable kind
"cable_list", exportCableList) and a unit test for the type catalog.
This commit is contained in:
Kellermorph
2026-10-08 15:56:00 +02:00
parent 1ca13ce62d
commit bf9b34398d
108 changed files with 18482 additions and 293 deletions
+8
View File
@@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g transform="translate(1,1)">
<path fill="none" stroke="currentColor" stroke-width="3" d="M3 7h16"/>
<path fill="none" stroke="currentColor" stroke-width="1.5" d="M15 1v20"/>
<path fill="none" stroke="currentColor" stroke-width="2" d="M12.5 12.5L17.5 2.5"/>
<path fill="currentColor" d="M2 13h7v1.5H2zM2 16.5h4v1.5H2z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 407 B

+8
View File
@@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g transform="translate(1,1)">
<path fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" d="M3 7h16"/>
<path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M15 1v20"/>
<path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" d="M12.5 12.5L17.5 2.5"/>
<path fill="currentColor" d="M2 13h7v1.5H2zM2 16.5h4v1.5H2z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 476 B

+36
View File
@@ -232,6 +232,21 @@
<file alias="themes/qet/24x24/arrow-right-double.svg">generated/traced-24/arrow-right-double.svg</file>
<file alias="themes/qet/24x24@2/arrow-right-double.svg">generated/traced-large-24/arrow-right-double.svg</file>
<file alias="themes/qet/scalable/arrow-right-double.svg">traced/large22/arrow-right-double.svg</file>
<file alias="themes/qet/16x16/cable.svg">traced/16/cable.svg</file>
<file alias="themes/qet/16x16@2/cable.svg">traced/large16/cable.svg</file>
<file alias="themes/qet/22x22/cable.svg">traced/22/cable.svg</file>
<file alias="themes/qet/22x22@2/cable.svg">traced/large22/cable.svg</file>
<file alias="themes/qet/32x32/cable.svg">traced/large16/cable.svg</file>
<file alias="themes/qet/32x32@2/cable.svg">traced/large16/cable.svg</file>
<file alias="themes/qet/48x48/cable.svg">generated/traced-large-24/cable.svg</file>
<file alias="themes/qet/48x48@2/cable.svg">generated/traced-large-24/cable.svg</file>
<file alias="themes/qet/64x64/cable.svg">traced/large16/cable.svg</file>
<file alias="themes/qet/64x64@2/cable.svg">traced/large16/cable.svg</file>
<file alias="themes/qet/128x128/cable.svg">traced/large16/cable.svg</file>
<file alias="themes/qet/128x128@2/cable.svg">traced/large16/cable.svg</file>
<file alias="themes/qet/24x24/cable.svg">generated/traced-24/cable.svg</file>
<file alias="themes/qet/24x24@2/cable.svg">generated/traced-large-24/cable.svg</file>
<file alias="themes/qet/scalable/cable.svg">traced/large22/cable.svg</file>
<file alias="themes/qet/16x16/circle.svg">breeze/16/draw-circle.svg</file>
<file alias="themes/qet/22x22/circle.svg">breeze/22/draw-circle.svg</file>
<file alias="themes/qet/scalable/circle.svg">generated/breeze-24/draw-circle.svg</file>
@@ -2432,6 +2447,12 @@
<file>themes/qet-dark/traced/large22/arrow-right-double.svg</file>
<file>themes/qet-dark/traced-large-24/arrow-right-double.svg</file>
<file>themes/qet-dark/traced-24/arrow-right-double.svg</file>
<file>themes/qet-dark/traced/16/cable.svg</file>
<file>themes/qet-dark/traced/large16/cable.svg</file>
<file>themes/qet-dark/traced/22/cable.svg</file>
<file>themes/qet-dark/traced/large22/cable.svg</file>
<file>themes/qet-dark/traced-large-24/cable.svg</file>
<file>themes/qet-dark/traced-24/cable.svg</file>
<file>themes/qet-dark/breeze/16/draw-circle.svg</file>
<file>themes/qet-dark/breeze/22/draw-circle.svg</file>
<file>themes/qet-dark/breeze-24/draw-circle.svg</file>
@@ -3133,6 +3154,21 @@
<file alias="themes/qet-dark/24x24/arrow-right-double.svg">themes/qet-dark/traced-24/arrow-right-double.svg</file>
<file alias="themes/qet-dark/24x24@2/arrow-right-double.svg">themes/qet-dark/traced-large-24/arrow-right-double.svg</file>
<file alias="themes/qet-dark/scalable/arrow-right-double.svg">themes/qet-dark/traced/large22/arrow-right-double.svg</file>
<file alias="themes/qet-dark/16x16/cable.svg">themes/qet-dark/traced/16/cable.svg</file>
<file alias="themes/qet-dark/16x16@2/cable.svg">themes/qet-dark/traced/large16/cable.svg</file>
<file alias="themes/qet-dark/22x22/cable.svg">themes/qet-dark/traced/22/cable.svg</file>
<file alias="themes/qet-dark/22x22@2/cable.svg">themes/qet-dark/traced/large22/cable.svg</file>
<file alias="themes/qet-dark/32x32/cable.svg">themes/qet-dark/traced/large16/cable.svg</file>
<file alias="themes/qet-dark/32x32@2/cable.svg">themes/qet-dark/traced/large16/cable.svg</file>
<file alias="themes/qet-dark/48x48/cable.svg">themes/qet-dark/traced-large-24/cable.svg</file>
<file alias="themes/qet-dark/48x48@2/cable.svg">themes/qet-dark/traced-large-24/cable.svg</file>
<file alias="themes/qet-dark/64x64/cable.svg">themes/qet-dark/traced/large16/cable.svg</file>
<file alias="themes/qet-dark/64x64@2/cable.svg">themes/qet-dark/traced/large16/cable.svg</file>
<file alias="themes/qet-dark/128x128/cable.svg">themes/qet-dark/traced/large16/cable.svg</file>
<file alias="themes/qet-dark/128x128@2/cable.svg">themes/qet-dark/traced/large16/cable.svg</file>
<file alias="themes/qet-dark/24x24/cable.svg">themes/qet-dark/traced-24/cable.svg</file>
<file alias="themes/qet-dark/24x24@2/cable.svg">themes/qet-dark/traced-large-24/cable.svg</file>
<file alias="themes/qet-dark/scalable/cable.svg">themes/qet-dark/traced/large22/cable.svg</file>
<file alias="themes/qet-dark/16x16/circle.svg">themes/qet-dark/breeze/16/draw-circle.svg</file>
<file alias="themes/qet-dark/22x22/circle.svg">themes/qet-dark/breeze/22/draw-circle.svg</file>
<file alias="themes/qet-dark/scalable/circle.svg">themes/qet-dark/breeze-24/draw-circle.svg</file>
+8
View File
@@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g transform="translate(1,1)">
<path fill="none" stroke="#dcdcdc" stroke-width="3" d="M3 7h16"/>
<path fill="none" stroke="#dcdcdc" stroke-width="1.5" d="M15 1v20"/>
<path fill="none" stroke="#dcdcdc" stroke-width="2" d="M12.5 12.5L17.5 2.5"/>
<path fill="#dcdcdc" d="M2 13h7v1.5H2zM2 16.5h4v1.5H2z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 387 B

@@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g transform="translate(1,1)">
<path fill="none" stroke="#dcdcdc" stroke-width="3" stroke-linecap="round" d="M3 7h16"/>
<path fill="none" stroke="#dcdcdc" stroke-width="1.5" stroke-linecap="round" d="M15 1v20"/>
<path fill="none" stroke="#dcdcdc" stroke-width="2" stroke-linecap="round" d="M12.5 12.5L17.5 2.5"/>
<path fill="#dcdcdc" d="M2 13h7v1.5H2zM2 16.5h4v1.5H2z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 456 B

+6
View File
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path fill="none" stroke="#dcdcdc" stroke-width="2" d="M2 5h12"/>
<path fill="none" stroke="#dcdcdc" stroke-width="1" d="M11 1v14"/>
<path fill="none" stroke="#dcdcdc" stroke-width="1.5" d="M9 9L13 1"/>
<path fill="#dcdcdc" d="M1 9h5v1H1zM1 11h3v1H1z"/>
</svg>

After

Width:  |  Height:  |  Size: 330 B

+6
View File
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<path fill="none" stroke="#dcdcdc" stroke-width="3" d="M3 7h16"/>
<path fill="none" stroke="#dcdcdc" stroke-width="1.5" d="M15 1v20"/>
<path fill="none" stroke="#dcdcdc" stroke-width="2" d="M12.5 12.5L17.5 2.5"/>
<path fill="#dcdcdc" d="M2 13h7v1.5H2zM2 16.5h4v1.5H2z"/>
</svg>

After

Width:  |  Height:  |  Size: 347 B

@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path fill="none" stroke="#dcdcdc" stroke-width="2" stroke-linecap="round" d="M2 5h12"/>
<path fill="none" stroke="#dcdcdc" stroke-width="1" stroke-linecap="round" d="M11 1v14"/>
<path fill="none" stroke="#dcdcdc" stroke-width="1.5" stroke-linecap="round" d="M9 9L13 1"/>
<path fill="#dcdcdc" d="M1 9h5v1H1zM1 11h3v1H1z"/>
</svg>

After

Width:  |  Height:  |  Size: 399 B

@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<path fill="none" stroke="#dcdcdc" stroke-width="3" stroke-linecap="round" d="M3 7h16"/>
<path fill="none" stroke="#dcdcdc" stroke-width="1.5" stroke-linecap="round" d="M15 1v20"/>
<path fill="none" stroke="#dcdcdc" stroke-width="2" stroke-linecap="round" d="M12.5 12.5L17.5 2.5"/>
<path fill="#dcdcdc" d="M2 13h7v1.5H2zM2 16.5h4v1.5H2z"/>
</svg>

After

Width:  |  Height:  |  Size: 416 B

+6
View File
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path fill="none" stroke="currentColor" stroke-width="2" d="M2 5h12"/>
<path fill="none" stroke="currentColor" stroke-width="1" d="M11 1v14"/>
<path fill="none" stroke="currentColor" stroke-width="1.5" d="M9 9L13 1"/>
<path fill="currentColor" d="M1 9h5v1H1zM1 11h3v1H1z"/>
</svg>

After

Width:  |  Height:  |  Size: 350 B

+6
View File
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<path fill="none" stroke="currentColor" stroke-width="3" d="M3 7h16"/>
<path fill="none" stroke="currentColor" stroke-width="1.5" d="M15 1v20"/>
<path fill="none" stroke="currentColor" stroke-width="2" d="M12.5 12.5L17.5 2.5"/>
<path fill="currentColor" d="M2 13h7v1.5H2zM2 16.5h4v1.5H2z"/>
</svg>

After

Width:  |  Height:  |  Size: 367 B

+6
View File
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" d="M2 5h12"/>
<path fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" d="M11 1v14"/>
<path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M9 9L13 1"/>
<path fill="currentColor" d="M1 9h5v1H1zM1 11h3v1H1z"/>
</svg>

After

Width:  |  Height:  |  Size: 419 B

+6
View File
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<path fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" d="M3 7h16"/>
<path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M15 1v20"/>
<path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" d="M12.5 12.5L17.5 2.5"/>
<path fill="currentColor" d="M2 13h7v1.5H2zM2 16.5h4v1.5H2z"/>
</svg>

After

Width:  |  Height:  |  Size: 436 B