20#ifndef LIBREPCB_EDITOR_SCHEMATICEDITORSTATE_ADDTEXT_H
21#define LIBREPCB_EDITOR_SCHEMATICEDITORSTATE_ADDTEXT_H
48class PositiveLengthEdit;
69 virtual
bool entry() noexcept override;
70 virtual
bool exit() noexcept override;
74 virtual
bool processMirror(Qt::Orientation orientation) noexcept override;
76 QGraphicsSceneMouseEvent& e) noexcept override;
78 QGraphicsSceneMouseEvent& e) noexcept override;
80 QGraphicsSceneMouseEvent& e) noexcept override;
82 QGraphicsSceneMouseEvent& e) noexcept override;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
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 SI_Text class represents a text label in a schematic.
Definition si_text.h:48
The Text class.
Definition text.h:48
The CmdTextEdit class.
Definition cmdtextedit.h:51
The SchematicEditorState_AddText class.
Definition schematiceditorstate_addtext.h:57
virtual bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition schematiceditorstate_addtext.cpp:163
void layerComboBoxLayerChanged(const Layer &layer) noexcept
Definition schematiceditorstate_addtext.cpp:291
void heightEditValueChanged(const PositiveLength &value) noexcept
Definition schematiceditorstate_addtext.cpp:307
SchematicEditorState_AddText()=delete
bool updatePosition(const Point &pos) noexcept
Definition schematiceditorstate_addtext.cpp:241
SchematicEditorState_AddText(const SchematicEditorState_AddText &other)=delete
virtual bool processRotate(const Angle &rotation) noexcept override
Definition schematiceditorstate_addtext.cpp:148
std::unique_ptr< CmdTextEdit > mCurrentTextEditCmd
Definition schematiceditorstate_addtext.h:107
SI_Text * mCurrentTextToPlace
Definition schematiceditorstate_addtext.h:106
void textComboBoxValueChanged(const QString &value) noexcept
Definition schematiceditorstate_addtext.cpp:299
bool abortCommand(bool showErrMsgBox) noexcept
Definition schematiceditorstate_addtext.cpp:269
bool mIsUndoCmdActive
Definition schematiceditorstate_addtext.h:101
virtual bool processSwitchToSchematicPage(int index) noexcept override
Definition schematiceditorstate_addtext.cpp:195
virtual bool exit() noexcept override
Definition schematiceditorstate_addtext.cpp:133
Text mLastTextProperties
Definition schematiceditorstate_addtext.h:102
virtual bool processGraphicsSceneRightMouseButtonReleased(QGraphicsSceneMouseEvent &e) noexcept override
Definition schematiceditorstate_addtext.cpp:183
bool fixPosition(const Point &pos) noexcept
Definition schematiceditorstate_addtext.cpp:250
virtual bool processMirror(Qt::Orientation orientation) noexcept override
Definition schematiceditorstate_addtext.cpp:153
bool addText(const Point &pos) noexcept
Definition schematiceditorstate_addtext.cpp:205
virtual bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexcept override
Definition schematiceditorstate_addtext.cpp:169
bool rotateText(const Angle &angle) noexcept
Definition schematiceditorstate_addtext.cpp:232
virtual ~SchematicEditorState_AddText() noexcept
Definition schematiceditorstate_addtext.cpp:68
virtual bool entry() noexcept override
Definition schematiceditorstate_addtext.cpp:75
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked(QGraphicsSceneMouseEvent &e) noexcept override
Definition schematiceditorstate_addtext.cpp:178
The schematic editor state base class.
Definition schematiceditorstate.h:57
Definition occmodel.cpp:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
FSM Context.
Definition schematiceditorfsm.h:81