20 #ifndef LIBREPCB_LIBRARY_EDITOR_SYMBOLEDITORSTATE_DRAWTEXTBASE_H
21 #define LIBREPCB_LIBRARY_EDITOR_SYMBOLEDITORSTATE_DRAWTEXTBASE_H
40 class TextGraphicsItem;
70 bool entry() noexcept override;
71 bool exit() noexcept override;
75 QGraphicsSceneMouseEvent& e) noexcept override;
77 QGraphicsSceneMouseEvent& e) noexcept override;
79 QGraphicsSceneMouseEvent& e) noexcept override;
120 #endif // LIBREPCB_LIBRARY_EDITOR_SYMBOLEDITORSTATE_DRAWTEXTBASE_H
SymbolEditorState_DrawTextBase()=delete
virtual ~SymbolEditorState_DrawTextBase() noexcept
Definition: symboleditorstate_drawtextbase.cpp:62
void layerComboBoxValueChanged(const GraphicsLayerName &layerName) noexcept
Definition: symboleditorstate_drawtextbase.cpp:276
Text * mCurrentText
Definition: symboleditorstate_drawtextbase.h:102
PositiveLength mLastHeight
Definition: symboleditorstate_drawtextbase.h:108
The SymbolEditorState class is the base class of all symbol editor FSM states.
Definition: symboleditorstate.h:49
void resetToDefaultParameters() noexcept
Definition: symboleditorstate_drawtextbase.cpp:245
Mode
Definition: symboleditorstate_drawtextbase.h:59
The Alignment class.
Definition: alignment.h:184
The SymbolEditorState_DrawTextBase class.
Definition: symboleditorstate_drawtextbase.h:54
Mode mMode
Definition: symboleditorstate_drawtextbase.h:99
type_safe::constrained_type< QString, GraphicsLayerNameConstraint, GraphicsLayerNameVerifier > GraphicsLayerName
Definition: graphicslayername.h:78
GraphicsLayerName mLastLayerName
Definition: symboleditorstate_drawtextbase.h:106
QString mLastText
Definition: symboleditorstate_drawtextbase.h:109
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
bool finishAddText(const Point &pos) noexcept
Definition: symboleditorstate_drawtextbase.cpp:212
Alignment getAlignment() const noexcept
Definition: symboleditorstate_drawtextbase.cpp:268
SymbolEditorFsm::Context Context
Definition: symboleditorstate.h:53
TextGraphicsItem * mCurrentGraphicsItem
Definition: symboleditorstate_drawtextbase.h:103
void heightEditValueChanged(const PositiveLength &value) noexcept
Definition: symboleditorstate_drawtextbase.cpp:284
bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexceptoverride
Definition: symboleditorstate_drawtextbase.cpp:136
bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexceptoverride
Definition: symboleditorstate_drawtextbase.cpp:148
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:78
bool processGraphicsSceneRightMouseButtonReleased(QGraphicsSceneMouseEvent &e) noexceptoverride
Definition: symboleditorstate_drawtextbase.cpp:159
bool processRotateCcw() noexceptoverride
Definition: symboleditorstate_drawtextbase.cpp:175
bool startAddText(const Point &pos) noexcept
Definition: symboleditorstate_drawtextbase.cpp:189
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:780
bool entry() noexceptoverride
Definition: symboleditorstate_drawtextbase.cpp:72
The Text class.
Definition: text.h:48
QScopedPointer< CmdTextEdit > mEditCmd
Definition: symboleditorstate_drawtextbase.h:101
bool exit() noexceptoverride
Definition: symboleditorstate_drawtextbase.cpp:120
The TextGraphicsItem class is the graphical representation of a librepcb::Text.
Definition: textgraphicsitem.h:48
Angle mLastRotation
Definition: symboleditorstate_drawtextbase.h:107
The CmdTextEdit class.
Definition: cmdtextedit.h:43
Point mStartPos
Definition: symboleditorstate_drawtextbase.h:100
bool processRotateCw() noexceptoverride
Definition: symboleditorstate_drawtextbase.cpp:165
bool abortAddText() noexcept
Definition: symboleditorstate_drawtextbase.cpp:231
void textComboBoxValueChanged(const QString &value) noexcept
Definition: symboleditorstate_drawtextbase.cpp:292