20#ifndef LIBREPCB_EDITOR_BOARDEDITORFSMADAPTER_H
21#define LIBREPCB_EDITOR_BOARDEDITORFSMADAPTER_H
43class BoardEditorState;
44class BoardEditorState_AddDevice;
45class BoardEditorState_AddHole;
46class BoardEditorState_AddStrokeText;
47class BoardEditorState_AddVia;
48class BoardEditorState_DrawPlane;
49class BoardEditorState_DrawPolygon;
50class BoardEditorState_DrawTrace;
51class BoardEditorState_DrawZone;
52class BoardEditorState_Measure;
53class BoardEditorState_Select;
54class BoardGraphicsScene;
82 Q_DECLARE_FLAGS(Features,
Feature)
87 const
std::optional<Qt::CursorShape>& shape) noexcept = 0;
93 bool circle) noexcept = 0;
95 const
Point& pos, qreal multiplier) const noexcept = 0;
98 const QSet<const
NetSignal*>& sigs) noexcept = 0;
101 int timeoutMs = -1) noexcept = 0;
The NetSignal class.
Definition netsignal.h:50
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
Interface for the integration of the board editor FSM.
Definition boardeditorfsmadapter.h:63
virtual void fsmToolEnter(BoardEditorState_Select &state) noexcept=0
virtual bool fsmGetIgnoreLocks() const noexcept=0
virtual void fsmSetHighlightedNetSignals(const QSet< const NetSignal * > &sigs) noexcept=0
virtual void fsmToolLeave() noexcept=0
virtual void fsmSetViewRuler(const std::optional< std::pair< Point, Point > > &pos) noexcept=0
virtual void fsmSetViewInfoBoxText(const QString &text) noexcept=0
virtual void fsmAbortBlockingToolsInOtherEditors() 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 BoardGraphicsScene * fsmGetGraphicsScene() noexcept=0
Feature
Definition boardeditorfsmadapter.h:65
The "add device" state/tool of the board editor.
Definition boardeditorstate_adddevice.h:53
The "add hole" state/tool of the board editor.
Definition boardeditorstate_addhole.h:52
The "add stroke text" state/tool of the board editor.
Definition boardeditorstate_addstroketext.h:52
The "add via" state/tool of the board editor.
Definition boardeditorstate_addvia.h:54
The "draw plane" state/tool of the board editor.
Definition boardeditorstate_drawplane.h:54
The "draw polygon" state/tool of the board editor.
Definition boardeditorstate_drawpolygon.h:52
The "draw trace" state/tool of the board editor.
Definition boardeditorstate_drawtrace.h:55
The "draw zone" state/tool of the board editor.
Definition boardeditorstate_drawzone.h:55
The "measure" state/tool of the board editor.
Definition boardeditorstate_measure.h:45
The "select" state/tool of the board editor (default state)
Definition boardeditorstate_select.h:69
The BoardGraphicsScene class.
Definition boardgraphicsscene.h:77
Definition occmodel.cpp:77