53 #ifndef PATTERNPIECE_TOOL_H
54 #define PATTERNPIECE_TOOL_H
57 #include <qcompilerdetection.h>
59 #include <QGraphicsPathItem>
63 #include "../vwidgets/vtextgraphicsitem.h"
64 #include "../vwidgets/vgrainlineitem.h"
79 const
Source &typeCreation, const QString &blockName = QString());
119 virtual
int type() const Q_DECL_OVERRIDE {
return Type;}
122 virtual QString
getTagName() const Q_DECL_OVERRIDE;
124 virtual
void GroupVisibility(quint32
object,
bool visible) Q_DECL_OVERRIDE;
125 virtual
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
126 QWidget *widget) Q_DECL_OVERRIDE;
129 virtual QPainterPath
shape() const Q_DECL_OVERRIDE;
135 virtual
void AllowHover(
bool enabled) Q_DECL_OVERRIDE;
159 virtual
void AddToFile () Q_DECL_OVERRIDE;
161 virtual QVariant
itemChange ( GraphicsItemChange change, const QVariant &value ) Q_DECL_OVERRIDE;
162 virtual
void mousePressEvent( QGraphicsSceneMouseEvent * event) Q_DECL_OVERRIDE;
163 virtual
void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ) Q_DECL_OVERRIDE;
164 virtual
void hoverEnterEvent ( QGraphicsSceneHoverEvent * event ) Q_DECL_OVERRIDE;
165 virtual
void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ) Q_DECL_OVERRIDE;
166 virtual
void contextMenuEvent (QGraphicsSceneContextMenuEvent * event ) Q_DECL_OVERRIDE;
169 virtual void deleteTool(
bool ask =
true) Q_DECL_OVERRIDE;
191 const QString &blockName, QGraphicsItem * parent =
nullptr);
195 qreal &labelHeight, QPointF &pos);
208 QPointF &pos, qreal &labelAngle);
The VContainer class container of all variables.
The VGrainlineData class holds information about a grainline like position, size, rotation and visibi...
The VMainGraphicsScene class main scene.
The VPatternLabelData class holds the information about pattern info label geometry.
The VTextGraphicsItem class. This class implements text graphics item, which can be dragged around,...
The CustomSA struct contains record about custom seam allowanse (SA).