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
10
backend/qr.h
10
backend/qr.h
@ -1,7 +1,7 @@
|
||||
/* qr.h Data for QR Code, Micro QR Code and rMQR
|
||||
|
||||
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>
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
@ -30,10 +30,10 @@
|
||||
SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#define LEVEL_L 1
|
||||
#define LEVEL_M 2
|
||||
#define LEVEL_Q 3
|
||||
#define LEVEL_H 4
|
||||
#define LEVEL_L 1
|
||||
#define LEVEL_M 2
|
||||
#define LEVEL_Q 3
|
||||
#define LEVEL_H 4
|
||||
|
||||
#define RHODIUM "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* 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 *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
@ -32,125 +32,116 @@ class QMenu;
|
||||
|
||||
class MainWindow : public QWidget, private Ui::mainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
Q_ENUMS(BarcodeTypes)
|
||||
Q_ENUMS(BarcodeTypes)
|
||||
|
||||
public:
|
||||
enum BarcodeTypes
|
||||
{
|
||||
AUSREDIRECT =68,
|
||||
AUSREPLY =66,
|
||||
AUSROUTE =67,
|
||||
AUSPOST =63,
|
||||
AZTEC =92,
|
||||
AZRUNE =128,
|
||||
CHANNEL =140,
|
||||
CODABAR =18,
|
||||
CODABLOCK =74,
|
||||
CODE11 =1,
|
||||
CODE128 =20,
|
||||
CODE16K =23,
|
||||
C25LOGIC =6,
|
||||
C25IATA =4,
|
||||
C25IND =7,
|
||||
C25INTER =3,
|
||||
C25MATRIX =2,
|
||||
CODE32 =129,
|
||||
CODE39 =8,
|
||||
EXCODE39 =9,
|
||||
CODE49 =24,
|
||||
CODE93 =25,
|
||||
CODE_ONE =141,
|
||||
DATAMATRIX =71,
|
||||
DPIDENT =22,
|
||||
DPLEIT =21,
|
||||
DOTCODE =115,
|
||||
KIX =90,
|
||||
EAN14 =72,
|
||||
EANX =13,
|
||||
FIM =49,
|
||||
FLAT =28,
|
||||
GRIDMATRIX =142,
|
||||
RSS_EXP =31,
|
||||
RSS_EXPSTACK =81,
|
||||
RSS_LTD =30,
|
||||
RSS14 =29,
|
||||
RSS14STACK =79,
|
||||
RSS14STACK_OMNI =80,
|
||||
HANXIN =116,
|
||||
ITF14 =89,
|
||||
ISBNX =69,
|
||||
JAPANPOST =76,
|
||||
KOREAPOST =77,
|
||||
LOGMARS =50,
|
||||
MAXICODE =57,
|
||||
MICROPDF417 =84,
|
||||
MICROQR =97,
|
||||
MSI_PLESSEY =47,
|
||||
NVE18 =75,
|
||||
PDF417 =55,
|
||||
PHARMA =51,
|
||||
PHARMA_TWO =53,
|
||||
PZN =52,
|
||||
PLANET =82,
|
||||
POSTNET =40,
|
||||
QRCODE =58,
|
||||
RM4SCC =70,
|
||||
MAILMARK =121,
|
||||
TELEPEN =32,
|
||||
TELEPEN_NUM =87,
|
||||
PLESSEY =86,
|
||||
UPNQR =143,
|
||||
UPCA =34,
|
||||
UPCE =37,
|
||||
ONECODE =85
|
||||
};
|
||||
enum BarcodeTypes
|
||||
{
|
||||
AUSREDIRECT = 68,
|
||||
AUSREPLY = 66,
|
||||
AUSROUTE = 67,
|
||||
AUSPOST = 63,
|
||||
AZTEC = 92,
|
||||
AZRUNE = 128,
|
||||
CHANNEL = 140,
|
||||
CODABAR = 18,
|
||||
CODABLOCK = 74,
|
||||
CODE11 = 1,
|
||||
CODE128 = 20,
|
||||
CODE16K = 23,
|
||||
C25LOGIC = 6,
|
||||
C25IATA = 4,
|
||||
C25IND = 7,
|
||||
C25INTER = 3,
|
||||
C25MATRIX = 2,
|
||||
CODE32 = 129,
|
||||
CODE39 = 8,
|
||||
EXCODE39 = 9,
|
||||
CODE49 = 24,
|
||||
CODE93 = 25,
|
||||
CODE_ONE = 141,
|
||||
DATAMATRIX = 71,
|
||||
DPIDENT = 22,
|
||||
DPLEIT = 21,
|
||||
DOTCODE = 115,
|
||||
KIX = 90,
|
||||
EAN14 = 72,
|
||||
EANX = 13,
|
||||
FIM = 49,
|
||||
FLAT = 28,
|
||||
GRIDMATRIX = 142,
|
||||
RSS_EXP = 31,
|
||||
RSS_EXPSTACK = 81,
|
||||
RSS_LTD = 30,
|
||||
RSS14 = 29,
|
||||
RSS14STACK = 79,
|
||||
RSS14STACK_OMNI = 80,
|
||||
HANXIN = 116,
|
||||
ITF14 = 89,
|
||||
ISBNX = 69,
|
||||
JAPANPOST = 76,
|
||||
KOREAPOST = 77,
|
||||
LOGMARS = 50,
|
||||
MAXICODE = 57,
|
||||
MICROPDF417 = 84,
|
||||
MICROQR = 97,
|
||||
MSI_PLESSEY = 47,
|
||||
NVE18 = 75,
|
||||
PDF417 = 55,
|
||||
PHARMA = 51,
|
||||
PHARMA_TWO = 53,
|
||||
PZN = 52,
|
||||
PLANET = 82,
|
||||
POSTNET = 40,
|
||||
QRCODE = 58,
|
||||
RMQR = 145,
|
||||
RM4SCC = 70,
|
||||
MAILMARK = 121,
|
||||
TELEPEN = 32,
|
||||
TELEPEN_NUM = 87,
|
||||
PLESSEY = 86,
|
||||
UPNQR = 143,
|
||||
UPCA = 34,
|
||||
UPCE = 37,
|
||||
ONECODE = 85
|
||||
};
|
||||
|
||||
public:
|
||||
MainWindow(QWidget* parent = 0, Qt::WindowFlags fl = 0);
|
||||
~MainWindow();
|
||||
MainWindow(QWidget* parent = 0, Qt::WindowFlags fl = 0);
|
||||
~MainWindow();
|
||||
|
||||
|
||||
public slots:
|
||||
void update_preview();
|
||||
void change_options();
|
||||
void on_fgcolor_clicked();
|
||||
void on_bgcolor_clicked();
|
||||
void composite_enable();
|
||||
void composite_ean_check();
|
||||
void maxi_primary();
|
||||
void change_print_scale();
|
||||
void autoheight_clicked();
|
||||
void update_preview();
|
||||
void change_options();
|
||||
void on_fgcolor_clicked();
|
||||
void on_bgcolor_clicked();
|
||||
void composite_enable();
|
||||
void composite_ean_check();
|
||||
void maxi_primary();
|
||||
void change_print_scale();
|
||||
void autoheight_clicked();
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *event);
|
||||
|
||||
private slots:
|
||||
bool save();
|
||||
void about();
|
||||
void quit_now();
|
||||
void reset_view();
|
||||
int open_data_dialog();
|
||||
int open_sequence_dialog();
|
||||
bool save();
|
||||
void about();
|
||||
void quit_now();
|
||||
void reset_view();
|
||||
int open_data_dialog();
|
||||
int open_sequence_dialog();
|
||||
void copy_to_clipboard_svg();
|
||||
void copy_to_clipboard_bmp();
|
||||
|
||||
private:
|
||||
/* void createActions();
|
||||
void createMenus(); */
|
||||
|
||||
QColor m_fgcolor,m_bgcolor;
|
||||
BarcodeItem m_bc;
|
||||
QWidget *m_optionWidget;
|
||||
QGraphicsScene *scene;
|
||||
/* QMenu *fileMenu;
|
||||
QMenu *helpMenu;
|
||||
QAction *saveAct;
|
||||
QAction *aboutQtAct; */
|
||||
QColor m_fgcolor,m_bgcolor;
|
||||
BarcodeItem m_bc;
|
||||
QWidget *m_optionWidget;
|
||||
QGraphicsScene *scene;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user