20#ifndef LIBREPCB_EDITOR_PACKAGEEDITORFSMADAPTER_H
21#define LIBREPCB_EDITOR_PACKAGEEDITORFSMADAPTER_H
39class FootprintGraphicsItem;
41class PackageEditorState;
42class PackageEditorState_AddHoles;
43class PackageEditorState_AddNames;
44class PackageEditorState_AddPads;
45class PackageEditorState_AddValues;
46class PackageEditorState_DrawArc;
47class PackageEditorState_DrawCircle;
48class PackageEditorState_DrawLine;
49class PackageEditorState_DrawPolygon;
50class PackageEditorState_DrawRect;
51class PackageEditorState_DrawText;
52class PackageEditorState_DrawZone;
53class PackageEditorState_Measure;
54class PackageEditorState_ReNumberPads;
55class PackageEditorState_Select;
80 Q_DECLARE_FLAGS(Features,
Feature)
86 const
std::optional<Qt::CursorShape>& shape) noexcept = 0;
92 bool circle) noexcept = 0;
94 const
Point& pos, qreal multiplier) const noexcept = 0;
97 int timeoutMs = -1) noexcept = 0;
126Q_DECLARE_OPERATORS_FOR_FLAGS(
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The GraphicsScene class.
Definition graphicsscene.h:64
Interface for the integration of the Package editor FSM.
Definition packageeditorfsmadapter.h:64
virtual QWidget * fsmGetParentWidget() noexcept=0
virtual void fsmToolLeave() noexcept=0
virtual void fsmSetViewRuler(const std::optional< std::pair< Point, Point > > &pos) noexcept=0
virtual PositiveLength fsmGetGridInterval() const noexcept=0
virtual void fsmSetViewInfoBoxText(const QString &text) noexcept=0
virtual void fsmToolEnter(PackageEditorState_Select &state) noexcept=0
virtual QPainterPath fsmCalcPosWithTolerance(const Point &pos, qreal multiplier) const noexcept=0
virtual void fsmSetViewGrayOut(bool grayOut) noexcept=0
virtual void fsmSetViewCursor(const std::optional< Qt::CursorShape > &shape) noexcept=0
virtual void fsmSetFeatures(Features features) noexcept=0
virtual void fsmSetStatusBarMessage(const QString &message, int timeoutMs=-1) noexcept=0
virtual void fsmSetSceneCursor(const Point &pos, bool cross, bool circle) noexcept=0
virtual Point fsmMapGlobalPosToScenePos(const QPoint &pos) const noexcept=0
virtual GraphicsScene * fsmGetGraphicsScene() noexcept=0
Feature
Definition packageeditorfsmadapter.h:66
The PackageEditorState_AddHoles class.
Definition packageeditorstate_addholes.h:50
The PackageEditorState_AddNames class.
Definition packageeditorstate_addnames.h:44
The PackageEditorState_AddPads class.
Definition packageeditorstate_addpads.h:50
The PackageEditorState_AddValues class.
Definition packageeditorstate_addvalues.h:44
The PackageEditorState_DrawArc class.
Definition packageeditorstate_drawarc.h:44
The PackageEditorState_DrawCircle class.
Definition packageeditorstate_drawcircle.h:50
The PackageEditorState_DrawLine class.
Definition packageeditorstate_drawline.h:44
The PackageEditorState_DrawPolygon class.
Definition packageeditorstate_drawpolygon.h:44
The PackageEditorState_DrawRect class.
Definition packageeditorstate_drawrect.h:44
The PackageEditorState_DrawText class.
Definition packageeditorstate_drawtext.h:44
The PackageEditorState_DrawZone class.
Definition packageeditorstate_drawzone.h:50
The PackageEditorState_Measure class.
Definition packageeditorstate_measure.h:45
The PackageEditorState_ReNumberPads class.
Definition packageeditorstate_renumberpads.h:51
The PackageEditorState_Select class.
Definition packageeditorstate_select.h:58
Definition occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810