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