Removed C++17 nested namespace definitions. Should build on trusty again.
This commit is contained in:
+394
-391
@@ -27,502 +27,505 @@
|
||||
#include "glbarcode/Factory.h"
|
||||
|
||||
|
||||
namespace glabels::barcode
|
||||
namespace glabels
|
||||
{
|
||||
|
||||
//
|
||||
// Static data
|
||||
//
|
||||
QStringList Backends::mBackendIdList;
|
||||
QMap<QString,QString> Backends::mBackendNameMap;
|
||||
|
||||
QList<Style> Backends::mStyleList;
|
||||
|
||||
|
||||
Backends::Backends()
|
||||
namespace barcode
|
||||
{
|
||||
registerStyle( "code39", "", tr("Code 39"),
|
||||
true, true, true, true, "1234567890", true, 10 );
|
||||
|
||||
//
|
||||
// Static data
|
||||
//
|
||||
QStringList Backends::mBackendIdList;
|
||||
QMap<QString,QString> Backends::mBackendNameMap;
|
||||
|
||||
registerStyle( "code39ext", "", tr("Code 39 Extended"),
|
||||
true, true, true, true, "1234567890", true, 10 );
|
||||
QList<Style> Backends::mStyleList;
|
||||
|
||||
|
||||
registerStyle( "upc-a", "", tr("UPC-A"),
|
||||
true, false, true, false, "12345678901", false, 11 );
|
||||
Backends::Backends()
|
||||
{
|
||||
registerStyle( "code39", "", tr("Code 39"),
|
||||
true, true, true, true, "1234567890", true, 10 );
|
||||
|
||||
registerStyle( "ean-13", "", tr("EAN-13"),
|
||||
true, false, true, false, "123456789012", false, 12 );
|
||||
registerStyle( "code39ext", "", tr("Code 39 Extended"),
|
||||
true, true, true, true, "1234567890", true, 10 );
|
||||
|
||||
registerStyle( "postnet", "", tr("POSTNET (any)"),
|
||||
false, false, true, false, "12345-6789-12", false, 11 );
|
||||
registerStyle( "upc-a", "", tr("UPC-A"),
|
||||
true, false, true, false, "12345678901", false, 11 );
|
||||
|
||||
registerStyle( "postnet-5", "", tr("POSTNET-5 (ZIP only)"),
|
||||
false, false, true, false, "12345", false, 5 );
|
||||
registerStyle( "ean-13", "", tr("EAN-13"),
|
||||
true, false, true, false, "123456789012", false, 12 );
|
||||
|
||||
registerStyle( "postnet-9", "", tr("POSTNET-9 (ZIP+4)"),
|
||||
false, false, true, false, "12345-6789", false, 9 );
|
||||
registerStyle( "postnet", "", tr("POSTNET (any)"),
|
||||
false, false, true, false, "12345-6789-12", false, 11 );
|
||||
|
||||
registerStyle( "postnet-11", "", tr("POSTNET-11 (DPBC)"),
|
||||
false, false, true, false, "12345-6789-12", false, 11 );
|
||||
registerStyle( "postnet-5", "", tr("POSTNET-5 (ZIP only)"),
|
||||
false, false, true, false, "12345", false, 5 );
|
||||
|
||||
registerStyle( "cepnet", "", tr("CEPNET"),
|
||||
false, false, true, false, "12345-678", false, 8 );
|
||||
registerStyle( "postnet-9", "", tr("POSTNET-9 (ZIP+4)"),
|
||||
false, false, true, false, "12345-6789", false, 9 );
|
||||
|
||||
registerStyle( "onecode", "", tr("USPS Intelligent Mail"),
|
||||
false, false, true, false, "12345678901234567890", false, 20 );
|
||||
registerStyle( "postnet-11", "", tr("POSTNET-11 (DPBC)"),
|
||||
false, false, true, false, "12345-6789-12", false, 11 );
|
||||
|
||||
registerStyle( "datamatrix", "", tr("IEC16022 (DataMatrix)"),
|
||||
false, false, true, false, "1234567890AB", false, 12 );
|
||||
registerStyle( "cepnet", "", tr("CEPNET"),
|
||||
false, false, true, false, "12345-678", false, 8 );
|
||||
|
||||
registerStyle( "onecode", "", tr("USPS Intelligent Mail"),
|
||||
false, false, true, false, "12345678901234567890", false, 20 );
|
||||
|
||||
registerStyle( "datamatrix", "", tr("IEC16022 (DataMatrix)"),
|
||||
false, false, true, false, "1234567890AB", false, 12 );
|
||||
|
||||
#if HAVE_GNU_BARCODE
|
||||
//
|
||||
// GNU Barcode backend
|
||||
//
|
||||
registerBackend( "gnu-barcode", "GNU Barcode" );
|
||||
//
|
||||
// GNU Barcode backend
|
||||
//
|
||||
registerBackend( "gnu-barcode", "GNU Barcode" );
|
||||
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean", GnuBarcode::Ean::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean-8", GnuBarcode::Ean8::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean-8+2", GnuBarcode::Ean8_2::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean-8+5", GnuBarcode::Ean8_5::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean-13", GnuBarcode::Ean13::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean-13+2", GnuBarcode::Ean13_2::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean-13+5", GnuBarcode::Ean13_5::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc", GnuBarcode::Upc::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc-a", GnuBarcode::UpcA::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc-a+2", GnuBarcode::UpcA_2::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc-a+5", GnuBarcode::UpcA_5::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc-e", GnuBarcode::UpcE::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc-e+2", GnuBarcode::UpcE_2::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc-e+5", GnuBarcode::UpcE_5::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::isbn", GnuBarcode::Isbn::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::isbn+5", GnuBarcode::Isbn_5::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::code39", GnuBarcode::Code39::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::code128", GnuBarcode::Code128::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::code128c", GnuBarcode::Code128C::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::code128b", GnuBarcode::Code128B::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::i25", GnuBarcode::I25::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::cbr", GnuBarcode::Cbr::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::msi", GnuBarcode::Msi::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::pls", GnuBarcode::Pls::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::code93", GnuBarcode::Code93::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean", GnuBarcode::Ean::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean-8", GnuBarcode::Ean8::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean-8+2", GnuBarcode::Ean8_2::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean-8+5", GnuBarcode::Ean8_5::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean-13", GnuBarcode::Ean13::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean-13+2", GnuBarcode::Ean13_2::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::ean-13+5", GnuBarcode::Ean13_5::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc", GnuBarcode::Upc::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc-a", GnuBarcode::UpcA::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc-a+2", GnuBarcode::UpcA_2::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc-a+5", GnuBarcode::UpcA_5::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc-e", GnuBarcode::UpcE::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc-e+2", GnuBarcode::UpcE_2::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::upc-e+5", GnuBarcode::UpcE_5::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::isbn", GnuBarcode::Isbn::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::isbn+5", GnuBarcode::Isbn_5::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::code39", GnuBarcode::Code39::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::code128", GnuBarcode::Code128::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::code128c", GnuBarcode::Code128C::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::code128b", GnuBarcode::Code128B::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::i25", GnuBarcode::I25::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::cbr", GnuBarcode::Cbr::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::msi", GnuBarcode::Msi::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::pls", GnuBarcode::Pls::create );
|
||||
glbarcode::Factory::registerType( "gnu-barcode::code93", GnuBarcode::Code93::create );
|
||||
|
||||
registerStyle( "ean", "gnu-barcode", tr("EAN (any)"),
|
||||
true, true, true, false, "000000000000 00000", false, 17 );
|
||||
registerStyle( "ean-8", "gnu-barcode", tr("EAN-8"),
|
||||
true, true, true, false, "0000000", false, 7 );
|
||||
registerStyle( "ean-8+2", "gnu-barcode", tr("EAN-8+2"),
|
||||
true, true, true, false, "0000000 00", false, 9 );
|
||||
registerStyle( "ean-8+5", "gnu-barcode", tr("EAN-8+5"),
|
||||
true, true, true, false, "0000000 00000", false, 12 );
|
||||
registerStyle( "ean-13", "gnu-barcode", tr("EAN-13"),
|
||||
true, true, true, false, "000000000000", false, 12 );
|
||||
registerStyle( "ean-13+2", "gnu-barcode", tr("EAN-13+2"),
|
||||
true, true, true, false, "000000000000 00", false, 14 );
|
||||
registerStyle( "ean-13+5", "gnu-barcode", tr("EAN-13+5"),
|
||||
true, true, true, false, "000000000000 00000", false, 17 );
|
||||
registerStyle( "upc", "gnu-barcode", tr("UPC (UPC-A or UPC-E)"),
|
||||
true, true, true, false, "00000000000 00000", false, 16 );
|
||||
registerStyle( "upc-a", "gnu-barcode", tr("UPC-A"),
|
||||
true, true, true, false, "00000000000", false, 11 );
|
||||
registerStyle( "upc-a+2", "gnu-barcode", tr("UPC-A +2"),
|
||||
true, true, true, false, "00000000000 00", false, 13 );
|
||||
registerStyle( "upc-a+5", "gnu-barcode", tr("UPC-A +5"),
|
||||
true, true, true, false, "00000000000 00000", false, 16 );
|
||||
registerStyle( "upc-e", "gnu-barcode", tr("UPC-E"),
|
||||
true, true, true, false, "000000", false, 6 );
|
||||
registerStyle( "upc-e+2", "gnu-barcode", tr("UPC-E +2"),
|
||||
true, true, true, false, "000000 00", false, 8 );
|
||||
registerStyle( "upc-e+5", "gnu-barcode", tr("UPC-E +5"),
|
||||
true, true, true, false, "000000 00000", false, 11 );
|
||||
registerStyle( "isbn", "gnu-barcode", tr("ISBN"),
|
||||
true, true, true, true, "0-00000-000-0", false, 10 );
|
||||
registerStyle( "isbn+5", "gnu-barcode", tr("ISBN +5"),
|
||||
true, true, true, true, "0-00000-000-0 00000", false, 15 );
|
||||
registerStyle( "code39", "gnu-barcode", tr("Code 39"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "code128", "gnu-barcode", tr("Code 128"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "code128c", "gnu-barcode", tr("Code 128C"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "code128b", "gnu-barcode", tr("Code 128B"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "i25", "gnu-barcode", tr("Interleaved 2 of 5"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "cbr", "gnu-barcode", tr("Codabar"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "msi", "gnu-barcode", tr("MSI"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "pls", "gnu-barcode", tr("Plessey"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "code93", "gnu-barcode", tr("Code 93"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "ean", "gnu-barcode", tr("EAN (any)"),
|
||||
true, true, true, false, "000000000000 00000", false, 17 );
|
||||
registerStyle( "ean-8", "gnu-barcode", tr("EAN-8"),
|
||||
true, true, true, false, "0000000", false, 7 );
|
||||
registerStyle( "ean-8+2", "gnu-barcode", tr("EAN-8+2"),
|
||||
true, true, true, false, "0000000 00", false, 9 );
|
||||
registerStyle( "ean-8+5", "gnu-barcode", tr("EAN-8+5"),
|
||||
true, true, true, false, "0000000 00000", false, 12 );
|
||||
registerStyle( "ean-13", "gnu-barcode", tr("EAN-13"),
|
||||
true, true, true, false, "000000000000", false, 12 );
|
||||
registerStyle( "ean-13+2", "gnu-barcode", tr("EAN-13+2"),
|
||||
true, true, true, false, "000000000000 00", false, 14 );
|
||||
registerStyle( "ean-13+5", "gnu-barcode", tr("EAN-13+5"),
|
||||
true, true, true, false, "000000000000 00000", false, 17 );
|
||||
registerStyle( "upc", "gnu-barcode", tr("UPC (UPC-A or UPC-E)"),
|
||||
true, true, true, false, "00000000000 00000", false, 16 );
|
||||
registerStyle( "upc-a", "gnu-barcode", tr("UPC-A"),
|
||||
true, true, true, false, "00000000000", false, 11 );
|
||||
registerStyle( "upc-a+2", "gnu-barcode", tr("UPC-A +2"),
|
||||
true, true, true, false, "00000000000 00", false, 13 );
|
||||
registerStyle( "upc-a+5", "gnu-barcode", tr("UPC-A +5"),
|
||||
true, true, true, false, "00000000000 00000", false, 16 );
|
||||
registerStyle( "upc-e", "gnu-barcode", tr("UPC-E"),
|
||||
true, true, true, false, "000000", false, 6 );
|
||||
registerStyle( "upc-e+2", "gnu-barcode", tr("UPC-E +2"),
|
||||
true, true, true, false, "000000 00", false, 8 );
|
||||
registerStyle( "upc-e+5", "gnu-barcode", tr("UPC-E +5"),
|
||||
true, true, true, false, "000000 00000", false, 11 );
|
||||
registerStyle( "isbn", "gnu-barcode", tr("ISBN"),
|
||||
true, true, true, true, "0-00000-000-0", false, 10 );
|
||||
registerStyle( "isbn+5", "gnu-barcode", tr("ISBN +5"),
|
||||
true, true, true, true, "0-00000-000-0 00000", false, 15 );
|
||||
registerStyle( "code39", "gnu-barcode", tr("Code 39"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "code128", "gnu-barcode", tr("Code 128"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "code128c", "gnu-barcode", tr("Code 128C"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "code128b", "gnu-barcode", tr("Code 128B"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "i25", "gnu-barcode", tr("Interleaved 2 of 5"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "cbr", "gnu-barcode", tr("Codabar"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "msi", "gnu-barcode", tr("MSI"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "pls", "gnu-barcode", tr("Plessey"),
|
||||
true, true, true, true, "0000000000", true, 10 );
|
||||
registerStyle( "code93", "gnu-barcode", tr("Code 93"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
#endif // HAVE_GNU_BARCODE
|
||||
|
||||
#if HAVE_QRENCODE
|
||||
//
|
||||
// Libqrencode backend
|
||||
//
|
||||
registerBackend( "qrencode", "QREncode" );
|
||||
//
|
||||
// Libqrencode backend
|
||||
//
|
||||
registerBackend( "qrencode", "QREncode" );
|
||||
|
||||
glbarcode::Factory::registerType( "qrencode::qrcode", QrEncode::QrCode::create );
|
||||
glbarcode::Factory::registerType( "qrencode::qrcode", QrEncode::QrCode::create );
|
||||
|
||||
registerStyle( "qrcode", "qrencode", tr("IEC18004 (QRCode)"),
|
||||
false, false, true, false, "1234567890AB", false, 12 );
|
||||
registerStyle( "qrcode", "qrencode", tr("IEC18004 (QRCode)"),
|
||||
false, false, true, false, "1234567890AB", false, 12 );
|
||||
#endif // HAVE_QRENCODE
|
||||
|
||||
#if HAVE_ZINT
|
||||
//
|
||||
// Zint barcode backend
|
||||
//
|
||||
registerBackend( "zint", "Zint" );
|
||||
//
|
||||
// Zint barcode backend
|
||||
//
|
||||
registerBackend( "zint", "Zint" );
|
||||
|
||||
glbarcode::Factory::registerType( "zint::ausp", Zint::AusP::create );
|
||||
glbarcode::Factory::registerType( "zint::ausrp", Zint::AusRP::create );
|
||||
glbarcode::Factory::registerType( "zint::ausrt", Zint::AusRT::create );
|
||||
glbarcode::Factory::registerType( "zint::ausrd", Zint::AusRD::create );
|
||||
glbarcode::Factory::registerType( "zint::aztec", Zint::Aztec::create );
|
||||
glbarcode::Factory::registerType( "zint::azrun", Zint::Azrun::create );
|
||||
glbarcode::Factory::registerType( "zint::cbr", Zint::Cbr::create );
|
||||
glbarcode::Factory::registerType( "zint::code1", Zint::Code1::create );
|
||||
glbarcode::Factory::registerType( "zint::code11", Zint::Code11::create );
|
||||
glbarcode::Factory::registerType( "zint::c16k", Zint::C16k::create );
|
||||
glbarcode::Factory::registerType( "zint::c25m", Zint::C25m::create );
|
||||
glbarcode::Factory::registerType( "zint::c25i", Zint::C25i::create );
|
||||
glbarcode::Factory::registerType( "zint::c25dl", Zint::C25dl::create );
|
||||
glbarcode::Factory::registerType( "zint::code32", Zint::Code32::create );
|
||||
glbarcode::Factory::registerType( "zint::code39", Zint::Code39::create );
|
||||
glbarcode::Factory::registerType( "zint::code39e", Zint::Code39e::create );
|
||||
glbarcode::Factory::registerType( "zint::code49", Zint::Code49::create );
|
||||
glbarcode::Factory::registerType( "zint::code93", Zint::Code93::create );
|
||||
glbarcode::Factory::registerType( "zint::code128", Zint::Code128::create );
|
||||
glbarcode::Factory::registerType( "zint::code128b", Zint::Code128b::create );
|
||||
glbarcode::Factory::registerType( "zint::daft", Zint::Daft::create );
|
||||
glbarcode::Factory::registerType( "zint::dmtx", Zint::Dmtx::create );
|
||||
glbarcode::Factory::registerType( "zint::dpl", Zint::Dpl::create );
|
||||
glbarcode::Factory::registerType( "zint::dpi", Zint::Dpi::create );
|
||||
glbarcode::Factory::registerType( "zint::kix", Zint::Kix::create );
|
||||
glbarcode::Factory::registerType( "zint::ean", Zint::Ean::create );
|
||||
glbarcode::Factory::registerType( "zint::gmtx", Zint::Gmtx::create );
|
||||
glbarcode::Factory::registerType( "zint::gs1128", Zint::Gs1128::create );
|
||||
glbarcode::Factory::registerType( "zint::rss14", Zint::Rss14::create );
|
||||
glbarcode::Factory::registerType( "zint::rssltd", Zint::Rssltd::create );
|
||||
glbarcode::Factory::registerType( "zint::rssexp", Zint::Rssexp::create );
|
||||
glbarcode::Factory::registerType( "zint::rsss", Zint::Rsss::create );
|
||||
glbarcode::Factory::registerType( "zint::rssso", Zint::Rssso::create );
|
||||
glbarcode::Factory::registerType( "zint::rssse", Zint::Rssse::create );
|
||||
glbarcode::Factory::registerType( "zint::hibc128", Zint::Hibc128::create );
|
||||
glbarcode::Factory::registerType( "zint::hibc39", Zint::Hibc39::create );
|
||||
glbarcode::Factory::registerType( "zint::hibcdm", Zint::Hibcdm::create );
|
||||
glbarcode::Factory::registerType( "zint::hibcqr", Zint::Hibcqr::create );
|
||||
glbarcode::Factory::registerType( "zint::hibcpdf", Zint::Hibcpdf::create );
|
||||
glbarcode::Factory::registerType( "zint::hibcmpdf", Zint::Hibcmpdf::create );
|
||||
glbarcode::Factory::registerType( "zint::hibcaz", Zint::Hibcaz::create );
|
||||
glbarcode::Factory::registerType( "zint::i25", Zint::I25::create );
|
||||
glbarcode::Factory::registerType( "zint::isbn", Zint::Isbn::create );
|
||||
glbarcode::Factory::registerType( "zint::itf14", Zint::Itf14::create );
|
||||
glbarcode::Factory::registerType( "zint::japan", Zint::Japan::create );
|
||||
glbarcode::Factory::registerType( "zint::korea", Zint::Korea::create );
|
||||
glbarcode::Factory::registerType( "zint::logm", Zint::Logm::create );
|
||||
glbarcode::Factory::registerType( "zint::maxi", Zint::Maxi::create );
|
||||
glbarcode::Factory::registerType( "zint::mpdf", Zint::Mpdf::create );
|
||||
glbarcode::Factory::registerType( "zint::mqr", Zint::Mqr::create );
|
||||
glbarcode::Factory::registerType( "zint::msi", Zint::Msi::create );
|
||||
glbarcode::Factory::registerType( "zint::nve", Zint::Nve::create );
|
||||
glbarcode::Factory::registerType( "zint::pdf", Zint::Pdf::create );
|
||||
glbarcode::Factory::registerType( "zint::pdft", Zint::Pdft::create );
|
||||
glbarcode::Factory::registerType( "zint::plan", Zint::Plan::create );
|
||||
glbarcode::Factory::registerType( "zint::postnet", Zint::Postnet::create );
|
||||
glbarcode::Factory::registerType( "zint::pharma", Zint::Pharma::create );
|
||||
glbarcode::Factory::registerType( "zint::pharma2", Zint::Pharma2::create );
|
||||
glbarcode::Factory::registerType( "zint::pzn", Zint::Pzn::create );
|
||||
glbarcode::Factory::registerType( "zint::qr", Zint::Qr::create );
|
||||
glbarcode::Factory::registerType( "zint::rm4", Zint::Rm4::create );
|
||||
glbarcode::Factory::registerType( "zint::tele", Zint::Tele::create );
|
||||
glbarcode::Factory::registerType( "zint::telex", Zint::Telex::create );
|
||||
glbarcode::Factory::registerType( "zint::upc-a", Zint::UpcA::create );
|
||||
glbarcode::Factory::registerType( "zint::upc-e", Zint::UpcE::create );
|
||||
glbarcode::Factory::registerType( "zint::usps", Zint::Usps::create );
|
||||
glbarcode::Factory::registerType( "zint::pls", Zint::Pls::create );
|
||||
glbarcode::Factory::registerType( "zint::ausp", Zint::AusP::create );
|
||||
glbarcode::Factory::registerType( "zint::ausrp", Zint::AusRP::create );
|
||||
glbarcode::Factory::registerType( "zint::ausrt", Zint::AusRT::create );
|
||||
glbarcode::Factory::registerType( "zint::ausrd", Zint::AusRD::create );
|
||||
glbarcode::Factory::registerType( "zint::aztec", Zint::Aztec::create );
|
||||
glbarcode::Factory::registerType( "zint::azrun", Zint::Azrun::create );
|
||||
glbarcode::Factory::registerType( "zint::cbr", Zint::Cbr::create );
|
||||
glbarcode::Factory::registerType( "zint::code1", Zint::Code1::create );
|
||||
glbarcode::Factory::registerType( "zint::code11", Zint::Code11::create );
|
||||
glbarcode::Factory::registerType( "zint::c16k", Zint::C16k::create );
|
||||
glbarcode::Factory::registerType( "zint::c25m", Zint::C25m::create );
|
||||
glbarcode::Factory::registerType( "zint::c25i", Zint::C25i::create );
|
||||
glbarcode::Factory::registerType( "zint::c25dl", Zint::C25dl::create );
|
||||
glbarcode::Factory::registerType( "zint::code32", Zint::Code32::create );
|
||||
glbarcode::Factory::registerType( "zint::code39", Zint::Code39::create );
|
||||
glbarcode::Factory::registerType( "zint::code39e", Zint::Code39e::create );
|
||||
glbarcode::Factory::registerType( "zint::code49", Zint::Code49::create );
|
||||
glbarcode::Factory::registerType( "zint::code93", Zint::Code93::create );
|
||||
glbarcode::Factory::registerType( "zint::code128", Zint::Code128::create );
|
||||
glbarcode::Factory::registerType( "zint::code128b", Zint::Code128b::create );
|
||||
glbarcode::Factory::registerType( "zint::daft", Zint::Daft::create );
|
||||
glbarcode::Factory::registerType( "zint::dmtx", Zint::Dmtx::create );
|
||||
glbarcode::Factory::registerType( "zint::dpl", Zint::Dpl::create );
|
||||
glbarcode::Factory::registerType( "zint::dpi", Zint::Dpi::create );
|
||||
glbarcode::Factory::registerType( "zint::kix", Zint::Kix::create );
|
||||
glbarcode::Factory::registerType( "zint::ean", Zint::Ean::create );
|
||||
glbarcode::Factory::registerType( "zint::gmtx", Zint::Gmtx::create );
|
||||
glbarcode::Factory::registerType( "zint::gs1128", Zint::Gs1128::create );
|
||||
glbarcode::Factory::registerType( "zint::rss14", Zint::Rss14::create );
|
||||
glbarcode::Factory::registerType( "zint::rssltd", Zint::Rssltd::create );
|
||||
glbarcode::Factory::registerType( "zint::rssexp", Zint::Rssexp::create );
|
||||
glbarcode::Factory::registerType( "zint::rsss", Zint::Rsss::create );
|
||||
glbarcode::Factory::registerType( "zint::rssso", Zint::Rssso::create );
|
||||
glbarcode::Factory::registerType( "zint::rssse", Zint::Rssse::create );
|
||||
glbarcode::Factory::registerType( "zint::hibc128", Zint::Hibc128::create );
|
||||
glbarcode::Factory::registerType( "zint::hibc39", Zint::Hibc39::create );
|
||||
glbarcode::Factory::registerType( "zint::hibcdm", Zint::Hibcdm::create );
|
||||
glbarcode::Factory::registerType( "zint::hibcqr", Zint::Hibcqr::create );
|
||||
glbarcode::Factory::registerType( "zint::hibcpdf", Zint::Hibcpdf::create );
|
||||
glbarcode::Factory::registerType( "zint::hibcmpdf", Zint::Hibcmpdf::create );
|
||||
glbarcode::Factory::registerType( "zint::hibcaz", Zint::Hibcaz::create );
|
||||
glbarcode::Factory::registerType( "zint::i25", Zint::I25::create );
|
||||
glbarcode::Factory::registerType( "zint::isbn", Zint::Isbn::create );
|
||||
glbarcode::Factory::registerType( "zint::itf14", Zint::Itf14::create );
|
||||
glbarcode::Factory::registerType( "zint::japan", Zint::Japan::create );
|
||||
glbarcode::Factory::registerType( "zint::korea", Zint::Korea::create );
|
||||
glbarcode::Factory::registerType( "zint::logm", Zint::Logm::create );
|
||||
glbarcode::Factory::registerType( "zint::maxi", Zint::Maxi::create );
|
||||
glbarcode::Factory::registerType( "zint::mpdf", Zint::Mpdf::create );
|
||||
glbarcode::Factory::registerType( "zint::mqr", Zint::Mqr::create );
|
||||
glbarcode::Factory::registerType( "zint::msi", Zint::Msi::create );
|
||||
glbarcode::Factory::registerType( "zint::nve", Zint::Nve::create );
|
||||
glbarcode::Factory::registerType( "zint::pdf", Zint::Pdf::create );
|
||||
glbarcode::Factory::registerType( "zint::pdft", Zint::Pdft::create );
|
||||
glbarcode::Factory::registerType( "zint::plan", Zint::Plan::create );
|
||||
glbarcode::Factory::registerType( "zint::postnet", Zint::Postnet::create );
|
||||
glbarcode::Factory::registerType( "zint::pharma", Zint::Pharma::create );
|
||||
glbarcode::Factory::registerType( "zint::pharma2", Zint::Pharma2::create );
|
||||
glbarcode::Factory::registerType( "zint::pzn", Zint::Pzn::create );
|
||||
glbarcode::Factory::registerType( "zint::qr", Zint::Qr::create );
|
||||
glbarcode::Factory::registerType( "zint::rm4", Zint::Rm4::create );
|
||||
glbarcode::Factory::registerType( "zint::tele", Zint::Tele::create );
|
||||
glbarcode::Factory::registerType( "zint::telex", Zint::Telex::create );
|
||||
glbarcode::Factory::registerType( "zint::upc-a", Zint::UpcA::create );
|
||||
glbarcode::Factory::registerType( "zint::upc-e", Zint::UpcE::create );
|
||||
glbarcode::Factory::registerType( "zint::usps", Zint::Usps::create );
|
||||
glbarcode::Factory::registerType( "zint::pls", Zint::Pls::create );
|
||||
|
||||
registerStyle( "ausp", "zint", tr("Austraila Post Standard"),
|
||||
false, false, true, false, "12345678901234567890123", true, 23 );
|
||||
registerStyle( "ausp", "zint", tr("Austraila Post Standard"),
|
||||
false, false, true, false, "12345678901234567890123", true, 23 );
|
||||
|
||||
registerStyle( "ausrp", "zint", tr("Australia Post Reply Paid"),
|
||||
false, false, true, false, "12345678", true, 8 );
|
||||
registerStyle( "ausrp", "zint", tr("Australia Post Reply Paid"),
|
||||
false, false, true, false, "12345678", true, 8 );
|
||||
|
||||
registerStyle( "ausrt", "zint", tr("Australia Post Route Code"),
|
||||
false, false, true, false, "12345678", true, 8 );
|
||||
registerStyle( "ausrt", "zint", tr("Australia Post Route Code"),
|
||||
false, false, true, false, "12345678", true, 8 );
|
||||
|
||||
registerStyle( "ausrd", "zint", tr("Australia Post Redirect"),
|
||||
false, false, true, false, "12345678", true, 8 );
|
||||
registerStyle( "ausrd", "zint", tr("Australia Post Redirect"),
|
||||
false, false, true, false, "12345678", true, 8 );
|
||||
|
||||
registerStyle( "aztec", "zint", tr("Aztec Code"),
|
||||
false, false, true, false, "1234567890", true, 10 );
|
||||
registerStyle( "aztec", "zint", tr("Aztec Code"),
|
||||
false, false, true, false, "1234567890", true, 10 );
|
||||
|
||||
registerStyle( "azrun", "zint", tr("Aztec Rune"),
|
||||
false, false, true, false, "255", true, 3 );
|
||||
registerStyle( "azrun", "zint", tr("Aztec Rune"),
|
||||
false, false, true, false, "255", true, 3 );
|
||||
|
||||
registerStyle( "cbr", "zint", tr("Codabar"),
|
||||
true, true, true, false, "ABCDABCDAB", true, 10 );
|
||||
registerStyle( "cbr", "zint", tr("Codabar"),
|
||||
true, true, true, false, "ABCDABCDAB", true, 10 );
|
||||
|
||||
registerStyle( "code1", "zint", tr("Code One"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "code1", "zint", tr("Code One"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "code11", "zint", tr("Code 11"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "code11", "zint", tr("Code 11"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "c16k", "zint", tr("Code 16K"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "c16k", "zint", tr("Code 16K"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "c25m", "zint", tr("Code 2 of 5 Matrix"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "c25m", "zint", tr("Code 2 of 5 Matrix"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "c25i", "zint", tr("Code 2 of 5 IATA"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "c25i", "zint", tr("Code 2 of 5 IATA"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "c25dl", "zint", tr("Code 2 of 5 Data Logic"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "c25dl", "zint", tr("Code 2 of 5 Data Logic"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "code32", "zint", tr("Code 32 (Italian Pharmacode)"),
|
||||
true, true, true, false, "12345678", true, 8 );
|
||||
registerStyle( "code32", "zint", tr("Code 32 (Italian Pharmacode)"),
|
||||
true, true, true, false, "12345678", true, 8 );
|
||||
|
||||
registerStyle( "code39", "zint", tr("Code 39"),
|
||||
true, true, false, false, "0000000000", true, 10 );
|
||||
registerStyle( "code39", "zint", tr("Code 39"),
|
||||
true, true, false, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "code39e", "zint", tr("Code 39 Extended"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "code39e", "zint", tr("Code 39 Extended"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "code49", "zint", tr("Code 49"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "code49", "zint", tr("Code 49"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "code93", "zint", tr("Code 93"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "code93", "zint", tr("Code 93"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "code128", "zint", tr("Code 128"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "code128", "zint", tr("Code 128"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "code128b", "zint", tr("Code 128 (Mode C supression)"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "code128b", "zint", tr("Code 128 (Mode C supression)"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "daft", "zint", tr("DAFT Code"),
|
||||
false, false, false, false, "DAFTDAFTDAFTDAFT", true, 16 );
|
||||
registerStyle( "daft", "zint", tr("DAFT Code"),
|
||||
false, false, false, false, "DAFTDAFTDAFTDAFT", true, 16 );
|
||||
|
||||
registerStyle( "dmtx", "zint", tr("Data Matrix"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "dmtx", "zint", tr("Data Matrix"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "dpl", "zint", tr("Deutsche Post Leitcode"),
|
||||
true, true, true, false, "1234567890123", true, 13 );
|
||||
registerStyle( "dpl", "zint", tr("Deutsche Post Leitcode"),
|
||||
true, true, true, false, "1234567890123", true, 13 );
|
||||
|
||||
registerStyle( "dpi", "zint", tr("Deutsche Post Identcode"),
|
||||
true, true, true, false, "12345678901", true, 11 );
|
||||
registerStyle( "dpi", "zint", tr("Deutsche Post Identcode"),
|
||||
true, true, true, false, "12345678901", true, 11 );
|
||||
|
||||
registerStyle( "kix", "zint", tr("Dutch Post KIX Code"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "kix", "zint", tr("Dutch Post KIX Code"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "ean", "zint", tr("EAN"),
|
||||
true, true, true, false, "1234567890123", false, 13 );
|
||||
registerStyle( "ean", "zint", tr("EAN"),
|
||||
true, true, true, false, "1234567890123", false, 13 );
|
||||
|
||||
registerStyle( "gmtx", "zint", tr("Grid Matrix"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "gmtx", "zint", tr("Grid Matrix"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "gs1-128", "zint", tr("GS1-128"),
|
||||
true, true, true, false, "[01]12345678901234", false, 18 );
|
||||
registerStyle( "gs1-128", "zint", tr("GS1-128"),
|
||||
true, true, true, false, "[01]12345678901234", false, 18 );
|
||||
|
||||
registerStyle( "rss14", "zint", tr("GS1 DataBar-14"),
|
||||
true, true, true, false, "1234567890123", true, 13 );
|
||||
registerStyle( "rss14", "zint", tr("GS1 DataBar-14"),
|
||||
true, true, true, false, "1234567890123", true, 13 );
|
||||
|
||||
registerStyle( "rssltd", "zint", "GS1 DataBar-14 Limited",
|
||||
true, true, true, false, "1234567890123", true, 13 );
|
||||
registerStyle( "rssltd", "zint", "GS1 DataBar-14 Limited",
|
||||
true, true, true, false, "1234567890123", true, 13 );
|
||||
|
||||
registerStyle( "rssexp", "zint", "GS1 DataBar Extended",
|
||||
true, true, true, false, "[01]12345678901234", false, 18 );
|
||||
registerStyle( "rssexp", "zint", "GS1 DataBar Extended",
|
||||
true, true, true, false, "[01]12345678901234", false, 18 );
|
||||
|
||||
registerStyle( "rsss", "zint", tr("GS1 DataBar-14 Stacked"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "rsss", "zint", tr("GS1 DataBar-14 Stacked"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "rssso", "zint", tr("GS1 DataBar-14 Stacked Omni."),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "rssso", "zint", tr("GS1 DataBar-14 Stacked Omni."),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "rssse", "zint", tr("GS1 DataBar Extended Stacked"),
|
||||
false, false, true, false, "[01]12345678901234", false, 18 );
|
||||
registerStyle( "rssse", "zint", tr("GS1 DataBar Extended Stacked"),
|
||||
false, false, true, false, "[01]12345678901234", false, 18 );
|
||||
|
||||
registerStyle( "hibc128", "zint", tr("HIBC Code 128"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "hibc128", "zint", tr("HIBC Code 128"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "hibc39", "zint", tr("HIBC Code 39"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "hibc39", "zint", tr("HIBC Code 39"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "hibcdm", "zint", tr("HIBC Data Matrix"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "hibcdm", "zint", tr("HIBC Data Matrix"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "hibcqr", "zint", tr("HIBC QR Code"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "hibcqr", "zint", tr("HIBC QR Code"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "hibcpdf", "zint", tr("HIBC PDF417"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "hibcpdf", "zint", tr("HIBC PDF417"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "hibcmpdf", "zint", tr("HIBC Micro PDF417"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "hibcmpdf", "zint", tr("HIBC Micro PDF417"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "hibcaz", "zint", tr("HIBC Aztec Code"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "hibcaz", "zint", tr("HIBC Aztec Code"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "i25", "zint", tr("Interleaved 2 of 5"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "i25", "zint", tr("Interleaved 2 of 5"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "isbn", "zint", tr("ISBN"),
|
||||
true, true, true, false, "123456789", false, 9 );
|
||||
registerStyle( "isbn", "zint", tr("ISBN"),
|
||||
true, true, true, false, "123456789", false, 9 );
|
||||
|
||||
registerStyle( "itf14", "zint", tr("ITF-14"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "itf14", "zint", tr("ITF-14"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "japan", "zint", tr("Japanese Postal"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "japan", "zint", tr("Japanese Postal"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "korea", "zint", tr("Korean Postal"),
|
||||
true, true, true, false, "123456", false, 6 );
|
||||
registerStyle( "korea", "zint", tr("Korean Postal"),
|
||||
true, true, true, false, "123456", false, 6 );
|
||||
|
||||
registerStyle( "logm", "zint", tr("LOGMARS"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "logm", "zint", tr("LOGMARS"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "maxi", "zint", tr("Maxicode"),
|
||||
false, false, false, false, "0000000000", true, 10 );
|
||||
registerStyle( "maxi", "zint", tr("Maxicode"),
|
||||
false, false, false, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "mpdf", "zint", tr("Micro PDF417"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "mpdf", "zint", tr("Micro PDF417"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "mqr", "zint", tr("Micro QR Code"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "mqr", "zint", tr("Micro QR Code"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "msi", "zint", tr("MSI Plessey"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "msi", "zint", tr("MSI Plessey"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "nve", "zint", tr("NVE-18"),
|
||||
true, true, true, false, "12345678901234567", false, 17 );
|
||||
registerStyle( "nve", "zint", tr("NVE-18"),
|
||||
true, true, true, false, "12345678901234567", false, 17 );
|
||||
|
||||
registerStyle( "pdf", "zint", tr("PDF417"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "pdf", "zint", tr("PDF417"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "pdft", "zint", tr("PDF417 Truncated"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "pdft", "zint", tr("PDF417 Truncated"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "plan", "zint", tr("PLANET"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "plan", "zint", tr("PLANET"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "postnet", "zint", tr("PostNet"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "postnet", "zint", tr("PostNet"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "pharma", "zint", tr("Pharmacode"),
|
||||
false, false, true, false, "123456", false, 6 );
|
||||
registerStyle( "pharma", "zint", tr("Pharmacode"),
|
||||
false, false, true, false, "123456", false, 6 );
|
||||
|
||||
registerStyle( "pharma2", "zint", tr("Pharmacode 2-track"),
|
||||
false, false, true, false, "12345678", false, 8 );
|
||||
registerStyle( "pharma2", "zint", tr("Pharmacode 2-track"),
|
||||
false, false, true, false, "12345678", false, 8 );
|
||||
|
||||
registerStyle( "pzn", "zint", tr("Pharmazentral Nummer (PZN)"),
|
||||
true, true, true, false, "123456", false, 6 );
|
||||
registerStyle( "pzn", "zint", tr("Pharmazentral Nummer (PZN)"),
|
||||
true, true, true, false, "123456", false, 6 );
|
||||
|
||||
registerStyle( "qr", "zint", tr("QR Code"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "qr", "zint", tr("QR Code"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "rm4", "zint", tr("Royal Mail 4-State"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "rm4", "zint", tr("Royal Mail 4-State"),
|
||||
false, false, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "tele", "zint", tr("Telepen"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "tele", "zint", tr("Telepen"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "telex", "zint", tr("Telepen Numeric"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "telex", "zint", tr("Telepen Numeric"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
|
||||
registerStyle( "upc-a", "zint", tr("UPC-A"),
|
||||
true, true, true, false, "12345678901", false, 11 );
|
||||
registerStyle( "upc-a", "zint", tr("UPC-A"),
|
||||
true, true, true, false, "12345678901", false, 11 );
|
||||
|
||||
registerStyle( "upc-e", "zint", tr("UPC-E"),
|
||||
true, true, true, false, "1234567", false, 7 );
|
||||
registerStyle( "upc-e", "zint", tr("UPC-E"),
|
||||
true, true, true, false, "1234567", false, 7 );
|
||||
|
||||
registerStyle( "usps", "zint", tr("USPS One Code"),
|
||||
false, false, true, false, "12345678901234567890", true, 20 );
|
||||
registerStyle( "usps", "zint", tr("USPS One Code"),
|
||||
false, false, true, false, "12345678901234567890", true, 20 );
|
||||
|
||||
registerStyle( "pls", "zint", tr("UK Plessey"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
registerStyle( "pls", "zint", tr("UK Plessey"),
|
||||
true, true, true, false, "0000000000", true, 10 );
|
||||
#endif // HAVE_ZINT
|
||||
|
||||
}
|
||||
|
||||
|
||||
void Backends::init()
|
||||
{
|
||||
static Backends* singletonInstance = nullptr;
|
||||
|
||||
if ( singletonInstance == nullptr )
|
||||
{
|
||||
singletonInstance = new Backends();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const QStringList& Backends::backendList()
|
||||
{
|
||||
return mBackendIdList;
|
||||
}
|
||||
|
||||
|
||||
QString Backends::backendName( const QString& backendId )
|
||||
{
|
||||
return mBackendNameMap[ backendId ];
|
||||
}
|
||||
|
||||
|
||||
const QList<Style>& Backends::styleList()
|
||||
{
|
||||
return mStyleList;
|
||||
}
|
||||
|
||||
|
||||
const Style& Backends::defaultStyle()
|
||||
{
|
||||
return mStyleList[0];
|
||||
}
|
||||
|
||||
|
||||
const Style& Backends::style( const QString& backendId, const QString& StyleId )
|
||||
{
|
||||
foreach ( const Style& bcStyle, mStyleList )
|
||||
void Backends::init()
|
||||
{
|
||||
if ( (bcStyle.backendId() == backendId) && (bcStyle.id() == StyleId) )
|
||||
static Backends* singletonInstance = nullptr;
|
||||
|
||||
if ( singletonInstance == nullptr )
|
||||
{
|
||||
return bcStyle;
|
||||
singletonInstance = new Backends();
|
||||
}
|
||||
}
|
||||
|
||||
return defaultStyle();
|
||||
}
|
||||
|
||||
const QStringList& Backends::backendList()
|
||||
{
|
||||
return mBackendIdList;
|
||||
}
|
||||
|
||||
|
||||
QString Backends::backendName( const QString& backendId )
|
||||
{
|
||||
return mBackendNameMap[ backendId ];
|
||||
}
|
||||
|
||||
|
||||
const QList<Style>& Backends::styleList()
|
||||
{
|
||||
return mStyleList;
|
||||
}
|
||||
|
||||
|
||||
void Backends::registerBackend( const QString& backendId, const QString& backendName )
|
||||
{
|
||||
mBackendIdList.append( backendId );
|
||||
mBackendNameMap[ backendId ] = backendName;
|
||||
}
|
||||
const Style& Backends::defaultStyle()
|
||||
{
|
||||
return mStyleList[0];
|
||||
}
|
||||
|
||||
|
||||
void Backends::registerStyle( const QString& id,
|
||||
const QString& backendId,
|
||||
const QString& name,
|
||||
bool canText,
|
||||
bool textOptional,
|
||||
bool canChecksum,
|
||||
bool checksumOptional,
|
||||
const QString& defaultDigits,
|
||||
bool canFreeForm,
|
||||
int preferedN )
|
||||
{
|
||||
Style style( id, backendId, name,
|
||||
canText, textOptional,
|
||||
canChecksum, checksumOptional,
|
||||
defaultDigits,
|
||||
canFreeForm, preferedN );
|
||||
const Style& Backends::style( const QString& backendId, const QString& StyleId )
|
||||
{
|
||||
foreach ( const Style& bcStyle, mStyleList )
|
||||
{
|
||||
if ( (bcStyle.backendId() == backendId) && (bcStyle.id() == StyleId) )
|
||||
{
|
||||
return bcStyle;
|
||||
}
|
||||
}
|
||||
|
||||
mStyleList.append( style );
|
||||
}
|
||||
return defaultStyle();
|
||||
}
|
||||
|
||||
} // namespace glabels::barcode
|
||||
|
||||
void Backends::registerBackend( const QString& backendId, const QString& backendName )
|
||||
{
|
||||
mBackendIdList.append( backendId );
|
||||
mBackendNameMap[ backendId ] = backendName;
|
||||
}
|
||||
|
||||
|
||||
void Backends::registerStyle( const QString& id,
|
||||
const QString& backendId,
|
||||
const QString& name,
|
||||
bool canText,
|
||||
bool textOptional,
|
||||
bool canChecksum,
|
||||
bool checksumOptional,
|
||||
const QString& defaultDigits,
|
||||
bool canFreeForm,
|
||||
int preferedN )
|
||||
{
|
||||
Style style( id, backendId, name,
|
||||
canText, textOptional,
|
||||
canChecksum, checksumOptional,
|
||||
defaultDigits,
|
||||
canFreeForm, preferedN );
|
||||
|
||||
mStyleList.append( style );
|
||||
}
|
||||
|
||||
} // namespace barcode
|
||||
} //namespace glabels
|
||||
|
||||
+48
-45
@@ -30,65 +30,68 @@
|
||||
#include <QString>
|
||||
|
||||
|
||||
namespace glabels::barcode
|
||||
namespace glabels
|
||||
{
|
||||
|
||||
///
|
||||
/// Backends Database
|
||||
///
|
||||
class Backends : public QObject
|
||||
namespace barcode
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
///
|
||||
/// Backends Database
|
||||
///
|
||||
class Backends : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
// Life Cycle
|
||||
/////////////////////////////////
|
||||
private:
|
||||
Backends();
|
||||
/////////////////////////////////
|
||||
// Life Cycle
|
||||
/////////////////////////////////
|
||||
private:
|
||||
Backends();
|
||||
|
||||
public:
|
||||
static void init();
|
||||
public:
|
||||
static void init();
|
||||
|
||||
/////////////////////////////////
|
||||
// Public Methods
|
||||
/////////////////////////////////
|
||||
public:
|
||||
static const QStringList& backendList();
|
||||
static QString backendName( const QString& backendId );
|
||||
static const QList<Style>& styleList();
|
||||
static const Style& defaultStyle();
|
||||
static const Style& style( const QString& backendId, const QString& StyleId );
|
||||
/////////////////////////////////
|
||||
// Public Methods
|
||||
/////////////////////////////////
|
||||
public:
|
||||
static const QStringList& backendList();
|
||||
static QString backendName( const QString& backendId );
|
||||
static const QList<Style>& styleList();
|
||||
static const Style& defaultStyle();
|
||||
static const Style& style( const QString& backendId, const QString& StyleId );
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
// Private Methods
|
||||
/////////////////////////////////
|
||||
private:
|
||||
static void registerBackend( const QString &backendId, const QString &backendName );
|
||||
/////////////////////////////////
|
||||
// Private Methods
|
||||
/////////////////////////////////
|
||||
private:
|
||||
static void registerBackend( const QString &backendId, const QString &backendName );
|
||||
|
||||
static void registerStyle( const QString& id,
|
||||
const QString& backendId,
|
||||
const QString& name,
|
||||
bool canText,
|
||||
bool textOptional,
|
||||
bool canChecksum,
|
||||
bool checksumOptional,
|
||||
const QString& defaultDigits,
|
||||
bool canFreeForm,
|
||||
int preferedN );
|
||||
static void registerStyle( const QString& id,
|
||||
const QString& backendId,
|
||||
const QString& name,
|
||||
bool canText,
|
||||
bool textOptional,
|
||||
bool canChecksum,
|
||||
bool checksumOptional,
|
||||
const QString& defaultDigits,
|
||||
bool canFreeForm,
|
||||
int preferedN );
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
// Private Members
|
||||
/////////////////////////////////
|
||||
static QStringList mBackendIdList;
|
||||
static QMap<QString,QString> mBackendNameMap;
|
||||
/////////////////////////////////
|
||||
// Private Members
|
||||
/////////////////////////////////
|
||||
static QStringList mBackendIdList;
|
||||
static QMap<QString,QString> mBackendNameMap;
|
||||
|
||||
static QList<Style> mStyleList;
|
||||
static QList<Style> mStyleList;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
+691
-688
File diff suppressed because it is too large
Load Diff
+305
-302
@@ -26,392 +26,395 @@
|
||||
#include "glbarcode/Barcode1dBase.h"
|
||||
|
||||
|
||||
namespace glabels::barcode
|
||||
namespace glabels
|
||||
{
|
||||
namespace GnuBarcode
|
||||
namespace barcode
|
||||
{
|
||||
|
||||
/**
|
||||
* GnuBarcode::Base base class for all GNU Barcodes
|
||||
*
|
||||
* Implements glbarcode::Barcode1dBase.
|
||||
*/
|
||||
class Base : public glbarcode::Barcode1dBase
|
||||
namespace GnuBarcode
|
||||
{
|
||||
protected:
|
||||
int flags;
|
||||
|
||||
/**
|
||||
* GnuBarcode::Base base class for all GNU Barcodes
|
||||
*
|
||||
* Implements glbarcode::Barcode1dBase.
|
||||
*/
|
||||
class Base : public glbarcode::Barcode1dBase
|
||||
{
|
||||
protected:
|
||||
int flags;
|
||||
|
||||
bool isAscii( const std::string& data ) const;
|
||||
bool isAscii( const std::string& data ) const;
|
||||
|
||||
bool isNumericLengthValid( const std::string& data,
|
||||
unsigned int nMin,
|
||||
unsigned int nMax ) const;
|
||||
bool isNumericLengthValid( const std::string& data,
|
||||
unsigned int nMin,
|
||||
unsigned int nMax ) const;
|
||||
|
||||
bool isNumericLength1Valid( const std::string& data,
|
||||
unsigned int nMin,
|
||||
unsigned int nMax ) const;
|
||||
bool isNumericLength1Valid( const std::string& data,
|
||||
unsigned int nMin,
|
||||
unsigned int nMax ) const;
|
||||
|
||||
bool isNumericLength2Valid( const std::string& data,
|
||||
unsigned int nMin,
|
||||
unsigned int nMax ) const;
|
||||
bool isNumericLength2Valid( const std::string& data,
|
||||
unsigned int nMin,
|
||||
unsigned int nMax ) const;
|
||||
|
||||
void vectorize( const std::string& encodedData,
|
||||
const std::string& displayText,
|
||||
const std::string& cookedData,
|
||||
double& w,
|
||||
double& h ) override;
|
||||
};
|
||||
void vectorize( const std::string& encodedData,
|
||||
const std::string& displayText,
|
||||
const std::string& cookedData,
|
||||
double& w,
|
||||
double& h ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* EAN Barcode (Any)
|
||||
*/
|
||||
class Ean : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* EAN Barcode (Any)
|
||||
*/
|
||||
class Ean : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* EAN-8 Barcode
|
||||
*/
|
||||
class Ean8 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* EAN-8 Barcode
|
||||
*/
|
||||
class Ean8 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* EAN-8+2 Barcode
|
||||
*/
|
||||
class Ean8_2 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* EAN-8+2 Barcode
|
||||
*/
|
||||
class Ean8_2 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* EAN-8+5 Barcode
|
||||
*/
|
||||
class Ean8_5 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* EAN-8+5 Barcode
|
||||
*/
|
||||
class Ean8_5 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* EAN-13 Barcode
|
||||
*/
|
||||
class Ean13 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* EAN-13 Barcode
|
||||
*/
|
||||
class Ean13 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* EAN-13+2 Barcode
|
||||
*/
|
||||
class Ean13_2 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* EAN-13+2 Barcode
|
||||
*/
|
||||
class Ean13_2 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* EAN-13+5 Barcode
|
||||
*/
|
||||
class Ean13_5 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* EAN-13+5 Barcode
|
||||
*/
|
||||
class Ean13_5 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* UPC Barcode (Any)
|
||||
*/
|
||||
class Upc : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* UPC Barcode (Any)
|
||||
*/
|
||||
class Upc : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* UPC-A Barcode
|
||||
*/
|
||||
class UpcA : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* UPC-A Barcode
|
||||
*/
|
||||
class UpcA : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* UPC-A+2 Barcode
|
||||
*/
|
||||
class UpcA_2 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* UPC-A+2 Barcode
|
||||
*/
|
||||
class UpcA_2 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* UPC-A+5 Barcode
|
||||
*/
|
||||
class UpcA_5 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* UPC-A+5 Barcode
|
||||
*/
|
||||
class UpcA_5 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* UPC-E Barcode
|
||||
*/
|
||||
class UpcE : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* UPC-E Barcode
|
||||
*/
|
||||
class UpcE : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* UPC-E+2 Barcode
|
||||
*/
|
||||
class UpcE_2 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* UPC-E+2 Barcode
|
||||
*/
|
||||
class UpcE_2 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* UPC-E+5 Barcode
|
||||
*/
|
||||
class UpcE_5 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* UPC-E+5 Barcode
|
||||
*/
|
||||
class UpcE_5 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* ISBN Barcode
|
||||
*/
|
||||
class Isbn : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* ISBN Barcode
|
||||
*/
|
||||
class Isbn : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* ISBN+5 Barcode
|
||||
*/
|
||||
class Isbn_5 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* ISBN+5 Barcode
|
||||
*/
|
||||
class Isbn_5 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Code39 Barcode
|
||||
*/
|
||||
class Code39 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* Code39 Barcode
|
||||
*/
|
||||
class Code39 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Code128 Barcode
|
||||
*/
|
||||
class Code128 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* Code128 Barcode
|
||||
*/
|
||||
class Code128 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Code128C Barcode
|
||||
*/
|
||||
class Code128C : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* Code128C Barcode
|
||||
*/
|
||||
class Code128C : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Code128B Barcode
|
||||
*/
|
||||
class Code128B : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* Code128B Barcode
|
||||
*/
|
||||
class Code128B : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* I25 Barcode
|
||||
*/
|
||||
class I25 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* I25 Barcode
|
||||
*/
|
||||
class I25 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* CBR Barcode
|
||||
*/
|
||||
class Cbr : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* CBR Barcode
|
||||
*/
|
||||
class Cbr : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* MSI Barcode
|
||||
*/
|
||||
class Msi : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* MSI Barcode
|
||||
*/
|
||||
class Msi : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* PLS Barcode
|
||||
*/
|
||||
class Pls : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* PLS Barcode
|
||||
*/
|
||||
class Pls : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Code93 Barcode
|
||||
*/
|
||||
class Code93 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
/**
|
||||
* Code93 Barcode
|
||||
*/
|
||||
class Code93 : public Base
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
protected:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
std::string encode( const std::string& cookedData ) override;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,65 +25,69 @@
|
||||
#include <qrencode.h>
|
||||
|
||||
|
||||
namespace glabels::barcode
|
||||
namespace glabels
|
||||
{
|
||||
namespace QrEncode
|
||||
namespace barcode
|
||||
{
|
||||
|
||||
/*
|
||||
* Static QrCode barcode creation method
|
||||
*/
|
||||
glbarcode::Barcode* QrCode::create()
|
||||
namespace QrEncode
|
||||
{
|
||||
return new QrCode();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* QrCode data validation, implements glbarcode::Barcode2dBase::validate()
|
||||
*/
|
||||
bool QrCode::validate( const std::string& rawData )
|
||||
{
|
||||
if ( rawData.size() == 0 )
|
||||
/*
|
||||
* Static QrCode barcode creation method
|
||||
*/
|
||||
glbarcode::Barcode* QrCode::create()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* QrCode data encoding, implements glbarcode::Barcode2dBase::encode()
|
||||
*/
|
||||
bool QrCode::encode( const std::string& cookedData, glbarcode::Matrix<bool>& encodedData )
|
||||
{
|
||||
QRcode *qrcode = QRcode_encodeString( cookedData.c_str(), 0, QR_ECLEVEL_M, QR_MODE_8, 1 );
|
||||
if ( qrcode == NULL )
|
||||
{
|
||||
return false;
|
||||
return new QrCode();
|
||||
}
|
||||
|
||||
|
||||
int w = qrcode->width;
|
||||
encodedData.resize( w, w );
|
||||
|
||||
|
||||
for ( int iy = 0; iy < w; iy++ )
|
||||
/*
|
||||
* QrCode data validation, implements glbarcode::Barcode2dBase::validate()
|
||||
*/
|
||||
bool QrCode::validate( const std::string& rawData )
|
||||
{
|
||||
for ( int ix = 0; ix < w; ix++ )
|
||||
if ( rawData.size() == 0 )
|
||||
{
|
||||
encodedData[iy][ix] = qrcode->data[ iy*w + ix ] & 0x01;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
QRcode_free( qrcode );
|
||||
QRcode_clearCache();
|
||||
/*
|
||||
* QrCode data encoding, implements glbarcode::Barcode2dBase::encode()
|
||||
*/
|
||||
bool QrCode::encode( const std::string& cookedData, glbarcode::Matrix<bool>& encodedData )
|
||||
{
|
||||
QRcode *qrcode = QRcode_encodeString( cookedData.c_str(), 0, QR_ECLEVEL_M, QR_MODE_8, 1 );
|
||||
if ( qrcode == NULL )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
int w = qrcode->width;
|
||||
encodedData.resize( w, w );
|
||||
|
||||
|
||||
for ( int iy = 0; iy < w; iy++ )
|
||||
{
|
||||
for ( int ix = 0; ix < w; ix++ )
|
||||
{
|
||||
encodedData[iy][ix] = qrcode->data[ iy*w + ix ] & 0x01;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
QRcode_free( qrcode );
|
||||
QRcode_clearCache();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif // HAVE_QRENCODE
|
||||
|
||||
+19
-16
@@ -26,28 +26,31 @@
|
||||
#include "glbarcode/Barcode2dBase.h"
|
||||
|
||||
|
||||
namespace glabels::barcode
|
||||
namespace glabels
|
||||
{
|
||||
namespace QrEncode
|
||||
namespace barcode
|
||||
{
|
||||
|
||||
/**
|
||||
* QrEncode::QrCode QR Code Barcode
|
||||
*
|
||||
* Implements glbarcode::Barcode2dBase.
|
||||
*/
|
||||
class QrCode : public glbarcode::Barcode2dBase
|
||||
namespace QrEncode
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
private:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
/**
|
||||
* QrEncode::QrCode QR Code Barcode
|
||||
*
|
||||
* Implements glbarcode::Barcode2dBase.
|
||||
*/
|
||||
class QrCode : public glbarcode::Barcode2dBase
|
||||
{
|
||||
public:
|
||||
static Barcode* create();
|
||||
|
||||
bool encode( const std::string& cookedData,
|
||||
glbarcode::Matrix<bool>& encodedData ) override;
|
||||
};
|
||||
private:
|
||||
bool validate( const std::string& rawData ) override;
|
||||
|
||||
bool encode( const std::string& cookedData,
|
||||
glbarcode::Matrix<bool>& encodedData ) override;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+163
-160
@@ -21,184 +21,187 @@
|
||||
#include "Style.h"
|
||||
|
||||
|
||||
namespace glabels::barcode
|
||||
namespace glabels
|
||||
{
|
||||
namespace barcode
|
||||
{
|
||||
|
||||
///
|
||||
/// Default Constructor
|
||||
///
|
||||
Style::Style ()
|
||||
: mId( "" ),
|
||||
mBackendId( "" ),
|
||||
mName( "" ),
|
||||
mCanText( false ),
|
||||
mTextOptional( false ),
|
||||
mCanChecksum( false ),
|
||||
mChecksumOptional( false ),
|
||||
mDefaultDigits( "" ),
|
||||
mCanFreeform( false ),
|
||||
mPreferedN( 0 )
|
||||
{
|
||||
// empty
|
||||
}
|
||||
///
|
||||
/// Default Constructor
|
||||
///
|
||||
Style::Style ()
|
||||
: mId( "" ),
|
||||
mBackendId( "" ),
|
||||
mName( "" ),
|
||||
mCanText( false ),
|
||||
mTextOptional( false ),
|
||||
mCanChecksum( false ),
|
||||
mChecksumOptional( false ),
|
||||
mDefaultDigits( "" ),
|
||||
mCanFreeform( false ),
|
||||
mPreferedN( 0 )
|
||||
{
|
||||
// empty
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Constructor From Data
|
||||
///
|
||||
Style::Style ( const QString& id,
|
||||
const QString& backendId,
|
||||
const QString& name,
|
||||
bool canText,
|
||||
bool textOptional,
|
||||
bool canChecksum,
|
||||
bool checksumOptional,
|
||||
const QString& defaultDigits,
|
||||
bool canFreeform,
|
||||
int preferedN )
|
||||
: mId( id ),
|
||||
mBackendId( backendId ),
|
||||
mName( name ),
|
||||
mCanText( canText ),
|
||||
mTextOptional( textOptional ),
|
||||
mCanChecksum( canChecksum ),
|
||||
mChecksumOptional( checksumOptional ),
|
||||
mDefaultDigits( defaultDigits ),
|
||||
mCanFreeform( canFreeform ),
|
||||
mPreferedN( preferedN )
|
||||
{
|
||||
// empty
|
||||
}
|
||||
///
|
||||
/// Constructor From Data
|
||||
///
|
||||
Style::Style ( const QString& id,
|
||||
const QString& backendId,
|
||||
const QString& name,
|
||||
bool canText,
|
||||
bool textOptional,
|
||||
bool canChecksum,
|
||||
bool checksumOptional,
|
||||
const QString& defaultDigits,
|
||||
bool canFreeform,
|
||||
int preferedN )
|
||||
: mId( id ),
|
||||
mBackendId( backendId ),
|
||||
mName( name ),
|
||||
mCanText( canText ),
|
||||
mTextOptional( textOptional ),
|
||||
mCanChecksum( canChecksum ),
|
||||
mChecksumOptional( checksumOptional ),
|
||||
mDefaultDigits( defaultDigits ),
|
||||
mCanFreeform( canFreeform ),
|
||||
mPreferedN( preferedN )
|
||||
{
|
||||
// empty
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// ID Property Getter
|
||||
///
|
||||
const QString& Style::id() const
|
||||
{
|
||||
return mId;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Full ID Property Getter
|
||||
///
|
||||
QString Style::fullId() const
|
||||
{
|
||||
if ( mBackendId == "" )
|
||||
///
|
||||
/// ID Property Getter
|
||||
///
|
||||
const QString& Style::id() const
|
||||
{
|
||||
return mId;
|
||||
}
|
||||
else
|
||||
|
||||
|
||||
///
|
||||
/// Full ID Property Getter
|
||||
///
|
||||
QString Style::fullId() const
|
||||
{
|
||||
return mBackendId + "::" + mId;
|
||||
if ( mBackendId == "" )
|
||||
{
|
||||
return mId;
|
||||
}
|
||||
else
|
||||
{
|
||||
return mBackendId + "::" + mId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Backend ID Property Getter
|
||||
///
|
||||
const QString& Style::backendId() const
|
||||
{
|
||||
return mBackendId;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Name Property Getter
|
||||
///
|
||||
const QString& Style::name() const
|
||||
{
|
||||
return mName;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Can Text Property Getter
|
||||
///
|
||||
bool Style::canText() const
|
||||
{
|
||||
return mCanText;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Text Optional Property Getter
|
||||
///
|
||||
bool Style::textOptional() const
|
||||
{
|
||||
return mTextOptional;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Can Checksum Property Getter
|
||||
///
|
||||
bool Style::canChecksum() const
|
||||
{
|
||||
return mCanChecksum;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Checksum Optional Property Getter
|
||||
///
|
||||
bool Style::checksumOptional() const
|
||||
{
|
||||
return mChecksumOptional;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Default Digits Property Getter
|
||||
///
|
||||
const QString& Style::defaultDigits() const
|
||||
{
|
||||
return mDefaultDigits;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Can Freeform Property Getter
|
||||
///
|
||||
bool Style::canFreeform() const
|
||||
{
|
||||
return mCanFreeform;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Prefered N Property Getter
|
||||
///
|
||||
int Style::preferedN() const
|
||||
{
|
||||
return mPreferedN;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Generate Example Digits
|
||||
///
|
||||
QString Style::exampleDigits( int n ) const
|
||||
{
|
||||
if ( mCanFreeform )
|
||||
///
|
||||
/// Backend ID Property Getter
|
||||
///
|
||||
const QString& Style::backendId() const
|
||||
{
|
||||
return QString( qMax( n, 1 ), QChar('0') );
|
||||
return mBackendId;
|
||||
}
|
||||
else
|
||||
|
||||
|
||||
///
|
||||
/// Name Property Getter
|
||||
///
|
||||
const QString& Style::name() const
|
||||
{
|
||||
return mName;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Can Text Property Getter
|
||||
///
|
||||
bool Style::canText() const
|
||||
{
|
||||
return mCanText;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Text Optional Property Getter
|
||||
///
|
||||
bool Style::textOptional() const
|
||||
{
|
||||
return mTextOptional;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Can Checksum Property Getter
|
||||
///
|
||||
bool Style::canChecksum() const
|
||||
{
|
||||
return mCanChecksum;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Checksum Optional Property Getter
|
||||
///
|
||||
bool Style::checksumOptional() const
|
||||
{
|
||||
return mChecksumOptional;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Default Digits Property Getter
|
||||
///
|
||||
const QString& Style::defaultDigits() const
|
||||
{
|
||||
return mDefaultDigits;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// "Not equals" operator
|
||||
///
|
||||
bool Style::operator!=( const Style& other ) const
|
||||
{
|
||||
return mId != other.mId;
|
||||
}
|
||||
///
|
||||
/// Can Freeform Property Getter
|
||||
///
|
||||
bool Style::canFreeform() const
|
||||
{
|
||||
return mCanFreeform;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Prefered N Property Getter
|
||||
///
|
||||
int Style::preferedN() const
|
||||
{
|
||||
return mPreferedN;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Generate Example Digits
|
||||
///
|
||||
QString Style::exampleDigits( int n ) const
|
||||
{
|
||||
if ( mCanFreeform )
|
||||
{
|
||||
return QString( qMax( n, 1 ), QChar('0') );
|
||||
}
|
||||
else
|
||||
{
|
||||
return mDefaultDigits;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// "Not equals" operator
|
||||
///
|
||||
bool Style::operator!=( const Style& other ) const
|
||||
{
|
||||
return mId != other.mId;
|
||||
}
|
||||
|
||||
} // namespace glabels::barcode
|
||||
} // namespace barcode
|
||||
} // namespace glabels
|
||||
|
||||
+63
-60
@@ -25,90 +25,93 @@
|
||||
#include <QString>
|
||||
|
||||
|
||||
namespace glabels::barcode
|
||||
namespace glabels
|
||||
{
|
||||
|
||||
///
|
||||
/// Style Type
|
||||
///
|
||||
class Style
|
||||
namespace barcode
|
||||
{
|
||||
|
||||
///
|
||||
/// Style Type
|
||||
///
|
||||
class Style
|
||||
{
|
||||
|
||||
/////////////////////////////////
|
||||
// Life Cycle
|
||||
/////////////////////////////////
|
||||
public:
|
||||
Style ();
|
||||
/////////////////////////////////
|
||||
// Life Cycle
|
||||
/////////////////////////////////
|
||||
public:
|
||||
Style ();
|
||||
|
||||
Style ( const QString& id,
|
||||
const QString& backendId,
|
||||
const QString& name,
|
||||
bool canText,
|
||||
bool textOptional,
|
||||
bool canChecksum,
|
||||
bool checksumOptional,
|
||||
const QString& defaultDigits,
|
||||
bool canFreeform,
|
||||
int preferedN );
|
||||
Style ( const QString& id,
|
||||
const QString& backendId,
|
||||
const QString& name,
|
||||
bool canText,
|
||||
bool textOptional,
|
||||
bool canChecksum,
|
||||
bool checksumOptional,
|
||||
const QString& defaultDigits,
|
||||
bool canFreeform,
|
||||
int preferedN );
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
// Properties
|
||||
/////////////////////////////////
|
||||
const QString& id() const;
|
||||
/////////////////////////////////
|
||||
// Properties
|
||||
/////////////////////////////////
|
||||
const QString& id() const;
|
||||
|
||||
QString fullId() const;
|
||||
QString fullId() const;
|
||||
|
||||
const QString& backendId() const;
|
||||
const QString& backendId() const;
|
||||
|
||||
const QString& name() const;
|
||||
const QString& name() const;
|
||||
|
||||
bool canText() const;
|
||||
bool canText() const;
|
||||
|
||||
bool textOptional() const;
|
||||
bool textOptional() const;
|
||||
|
||||
bool canChecksum() const;
|
||||
bool canChecksum() const;
|
||||
|
||||
bool checksumOptional() const;
|
||||
bool checksumOptional() const;
|
||||
|
||||
const QString& defaultDigits() const;
|
||||
const QString& defaultDigits() const;
|
||||
|
||||
bool canFreeform() const;
|
||||
bool canFreeform() const;
|
||||
|
||||
int preferedN() const;
|
||||
int preferedN() const;
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
// Methods
|
||||
/////////////////////////////////
|
||||
public:
|
||||
QString exampleDigits( int n ) const;
|
||||
/////////////////////////////////
|
||||
// Methods
|
||||
/////////////////////////////////
|
||||
public:
|
||||
QString exampleDigits( int n ) const;
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
// Operators
|
||||
/////////////////////////////////
|
||||
public:
|
||||
bool operator!=( const Style& other ) const;
|
||||
/////////////////////////////////
|
||||
// Operators
|
||||
/////////////////////////////////
|
||||
public:
|
||||
bool operator!=( const Style& other ) const;
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
// Private Data
|
||||
/////////////////////////////////
|
||||
private:
|
||||
QString mId;
|
||||
QString mBackendId;
|
||||
QString mName;
|
||||
bool mCanText;
|
||||
bool mTextOptional;
|
||||
bool mCanChecksum;
|
||||
bool mChecksumOptional;
|
||||
QString mDefaultDigits;
|
||||
bool mCanFreeform;
|
||||
int mPreferedN;
|
||||
/////////////////////////////////
|
||||
// Private Data
|
||||
/////////////////////////////////
|
||||
private:
|
||||
QString mId;
|
||||
QString mBackendId;
|
||||
QString mName;
|
||||
bool mCanText;
|
||||
bool mTextOptional;
|
||||
bool mCanChecksum;
|
||||
bool mChecksumOptional;
|
||||
QString mDefaultDigits;
|
||||
bool mCanFreeform;
|
||||
int mPreferedN;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
+891
-887
File diff suppressed because it is too large
Load Diff
+895
-892
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user