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

This reverts commit 2bb3343d2d.
This commit is contained in:
Laurent Trinques
2026-10-11 05:00:01 +02:00
parent 124a889be3
commit 1cd8fadbc4
113 changed files with 18793 additions and 209 deletions
+26
View File
@@ -1845,6 +1845,32 @@ ConductorProperties Conductor::properties() const
return(m_properties);
}
/**
@brief Conductor::setCableReference
Record the cable core this conductor shows, together with the label
that assignment generates. Called only by CableManager, which works
the values out from the cable itself: the user never types them.
@param label the generated cable field, e.g. "15W1:br", empty to
detach the conductor from its cable
@param cable_uuid the cable this conductor is a core of
@param slot which core of that cable it shows, -1 when none
*/
void Conductor::setCableReference(const QString &label,
const QUuid &cable_uuid,
int slot)
{
if (m_properties.m_cable == label
&& m_properties.m_cable_uuid == cable_uuid
&& m_properties.m_cable_slot == slot) {
return;
}
m_properties.m_cable = label;
m_properties.m_cable_uuid = cable_uuid;
m_properties.m_cable_slot = slot;
emit propertiesChange();
}
/**
@return true si le conducteur est mis en evidence
*/