20#ifndef LIBREPCB_EDITOR_SCHEMATICEDITORSTATE_DRAWPOLYGON_H
21#define LIBREPCB_EDITOR_SCHEMATICEDITORSTATE_DRAWPOLYGON_H
46class UnsignedLengthEdit;
67 virtual
bool entry() noexcept override;
68 virtual
bool exit() noexcept override;
73 QGraphicsSceneMouseEvent& e) noexcept override;
75 QGraphicsSceneMouseEvent& e) noexcept override;
77 QGraphicsSceneMouseEvent& e) noexcept override;
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 Polygon class.
Definition: polygon.h:45
The SI_Polygon class represents a polygon in a schematic.
Definition: si_polygon.h:47
The CmdPolygonEdit class.
Definition: cmdpolygonedit.h:51
The SchematicEditorState_DrawPolygon class.
Definition: schematiceditorstate_drawpolygon.h:55
QScopedPointer< CmdPolygonEdit > mCurrentPolygonEditCmd
Definition: schematiceditorstate_drawpolygon.h:102
virtual bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition: schematiceditorstate_drawpolygon.cpp:144
void layerComboBoxLayerChanged(const Layer &layer) noexcept
Definition: schematiceditorstate_drawpolygon.cpp:288
virtual ~SchematicEditorState_DrawPolygon() noexcept
Definition: schematiceditorstate_drawpolygon.cpp:68
bool startAddPolygon(const Point &pos) noexcept
Definition: schematiceditorstate_drawpolygon.cpp:178
SchematicEditorState_DrawPolygon(const SchematicEditorState_DrawPolygon &other)=delete
void filledCheckBoxCheckedChanged(bool checked) noexcept
Definition: schematiceditorstate_drawpolygon.cpp:305
virtual bool processAbortCommand() noexcept override
Definition: schematiceditorstate_drawpolygon.cpp:134
SchematicEditorState_DrawPolygon()=delete
bool abortCommand(bool showErrMsgBox) noexcept
Definition: schematiceditorstate_drawpolygon.cpp:265
bool mIsUndoCmdActive
Definition: schematiceditorstate_drawpolygon.h:95
virtual bool processSwitchToSchematicPage(int index) noexcept override
Definition: schematiceditorstate_drawpolygon.cpp:168
Polygon mLastPolygonProperties
Definition: schematiceditorstate_drawpolygon.h:96
virtual bool exit() noexcept override
Definition: schematiceditorstate_drawpolygon.cpp:119
bool addSegment(const Point &pos) noexcept
Definition: schematiceditorstate_drawpolygon.cpp:211
void widthEditValueChanged(const UnsignedLength &value) noexcept
Definition: schematiceditorstate_drawpolygon.cpp:296
SI_Polygon * mCurrentPolygon
Definition: schematiceditorstate_drawpolygon.h:101
virtual bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexcept override
Definition: schematiceditorstate_drawpolygon.cpp:151
bool updateLastVertexPosition(const Point &pos) noexcept
Definition: schematiceditorstate_drawpolygon.cpp:253
Point mLastSegmentPos
Definition: schematiceditorstate_drawpolygon.h:97
virtual bool entry() noexcept override
Definition: schematiceditorstate_drawpolygon.cpp:75
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked(QGraphicsSceneMouseEvent &e) noexcept override
Definition: schematiceditorstate_drawpolygon.cpp:163
The schematic editor state base class.
Definition: schematiceditorstate.h:57
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696
FSM Context.
Definition: schematiceditorfsm.h:81