mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
add English comments
This commit is contained in:
parent
667d25899f
commit
181680e6f1
@ -248,9 +248,9 @@ void DiagramEventAddElement::addElement()
|
||||
QUndoCommand *undo_object = new QUndoCommand(tr("Ajouter %1").arg(element->name()));
|
||||
new AddGraphicsObjectCommand(element, m_diagram, m_element -> pos(), undo_object);
|
||||
|
||||
//When we search for free aligned terminal we
|
||||
//temporally remove m_element to avoid any interaction with the function Element::AlignedFreeTerminals
|
||||
//this is useful when an element who have two (or more) terminals opposite,
|
||||
//When we search for free aligned terminal we temporally remove m_element to
|
||||
//avoid any interaction with the function Element::AlignedFreeTerminals
|
||||
//This is useful when an element has two (or more) terminals on opposite sides,
|
||||
//because m_element is exactly at the same pos of the new element
|
||||
//added to the scene so new conductor are created between terminal of the new element
|
||||
//and the opposite terminal of m_element.
|
||||
|
@ -695,11 +695,15 @@ bool Terminal::valideXml(QDomElement &terminal)
|
||||
|
||||
/**
|
||||
@brief Terminal::fromXml
|
||||
Enables you to find out whether an XML element represents this terminal.
|
||||
Warning, the XML element is not checked
|
||||
Permet de savoir si un element XML represente cette borne. Attention,
|
||||
l'element XML n'est pas verifie
|
||||
@param terminal Le QDomElement a analyser
|
||||
@param terminal Le QDomElement a analyser / QDomElement to check
|
||||
@return true si la borne "se reconnait"
|
||||
(memes coordonnes, meme orientation), false sinon
|
||||
true, if the terminal ‘recognises’ itself (same coordinates,
|
||||
same orientation), false otherwise
|
||||
*/
|
||||
bool Terminal::fromXml(QDomElement &terminal)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user