The CmdZoneEdit class.
More...
#include <cmdzoneedit.h>
◆ CmdZoneEdit() [1/3]
◆ CmdZoneEdit() [2/3]
◆ CmdZoneEdit() [3/3]
◆ ~CmdZoneEdit()
◆ setLayers()
void setLayers |
( |
Zone::Layers |
layers, |
|
|
bool |
immediate |
|
) |
| |
|
noexcept |
◆ setRules()
void setRules |
( |
Zone::Rules |
rules, |
|
|
bool |
immediate |
|
) |
| |
|
noexcept |
◆ setOutline()
void setOutline |
( |
const Path & |
path, |
|
|
bool |
immediate |
|
) |
| |
|
noexcept |
◆ translate()
void translate |
( |
const Point & |
deltaPos, |
|
|
bool |
immediate |
|
) |
| |
|
noexcept |
◆ snapToGrid()
void snapToGrid |
( |
const PositiveLength & |
gridInterval, |
|
|
bool |
immediate |
|
) |
| |
|
noexcept |
◆ rotate()
void rotate |
( |
const Angle & |
angle, |
|
|
const Point & |
center, |
|
|
bool |
immediate |
|
) |
| |
|
noexcept |
◆ mirrorGeometry()
void mirrorGeometry |
( |
Qt::Orientation |
orientation, |
|
|
const Point & |
center, |
|
|
bool |
immediate |
|
) |
| |
|
noexcept |
◆ mirrorLayers()
void mirrorLayers |
( |
bool |
immediate | ) |
|
|
noexcept |
◆ operator=()
◆ 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.
◆ mZone
◆ mOldLayers
◆ mNewLayers
◆ mOldRules
◆ mNewRules
◆ mOldOutline
◆ mNewOutline
The documentation for this class was generated from the following files: