20#ifndef LIBREPCB_EDITOR_STROKETEXTGRAPHICSITEM_H
21#define LIBREPCB_EDITOR_STROKETEXTGRAPHICSITEM_H
37class GraphicsLayerList;
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 GraphicsLayerList class.
Definition graphicslayerlist.h:48
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:143
QScopedPointer< OriginCrossGraphicsItem > mOriginCrossGraphicsItem
Definition stroketextgraphicsitem.h:86
std::optional< QString > mTextOverride
Definition stroketextgraphicsitem.h:84
void updateText() noexcept
Definition stroketextgraphicsitem.cpp:149
StrokeTextGraphicsItem()=delete
void setTextOverride(const std::optional< QString > &text) noexcept
Definition stroketextgraphicsitem.cpp:78
QVariant itemChange(GraphicsItemChange change, const QVariant &value) noexcept override
Definition stroketextgraphicsitem.cpp:95
StrokeTextGraphicsItem(const StrokeTextGraphicsItem &other)=delete
const GraphicsLayerList & mLayers
Definition stroketextgraphicsitem.h:82
QPainterPath shape() const noexcept override
Definition stroketextgraphicsitem.cpp:90
StrokeText & getObj() noexcept
Definition stroketextgraphicsitem.h:60
void updateTransform() noexcept
Definition stroketextgraphicsitem.cpp:155
const StrokeFont & mFont
Definition stroketextgraphicsitem.h:83
void strokeTextEdited(const StrokeText &text, StrokeText::Event event) noexcept
Definition stroketextgraphicsitem.cpp:109
StrokeText::OnEditedSlot mOnEditedSlot
Definition stroketextgraphicsitem.h:89
StrokeText & mText
Definition stroketextgraphicsitem.h:81
Definition occmodel.cpp:77