20#ifndef LIBREPCB_EDITOR_SYMBOLEDITORSTATE_DRAWCIRCLE_H
21#define LIBREPCB_EDITOR_SYMBOLEDITORSTATE_DRAWCIRCLE_H
43class CircleGraphicsItem;
65 bool entry() noexcept override;
66 bool exit() noexcept override;
68 const noexcept override;
72 QGraphicsSceneMouseEvent& e) noexcept override;
74 QGraphicsSceneMouseEvent& e) noexcept override;
The Circle class.
Definition: circle.h:46
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 CircleGraphicsItem class.
Definition: circlegraphicsitem.h:48
The CmdCircleEdit class.
Definition: cmdcircleedit.h:51
The SymbolEditorState_DrawCircle class.
Definition: symboleditorstate_drawcircle.h:53
bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition: symboleditorstate_drawcircle.cpp:141
bool updateCircleDiameter(const Point &pos) noexcept
Definition: symboleditorstate_drawcircle.cpp:198
std::shared_ptr< Circle > mCurrentCircle
Definition: symboleditorstate_drawcircle.h:94
const Layer * mLastLayer
Definition: symboleditorstate_drawcircle.h:98
~SymbolEditorState_DrawCircle() noexcept
Definition: symboleditorstate_drawcircle.cpp:62
QScopedPointer< CmdCircleEdit > mEditCmd
Definition: symboleditorstate_drawcircle.h:93
bool mLastFill
Definition: symboleditorstate_drawcircle.h:100
bool startAddCircle(const Point &pos) noexcept
Definition: symboleditorstate_drawcircle.cpp:175
bool processAbortCommand() noexcept override
Definition: symboleditorstate_drawcircle.cpp:163
SymbolEditorState_DrawCircle()=delete
void fillCheckBoxCheckedChanged(bool checked) noexcept
Definition: symboleditorstate_drawcircle.cpp:258
bool abortAddCircle() noexcept
Definition: symboleditorstate_drawcircle.cpp:228
void grabAreaCheckBoxCheckedChanged(bool checked) noexcept
Definition: symboleditorstate_drawcircle.cpp:266
std::shared_ptr< CircleGraphicsItem > mCurrentGraphicsItem
Definition: symboleditorstate_drawcircle.h:95
bool mLastGrabArea
Definition: symboleditorstate_drawcircle.h:101
void layerComboBoxValueChanged(const Layer &layer) noexcept
Definition: symboleditorstate_drawcircle.cpp:242
bool exit() noexcept override
Definition: symboleditorstate_drawcircle.cpp:118
UnsignedLength mLastLineWidth
Definition: symboleditorstate_drawcircle.h:99
bool finishAddCircle(const Point &pos) noexcept
Definition: symboleditorstate_drawcircle.cpp:209
QSet< EditorWidgetBase::Feature > getAvailableFeatures() const noexcept override
Definition: symboleditorstate_drawcircle.cpp:131
void lineWidthEditValueChanged(const UnsignedLength &value) noexcept
Definition: symboleditorstate_drawcircle.cpp:250
bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexcept override
Definition: symboleditorstate_drawcircle.cpp:152
bool entry() noexcept override
Definition: symboleditorstate_drawcircle.cpp:70
SymbolEditorState_DrawCircle(const SymbolEditorState_DrawCircle &other)=delete
The SymbolEditorState class is the base class of all symbol editor FSM states.
Definition: symboleditorstate.h:54
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696
Definition: symboleditorfsm.h:76