20#ifndef LIBREPCB_EDITOR_SGI_TEXT_H
21#define LIBREPCB_EDITOR_SGI_TEXT_H
39class IF_GraphicsLayerProvider;
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 IF_GraphicsLayerProvider class defines an interface for classes which provide layers.
Definition: graphicslayer.h:111
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:68
void updateText() noexcept
Definition: sgi_text.cpp:138
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition: sgi_text.cpp:80
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:143
virtual QPainterPath shape() const noexcept override
Definition: sgi_text.cpp:75
void updateAnchorLine() noexcept
Definition: sgi_text.cpp:153
const IF_GraphicsLayerProvider & mLayerProvider
Definition: sgi_text.h:84
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:121
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:102
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