20#ifndef LIBREPCB_EDITOR_BOARDEDITORSTATE_ADDHOLE_H
21#define LIBREPCB_EDITOR_BOARDEDITORSTATE_ADDHOLE_H
43class CmdBoardHoleEdit;
44class PositiveLengthEdit;
64 virtual
bool entry() noexcept override;
65 virtual
bool exit() noexcept override;
69 QGraphicsSceneMouseEvent& e) noexcept override;
71 QGraphicsSceneMouseEvent& e) noexcept override;
73 QGraphicsSceneMouseEvent& e) noexcept override;
The BI_Hole class.
Definition bi_hole.h:46
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The "add hole" state/tool of the board editor.
Definition boardeditorstate_addhole.h:53
virtual bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_addhole.cpp:107
BI_Hole * mCurrentHoleToPlace
Definition boardeditorstate_addhole.h:93
PositiveLength mLastDiameter
Definition boardeditorstate_addhole.h:89
void diameterEditValueChanged(const PositiveLength &value) noexcept
Definition boardeditorstate_addhole.cpp:207
virtual ~BoardEditorState_AddHole() noexcept
Definition boardeditorstate_addhole.cpp:57
bool addHole(const Point &pos) noexcept
Definition boardeditorstate_addhole.cpp:130
bool updatePosition(const Point &pos) noexcept
Definition boardeditorstate_addhole.cpp:157
BoardEditorState_AddHole(const BoardEditorState_AddHole &other)=delete
std::unique_ptr< CmdBoardHoleEdit > mCurrentHoleEditCmd
Definition boardeditorstate_addhole.h:94
bool abortCommand(bool showErrMsgBox) noexcept
Definition boardeditorstate_addhole.cpp:185
BoardEditorState_AddHole()=delete
bool mIsUndoCmdActive
Definition boardeditorstate_addhole.h:88
virtual bool exit() noexcept override
Definition boardeditorstate_addhole.cpp:92
bool fixPosition(const Point &pos) noexcept
Definition boardeditorstate_addhole.cpp:166
virtual bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_addhole.cpp:113
virtual bool entry() noexcept override
Definition boardeditorstate_addhole.cpp:64
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked(QGraphicsSceneMouseEvent &e) noexcept override
Definition boardeditorstate_addhole.cpp:121
The board editor state base class.
Definition boardeditorstate.h:59
The CmdBoardHoleEdit class.
Definition cmdboardholeedit.h:49
Definition occmodel.cpp:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
FSM Context.
Definition boardeditorfsm.h:88