20#ifndef LIBREPCB_EDITOR_SGI_NETLABEL_H
21#define LIBREPCB_EDITOR_SGI_NETLABEL_H
43class GraphicsLayerList;
44class LineGraphicsItem;
59 std::shared_ptr<
const QSet<const NetSignal*>>
60 highlightedNetSignals)
noexcept;
68 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option,
69 QWidget* widget)
noexcept override;
77 virtual QVariant
itemChange(GraphicsItemChange change,
78 const QVariant& value)
noexcept override;
The NetSignal class.
Definition netsignal.h:50
The SI_NetLabel class.
Definition si_netlabel.h:48
Event
Definition si_netlabel.h:53
The GraphicsLayer class represents a graphical layer used in schematics and boards.
Definition graphicslayer.h:53
The GraphicsLayerList class.
Definition graphicslayerlist.h:48
The LineGraphicsItem class.
Definition linegraphicsitem.h:50
The SGI_NetLabel class.
Definition sgi_netlabel.h:53
std::shared_ptr< const QSet< const NetSignal * > > mHighlightedNetSignals
Definition sgi_netlabel.h:86
QRectF boundingRect() const noexcept override
Definition sgi_netlabel.h:67
void updateText() noexcept
Definition sgi_netlabel.cpp:196
bool mRotate180
Definition sgi_netlabel.h:95
QVector< QLineF > mOverlines
Definition sgi_netlabel.h:93
void updatePosition() noexcept
Definition sgi_netlabel.cpp:188
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition sgi_netlabel.cpp:143
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) noexcept override
Definition sgi_netlabel.cpp:100
SGI_NetLabel(const SGI_NetLabel &other)=delete
SI_NetLabel & getNetLabel() noexcept
Definition sgi_netlabel.h:64
void netLabelEdited(const SI_NetLabel &obj, SI_NetLabel::Event event) noexcept
Definition sgi_netlabel.cpp:162
void updateRotation() noexcept
Definition sgi_netlabel.cpp:192
QFont mFont
Definition sgi_netlabel.h:94
QScopedPointer< LineGraphicsItem > mAnchorGraphicsItem
Definition sgi_netlabel.h:89
QStaticText mStaticText
Definition sgi_netlabel.h:92
SGI_NetLabel & operator=(const SGI_NetLabel &rhs)=delete
std::shared_ptr< const GraphicsLayer > mNetLabelLayer
Definition sgi_netlabel.h:88
QRectF mBoundingRect
Definition sgi_netlabel.h:97
virtual ~SGI_NetLabel() noexcept
Definition sgi_netlabel.cpp:93
QPointF mTextOrigin
Definition sgi_netlabel.h:96
static QVector< QLineF > sOriginCrossLines
Definition sgi_netlabel.h:103
void updateAnchor() noexcept
Definition sgi_netlabel.cpp:239
std::shared_ptr< const GraphicsLayer > mOriginCrossLayer
Definition sgi_netlabel.h:87
SI_NetLabel::OnEditedSlot mOnEditedSlot
Definition sgi_netlabel.h:100
SI_NetLabel & mNetLabel
Definition sgi_netlabel.h:85
Definition occmodel.cpp:77