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

This commit is contained in:
Laurent Trinques
2026-10-10 16:49:39 +02:00
committed by GitHub
parent 738ffbfc36
commit 2bb3343d2d
113 changed files with 209 additions and 18793 deletions
@@ -17,7 +17,6 @@
*/
#include "linkelementcommand.h"
#include "../cable/cablemanager.h"
#include "../conductorautonumerotation.h"
#include "../diagram.h"
#include "../diagramposition.h"
@@ -60,23 +59,6 @@ static QString plcCrossRefText(Element *master, Element *slave)
xrp.slaveLabel(), seq, master->diagram(), master);
}
/**
@brief refreshCableLabelsForReport
A folio report carries a cable core over to the next sheet, so
making or breaking such a link changes which wires belong to which
cable. Work the cable fields out again straight away, so the wire
coming out of the linked arrow shows the cable right after the link
is made -- and drops it right after the link is taken away.
@param element the element the link was made or broken on
*/
static void refreshCableLabelsForReport(Element *element)
{
if (!element || !(element->linkType() & Element::AllReport)) return;
if (Diagram *diagram = element->diagram()) {
CableManager::refreshLabels(diagram->project());
}
}
/**
@brief LinkElementCommand::LinkElementCommand
Constructor
@@ -320,7 +302,6 @@ void LinkElementCommand::undo()
}
makeLink(m_linked_before);
refreshCableLabelsForReport(m_element);
QUndoCommand::undo();
}
@@ -348,7 +329,6 @@ void LinkElementCommand::redo()
}
m_first_redo = false;
}
refreshCableLabelsForReport(m_element);
QUndoCommand::redo();
}