mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-12 07:04:12 +02:00
Revert "Add cable management: drawing, cores, numbering, cross-references and cable list"
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user