20#ifndef LIBREPCB_EDITOR_CMDSYMBOLINSTANCEEDIT_H
21#define LIBREPCB_EDITOR_CMDSYMBOLINSTANCEEDIT_H
26#include "../../undocommand.h"
59 void rotate(
const Angle& angle,
const Point& center,
bool immediate)
noexcept;
60 void setMirrored(
bool mirrored,
bool immediate)
noexcept;
61 void mirror(
const Point& center, Qt::Orientation orientation,
62 bool immediate)
noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The SI_Symbol class.
Definition: si_symbol.h:54
The CmdSymbolInstanceEditAll class.
Definition: cmdsymbolinstanceeditall.h:51
The CmdSymbolInstanceEdit class.
Definition: cmdsymbolinstanceedit.h:49
void performRedo() override
Redo the command.
Definition: cmdsymbolinstanceedit.cpp:126
void setPosition(const Point &pos, bool immediate) noexcept
Definition: cmdsymbolinstanceedit.cpp:62
void translate(const Point &deltaPos, bool immediate) noexcept
Definition: cmdsymbolinstanceedit.cpp:69
Point mOldPos
Definition: cmdsymbolinstanceedit.h:82
bool mOldMirrored
Definition: cmdsymbolinstanceedit.h:86
void setMirrored(bool mirrored, bool immediate) noexcept
Definition: cmdsymbolinstanceedit.cpp:89
Angle mNewRotation
Definition: cmdsymbolinstanceedit.h:85
void performUndo() override
Undo the command.
Definition: cmdsymbolinstanceedit.cpp:120
bool mNewMirrored
Definition: cmdsymbolinstanceedit.h:87
~CmdSymbolInstanceEdit() noexcept
Definition: cmdsymbolinstanceedit.cpp:50
Point mNewPos
Definition: cmdsymbolinstanceedit.h:83
void mirror(const Point ¢er, Qt::Orientation orientation, bool immediate) noexcept
Definition: cmdsymbolinstanceedit.cpp:96
SI_Symbol & mSymbol
Definition: cmdsymbolinstanceedit.h:79
bool performExecute() override
Execute the command the first time.
Definition: cmdsymbolinstanceedit.cpp:111
CmdSymbolInstanceEdit(SI_Symbol &symbol) noexcept
Definition: cmdsymbolinstanceedit.cpp:39
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition: cmdsymbolinstanceedit.cpp:83
Angle mOldRotation
Definition: cmdsymbolinstanceedit.h:84
void setRotation(const Angle &angle, bool immediate) noexcept
Definition: cmdsymbolinstanceedit.cpp:76
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77