20#ifndef LIBREPCB_EDITOR_SGI_BUSLABEL_H
21#define LIBREPCB_EDITOR_SGI_BUSLABEL_H
40class GraphicsLayerList;
41class LineGraphicsItem;
63 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option,
64 QWidget* widget)
noexcept override;
72 virtual QVariant
itemChange(GraphicsItemChange change,
73 const QVariant& value)
noexcept override;
The SI_BusLabel class.
Definition si_buslabel.h:48
Event
Definition si_buslabel.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_BusLabel class.
Definition sgi_buslabel.h:50
SGI_BusLabel & operator=(const SGI_BusLabel &rhs)=delete
void busLabelEdited(const SI_BusLabel &obj, SI_BusLabel::Event event) noexcept
Definition sgi_buslabel.cpp:157
QRectF boundingRect() const noexcept override
Definition sgi_buslabel.h:62
void updateText() noexcept
Definition sgi_buslabel.cpp:191
bool mRotate180
Definition sgi_buslabel.h:89
QVector< QLineF > mOverlines
Definition sgi_buslabel.h:87
void updatePosition() noexcept
Definition sgi_buslabel.cpp:183
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition sgi_buslabel.cpp:138
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) noexcept override
Definition sgi_buslabel.cpp:97
SI_BusLabel & mBusLabel
Definition sgi_buslabel.h:80
void updateRotation() noexcept
Definition sgi_buslabel.cpp:187
QFont mFont
Definition sgi_buslabel.h:88
QScopedPointer< LineGraphicsItem > mAnchorGraphicsItem
Definition sgi_buslabel.h:83
QStaticText mStaticText
Definition sgi_buslabel.h:86
std::shared_ptr< const GraphicsLayer > mBusLabelLayer
Definition sgi_buslabel.h:82
virtual ~SGI_BusLabel() noexcept
Definition sgi_buslabel.cpp:90
QRectF mBoundingRect
Definition sgi_buslabel.h:91
SGI_BusLabel(const SGI_BusLabel &other)=delete
QPointF mTextOrigin
Definition sgi_buslabel.h:90
static QVector< QLineF > sOriginCrossLines
Definition sgi_buslabel.h:97
void updateAnchor() noexcept
Definition sgi_buslabel.cpp:234
std::shared_ptr< const GraphicsLayer > mOriginCrossLayer
Definition sgi_buslabel.h:81
SI_BusLabel::OnEditedSlot mOnEditedSlot
Definition sgi_buslabel.h:94
SI_BusLabel & getBusLabel() noexcept
Definition sgi_buslabel.h:59
Definition occmodel.cpp:77