mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Add rMQR to Barcode Studio
and perform some code beautifying at the same time
This commit is contained in:
parent
ad28de1819
commit
ac00e381a6
@ -1,7 +1,7 @@
|
|||||||
/* qr.h Data for QR Code, Micro QR Code and rMQR
|
/* qr.h Data for QR Code, Micro QR Code and rMQR
|
||||||
|
|
||||||
libzint - the open source barcode library
|
libzint - the open source barcode library
|
||||||
Copyright (C) 2008-2017 Robin Stuart <rstuart114@gmail.com>
|
Copyright (C) 2008-2019 Robin Stuart <rstuart114@gmail.com>
|
||||||
Copyright (C) 2006 Kentaro Fukuchi <fukuchi@megaui.net>
|
Copyright (C) 2006 Kentaro Fukuchi <fukuchi@megaui.net>
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (C) 2008 by BogDan Vatra <bogdan@licentia.eu> *
|
* Copyright (C) 2008 by BogDan Vatra <bogdan@licentia.eu> *
|
||||||
* Copyright (C) 2009-2017 by Robin Stuart <rstuart114@gmail.com> *
|
* Copyright (C) 2009-2019 by Robin Stuart <rstuart114@gmail.com> *
|
||||||
* *
|
* *
|
||||||
* This program is free software: you can redistribute it and/or modify *
|
* This program is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
@ -101,6 +101,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags fl)
|
|||||||
"PLANET",
|
"PLANET",
|
||||||
"Postnet",
|
"Postnet",
|
||||||
"QR Code (ISO 18004)",
|
"QR Code (ISO 18004)",
|
||||||
|
"Reduced Micro QR (rMQR)",
|
||||||
"Royal Mail 4-state Barcode",
|
"Royal Mail 4-state Barcode",
|
||||||
"Royal Mail 4-state Mailmark",
|
"Royal Mail 4-state Mailmark",
|
||||||
"Telepen",
|
"Telepen",
|
||||||
@ -112,9 +113,6 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags fl)
|
|||||||
"USPS Intelligent Mail"
|
"USPS Intelligent Mail"
|
||||||
};
|
};
|
||||||
|
|
||||||
/* createActions();
|
|
||||||
createMenus(); */
|
|
||||||
|
|
||||||
scene = new QGraphicsScene(this);
|
scene = new QGraphicsScene(this);
|
||||||
|
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
@ -286,9 +284,7 @@ void MainWindow::about()
|
|||||||
"ISO/IEC 24724:2011, ISO/IEC 24728:2006, ISO/IEC 24778:2008,<br>"
|
"ISO/IEC 24724:2011, ISO/IEC 24728:2006, ISO/IEC 24778:2008,<br>"
|
||||||
"ISO/IEC 21471:2019, ANSI-HIBC 2.3-2009, ANSI/AIM BC6-2000,<br>"
|
"ISO/IEC 21471:2019, ANSI-HIBC 2.3-2009, ANSI/AIM BC6-2000,<br>"
|
||||||
"ANSI/AIM BC12-1998, AIMD014 (v 1.63), USPS-B-3200"
|
"ANSI/AIM BC12-1998, AIMD014 (v 1.63), USPS-B-3200"
|
||||||
"</small></td></tr></table>"
|
"</small></td></tr></table>"));
|
||||||
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int MainWindow::open_data_dialog()
|
int MainWindow::open_data_dialog()
|
||||||
@ -415,7 +411,6 @@ void MainWindow::change_options()
|
|||||||
else
|
else
|
||||||
chkComposite->setText(tr("Add 2D Component"));
|
chkComposite->setText(tr("Add 2D Component"));
|
||||||
|
|
||||||
|
|
||||||
if(metaObject()->enumerator(0).value(bstyle->currentIndex()) == BARCODE_PDF417)
|
if(metaObject()->enumerator(0).value(bstyle->currentIndex()) == BARCODE_PDF417)
|
||||||
{
|
{
|
||||||
QFile file(":/grpPDF417.ui");
|
QFile file(":/grpPDF417.ui");
|
||||||
@ -749,7 +744,6 @@ void MainWindow::update_preview()
|
|||||||
m_bc.bc.setText(txtComposite->toPlainText());
|
m_bc.bc.setText(txtComposite->toPlainText());
|
||||||
} else {
|
} else {
|
||||||
m_bc.bc.setText(txtData->text());
|
m_bc.bc.setText(txtData->text());
|
||||||
/*m_bc.bc.setPrimaryMessage(txtComposite->text());*/
|
|
||||||
}
|
}
|
||||||
m_bc.bc.setSecurityLevel(0);
|
m_bc.bc.setSecurityLevel(0);
|
||||||
m_bc.bc.setWidth(0);
|
m_bc.bc.setWidth(0);
|
||||||
@ -1058,4 +1052,3 @@ void MainWindow::update_preview()
|
|||||||
scene->setSceneRect(0, 0, width - 10, height - 10);
|
scene->setSceneRect(0, 0, width - 10, height - 10);
|
||||||
scene->update();
|
scene->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (C) 2008 by BogDan Vatra <bogdan@licentia.eu> *
|
* Copyright (C) 2008 by BogDan Vatra <bogdan@licentia.eu> *
|
||||||
* Copyright (C) 2009-2016 by Robin Stuart <rstuart114@gmail.com> *
|
* Copyright (C) 2009-2019 by Robin Stuart <rstuart114@gmail.com> *
|
||||||
* *
|
* *
|
||||||
* This program is free software: you can redistribute it and/or modify *
|
* This program is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
@ -39,72 +39,73 @@ class MainWindow : public QWidget, private Ui::mainWindow
|
|||||||
public:
|
public:
|
||||||
enum BarcodeTypes
|
enum BarcodeTypes
|
||||||
{
|
{
|
||||||
AUSREDIRECT =68,
|
AUSREDIRECT = 68,
|
||||||
AUSREPLY =66,
|
AUSREPLY = 66,
|
||||||
AUSROUTE =67,
|
AUSROUTE = 67,
|
||||||
AUSPOST =63,
|
AUSPOST = 63,
|
||||||
AZTEC =92,
|
AZTEC = 92,
|
||||||
AZRUNE =128,
|
AZRUNE = 128,
|
||||||
CHANNEL =140,
|
CHANNEL = 140,
|
||||||
CODABAR =18,
|
CODABAR = 18,
|
||||||
CODABLOCK =74,
|
CODABLOCK = 74,
|
||||||
CODE11 =1,
|
CODE11 = 1,
|
||||||
CODE128 =20,
|
CODE128 = 20,
|
||||||
CODE16K =23,
|
CODE16K = 23,
|
||||||
C25LOGIC =6,
|
C25LOGIC = 6,
|
||||||
C25IATA =4,
|
C25IATA = 4,
|
||||||
C25IND =7,
|
C25IND = 7,
|
||||||
C25INTER =3,
|
C25INTER = 3,
|
||||||
C25MATRIX =2,
|
C25MATRIX = 2,
|
||||||
CODE32 =129,
|
CODE32 = 129,
|
||||||
CODE39 =8,
|
CODE39 = 8,
|
||||||
EXCODE39 =9,
|
EXCODE39 = 9,
|
||||||
CODE49 =24,
|
CODE49 = 24,
|
||||||
CODE93 =25,
|
CODE93 = 25,
|
||||||
CODE_ONE =141,
|
CODE_ONE = 141,
|
||||||
DATAMATRIX =71,
|
DATAMATRIX = 71,
|
||||||
DPIDENT =22,
|
DPIDENT = 22,
|
||||||
DPLEIT =21,
|
DPLEIT = 21,
|
||||||
DOTCODE =115,
|
DOTCODE = 115,
|
||||||
KIX =90,
|
KIX = 90,
|
||||||
EAN14 =72,
|
EAN14 = 72,
|
||||||
EANX =13,
|
EANX = 13,
|
||||||
FIM =49,
|
FIM = 49,
|
||||||
FLAT =28,
|
FLAT = 28,
|
||||||
GRIDMATRIX =142,
|
GRIDMATRIX = 142,
|
||||||
RSS_EXP =31,
|
RSS_EXP = 31,
|
||||||
RSS_EXPSTACK =81,
|
RSS_EXPSTACK = 81,
|
||||||
RSS_LTD =30,
|
RSS_LTD = 30,
|
||||||
RSS14 =29,
|
RSS14 = 29,
|
||||||
RSS14STACK =79,
|
RSS14STACK = 79,
|
||||||
RSS14STACK_OMNI =80,
|
RSS14STACK_OMNI = 80,
|
||||||
HANXIN =116,
|
HANXIN = 116,
|
||||||
ITF14 =89,
|
ITF14 = 89,
|
||||||
ISBNX =69,
|
ISBNX = 69,
|
||||||
JAPANPOST =76,
|
JAPANPOST = 76,
|
||||||
KOREAPOST =77,
|
KOREAPOST = 77,
|
||||||
LOGMARS =50,
|
LOGMARS = 50,
|
||||||
MAXICODE =57,
|
MAXICODE = 57,
|
||||||
MICROPDF417 =84,
|
MICROPDF417 = 84,
|
||||||
MICROQR =97,
|
MICROQR = 97,
|
||||||
MSI_PLESSEY =47,
|
MSI_PLESSEY = 47,
|
||||||
NVE18 =75,
|
NVE18 = 75,
|
||||||
PDF417 =55,
|
PDF417 = 55,
|
||||||
PHARMA =51,
|
PHARMA = 51,
|
||||||
PHARMA_TWO =53,
|
PHARMA_TWO = 53,
|
||||||
PZN =52,
|
PZN = 52,
|
||||||
PLANET =82,
|
PLANET = 82,
|
||||||
POSTNET =40,
|
POSTNET = 40,
|
||||||
QRCODE =58,
|
QRCODE = 58,
|
||||||
RM4SCC =70,
|
RMQR = 145,
|
||||||
MAILMARK =121,
|
RM4SCC = 70,
|
||||||
TELEPEN =32,
|
MAILMARK = 121,
|
||||||
TELEPEN_NUM =87,
|
TELEPEN = 32,
|
||||||
PLESSEY =86,
|
TELEPEN_NUM = 87,
|
||||||
UPNQR =143,
|
PLESSEY = 86,
|
||||||
UPCA =34,
|
UPNQR = 143,
|
||||||
UPCE =37,
|
UPCA = 34,
|
||||||
ONECODE =85
|
UPCE = 37,
|
||||||
|
ONECODE = 85
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -137,20 +138,10 @@ private slots:
|
|||||||
void copy_to_clipboard_bmp();
|
void copy_to_clipboard_bmp();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/* void createActions();
|
|
||||||
void createMenus(); */
|
|
||||||
|
|
||||||
QColor m_fgcolor,m_bgcolor;
|
QColor m_fgcolor,m_bgcolor;
|
||||||
BarcodeItem m_bc;
|
BarcodeItem m_bc;
|
||||||
QWidget *m_optionWidget;
|
QWidget *m_optionWidget;
|
||||||
QGraphicsScene *scene;
|
QGraphicsScene *scene;
|
||||||
/* QMenu *fileMenu;
|
|
||||||
QMenu *helpMenu;
|
|
||||||
QAction *saveAct;
|
|
||||||
QAction *aboutQtAct; */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user