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:
Jim Evins
2017-10-02 23:15:43 -04:00
parent 347bf35c79
commit a31484700c
13 changed files with 449 additions and 111 deletions
+3 -1
View File
@@ -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;