20#ifndef LIBREPCB_EDITOR_SYMBOLEDITORSTATE_ADDPINS_H
21#define LIBREPCB_EDITOR_SYMBOLEDITORSTATE_ADDPINS_H
46class CmdSymbolPinEdit;
47class SymbolPinGraphicsItem;
67 bool entry() noexcept override;
68 bool exit() noexcept override;
70 const noexcept override;
74 QGraphicsSceneMouseEvent& e) noexcept override;
76 QGraphicsSceneMouseEvent& e) noexcept override;
78 QGraphicsSceneMouseEvent& e) noexcept override;
80 bool processMirror(Qt::Orientation orientation) noexcept override;
92 bool hasPin(const QString& name) const noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The SymbolPin class represents one pin of a symbol.
Definition: symbolpin.h:51
The CmdSymbolPinEdit class.
Definition: cmdsymbolpinedit.h:48
The SymbolEditorState_AddPins class.
Definition: symboleditorstate_addpins.h:56
bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition: symboleditorstate_addpins.cpp:144
bool hasPin(const QString &name) const noexcept
Definition: symboleditorstate_addpins.cpp:283
QLineEdit * mNameLineEdit
Definition: symboleditorstate_addpins.h:98
SymbolEditorState_AddPins(const SymbolEditorState_AddPins &other)=delete
std::shared_ptr< SymbolPinGraphicsItem > mCurrentGraphicsItem
Definition: symboleditorstate_addpins.h:96
QString determineNextPinName() const noexcept
Definition: symboleditorstate_addpins.cpp:277
~SymbolEditorState_AddPins() noexcept
Definition: symboleditorstate_addpins.cpp:61
void execMassImport() noexcept
Definition: symboleditorstate_addpins.cpp:249
SymbolEditorState_AddPins()=delete
bool processRotate(const Angle &rotation) noexcept override
Definition: symboleditorstate_addpins.cpp:180
Angle mLastRotation
Definition: symboleditorstate_addpins.h:101
bool exit() noexcept override
Definition: symboleditorstate_addpins.cpp:111
std::shared_ptr< SymbolPin > mCurrentPin
Definition: symboleditorstate_addpins.h:95
void lengthEditValueChanged(const UnsignedLength &value) noexcept
Definition: symboleditorstate_addpins.cpp:239
void nameLineEditTextChanged(const QString &text) noexcept
Definition: symboleditorstate_addpins.cpp:228
bool processGraphicsSceneRightMouseButtonReleased(QGraphicsSceneMouseEvent &e) noexcept override
Definition: symboleditorstate_addpins.cpp:174
QScopedPointer< CmdSymbolPinEdit > mEditCmd
Definition: symboleditorstate_addpins.h:97
bool processMirror(Qt::Orientation orientation) noexcept override
Definition: symboleditorstate_addpins.cpp:188
QSet< EditorWidgetBase::Feature > getAvailableFeatures() const noexcept override
Definition: symboleditorstate_addpins.cpp:132
bool addNextPin(const Point &pos) noexcept
Definition: symboleditorstate_addpins.cpp:201
bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexcept override
Definition: symboleditorstate_addpins.cpp:154
bool entry() noexcept override
Definition: symboleditorstate_addpins.cpp:68
UnsignedLength mLastLength
Definition: symboleditorstate_addpins.h:102
The SymbolEditorState class is the base class of all symbol editor FSM states.
Definition: symboleditorstate.h:54
The SymbolPinGraphicsItem class.
Definition: symbolpingraphicsitem.h:53
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696
Definition: symboleditorfsm.h:76