20#ifndef LIBREPCB_EDITOR_BOARDEDITORSTATE_ADDSTROKETEXT_H
21#define LIBREPCB_EDITOR_BOARDEDITORSTATE_ADDSTROKETEXT_H
42class CmdBoardStrokeTextEdit;
44class PositiveLengthEdit;
65 virtual
bool entry() noexcept override;
66 virtual
bool exit() noexcept override;
70 virtual
bool processFlip(Qt::Orientation orientation) noexcept override;
72 QGraphicsSceneMouseEvent& e) noexcept override;
74 QGraphicsSceneMouseEvent& e) noexcept override;
76 QGraphicsSceneMouseEvent& e) noexcept override;
78 QGraphicsSceneMouseEvent& e) noexcept override;
87 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:78
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:79
The "add stroke text" state/tool of the board editor.
Definition: boardeditorstate_addstroketext.h:53
virtual bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition: boardeditorstate_addstroketext.cpp:166
PositiveLength mLastHeight
Definition: boardeditorstate_addstroketext.h:103
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:101
QString mLastText
Definition: boardeditorstate_addstroketext.h:106
void heightEditValueChanged(const PositiveLength &value) noexcept
Definition: boardeditorstate_addstroketext.cpp:327
bool updatePosition(const Point &pos) noexcept
Definition: boardeditorstate_addstroketext.cpp:260
UnsignedLength mLastStrokeWidth
Definition: boardeditorstate_addstroketext.h:104
bool mLastMirrored
Definition: boardeditorstate_addstroketext.h:107
virtual bool processRotate(const Angle &rotation) noexcept override
Definition: boardeditorstate_addstroketext.cpp:156
QScopedPointer< CmdBoardStrokeTextEdit > mCurrentTextEditCmd
Definition: boardeditorstate_addstroketext.h:112
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:98
BoardEditorState_AddStrokeText()=delete
Angle mLastRotation
Definition: boardeditorstate_addstroketext.h:102
virtual bool exit() noexcept override
Definition: boardeditorstate_addstroketext.cpp:141
QPointer< LayerComboBox > mLayerComboBox
Definition: boardeditorstate_addstroketext.h:115
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:105
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:116
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:111
The board editor state base class.
Definition: boardeditorstate.h:59
The CmdBoardStrokeTextEdit class.
Definition: cmdboardstroketextedit.h:48
The LayerComboBox class.
Definition: layercombobox.h:47
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696
FSM Context.
Definition: boardeditorfsm.h:88