20#ifndef LIBREPCB_EDITOR_SCHEMATICEDITORSTATE_ADDTEXT_H
21#define LIBREPCB_EDITOR_SCHEMATICEDITORSTATE_ADDTEXT_H
46class PositiveLengthEdit;
67 virtual
bool entry() noexcept override;
68 virtual
bool exit() noexcept override;
72 virtual
bool processMirror(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;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
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 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:55
virtual bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition: schematiceditorstate_addtext.cpp:163
QScopedPointer< CmdTextEdit > mCurrentTextEditCmd
Definition: schematiceditorstate_addtext.h:105
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
SI_Text * mCurrentTextToPlace
Definition: schematiceditorstate_addtext.h:104
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:99
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:100
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:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
FSM Context.
Definition: schematiceditorfsm.h:81