20#ifndef LIBREPCB_EDITOR_CMDBOARDSTROKETEXTEDIT_H
21#define LIBREPCB_EDITOR_CMDBOARDSTROKETEXTEDIT_H
26#include "../../undocommand.h"
59 void setText(
const QString& text,
bool immediate)
noexcept;
62 bool immediate)
noexcept;
64 bool immediate)
noexcept;
66 bool immediate)
noexcept;
72 void rotate(
const Angle& angle,
const Point& center,
bool immediate)
noexcept;
73 void setMirrored(
bool mirrored,
bool immediate)
noexcept;
75 bool immediate)
noexcept;
77 bool immediate)
noexcept;
78 void mirrorLayer(
int innerLayerCount,
bool immediate)
noexcept;
The Alignment class.
Definition alignment.h:115
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The BI_StrokeText class.
Definition bi_stroketext.h:49
The BoardStrokeTextData class.
Definition boardstroketextdata.h:49
The Layer class provides all supported geometry layers.
Definition layer.h:42
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
Represents the letter- or line spacing configuration of a stroke text.
Definition stroketextspacing.h:44
The CmdBoardStrokeTextEdit class.
Definition cmdboardstroketextedit.h:48
void performRedo() override
Redo the command.
Definition cmdboardstroketextedit.cpp:227
void setHeight(const PositiveLength &height, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:73
void mirrorLayer(int innerLayerCount, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:182
BI_StrokeText & getObj() const noexcept
Definition cmdboardstroketextedit.h:55
void setPosition(const Point &pos, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:113
void setLayer(const Layer &layer, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:57
void setMirrored(bool mirrored, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:149
void translate(const Point &delta, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:121
BI_StrokeText & mText
Definition cmdboardstroketextedit.h:93
void setAutoRotate(bool autoRotate, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:189
void performUndo() override
Undo the command.
Definition cmdboardstroketextedit.cpp:212
void mirrorGeometry(Qt::Orientation orientation, const Point ¢er, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:157
void setAlignment(const Alignment &align, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:105
void setText(const QString &text, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:65
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:129
~CmdBoardStrokeTextEdit() noexcept
Definition cmdboardstroketextedit.cpp:47
void setStrokeWidth(const UnsignedLength &strokeWidth, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:81
void setLetterSpacing(const StrokeTextSpacing &spacing, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:89
BoardStrokeTextData mOldData
Definition cmdboardstroketextedit.h:95
BoardStrokeTextData mNewData
Definition cmdboardstroketextedit.h:96
void setLineSpacing(const StrokeTextSpacing &spacing, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:97
bool performExecute() override
Execute the command the first time.
Definition cmdboardstroketextedit.cpp:206
void setLocked(bool locked) noexcept
Definition cmdboardstroketextedit.cpp:197
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:142
void setRotation(const Angle &angle, bool immediate) noexcept
Definition cmdboardstroketextedit.cpp:134
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
Definition occmodel.cpp:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694