18#ifndef PASTEPARTSCOMMAND_H
19#define PASTEPARTSCOMMAND_H
21#include "../editorcommands.h"
22#include "../elementcontent.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);
The ElementEditionCommand class ElementEditionCommand is the base class for all commands classes invo...
Definition editorcommands.h:47
Definition elementview.h:27
The PastePartsCommand class Undo command for paste element primitive in an element editor.
Definition pastepartscommand.h:31
bool m_first_redo
Definition pastepartscommand.h:53
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