20#ifndef LIBREPCB_EDITOR_PACKAGEEDITORSTATE_ADDHOLES_H
21#define LIBREPCB_EDITOR_PACKAGEEDITORSTATE_ADDHOLES_H
43class HoleGraphicsItem;
64 bool entry() noexcept override;
65 bool exit() noexcept override;
67 const noexcept override;
71 QGraphicsSceneMouseEvent& e) noexcept override;
73 QGraphicsSceneMouseEvent& e) noexcept override;
The Hole class.
Definition: hole.h:45
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The CmdHoleEdit class.
Definition: cmdholeedit.h:53
The HoleGraphicsItem class is the graphical representation of a librepcb::Hole.
Definition: holegraphicsitem.h:48
The PackageEditorState_AddHoles class.
Definition: packageeditorstate_addholes.h:52
bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition: packageeditorstate_addholes.cpp:116
QScopedPointer< CmdHoleEdit > mEditCmd
Definition: packageeditorstate_addholes.h:86
std::shared_ptr< HoleGraphicsItem > mCurrentGraphicsItem
Definition: packageeditorstate_addholes.h:88
PositiveLength mLastDiameter
Definition: packageeditorstate_addholes.h:91
std::shared_ptr< Hole > mCurrentHole
Definition: packageeditorstate_addholes.h:87
void diameterEditValueChanged(const PositiveLength &value) noexcept
Definition: packageeditorstate_addholes.cpp:194
PackageEditorState_AddHoles()=delete
~PackageEditorState_AddHoles() noexcept
Definition: packageeditorstate_addholes.cpp:58
bool startAddHole(const Point &pos) noexcept
Definition: packageeditorstate_addholes.cpp:142
bool exit() noexcept override
Definition: packageeditorstate_addholes.cpp:93
bool finishAddHole(const Point &pos) noexcept
Definition: packageeditorstate_addholes.cpp:165
PackageEditorState_AddHoles(const PackageEditorState_AddHoles &other)=delete
QSet< EditorWidgetBase::Feature > getAvailableFeatures() const noexcept override
Definition: packageeditorstate_addholes.cpp:106
bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexcept override
Definition: packageeditorstate_addholes.cpp:128
bool abortAddHole() noexcept
Definition: packageeditorstate_addholes.cpp:180
bool entry() noexcept override
Definition: packageeditorstate_addholes.cpp:66
The PackageEditorState class is the base class of all package editor FSM states.
Definition: packageeditorstate.h:52
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
Definition: packageeditorfsm.h:90