20#ifndef LIBREPCB_EDITOR_SYMBOLEDITORFSM_H
21#define LIBREPCB_EDITOR_SYMBOLEDITORFSM_H
26#include "../../editorwidgetbase.h"
41class SymbolEditorFsmAdapter;
42class SymbolEditorState;
44struct GraphicsSceneKeyEvent;
45struct GraphicsSceneMouseEvent;
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:55
Interface for the integration of the Symbol editor FSM.
Definition symboleditorfsmadapter.h:61
The SymbolEditorFsm class is the finit state machine (FSM) of the symbol editor.
Definition symboleditorfsm.h:55
SymbolEditorFsm(const SymbolEditorFsm &other)=delete
bool processStartAddingNames() noexcept
Definition symboleditorfsm.cpp:289
bool setNextState(State state) noexcept
Definition symboleditorfsm.cpp:353
bool processStartAddingValues() noexcept
Definition symboleditorfsm.cpp:293
EditorWidgetBase::Tool getCurrentTool() const noexcept
Definition symboleditorfsm.cpp:78
bool processStartSelecting() noexcept
Definition symboleditorfsm.cpp:274
bool processStartDrawLines() noexcept
Definition symboleditorfsm.cpp:297
bool processSelectAll() noexcept
Definition symboleditorfsm.cpp:186
bool processStartDrawRects() noexcept
Definition symboleditorfsm.cpp:305
void handlePasteRequest() noexcept
Definition symboleditorfsm.cpp:400
QMap< State, SymbolEditorState * > mStates
Definition symboleditorfsm.h:143
bool processRemove() noexcept
Definition symboleditorfsm.cpp:250
bool processKeyPressed(const GraphicsSceneKeyEvent &e) noexcept
Definition symboleditorfsm.cpp:114
bool processCopy() noexcept
Definition symboleditorfsm.cpp:202
SymbolEditorState * getCurrentState() const noexcept
Definition symboleditorfsm.cpp:349
bool processEditProperties() noexcept
Definition symboleditorfsm.cpp:258
State mPreviousState
Definition symboleditorfsm.h:145
State
Definition symboleditorfsm.h:59
bool processCut() noexcept
Definition symboleditorfsm.cpp:194
bool leaveCurrentState() noexcept
Definition symboleditorfsm.cpp:363
bool switchToPreviousState() noexcept
Definition symboleditorfsm.cpp:392
bool processStartDrawTexts() noexcept
Definition symboleditorfsm.cpp:317
virtual ~SymbolEditorFsm() noexcept
Definition symboleditorfsm.cpp:68
bool processStartDxfImport() noexcept
Definition symboleditorfsm.cpp:321
bool processGraphicsSceneRightMouseButtonReleased(const GraphicsSceneMouseEvent &e) noexcept
Definition symboleditorfsm.cpp:169
bool processAbortCommand() noexcept
Definition symboleditorfsm.cpp:266
bool processKeyReleased(const GraphicsSceneKeyEvent &e) noexcept
Definition symboleditorfsm.cpp:123
bool processGraphicsSceneLeftMouseButtonPressed(const GraphicsSceneMouseEvent &e) noexcept
Definition symboleditorfsm.cpp:141
bool processGraphicsSceneLeftMouseButtonDoubleClicked(const GraphicsSceneMouseEvent &e) noexcept
Definition symboleditorfsm.cpp:159
bool processStartDrawCircles() noexcept
Definition symboleditorfsm.cpp:313
bool processMove(const Point &delta) noexcept
Definition symboleditorfsm.cpp:218
bool enterNextState(State state) noexcept
Definition symboleditorfsm.cpp:379
State mCurrentState
Definition symboleditorfsm.h:144
bool processStartAddingSymbolPins(bool import) noexcept
Definition symboleditorfsm.cpp:278
bool processGraphicsSceneMouseMoved(const GraphicsSceneMouseEvent &e) noexcept
Definition symboleditorfsm.cpp:132
bool processRotate(const Angle &rotation) noexcept
Definition symboleditorfsm.cpp:226
bool processStartMeasure() noexcept
Definition symboleditorfsm.cpp:331
bool processMirror(Qt::Orientation orientation) noexcept
Definition symboleditorfsm.cpp:234
bool processStartDrawArcs() noexcept
Definition symboleditorfsm.cpp:301
bool processGraphicsSceneLeftMouseButtonReleased(const GraphicsSceneMouseEvent &e) noexcept
Definition symboleditorfsm.cpp:150
bool processGridIntervalChanged(const PositiveLength &inverval) noexcept
Definition symboleditorfsm.cpp:335
bool processStartDrawPolygons() noexcept
Definition symboleditorfsm.cpp:309
bool processPaste() noexcept
Definition symboleditorfsm.cpp:210
bool processSnapToGrid() noexcept
Definition symboleditorfsm.cpp:242
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:75
const bool readOnly
Definition symboleditorfsm.h:78
Symbol & symbol
Definition symboleditorfsm.h:76
SymbolEditorFsmAdapter & adapter
Definition symboleditorfsm.h:80
const LengthUnit & lengthUnit
Definition symboleditorfsm.h:79
UndoStack & undoStack
Definition symboleditorfsm.h:77