20#ifndef LIBREPCB_EDITOR_SGI_TEXT_H
21#define LIBREPCB_EDITOR_SGI_TEXT_H
39class GraphicsLayerList;
40class LineGraphicsItem;
41class TextGraphicsItem;
50class SGI_Text final :
public QGraphicsItemGroup {
66 virtual QPainterPath
shape() const noexcept override;
75 virtual QVariant
itemChange(GraphicsItemChange change,
76 const QVariant& value) noexcept override;
The SI_Text class represents a text label in a schematic.
Definition si_text.h:48
The GraphicsLayerList class.
Definition graphicslayerlist.h:48
The LineGraphicsItem class.
Definition linegraphicsitem.h:50
The SGI_Symbol class.
Definition sgi_symbol.h:52
The SGI_Text class.
Definition sgi_text.h:50
virtual ~SGI_Text() noexcept
Definition sgi_text.cpp:69
void updateText() noexcept
Definition sgi_text.cpp:139
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition sgi_text.cpp:81
SI_Text::OnEditedSlot mOnEditedSlot
Definition sgi_text.h:89
QScopedPointer< TextGraphicsItem > mTextGraphicsItem
Definition sgi_text.h:85
QScopedPointer< LineGraphicsItem > mAnchorGraphicsItem
Definition sgi_text.h:86
void updateAnchorLayer() noexcept
Definition sgi_text.cpp:144
const GraphicsLayerList & mLayers
Definition sgi_text.h:84
virtual QPainterPath shape() const noexcept override
Definition sgi_text.cpp:76
void updateAnchorLine() noexcept
Definition sgi_text.cpp:153
SGI_Text(const SGI_Text &other)=delete
SI_Text & getText() noexcept
Definition sgi_text.h:60
void symbolGraphicsItemEdited(const SGI_Symbol &obj, SGI_Symbol::Event event) noexcept
Definition sgi_text.cpp:122
const std::weak_ptr< SGI_Symbol > & getSymbolGraphicsItem() noexcept
Definition sgi_text.h:61
SI_Text & mText
Definition sgi_text.h:82
void textEdited(const SI_Text &obj, SI_Text::Event event) noexcept
Definition sgi_text.cpp:103
std::weak_ptr< SGI_Symbol > mSymbolGraphicsItem
Definition sgi_text.h:83
SGI_Symbol::OnEditedSlot mOnSymbolEditedSlot
Definition sgi_text.h:90
The TextGraphicsItem class is the graphical representation of a librepcb::Text.
Definition textgraphicsitem.h:49
Definition occmodel.cpp:77