4 #ifndef BPSGRAPHICSITEM_H
5 #define BPSGRAPHICSITEM_H
8 #include <QAbstractGraphicsShapeItem>
120 enum { Type = 10000000 };
122 virtual int type()
const;
242 enum { Type = 10000001 };
244 virtual int type()
const;
318 enum { Type = 10000002 };
320 virtual int type()
const;
369 enum { Type = 10000003 };
371 virtual int type()
const;
516 enum { Type = 10000004 };
518 virtual int type()
const;
617 enum { Type = 10000005 };
619 virtual int type()
const;
Public include file for Bps class.
#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Bar code item.
Definition: bpsgraphicsitem.h:383
BpsGraphicsBarcodeItem(QGraphicsItem *aParent=nullptr)
Constructor for the class.
Bps::EccLevel eccLevel() const
void setDirection(Bps::Direction aDirection)
Set a new direction.
void setRect(const QRectF &aRect)
Set a new rectangle for the item.
void setAlignment(Bps::Alignment aAlignment)
Set new alignment withing the bounding rectangle.
void setBarcodeType(Bps::Barcode aBarcodeType)
Set a new barcode type.
QString humanText() const
Bps::Barcode barcodeType() const
Bps::Direction direction() const
void setText(const QString &aText)
Set a new barcode text.
void setTextprinted(bool aEnable)
Enable and disable text line printing.
Bps::Alignment alignment() const
void setFont(const QFont &aFont)
Set a new font for the text line.
void setModule(qreal aModule)
Define a new module.
void setColor(const QColor &aColor)
Set a new bar color (default = Qt::black).
void setEccLevel(Bps::EccLevel aEccLevel)
Define a new error correction code level.
Line item.
Definition: bpsgraphicsitem.h:263
void setP1(const QPointF &aPoint)
Set point 1.
BpsGraphicsLineItem(QGraphicsItem *aParent=nullptr)
Constructor for the class.
void setPen(const QPen &aPen)
Set a new pen value.
void setP2(const QPointF &aPoint)
Set point 2.
void setLine(const QLineF &aLine)
Set new line parameters for the item.
Pixmap item.
Definition: bpsgraphicsitem.h:530
void setSizing(Sizing aSizing)
Set new sizing mode.
Bps::Rotation rotation() const
void setAlignment(Bps::Alignment aAlignment)
Set new alignment.
BpsGraphicsPixmapItem(QGraphicsItem *aParent=nullptr)
Constructor for the class.
Bps::Alignment alignment() const
void setRect(const QRectF &aRect)
Set a new rectangle for the item.
void setRotation(Bps::Rotation aRotation)
Set new rotation.
void setPixmap(const QPixmap &aPixmap)
Set the current pixmap.
Sizing
Sizing mode.
Definition: bpsgraphicsitem.h:538
@ SizeFixed
Size to fixed pixel per inch (ppi), clipping overflow.
Definition: bpsgraphicsitem.h:539
@ SizeFit
Scale to fit into rectangle keeping aspect, no larger than original size (default)
Definition: bpsgraphicsitem.h:540
void setPpi(int aPpi)
Set new pixel per inch value.
Rectangle item with roundness.
Definition: bpsgraphicsitem.h:333
void setRect(const QRectF &aRect)
Set a new rectangle for the item.
void setRoundness(int aRoundness)
Define a new roundness for the rectangle corners.
BpsGraphicsRectItem(QGraphicsItem *aParent=nullptr)
Constructor for the class.
Rich text item, based on QTextDocument.
Definition: bpsgraphicsitem.h:136
void setPlainText(const QString &aText)
Set new content as plain text.
void setDirection(Bps::Direction aDirection)
Set the new text direction.
void setRoundness(int aRoundness)
Define a new roundness for the rectangle corners.
void setDefaultFont(const QFont &aFont)
Set a new default fond.
void setResolution(int aResolution)
Set the new resolution in DPI.
Bps::Direction direction() const
BpsGraphicsRichtextItem(QGraphicsItem *aParent=nullptr)
Constructor for the class.
QFont defaultFont() const
QRectF handleRect() const
void setHtml(const QString &aText)
Set new content as html code.
QString toPlainText() const
BpsMargins margins() const
void setTextWidth(qreal aWidth)
Set the new text width.
void setMargins(const BpsMargins &aMargins)
Set new margins.
Simple text item.
Definition: bpsgraphicsitem.h:19
void setMargins(const BpsMargins &aMargins)
Set new margins.
Bps::Direction direction() const
BpsGraphicsSimpletextItem(QGraphicsItem *aParent=nullptr)
Constructor for the class.
void setAlignment(Bps::Alignment aAlignment)
Set new alignment withing the bounding rectangle.
Bps::Alignment alignment() const
void setRoundness(int aRoundness)
Define a new roundness for the rectangle corners.
void setRect(const QRectF &aRect)
Set a new rectangle for the item.
void setText(const QString &aText)
Set a new text.
void setDirection(Bps::Direction aDirection)
Set a new direction.
void setColor(const QColor &aColor)
Set a new text color (default = Qt::black).
BpsMargins margins() const
void setFont(const QFont &aFont)
Set a new font.
Rotation
Rotation in 90 degree steps.
Definition: bps.h:178
Direction
Basic Compass Directions.
Definition: bps.h:168
Alignment
General alignment.
Definition: bps.h:153
Barcode
Type of the bar code construction element.
Definition: bps.h:219
EccLevel
Error correction code level.
Definition: bps.h:200
This class is used to store margins top, right, bottom and left.
Definition: bpsmargins.h:15
virtual QRectF boundingRect() const const=0
virtual bool contains(const QPointF &point) const const
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)=0
virtual QPainterPath shape() const const
virtual int type() const const