20#ifndef LIBREPCB_EDITOR_BOARDEDITORSTATE_ADDSTROKETEXT_H
21#define LIBREPCB_EDITOR_BOARDEDITORSTATE_ADDSTROKETEXT_H
44class CmdBoardStrokeTextEdit;
46class PositiveLengthEdit;
67 virtual
bool entry() noexcept override;
68 virtual
bool exit() noexcept override;
72 virtual
bool processFlip(Qt::Orientation orientation) noexcept override;
74 QGraphicsSceneMouseEvent& e) noexcept override;
76 QGraphicsSceneMouseEvent& e) noexcept override;
78 QGraphicsSceneMouseEvent& e) noexcept override;
80 QGraphicsSceneMouseEvent& e) noexcept override;
89 bool flipText(Qt::Orientation orientation) 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 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
The "add stroke text" state/tool of the board editor.
Definition boardeditorstate_addstroketext.h:55
virtual bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_addstroketext.cpp:166
PositiveLength mLastHeight
Definition boardeditorstate_addstroketext.h:105
void layerComboBoxLayerChanged(const Layer &layer) noexcept
Definition boardeditorstate_addstroketext.cpp:310
virtual ~BoardEditorState_AddStrokeText() noexcept
Definition boardeditorstate_addstroketext.cpp:66
const Layer * mLastLayer
Definition boardeditorstate_addstroketext.h:103
QString mLastText
Definition boardeditorstate_addstroketext.h:108
void heightEditValueChanged(const PositiveLength &value) noexcept
Definition boardeditorstate_addstroketext.cpp:327
std::unique_ptr< CmdBoardStrokeTextEdit > mCurrentTextEditCmd
Definition boardeditorstate_addstroketext.h:114
bool updatePosition(const Point &pos) noexcept
Definition boardeditorstate_addstroketext.cpp:260
UnsignedLength mLastStrokeWidth
Definition boardeditorstate_addstroketext.h:106
bool mLastMirrored
Definition boardeditorstate_addstroketext.h:109
virtual bool processRotate(const Angle &rotation) noexcept override
Definition boardeditorstate_addstroketext.cpp:156
void textComboBoxValueChanged(const QString &value) noexcept
Definition boardeditorstate_addstroketext.cpp:319
void mirrorCheckBoxToggled(bool checked) noexcept
Definition boardeditorstate_addstroketext.cpp:335
bool abortCommand(bool showErrMsgBox) noexcept
Definition boardeditorstate_addstroketext.cpp:288
bool mIsUndoCmdActive
Definition boardeditorstate_addstroketext.h:100
BoardEditorState_AddStrokeText()=delete
Angle mLastRotation
Definition boardeditorstate_addstroketext.h:104
virtual bool exit() noexcept override
Definition boardeditorstate_addstroketext.cpp:141
QPointer< LayerComboBox > mLayerComboBox
Definition boardeditorstate_addstroketext.h:117
virtual bool processGraphicsSceneRightMouseButtonReleased(QGraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_addstroketext.cpp:187
bool fixPosition(const Point &pos) noexcept
Definition boardeditorstate_addstroketext.cpp:269
Alignment mLastAlignment
Definition boardeditorstate_addstroketext.h:107
virtual bool processFlip(Qt::Orientation orientation) noexcept override
Definition boardeditorstate_addstroketext.cpp:161
bool flipText(Qt::Orientation orientation) noexcept
Definition boardeditorstate_addstroketext.cpp:242
bool addText(const Point &pos) noexcept
Definition boardeditorstate_addstroketext.cpp:203
BoardEditorState_AddStrokeText(const BoardEditorState_AddStrokeText &other)=delete
QPointer< QCheckBox > mMirrorCheckBox
Definition boardeditorstate_addstroketext.h:118
virtual bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_addstroketext.cpp:172
bool rotateText(const Angle &angle) noexcept
Definition boardeditorstate_addstroketext.cpp:232
virtual bool entry() noexcept override
Definition boardeditorstate_addstroketext.cpp:73
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked(QGraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_addstroketext.cpp:181
BI_StrokeText * mCurrentTextToPlace
Definition boardeditorstate_addstroketext.h:113
The board editor state base class.
Definition boardeditorstate.h:59
The CmdBoardStrokeTextEdit class.
Definition cmdboardstroketextedit.h:48
The LayerComboBox class.
Definition layercombobox.h:45
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
FSM Context.
Definition boardeditorfsm.h:88