20 #ifndef LIBREPCB_EDITOR_STROKETEXTGRAPHICSITEM_H 21 #define LIBREPCB_EDITOR_STROKETEXTGRAPHICSITEM_H 37 class IF_GraphicsLayerProvider;
38 class OriginCrossGraphicsItem;
39 class PrimitivePathGraphicsItem;
56 QGraphicsItem* parent =
nullptr) noexcept;
66 QPainterPath
shape()
const noexcept
override;
75 const QVariant& value) noexcept
override;
void updateLayer(const Layer &layer) noexcept
Definition: stroketextgraphicsitem.cpp:141
QScopedPointer< PrimitivePathGraphicsItem > mPathGraphicsItem
Definition: stroketextgraphicsitem.h:85
Definition: occmodel.cpp:77
The Layer class provides all supported geometry layers.
Definition: layer.h:40
The StrokeText class.
Definition: stroketext.h:51
StrokeText & getText() noexcept
Definition: stroketextgraphicsitem.h:60
void updateTransform() noexcept
Definition: stroketextgraphicsitem.cpp:153
Event
Definition: stroketext.h:56
The StrokeTextGraphicsItem class is the graphical representation of a librepcb::StrokeText.
Definition: stroketextgraphicsitem.h:49
void strokeTextEdited(const StrokeText &text, StrokeText::Event event) noexcept
Definition: stroketextgraphicsitem.cpp:107
StrokeText & mText
Definition: stroketextgraphicsitem.h:81
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers...
Definition: graphicslayer.h:111
QPainterPath shape() const noexcept override
Definition: stroketextgraphicsitem.cpp:88
QScopedPointer< OriginCrossGraphicsItem > mOriginCrossGraphicsItem
Definition: stroketextgraphicsitem.h:86
tl::optional< QString > mTextOverride
Definition: stroketextgraphicsitem.h:84
StrokeTextGraphicsItem & operator=(const StrokeTextGraphicsItem &rhs)=delete
StrokeText::OnEditedSlot mOnEditedSlot
Definition: stroketextgraphicsitem.h:89
void updateText() noexcept
Definition: stroketextgraphicsitem.cpp:147
const IF_GraphicsLayerProvider & mLayerProvider
Definition: stroketextgraphicsitem.h:82
virtual ~StrokeTextGraphicsItem() noexcept
Definition: stroketextgraphicsitem.cpp:69
StrokeTextGraphicsItem()=delete
void setTextOverride(const tl::optional< QString > &text) noexcept
Definition: stroketextgraphicsitem.cpp:76
const StrokeFont & mFont
Definition: stroketextgraphicsitem.h:83
The StrokeFont class.
Definition: strokefont.h:56
QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition: stroketextgraphicsitem.cpp:93