|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef PASTEPARTSCOMMAND_H
19 #define PASTEPARTSCOMMAND_H
41 virtual void setOffset(
int old_offset_paste_count,
const QPointF &old_start_top_left_corner,
int new_offset_paste_count,
const QPointF &new_start_top_left_corner);
56 #endif // PASTEPARTSCOMMAND_H
QList< QGraphicsItem * > ElementContent
Definition: elementcontent.h:21
Definition: elementview.h:27
QPointF start_top_left_corner_
Definition: elementview.h:89
ElementContent m_pasted_content
Definition: pastepartscommand.h:44
QPointF m_old_start_top_left_corner
Definition: pastepartscommand.h:49
virtual void setOffset(int old_offset_paste_count, const QPointF &old_start_top_left_corner, int new_offset_paste_count, const QPointF &new_start_top_left_corner)
PastePartsCommand::setOffset Describe the offset to use with this undo command.
Definition: pastepartscommand.cpp:110
bool m_uses_offset
Definition: pastepartscommand.h:52
PastePartsCommand(const PastePartsCommand &)
void adjustSceneRect()
ElementView::adjustSceneRect Adjust the scenRect, so that he include all primitives of element plus t...
Definition: elementview.cpp:151
~PastePartsCommand() override
PastePartsCommand::~PastePartsCommand.
Definition: pastepartscommand.cpp:52
The ElementEditionCommand class ElementEditionCommand is the base class for all commands classes invo...
Definition: editorcommands.h:33
int m_old_offset_paste_count
Definition: pastepartscommand.h:46
int offset_paste_count_
Definition: elementview.h:88
void redo() override
PastePartsCommand::redo.
Definition: pastepartscommand.cpp:80
ElementView * m_view
Definition: editorcommands.h:58
void undo() override
PastePartsCommand::undo.
Definition: pastepartscommand.cpp:60
Definition: partterminal.h:30
void release(QGraphicsItem *)
Definition: qgimanager.cpp:60
QPointF m_new_start_top_left_corner
Definition: pastepartscommand.h:50
QGIManager & qgiManager()
ElementScene::qgiManager.
Definition: elementscene.cpp:612
void slot_select(const ElementContent &)
ElementScene::slot_select Select the item in content, every others items in the scene are deselected.
Definition: elementscene.cpp:706
bool m_first_redo
Definition: pastepartscommand.h:53
void setNewUuid()
Definition: partterminal.cpp:144
@ Type
Definition: partterminal.h:48
ElementScene * m_scene
Element editor/view/scene the command should take place on.
Definition: editorcommands.h:57
void manage(QGraphicsItem *)
Definition: qgimanager.cpp:48
PastePartsCommand(ElementView *view, const ElementContent &content_to_paste, QUndoCommand *parent=nullptr)
PastePartsCommand::PastePartsCommand.
Definition: pastepartscommand.cpp:31
int m_new_offset_paste_count
Definition: pastepartscommand.h:47
QIcon tr
Definition: qeticons.cpp:206
The PastePartsCommand class Undo command for paste element primitive in an element editor.
Definition: pastepartscommand.h:31