20#ifndef LIBREPCB_EDITOR_BOARDEDITORSTATE_ADDHOLE_H
21#define LIBREPCB_EDITOR_BOARDEDITORSTATE_ADDHOLE_H
41class CmdBoardHoleEdit;
42class PositiveLengthEdit;
62 virtual
bool entry() noexcept override;
63 virtual
bool exit() noexcept override;
67 QGraphicsSceneMouseEvent& e) noexcept override;
69 QGraphicsSceneMouseEvent& e) noexcept override;
71 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:79
The "add hole" state/tool of the board editor.
Definition: boardeditorstate_addhole.h:51
virtual bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition: boardeditorstate_addhole.cpp:107
BI_Hole * mCurrentHoleToPlace
Definition: boardeditorstate_addhole.h:91
PositiveLength mLastDiameter
Definition: boardeditorstate_addhole.h:87
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
bool abortCommand(bool showErrMsgBox) noexcept
Definition: boardeditorstate_addhole.cpp:185
BoardEditorState_AddHole()=delete
bool mIsUndoCmdActive
Definition: boardeditorstate_addhole.h:86
virtual bool exit() noexcept override
Definition: boardeditorstate_addhole.cpp:92
QScopedPointer< CmdBoardHoleEdit > mCurrentHoleEditCmd
Definition: boardeditorstate_addhole.h: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:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
FSM Context.
Definition: boardeditorfsm.h:88