The CmdDeviceInstanceEdit class.
More...
#include <cmddeviceinstanceedit.h>
◆ CmdDeviceInstanceEdit()
◆ ~CmdDeviceInstanceEdit()
◆ setPosition()
void setPosition |
( |
const Point & |
pos, |
|
|
bool |
immediate |
|
) |
| |
|
noexcept |
◆ translate()
void translate |
( |
const Point & |
deltaPos, |
|
|
bool |
immediate |
|
) |
| |
|
noexcept |
◆ snapToGrid()
void snapToGrid |
( |
const PositiveLength & |
gridInterval, |
|
|
bool |
immediate |
|
) |
| |
|
noexcept |
◆ setRotation()
void setRotation |
( |
const Angle & |
angle, |
|
|
bool |
immediate |
|
) |
| |
|
noexcept |
◆ rotate()
void rotate |
( |
const Angle & |
angle, |
|
|
const Point & |
center, |
|
|
bool |
immediate |
|
) |
| |
|
noexcept |
◆ setMirrored()
void setMirrored |
( |
bool |
mirrored, |
|
|
bool |
immediate |
|
) |
| |
◆ mirror()
void mirror |
( |
const Point & |
center, |
|
|
Qt::Orientation |
orientation, |
|
|
bool |
immediate |
|
) |
| |
◆ setLocked()
void setLocked |
( |
bool |
locked | ) |
|
◆ setModel()
void setModel |
( |
const tl::optional< Uuid > & |
uuid | ) |
|
|
noexcept |
◆ performExecute()
Execute the command the first time.
- Note
- This method must be implemented in all derived classes. If the first time execution is exactly identical to an "redo" action, you can simple call librepcb::editor::UndoCommand::performRedo() in the implementation of this method.
- Return values
-
true | If the command has done some changes |
false | If the command has done nothing (the command can be deleted) |
Implements UndoCommand.
◆ performUndo()
Undo the command.
- Note
- This method must be implemented in all derived classes.
Implements UndoCommand.
◆ performRedo()
Redo the command.
- Note
- This method must be implemented in all derived classes.
Implements UndoCommand.
◆ CmdDeviceInstanceEditAll
◆ mDevice
◆ mOldPos
◆ mNewPos
◆ mOldRotation
◆ mNewRotation
◆ mOldMirrored
◆ mNewMirrored
◆ mOldLocked
◆ mNewLocked
◆ mOldModelUuid
tl::optional<Uuid> mOldModelUuid |
|
private |
◆ mNewModelUuid
tl::optional<Uuid> mNewModelUuid |
|
private |
The documentation for this class was generated from the following files: