Initial implementation of GNU Barcode backend.

This commit is contained in:
Jim Evins
2017-05-29 20:43:10 -04:00
parent 52edeaff83
commit e0992db6b6
10 changed files with 517 additions and 27 deletions
+13
View File
@@ -22,6 +22,7 @@
#include "glbarcode/Factory.h"
#include "BarcodeBackends/GnuBarcode.h"
#include "BarcodeBackends/QrEncode.h"
@@ -72,6 +73,18 @@ namespace glabels
registerStyle( "datamatrix", "", tr("IEC16022 (DataMatrix)"),
false, false, true, false, "1234567890AB", false, 12 );
#if HAVE_GNU_BARCODE
//
// Libqrencode backend
//
registerBackend( "gnu-barcode", "GNU Barcode" );
glbarcode::Factory::registerType( "gnu-barcode::ean", GnuBarcode::Ean::create );
registerStyle( "ean", "gnu-barcode", tr("EAN (any)"),
true, true, true, false, "000000000000 00000", false, 17 );
#endif // HAVE_GNU_BARCODE
#if HAVE_QRENCODE
//
// Libqrencode backend