20#ifndef LIBREPCB_EDITOR_SYMBOLPINGRAPHICSITEM_H
21#define LIBREPCB_EDITOR_SYMBOLPINGRAPHICSITEM_H
37class ComponentSymbolVariantItem;
41class IF_GraphicsLayerProvider;
42class LineGraphicsItem;
43class PrimitiveCircleGraphicsItem;
44class PrimitiveTextGraphicsItem;
60 std::shared_ptr<const Component> cmp =
nullptr,
61 std::shared_ptr<const ComponentSymbolVariantItem> cmpItem =
nullptr,
62 QGraphicsItem* parent =
nullptr) noexcept;
67 const std::shared_ptr<SymbolPin>&
getPtr() noexcept {
return mPin; }
73 QPainterPath
shape() const noexcept override;
80 virtual QVariant
itemChange(GraphicsItemChange change,
81 const QVariant& value) noexcept override;
The Component class represents a "generic" device in the library.
Definition component.h:73
The ComponentSymbolVariantItem class represents one symbol of a component symbol variant.
Definition componentsymbolvariantitem.h:54
The SymbolPin class represents one pin of a symbol.
Definition symbolpin.h:51
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers.
Definition graphicslayer.h:111
The LineGraphicsItem class.
Definition linegraphicsitem.h:50
The PrimitiveCircleGraphicsItem class.
Definition primitivecirclegraphicsitem.h:49
The PrimitiveTextGraphicsItem class is the graphical representation of a text.
Definition primitivetextgraphicsitem.h:52
The SymbolPinGraphicsItem class.
Definition symbolpingraphicsitem.h:53
QScopedPointer< PrimitiveTextGraphicsItem > mNumbersGraphicsItem
Definition symbolpingraphicsitem.h:94
void updateText() noexcept
Definition symbolpingraphicsitem.cpp:115
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition symbolpingraphicsitem.cpp:168
const std::shared_ptr< SymbolPin > & getPtr() noexcept
Definition symbolpingraphicsitem.h:67
std::shared_ptr< const ComponentSymbolVariantItem > mItem
Definition symbolpingraphicsitem.h:90
QScopedPointer< PrimitiveCircleGraphicsItem > mCircleGraphicsItem
Definition symbolpingraphicsitem.h:91
SymbolPinGraphicsItem(const SymbolPinGraphicsItem &other)=delete
std::shared_ptr< SymbolPin > mPin
Definition symbolpingraphicsitem.h:87
std::shared_ptr< const Component > mComponent
Definition symbolpingraphicsitem.h:89
QPainterPath shape() const noexcept override
Definition symbolpingraphicsitem.cpp:163
SymbolPinGraphicsItem()=delete
void setLength(const UnsignedLength &length) noexcept
Definition symbolpingraphicsitem.cpp:226
void pinEdited(const SymbolPin &pin, SymbolPin::Event event) noexcept
Definition symbolpingraphicsitem.cpp:184
const IF_GraphicsLayerProvider & mLayerProvider
Definition symbolpingraphicsitem.h:88
QScopedPointer< LineGraphicsItem > mLineGraphicsItem
Definition symbolpingraphicsitem.h:92
void updateNamePosition() noexcept
Definition symbolpingraphicsitem.cpp:230
SymbolPin::OnEditedSlot mOnEditedSlot
Definition symbolpingraphicsitem.h:97
SymbolPin & getObj() noexcept
Definition symbolpingraphicsitem.h:66
void updateNumbersTransform() noexcept
Definition symbolpingraphicsitem.cpp:235
QScopedPointer< PrimitiveTextGraphicsItem > mNameGraphicsItem
Definition symbolpingraphicsitem.h:93
Definition occmodel.cpp:76
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694