20#ifndef LIBREPCB_EDITOR_SYMBOLEDITORFSMADAPTER_H
21#define LIBREPCB_EDITOR_SYMBOLEDITORFSMADAPTER_H
40class SymbolEditorState;
41class SymbolEditorState_AddNames;
42class SymbolEditorState_AddPins;
43class SymbolEditorState_AddValues;
44class SymbolEditorState_DrawArc;
45class SymbolEditorState_DrawCircle;
46class SymbolEditorState_DrawLine;
47class SymbolEditorState_DrawPolygon;
48class SymbolEditorState_DrawRect;
49class SymbolEditorState_DrawText;
50class SymbolEditorState_Measure;
51class SymbolEditorState_Select;
52class SymbolGraphicsItem;
75 Q_DECLARE_FLAGS(Features,
Feature)
81 const
std::optional<Qt::CursorShape>& shape) noexcept = 0;
87 bool circle) noexcept = 0;
89 const
Point& pos, qreal multiplier) const noexcept = 0;
92 int timeoutMs = -1) noexcept = 0;
117Q_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 Symbol editor FSM.
Definition symboleditorfsmadapter.h:61
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 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 SymbolGraphicsItem * fsmGetGraphicsItem() 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 symboleditorfsmadapter.h:63
virtual void fsmToolEnter(SymbolEditorState_Select &state) noexcept=0
The SymbolEditorState_AddNames class.
Definition symboleditorstate_addnames.h:43
The SymbolEditorState_AddPins class.
Definition symboleditorstate_addpins.h:50
The SymbolEditorState_AddValues class.
Definition symboleditorstate_addvalues.h:44
The SymbolEditorState_DrawArc class.
Definition symboleditorstate_drawarc.h:44
The SymbolEditorState_DrawCircle class.
Definition symboleditorstate_drawcircle.h:50
The SymbolEditorState_DrawLine class.
Definition symboleditorstate_drawline.h:44
The SymbolEditorState_DrawPolygon class.
Definition symboleditorstate_drawpolygon.h:44
The SymbolEditorState_DrawRect class.
Definition symboleditorstate_drawrect.h:44
The SymbolEditorState_DrawText class.
Definition symboleditorstate_drawtext.h:43
The SymbolEditorState_Measure class.
Definition symboleditorstate_measure.h:45
The SymbolEditorState_Select class.
Definition symboleditorstate_select.h:56
The SymbolGraphicsItem class.
Definition symbolgraphicsitem.h:56
Definition occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810