20#ifndef LIBREPCB_EDITOR_SYMBOLEDITORFSM_H
21#define LIBREPCB_EDITOR_SYMBOLEDITORFSM_H
44class SymbolEditorFsmAdapter;
45class SymbolEditorState;
47struct GraphicsSceneKeyEvent;
48struct GraphicsSceneMouseEvent;
129 const QString& format = QString(),
130 const QString& basename = QString()) noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The LengthUnit class represents a length unit (millimeters, inches,...) and provides some useful meth...
Definition lengthunit.h:62
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The Symbol class represents the part of a component which is added to schematics.
Definition symbol.h:56
Interface for the integration of the Symbol editor FSM.
Definition symboleditorfsmadapter.h:62
The SymbolEditorFsm class is the finit state machine (FSM) of the symbol editor.
Definition symboleditorfsm.h:58
SymbolEditorFsm(const SymbolEditorFsm &other)=delete
bool processStartAddingNames() noexcept
Definition symboleditorfsm.cpp:255
bool setNextState(State state) noexcept
Definition symboleditorfsm.cpp:335
bool processStartAddingValues() noexcept
Definition symboleditorfsm.cpp:259
bool processStartSelecting() noexcept
Definition symboleditorfsm.cpp:240
bool processStartDrawLines() noexcept
Definition symboleditorfsm.cpp:263
bool processSelectAll() noexcept
Definition symboleditorfsm.cpp:152
bool processStartDrawRects() noexcept
Definition symboleditorfsm.cpp:271
void handlePasteRequest() noexcept
Definition symboleditorfsm.cpp:390
QMap< State, SymbolEditorState * > mStates
Definition symboleditorfsm.h:147
bool processRemove() noexcept
Definition symboleditorfsm.cpp:216
bool processKeyPressed(const GraphicsSceneKeyEvent &e) noexcept
Definition symboleditorfsm.cpp:80
bool processCopy() noexcept
Definition symboleditorfsm.cpp:168
SymbolEditorState * getCurrentState() const noexcept
Definition symboleditorfsm.cpp:331
bool processEditProperties() noexcept
Definition symboleditorfsm.cpp:224
State mPreviousState
Definition symboleditorfsm.h:149
State
Definition symboleditorfsm.h:62
bool processCut() noexcept
Definition symboleditorfsm.cpp:160
bool leaveCurrentState() noexcept
Definition symboleditorfsm.cpp:349
bool switchToPreviousState() noexcept
Definition symboleditorfsm.cpp:382
bool processStartDrawTexts() noexcept
Definition symboleditorfsm.cpp:283
~SymbolEditorFsm() noexcept
Definition symboleditorfsm.cpp:70
bool processStartDxfImport() noexcept
Definition symboleditorfsm.cpp:303
bool processGraphicsSceneRightMouseButtonReleased(const GraphicsSceneMouseEvent &e) noexcept
Definition symboleditorfsm.cpp:135
bool processAbortCommand() noexcept
Definition symboleditorfsm.cpp:232
bool processKeyReleased(const GraphicsSceneKeyEvent &e) noexcept
Definition symboleditorfsm.cpp:89
bool processGridIntervalChanged(const PositiveLength &interval) noexcept
Definition symboleditorfsm.cpp:317
bool processGraphicsSceneLeftMouseButtonPressed(const GraphicsSceneMouseEvent &e) noexcept
Definition symboleditorfsm.cpp:107
bool processGraphicsSceneLeftMouseButtonDoubleClicked(const GraphicsSceneMouseEvent &e) noexcept
Definition symboleditorfsm.cpp:125
bool processStartDrawCircles() noexcept
Definition symboleditorfsm.cpp:279
bool processMove(const Point &delta) noexcept
Definition symboleditorfsm.cpp:184
bool enterNextState(State state) noexcept
Definition symboleditorfsm.cpp:367
State mCurrentState
Definition symboleditorfsm.h:148
bool processStartAddingSymbolPins(bool import) noexcept
Definition symboleditorfsm.cpp:244
bool processGraphicsSceneMouseMoved(const GraphicsSceneMouseEvent &e) noexcept
Definition symboleditorfsm.cpp:98
bool processRotate(const Angle &rotation) noexcept
Definition symboleditorfsm.cpp:192
bool processStartMeasure() noexcept
Definition symboleditorfsm.cpp:313
bool processStartAddingImage(const QByteArray &data=QByteArray(), const QString &format=QString(), const QString &basename=QString()) noexcept
Definition symboleditorfsm.cpp:287
bool processMirror(Qt::Orientation orientation) noexcept
Definition symboleditorfsm.cpp:200
bool processStartDrawArcs() noexcept
Definition symboleditorfsm.cpp:267
bool processGraphicsSceneLeftMouseButtonReleased(const GraphicsSceneMouseEvent &e) noexcept
Definition symboleditorfsm.cpp:116
bool processStartDrawPolygons() noexcept
Definition symboleditorfsm.cpp:275
bool processPaste() noexcept
Definition symboleditorfsm.cpp:176
bool processSnapToGrid() noexcept
Definition symboleditorfsm.cpp:208
The SymbolEditorState class is the base class of all symbol editor FSM states.
Definition symboleditorstate.h:56
The UndoStack class holds UndoCommand objects and provides undo/redo commands.
Definition undostack.h:106
Definition occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
Definition graphicsscene.h:52
Definition graphicsscene.h:45
Definition symboleditorfsm.h:79
const bool readOnly
Definition symboleditorfsm.h:82
Symbol & symbol
Definition symboleditorfsm.h:80
SymbolEditorFsmAdapter & adapter
Definition symboleditorfsm.h:84
const LengthUnit & lengthUnit
Definition symboleditorfsm.h:83
UndoStack & undoStack
Definition symboleditorfsm.h:81