18#ifndef DELETEQGRAPHICSITEMCOMMAND_H
19#define DELETEQGRAPHICSITEMCOMMAND_H
24#include <QUndoCommand>
Definition conductor.h:44
void setPotentialsOfRemovedElements()
DeleteQGraphicsItemCommand::setPotentialsOfRemovedElements This function creates new conductors (if n...
Definition deleteqgraphicsitemcommand.cpp:155
QHash< Element *, QList< Element * > > m_link_hash
Definition deleteqgraphicsitemcommand.h:52
bool m_remove_linked_table
Definition deleteqgraphicsitemcommand.h:57
DeleteQGraphicsItemCommand(Diagram *diagram, const DiagramContent &content, QUndoCommand *parent=nullptr)
DeleteQGraphicsItemCommand::DeleteQGraphicsItemCommand.
Definition deleteqgraphicsitemcommand.cpp:40
static bool hasNonDeletableTerminal(const DiagramContent &content)
DeleteQGraphicsItemCommand::hasNonDeletableTerminal Return true if @content have terminal element whi...
Definition deleteqgraphicsitemcommand.cpp:130
void redo() override
DeleteQGraphicsItemCommand::redo Redo the delete command.
Definition deleteqgraphicsitemcommand.cpp:317
QList< std::pair< Terminal *, Terminal * > > m_connected_terminals
Keep the parent group of each deleted element text item.
Definition deleteqgraphicsitemcommand.h:55
Terminal * terminalInSamePotential(Terminal *terminal, Conductor *conductor_to_exclude)
DeleteQGraphicsItemCommand::terminalInSamePotential Return a terminal at the same potential of termin...
Definition deleteqgraphicsitemcommand.cpp:249
QHash< DynamicElementTextItem *, ElementTextItemGroup * > m_grp_texts_hash
Keep the parent element of each deleted dynamic element text item.
Definition deleteqgraphicsitemcommand.h:54
QHash< QetGraphicsTableItem *, QPointer< QGraphicsScene > > m_table_scene_hash
Definition deleteqgraphicsitemcommand.h:56
~DeleteQGraphicsItemCommand() override
Definition deleteqgraphicsitemcommand.cpp:115
void undo() override
DeleteQGraphicsItemCommand::undo Undo this command.
Definition deleteqgraphicsitemcommand.cpp:279
QHash< DynamicElementTextItem *, Element * > m_elmt_text_hash
keep linked element for each removed element linked to other element.
Definition deleteqgraphicsitemcommand.h:53
DeleteQGraphicsItemCommand(const DeleteQGraphicsItemCommand &)
Diagram * m_diagram
Definition deleteqgraphicsitemcommand.h:51
DiagramContent m_removed_contents
Definition deleteqgraphicsitemcommand.h:50
Definition diagramcontent.h:49
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:54
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
Definition elementtextitemgroup.h:36
The QetGraphicsTableItem class This item display a table destined to represent the content of a QAbst...
Definition qetgraphicstableitem.h:43
The Terminal class This class represents a terminal of an electrical element, i.e....
Definition terminal.h:37