20#ifndef LIBREPCB_EDITOR_SYMBOLEDITORFSMADAPTER_H
21#define LIBREPCB_EDITOR_SYMBOLEDITORFSMADAPTER_H
40class SymbolEditorState;
41class SymbolEditorState_AddImage;
42class SymbolEditorState_AddNames;
43class SymbolEditorState_AddPins;
44class SymbolEditorState_AddValues;
45class SymbolEditorState_DrawArc;
46class SymbolEditorState_DrawCircle;
47class SymbolEditorState_DrawLine;
48class SymbolEditorState_DrawPolygon;
49class SymbolEditorState_DrawRect;
50class SymbolEditorState_DrawText;
51class SymbolEditorState_Measure;
52class SymbolEditorState_Select;
53class SymbolGraphicsItem;
76 Q_DECLARE_FLAGS(Features,
Feature)
83 const
std::optional<Qt::CursorShape>& shape) noexcept = 0;
89 bool circle) noexcept = 0;
91 const
Point& pos, qreal multiplier) const noexcept = 0;
94 int timeoutMs = -1) noexcept = 0;
120Q_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:62
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 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:64
virtual void fsmToolEnter(SymbolEditorState_Select &state) noexcept=0
The SymbolEditorState_AddImage class.
Definition symboleditorstate_addimage.h:50
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:58
The SymbolGraphicsItem class.
Definition symbolgraphicsitem.h:55
Definition occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810