MagicSmoke  $VERSION$
MLabelRenderer Class Reference

base class for all label rendering classes More...

#include <ticketrender.h>

Inheritance diagram for MLabelRenderer:
MTicketRenderer MVoucherRenderer

Public Member Functions

 MLabelRenderer (MTemplate file)
 instantiates a renderer loaded from template file More...
 
virtual ~MLabelRenderer ()
 deletes the renderer More...
 
virtual QSizeF labelSize (const QPaintDevice &)
 returns the size of the ticket in the coordinates of the specified paint device (used for preview) More...
 
virtual QSizeF labelSizeMM ()
 returns the size of the label in Millimeters More...
 
virtual bool render (const MLabel &label, QPaintDevice &pdev, QPainter *painter=0, QPointF offset=QPointF(), bool usePixmap=false)
 renders the ticket; returns whether the rendering was successful More...
 

Friends

class MLabelRendererPrivate
 

Detailed Description

base class for all label rendering classes

Constructor & Destructor Documentation

MLabelRenderer::MLabelRenderer ( MTemplate  file)

instantiates a renderer loaded from template file

References MTemplate::cacheFileName(), and MLabelRendererPrivate.

MLabelRenderer::~MLabelRenderer ( )
virtual

deletes the renderer

Member Function Documentation

QSizeF MLabelRenderer::labelSize ( const QPaintDevice &  dev)
virtual

returns the size of the ticket in the coordinates of the specified paint device (used for preview)

References MLabelRendererPrivate::labelSize().

QSizeF MLabelRenderer::labelSizeMM ( )
virtual

returns the size of the label in Millimeters

References MLabelRendererPrivate::labelSizeMM().

bool MLabelRenderer::render ( const MLabel label,
QPaintDevice &  pdev,
QPainter *  painter = 0,
QPointF  offset = QPointF(),
bool  usePixmap = false 
)
virtual

renders the ticket; returns whether the rendering was successful

References MLabelRendererPrivate::render().

Referenced by MVoucherRenderer::render(), and MTicketRenderer::render().

Friends And Related Function Documentation

friend class MLabelRendererPrivate
friend

Referenced by MLabelRenderer().


The documentation for this class was generated from the following files: