|
QElectroTech
0.70
|
#include <diagramcommands.h>
Public Member Functions | |
| PasteDiagramCommand (Diagram *, const DiagramContent &, QUndoCommand *=nullptr) | |
| PasteDiagramCommand::PasteDiagramCommand Constructor. More... | |
| ~PasteDiagramCommand () override | |
| PasteDiagramCommand::~PasteDiagramCommand Destructor. More... | |
| void | undo () override |
| PasteDiagramCommand::undo Undo this command. More... | |
| void | redo () override |
| PasteDiagramCommand::redo Redo this commnand. More... | |
Private Member Functions | |
| PasteDiagramCommand (const PasteDiagramCommand &) | |
Private Attributes | |
| DiagramContent | content |
| pasted content More... | |
| Diagram * | diagram |
| diagram content is pasted onto More... | |
| int | filter |
| filter stating what kinds of items should be pasted More... | |
| bool | first_redo |
| prevent the first call to redo() More... | |
This command pastes some content onto a particular diagram.
Definition at line 85 of file diagramcommands.h.
| PasteDiagramCommand::PasteDiagramCommand | ( | Diagram * | dia, |
| const DiagramContent & | c, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
PasteDiagramCommand::PasteDiagramCommand Constructor.
| dia | : diagram where we must to paste |
| c | : content to past |
| parent | : parent undo command |
Definition at line 52 of file diagramcommands.cpp.
References content, diagram, filter, DiagramContent::items(), DiagramContent::sentence(), and QET::Icons::tr.
|
override |
PasteDiagramCommand::~PasteDiagramCommand Destructor.
Definition at line 67 of file diagramcommands.cpp.
References content, diagram, filter, and DiagramContent::items().
|
private |
|
override |
PasteDiagramCommand::redo Redo this commnand.
Definition at line 87 of file diagramcommands.cpp.
References Diagram::addItem(), DiagramContext::addValue(), content, diagram, filter, first_redo, DiagramContent::items(), DiagramContent::m_conductors_to_move, DiagramContent::m_elements, and ConductorProperties::text.
|
override |
PasteDiagramCommand::undo Undo this command.
Definition at line 75 of file diagramcommands.cpp.
References content, diagram, filter, DiagramContent::items(), and Diagram::removeItem().
|
private |
pasted content
Definition at line 101 of file diagramcommands.h.
Referenced by PasteDiagramCommand(), redo(), undo(), and ~PasteDiagramCommand().
|
private |
diagram content is pasted onto
Definition at line 103 of file diagramcommands.h.
Referenced by PasteDiagramCommand(), redo(), undo(), and ~PasteDiagramCommand().
|
private |
filter stating what kinds of items should be pasted
Definition at line 105 of file diagramcommands.h.
Referenced by PasteDiagramCommand(), redo(), undo(), and ~PasteDiagramCommand().
|
private |
prevent the first call to redo()
Definition at line 107 of file diagramcommands.h.
Referenced by redo().
1.8.15