18 #ifndef DELETEQGRAPHICSITEMCOMMAND_H 19 #define DELETEQGRAPHICSITEMCOMMAND_H 21 #include <QUndoCommand> 54 #endif // DELETEQGRAPHICSITEMCOMMAND_H
void undo() override
DeleteQGraphicsItemCommand::undo Undo this command.
QList< QPair< Terminal *, Terminal * > > m_connected_terminals
Keep the parent group of each deleted element text item.
DiagramContent m_removed_contents
QHash< Element *, QList< Element * > > m_link_hash
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
QHash< DynamicElementTextItem *, ElementTextItemGroup * > m_grp_texts_hash
Keep the parent element of each deleted dynamic element text item.
QHash< DynamicElementTextItem *, Element * > m_elmt_text_hash
keep linked element for each removed element linked to other element.
void setPotentialsOfRemovedElements()
DeleteQGraphicsItemCommand::setPotentialsOfRemovedElements This function creates new conductors (if n...
~DeleteQGraphicsItemCommand() override
void redo() override
DeleteQGraphicsItemCommand::redo Redo the delete command.
DeleteQGraphicsItemCommand(Diagram *diagram, const DiagramContent &content, QUndoCommand *parent=nullptr)
DeleteQGraphicsItemCommand::DeleteQGraphicsItemCommand.
Terminal * terminalInSamePotential(Terminal *terminal, Conductor *conductor_to_exclude)
DeleteQGraphicsItemCommand::terminalInSamePotential Return a terminal at the same potential of ...