20#ifndef LIBREPCB_EDITOR_CMDSCHEMATICNETLABELEDIT_H
21#define LIBREPCB_EDITOR_CMDSCHEMATICNETLABELEDIT_H
26#include "../../undocommand.h"
60 void rotate(
const Angle& angle,
const Point& center,
bool immediate)
noexcept;
61 void mirror(Qt::Orientation orientation,
const Point& center,
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_NetLabel class.
Definition: si_netlabel.h:49
The CmdSchematicNetLabelEdit class.
Definition: cmdschematicnetlabeledit.h:50
void performRedo() override
Redo the command.
Definition: cmdschematicnetlabeledit.cpp:134
CmdSchematicNetLabelEdit(SI_NetLabel &netlabel) noexcept
Definition: cmdschematicnetlabeledit.cpp:39
void translate(const Point &deltaPos, bool immediate) noexcept
Definition: cmdschematicnetlabeledit.cpp:71
Point mOldPos
Definition: cmdschematicnetlabeledit.h:84
bool mOldMirrored
Definition: cmdschematicnetlabeledit.h:82
Angle mNewRotation
Definition: cmdschematicnetlabeledit.h:87
void performUndo() override
Undo the command.
Definition: cmdschematicnetlabeledit.cpp:128
bool mNewMirrored
Definition: cmdschematicnetlabeledit.h:83
Point mNewPos
Definition: cmdschematicnetlabeledit.h:85
~CmdSchematicNetLabelEdit() noexcept
Definition: cmdschematicnetlabeledit.cpp:51
void mirror(Qt::Orientation orientation, const Point ¢er, bool immediate) noexcept
Definition: cmdschematicnetlabeledit.cpp:96
bool performExecute() override
Execute the command the first time.
Definition: cmdschematicnetlabeledit.cpp:122
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition: cmdschematicnetlabeledit.cpp:85
SI_NetLabel & mNetLabel
Definition: cmdschematicnetlabeledit.h:79
Angle mOldRotation
Definition: cmdschematicnetlabeledit.h:86
void setPosition(const Point &position, bool immediate) noexcept
Definition: cmdschematicnetlabeledit.cpp:64
void setRotation(const Angle &angle, bool immediate) noexcept
Definition: cmdschematicnetlabeledit.cpp:78
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77