Initial implementation of glabels-batch.
Note: must currently use QGuiApplication instead of QCoreApplication to support QFont. Unfortunately, this means that glabels-batch must run within a windowing system. Ideally, it would not have this requirement.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "Merge/Record.h"
|
||||
|
||||
#include <QPainter>
|
||||
#include <QPrinter>
|
||||
#include <QRect>
|
||||
#include <QVector>
|
||||
|
||||
@@ -50,7 +51,7 @@ namespace glabels
|
||||
// Life Cycle
|
||||
/////////////////////////////////
|
||||
public:
|
||||
PageRenderer();
|
||||
PageRenderer( const LabelModel* model = nullptr );
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
@@ -68,6 +69,7 @@ namespace glabels
|
||||
int nItems() const;
|
||||
int nPages() const;
|
||||
QRectF pageRect() const;
|
||||
void print( QPrinter* printer ) const;
|
||||
void printPage( QPainter* painter ) const;
|
||||
void printPage( QPainter* painter, int iPage ) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user