|
QElectroTech
0.70
|
#include <editorcommands.h>
Public Member Functions | |
| PastePartsCommand (ElementView *, const ElementContent &, QUndoCommand *=nullptr) | |
| ~PastePartsCommand () override | |
| Destructeur. More... | |
| void | undo () override |
| annule le coller More... | |
| void | redo () override |
| refait le coller More... | |
| virtual void | setOffset (int, const QPointF &, int, const QPointF &) |
Public Member Functions inherited from ElementEditionCommand | |
| ElementEditionCommand (ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
| ElementEditionCommand (const QString &, ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr) | |
| ~ElementEditionCommand () override | |
| ElementScene * | elementScene () const |
| void | setElementScene (ElementScene *) |
| ElementView * | elementView () const |
| void | setElementView (ElementView *) |
Private Member Functions | |
| PastePartsCommand (const PastePartsCommand &) | |
Private Attributes | |
| ElementContent | content_ |
| Pasted content. More... | |
| int | old_offset_paste_count_ |
| Data required to undo a copy/paste with offset. More... | |
| QPointF | old_start_top_left_corner_ |
| int | new_offset_paste_count_ |
| QPointF | new_start_top_left_corner_ |
| bool | uses_offset |
| bool | first_redo |
| Prevent the first call to redo() More... | |
Additional Inherited Members | |
Protected Attributes inherited from ElementEditionCommand | |
| ElementScene * | m_scene |
| Element editor/view/scene the command should take place on. More... | |
| ElementView * | m_view |
This command pastes primitives when editing an electrical element.
Definition at line 82 of file editorcommands.h.
| PastePartsCommand::PastePartsCommand | ( | ElementView * | view, |
| const ElementContent & | c, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
Constructeur
| view | ElementView concernee |
| c | Liste des parties collees |
| parent | QUndoCommand parent |
Definition at line 129 of file editorcommands.cpp.
References content_, ElementEditionCommand::m_scene, and QET::Icons::tr.
|
override |
Destructeur.
Definition at line 144 of file editorcommands.cpp.
References content_, and ElementEditionCommand::m_scene.
|
private |
|
override |
refait le coller
Definition at line 164 of file editorcommands.cpp.
References content_, first_redo, ElementEditionCommand::m_scene, ElementEditionCommand::m_view, new_offset_paste_count_, new_start_top_left_corner_, and uses_offset.
|
virtual |
Indique a cet objet d'annulation que le c/c a annuler ou refaire etait un c/c avec decalage ; il faut plus d'informations pour annuler ce type de collage.
Definition at line 187 of file editorcommands.cpp.
References new_offset_paste_count_, new_start_top_left_corner_, old_offset_paste_count_, old_start_top_left_corner_, and uses_offset.
|
override |
annule le coller
Definition at line 149 of file editorcommands.cpp.
References content_, ElementEditionCommand::m_scene, ElementEditionCommand::m_view, old_offset_paste_count_, old_start_top_left_corner_, and uses_offset.
Referenced by EllipseEditor::editingFinished().
|
private |
Pasted content.
Definition at line 99 of file editorcommands.h.
Referenced by PastePartsCommand(), redo(), undo(), and ~PastePartsCommand().
|
private |
Prevent the first call to redo()
Definition at line 107 of file editorcommands.h.
Referenced by redo().
|
private |
Definition at line 103 of file editorcommands.h.
Referenced by redo(), and setOffset().
|
private |
Definition at line 104 of file editorcommands.h.
Referenced by redo(), and setOffset().
|
private |
Data required to undo a copy/paste with offset.
Definition at line 101 of file editorcommands.h.
Referenced by setOffset(), and undo().
|
private |
Definition at line 102 of file editorcommands.h.
Referenced by setOffset(), and undo().
|
private |
Definition at line 105 of file editorcommands.h.
Referenced by redo(), setOffset(), and undo().
1.8.15