18#ifndef DELETEQGRAPHICSITEMCOMMAND_H
19#define DELETEQGRAPHICSITEMCOMMAND_H
21#include "../diagramcontent.h"
24#include <QUndoCommand>
Definition conductor.h:43
Definition deleteqgraphicsitemcommand.h:33
void setPotentialsOfRemovedElements()
DeleteQGraphicsItemCommand::setPotentialsOfRemovedElements This function creates new conductors (if n...
Definition deleteqgraphicsitemcommand.cpp:123
QHash< Element *, QList< Element * > > m_link_hash
Definition deleteqgraphicsitemcommand.h:52
bool m_remove_linked_table
Definition deleteqgraphicsitemcommand.h:57
QList< QPair< Terminal *, Terminal * > > m_connected_terminals
Keep the parent group of each deleted element text item.
Definition deleteqgraphicsitemcommand.h:55
void redo() override
DeleteQGraphicsItemCommand::redo Redo the delete command.
Definition deleteqgraphicsitemcommand.cpp:291
Terminal * terminalInSamePotential(Terminal *terminal, Conductor *conductor_to_exclude)
DeleteQGraphicsItemCommand::terminalInSamePotential Return a terminal at the same potential of termin...
Definition deleteqgraphicsitemcommand.cpp:223
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:113
void undo() override
DeleteQGraphicsItemCommand::undo Undo this command.
Definition deleteqgraphicsitemcommand.cpp:253
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:47
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56
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:36