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);
ElementEditionCommand(ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr)
ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the ...
Definition editorcommands.cpp:29
Definition elementview.h:27
bool m_first_redo
Definition pastepartscommand.h:53
PastePartsCommand(ElementView *view, const ElementContent &content_to_paste, QUndoCommand *parent=nullptr)
PastePartsCommand::PastePartsCommand.
Definition pastepartscommand.cpp:32
void redo() override
PastePartsCommand::redo.
Definition pastepartscommand.cpp:81
int m_old_offset_paste_count
Definition pastepartscommand.h:46
bool m_uses_offset
Definition pastepartscommand.h:52
QPointF m_old_start_top_left_corner
Definition pastepartscommand.h:49
ElementContent m_pasted_content
Definition pastepartscommand.h:44
int m_new_offset_paste_count
Definition pastepartscommand.h:47
~PastePartsCommand() override
PastePartsCommand::~PastePartsCommand.
Definition pastepartscommand.cpp:53
QPointF m_new_start_top_left_corner
Definition pastepartscommand.h:50
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:111
PastePartsCommand(const PastePartsCommand &)
void undo() override
PastePartsCommand::undo.
Definition pastepartscommand.cpp:61
QList< QGraphicsItem * > ElementContent
Definition elementcontent.h:30