20 #ifndef LIBREPCB_EDITOR_SGI_NETLABEL_H 21 #define LIBREPCB_EDITOR_SGI_NETLABEL_H 40 class IF_GraphicsLayerProvider;
41 class LineGraphicsItem;
56 std::shared_ptr<
const QSet<const NetSignal*>>
57 highlightedNetSignals) noexcept;
65 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option,
66 QWidget* widget) noexcept
override;
74 virtual QVariant
itemChange(GraphicsItemChange change,
75 const QVariant& value) noexcept
override;
SGI_NetLabel & operator=(const SGI_NetLabel &rhs)=delete
SI_NetLabel::OnEditedSlot mOnEditedSlot
Definition: sgi_netlabel.h:97
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) noexcept override
Definition: sgi_netlabel.cpp:99
void updatePosition() noexcept
Definition: sgi_netlabel.cpp:179
QRectF boundingRect() const noexcept override
Definition: sgi_netlabel.h:64
std::shared_ptr< GraphicsLayer > mNetLabelLayer
Definition: sgi_netlabel.h:85
virtual ~SGI_NetLabel() noexcept
Definition: sgi_netlabel.cpp:92
Definition: occmodel.cpp:77
void updateAnchor() noexcept
Definition: sgi_netlabel.cpp:230
bool mRotate180
Definition: sgi_netlabel.h:92
QVector< QLineF > mOverlines
Definition: sgi_netlabel.h:90
std::shared_ptr< const QSet< const NetSignal * > > mHighlightedNetSignals
Definition: sgi_netlabel.h:83
SI_NetLabel & getNetLabel() noexcept
Definition: sgi_netlabel.h:61
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers...
Definition: graphicslayer.h:111
void updateText() noexcept
Definition: sgi_netlabel.cpp:187
The SGI_NetLabel class.
Definition: sgi_netlabel.h:50
std::shared_ptr< GraphicsLayer > mOriginCrossLayer
Definition: sgi_netlabel.h:84
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition: sgi_netlabel.cpp:136
void netLabelEdited(const SI_NetLabel &obj, SI_NetLabel::Event event) noexcept
Definition: sgi_netlabel.cpp:153
QPointF mTextOrigin
Definition: sgi_netlabel.h:93
QScopedPointer< LineGraphicsItem > mAnchorGraphicsItem
Definition: sgi_netlabel.h:86
QStaticText mStaticText
Definition: sgi_netlabel.h:89
void updateRotation() noexcept
Definition: sgi_netlabel.cpp:183
static QVector< QLineF > sOriginCrossLines
Definition: sgi_netlabel.h:100
QFont mFont
Definition: sgi_netlabel.h:91
SI_NetLabel & mNetLabel
Definition: sgi_netlabel.h:82
The SI_NetLabel class.
Definition: si_netlabel.h:49
QRectF mBoundingRect
Definition: sgi_netlabel.h:94
Event
Definition: si_netlabel.h:54