20#ifndef LIBREPCB_EDITOR_SCHEMATICEDITORFSMADAPTER_H
21#define LIBREPCB_EDITOR_SCHEMATICEDITORFSMADAPTER_H
43class SchematicEditorState;
44class SchematicEditorState_AddComponent;
45class SchematicEditorState_AddNetLabel;
46class SchematicEditorState_AddText;
47class SchematicEditorState_DrawPolygon;
48class SchematicEditorState_DrawWire;
49class SchematicEditorState_Measure;
50class SchematicEditorState_Select;
51class SchematicGraphicsScene;
74 Q_DECLARE_FLAGS(Features,
Feature)
78 const
std::optional<Qt::CursorShape>& shape) noexcept = 0;
84 bool circle) noexcept = 0;
86 const
Point& pos, qreal multiplier) const noexcept = 0;
90 const QSet<const
NetSignal*>& sigs) noexcept = 0;
93 int timeoutMs = -1) noexcept = 0;
117Q_DECLARE_OPERATORS_FOR_FLAGS(
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 schematic editor FSM.
Definition schematiceditorfsmadapter.h:60
virtual void fsmToolEnter(SchematicEditorState_Select &state) 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 fsmZoomToSceneRect(const QRectF &r) 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 SchematicGraphicsScene * fsmGetGraphicsScene() noexcept=0
virtual Point fsmMapGlobalPosToScenePos(const QPoint &pos) const noexcept=0
Feature
Definition schematiceditorfsmadapter.h:62
The SchematicEditorState_AddComponent class.
Definition schematiceditorstate_addcomponent.h:58
The SchematicEditorState_AddNetLabel class.
Definition schematiceditorstate_addnetlabel.h:50
The SchematicEditorState_AddText class.
Definition schematiceditorstate_addtext.h:56
The SchematicEditorState_DrawPolygon class.
Definition schematiceditorstate_drawpolygon.h:56
The SchematicEditorState_DrawWire class.
Definition schematiceditorstate_drawwire.h:52
The "measure" state/tool of the schematic editor.
Definition schematiceditorstate_measure.h:45
The "select" state/tool of the schematic editor (default state)
Definition schematiceditorstate_select.h:60
The SchematicGraphicsScene class.
Definition schematicgraphicsscene.h:67
Definition occmodel.cpp:77