20#ifndef LIBREPCB_EDITOR_SCHEMATICEDITORFSMADAPTER_H
21#define LIBREPCB_EDITOR_SCHEMATICEDITORFSMADAPTER_H
43class SchematicEditorState;
44class SchematicEditorState_AddComponent;
45class SchematicEditorState_AddImage;
46class SchematicEditorState_AddLabel;
47class SchematicEditorState_AddText;
48class SchematicEditorState_DrawBus;
49class SchematicEditorState_DrawPolygon;
50class SchematicEditorState_DrawWire;
51class SchematicEditorState_Measure;
52class SchematicEditorState_Select;
53class SchematicGraphicsScene;
76 Q_DECLARE_FLAGS(Features,
Feature)
82 const
std::optional<Qt::CursorShape>& shape) noexcept = 0;
88 bool circle) noexcept = 0;
90 const
Point& pos, qreal multiplier) const noexcept = 0;
94 const QSet<const
NetSignal*>& sigs) noexcept = 0;
97 int timeoutMs = -1) noexcept = 0;
122Q_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:62
virtual QWidget * fsmGetParentWidget() noexcept=0
virtual bool fsmGetIgnoreLocks() const noexcept=0
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:64
The SchematicEditorState_AddComponent class.
Definition schematiceditorstate_addcomponent.h:58
The SchematicEditorState_AddImage class.
Definition schematiceditorstate_addimage.h:52
The SchematicEditorState_AddLabel class.
Definition schematiceditorstate_addlabel.h:52
The SchematicEditorState_AddText class.
Definition schematiceditorstate_addtext.h:56
The SchematicEditorState_DrawBus class.
Definition schematiceditorstate_drawbus.h:56
The SchematicEditorState_DrawPolygon class.
Definition schematiceditorstate_drawpolygon.h:56
The SchematicEditorState_DrawWire class.
Definition schematiceditorstate_drawwire.h:55
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:63
The SchematicGraphicsScene class.
Definition schematicgraphicsscene.h:76
Definition occmodel.cpp:77