20#ifndef LIBREPCB_EDITOR_BOARDEDITORSTATE_DRAWZONE_H
21#define LIBREPCB_EDITOR_BOARDEDITORSTATE_DRAWZONE_H
44class CmdBoardZoneEdit;
64 virtual
bool entry() noexcept override;
65 virtual
bool exit() noexcept override;
70 QGraphicsSceneMouseEvent& e) noexcept override;
72 QGraphicsSceneMouseEvent& e) noexcept override;
74 QGraphicsSceneMouseEvent& e) noexcept override;
The BI_Zone class.
Definition: bi_zone.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 Zone class.
Definition: zone.h:43
The "draw zone" state/tool of the board editor.
Definition: boardeditorstate_drawzone.h:53
virtual bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition: boardeditorstate_drawzone.cpp:170
virtual ~BoardEditorState_DrawZone() noexcept
Definition: boardeditorstate_drawzone.cpp:62
const Layer * mLastLayer
Definition: boardeditorstate_drawzone.h:90
Point mLastVertexPos
Definition: boardeditorstate_drawzone.h:92
virtual bool processSwitchToBoard(int index) noexcept override
Definition: boardeditorstate_drawzone.cpp:193
virtual bool processAbortCommand() noexcept override
Definition: boardeditorstate_drawzone.cpp:160
BoardEditorState_DrawZone(const BoardEditorState_DrawZone &other)=delete
BI_Zone * mCurrentZone
Definition: boardeditorstate_drawzone.h:96
BoardEditorState_DrawZone()=delete
bool abortCommand(bool showErrMsgBox) noexcept
Definition: boardeditorstate_drawzone.cpp:292
bool mIsUndoCmdActive
Definition: boardeditorstate_drawzone.h:89
virtual bool exit() noexcept override
Definition: boardeditorstate_drawzone.cpp:145
bool addSegment(const Point &pos) noexcept
Definition: boardeditorstate_drawzone.cpp:235
QScopedPointer< CmdBoardZoneEdit > mCurrentZoneEditCmd
Definition: boardeditorstate_drawzone.h:97
bool startAddZone(const Point &pos) noexcept
Definition: boardeditorstate_drawzone.cpp:202
Zone::Rules mLastRules
Definition: boardeditorstate_drawzone.h:91
virtual bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexcept override
Definition: boardeditorstate_drawzone.cpp:176
bool updateLastVertexPosition(const Point &pos) noexcept
Definition: boardeditorstate_drawzone.cpp:280
virtual bool entry() noexcept override
Definition: boardeditorstate_drawzone.cpp:69
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked(QGraphicsSceneMouseEvent &e) noexcept override
Definition: boardeditorstate_drawzone.cpp:188
The board editor state base class.
Definition: boardeditorstate.h:59
The CmdBoardZoneEdit class.
Definition: cmdboardzoneedit.h:49
Definition: occmodel.cpp:77
FSM Context.
Definition: boardeditorfsm.h:88