2008-07-19 02:48:31 +12:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2008 by BogDan Vatra *
|
|
|
|
* bogdan@licentia.eu *
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-10 06:50:50 +12:00
|
|
|
* Copyright (C) 2010-2022 Robin Stuart *
|
2008-07-19 02:48:31 +12:00
|
|
|
* *
|
|
|
|
* 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 *
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
|
|
|
***************************************************************************/
|
RMQR: update to ISO/IEC 23941:2022 - R13x77 numeric cclens change 8 -> 7
QRCODE: use stricter interpretation of ZINT_FULL_MULTIBYTE, excluding
certain trailing bytes
libzint: fix some confusing error messages introduced by segment stuff
general: new escape chars \U, \d and \o
backend_qt: fudge rendering of border rectangles due to scaling/translation
rounding errors TODO: better fudge
GUI: foreground/background colours -> text boxes and icon buttons, add swap
button, independently movable picker (NULL parent), preview colour changes,
preview Data Window changes, add clear data (del) buttons, add zap button
and Factory Reset menu option, various other fixes
libzint: remove STATIC_UNLESS_ZINT_TEST, use wrappers
CMake: add find package QtSvg, remove QtXml
manual: split symbology and general specs and sort, move DAFT to 4-state,
UPC/EAN -> EAN/UPC, DataBar -> GS1 DataBar always, expand MAILMARK info,
various other fiddlings
man page: options or -> |, expand MSI Plessey check digit options
README.linux: add packages info
license: add SPDX-License-Identifier to touched files
2022-06-10 08:52:02 +12:00
|
|
|
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
2008-07-19 02:48:31 +12:00
|
|
|
|
2021-09-06 08:52:00 +12:00
|
|
|
#ifndef QZINT_H
|
|
|
|
#define QZINT_H
|
|
|
|
|
2008-07-19 02:48:31 +12:00
|
|
|
#include <QColor>
|
2008-09-18 05:36:08 +12:00
|
|
|
#include <QPainter>
|
2008-07-19 02:48:31 +12:00
|
|
|
#include "zint.h"
|
|
|
|
|
|
|
|
namespace Zint
|
|
|
|
{
|
|
|
|
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-10 06:50:50 +12:00
|
|
|
/* QString version of `struct zint_seg` */
|
|
|
|
class QZintSeg {
|
|
|
|
public:
|
|
|
|
QString m_text;
|
|
|
|
int m_eci;
|
|
|
|
|
|
|
|
QZintSeg();
|
|
|
|
QZintSeg(const QString& text, const int ECIIndex = 0); // `ECIIndex` is comboBox index (not ECI value)
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Interface */
|
2020-10-01 00:19:12 +13:00
|
|
|
class QZint : public QObject
|
2008-07-19 02:48:31 +12:00
|
|
|
{
|
2020-10-01 00:19:12 +13:00
|
|
|
Q_OBJECT
|
2008-09-18 05:36:08 +12:00
|
|
|
|
2008-07-19 02:48:31 +12:00
|
|
|
public:
|
2021-09-06 08:52:00 +12:00
|
|
|
enum AspectRatioMode{ IgnoreAspectRatio = 0, KeepAspectRatio = 1, CenterBarCode = 2 }; /* Legacy - not used */
|
2008-07-19 02:48:31 +12:00
|
|
|
|
|
|
|
public:
|
2020-06-05 05:45:25 +12:00
|
|
|
QZint();
|
|
|
|
~QZint();
|
2008-07-19 02:48:31 +12:00
|
|
|
|
2021-09-06 08:52:00 +12:00
|
|
|
int symbol() const; /* Symbology */
|
2020-06-05 05:45:25 +12:00
|
|
|
void setSymbol(int symbol);
|
|
|
|
|
|
|
|
int inputMode() const;
|
|
|
|
void setInputMode(int input_mode);
|
2008-09-18 05:36:08 +12:00
|
|
|
|
2017-09-11 03:03:09 +12:00
|
|
|
QString text() const;
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-10 06:50:50 +12:00
|
|
|
void setText(const QString& text); // Clears segs
|
|
|
|
|
|
|
|
std::vector<QZintSeg> segs() const;
|
|
|
|
void setSegs(const std::vector<QZintSeg>& segs); // Clears text and sets eci
|
2008-09-18 05:36:08 +12:00
|
|
|
|
2017-09-11 03:03:09 +12:00
|
|
|
QString primaryMessage() const;
|
2021-09-06 08:52:00 +12:00
|
|
|
void setPrimaryMessage(const QString& primaryMessage);
|
2020-06-05 05:45:25 +12:00
|
|
|
|
2021-06-20 00:11:23 +12:00
|
|
|
float height() const;
|
|
|
|
void setHeight(float height);
|
2020-06-05 05:45:25 +12:00
|
|
|
|
2021-09-22 11:04:15 +12:00
|
|
|
int option1() const;
|
|
|
|
void setOption1(int option_1);
|
|
|
|
|
2020-06-05 05:45:25 +12:00
|
|
|
int option2() const;
|
|
|
|
void setOption2(int option);
|
2008-09-18 05:36:08 +12:00
|
|
|
|
2020-11-28 01:54:44 +13:00
|
|
|
int option3() const;
|
2020-06-05 05:45:25 +12:00
|
|
|
void setOption3(int option);
|
2008-09-18 05:36:08 +12:00
|
|
|
|
2020-06-05 05:45:25 +12:00
|
|
|
float scale() const;
|
|
|
|
void setScale(float scale);
|
2017-10-24 08:37:52 +13:00
|
|
|
|
2020-10-01 00:19:12 +13:00
|
|
|
bool dotty() const;
|
|
|
|
void setDotty(bool botty);
|
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
float dotSize() const;
|
2020-06-05 05:45:25 +12:00
|
|
|
void setDotSize(float dot_size);
|
2008-09-18 05:36:08 +12:00
|
|
|
|
2021-09-22 11:04:15 +12:00
|
|
|
float guardDescent() const;
|
|
|
|
void setGuardDescent(float guardDescent);
|
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
int structAppCount() const;
|
|
|
|
int structAppIndex() const;
|
|
|
|
QString structAppID() const;
|
Add Structured Append support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, MAXICODE, MICROPDF417, PDF417, QRCODE, ULTRA
DOTCODE: use pre-calculated generator poly coeffs in Reed-Solomon for
performance improvement
PDF417/MICROPDF417: use common routine pdf417_initial()
GUI: code lines <= 118, shorthand widget_obj(),
shorten calling upcean_addon_gap(), upcean_guard_descent()
various backend: var name debug -> debug_print
2021-09-29 09:42:44 +13:00
|
|
|
void setStructApp(const int count, const int index, const QString& id);
|
|
|
|
void clearStructApp();
|
|
|
|
|
2017-09-11 03:03:09 +12:00
|
|
|
QColor fgColor() const;
|
2021-09-06 08:52:00 +12:00
|
|
|
void setFgColor(const QColor& fgColor);
|
2008-09-18 05:36:08 +12:00
|
|
|
|
2017-09-11 03:03:09 +12:00
|
|
|
QColor bgColor() const;
|
2021-09-06 08:52:00 +12:00
|
|
|
void setBgColor(const QColor& bgColor);
|
2008-07-19 02:48:31 +12:00
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
bool cmyk() const;
|
2020-10-01 00:19:12 +13:00
|
|
|
void setCMYK(bool cmyk);
|
|
|
|
|
|
|
|
int borderType() const;
|
|
|
|
void setBorderType(int borderTypeIndex);
|
2008-09-18 05:36:08 +12:00
|
|
|
|
2017-09-11 03:03:09 +12:00
|
|
|
int borderWidth() const;
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
void setBorderWidth(int borderWidth);
|
2008-09-18 05:36:08 +12:00
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
int whitespace() const;
|
2020-06-05 05:45:25 +12:00
|
|
|
void setWhitespace(int whitespace);
|
2009-05-20 02:04:49 +12:00
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
int vWhitespace() const;
|
|
|
|
void setVWhitespace(int vWhitespace);
|
2021-05-26 07:42:26 +12:00
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
int fontSetting() const;
|
|
|
|
void setFontSetting(int fontSettingIndex); // Sets from comboBox index
|
|
|
|
void setFontSettingValue(int fontSetting); // Sets literal value
|
2020-10-01 00:19:12 +13:00
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
bool showText() const;
|
|
|
|
void setShowText(bool showText);
|
2008-11-04 02:31:23 +13:00
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
bool gsSep() const;
|
|
|
|
void setGSSep(bool gsSep);
|
2009-05-03 18:35:18 +12:00
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
bool quietZones() const;
|
2021-09-25 00:21:24 +12:00
|
|
|
void setQuietZones(bool quietZones);
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
|
|
|
|
bool noQuietZones() const;
|
2021-09-25 00:21:24 +12:00
|
|
|
void setNoQuietZones(bool noQuietZones);
|
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
bool compliantHeight() const;
|
|
|
|
void setCompliantHeight(bool compliantHeight);
|
|
|
|
|
2020-10-01 00:19:12 +13:00
|
|
|
int rotateAngle() const;
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
void setRotateAngle(int rotateIndex); // Sets from comboBox index
|
|
|
|
void setRotateAngleValue(int rotateAngle); // Sets literal value
|
2020-10-01 00:19:12 +13:00
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
int eci() const;
|
|
|
|
void setECI(int ECIIndex); // Sets from comboBox index
|
|
|
|
void setECIValue(int eci); // Sets literal value
|
2020-10-01 00:19:12 +13:00
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
bool gs1Parens() const;
|
|
|
|
void setGS1Parens(bool gs1Parens);
|
2021-05-15 23:23:46 +12:00
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
bool gs1NoCheck() const;
|
|
|
|
void setGS1NoCheck(bool gs1NoCheck);
|
2021-07-14 04:39:03 +12:00
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
bool readerInit() const;
|
|
|
|
void setReaderInit(bool readerInit);
|
2020-10-01 00:19:12 +13:00
|
|
|
|
2021-11-24 08:12:48 +13:00
|
|
|
int warnLevel() const;
|
|
|
|
void setWarnLevel(int warnLevel);
|
|
|
|
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
bool debug() const;
|
2020-06-05 05:45:25 +12:00
|
|
|
void setDebug(bool debug);
|
2009-05-20 02:04:49 +12:00
|
|
|
|
2021-11-21 00:32:30 +13:00
|
|
|
int encodedWidth() const; // Read-only, encoded width (no. of modules encoded)
|
|
|
|
int encodedRows() const; // Read-only, no. of rows encoded
|
|
|
|
|
2021-09-06 08:52:00 +12:00
|
|
|
/* Legacy property getters/setters */
|
2021-06-25 05:31:08 +12:00
|
|
|
void setWidth(int width); /* option_1 */
|
|
|
|
int width() const;
|
|
|
|
void setSecurityLevel(int securityLevel); /* option_2 */
|
|
|
|
int securityLevel() const;
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
void setPdf417CodeWords(int pdf417CodeWords); /* No-op */
|
2021-06-25 05:31:08 +12:00
|
|
|
int pdf417CodeWords() const;
|
|
|
|
void setHideText(bool hide); /* setShowText(!hide) */
|
2021-09-22 11:04:15 +12:00
|
|
|
void setTargetSize(int width, int height);
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
QString error_message() const; /* Same as lastError() */
|
2021-06-25 05:31:08 +12:00
|
|
|
|
2021-09-06 08:52:00 +12:00
|
|
|
/* Test capabilities - ZBarcode_Cap() */
|
2020-10-01 00:19:12 +13:00
|
|
|
bool hasHRT(int symbology = 0) const;
|
2021-11-24 08:12:48 +13:00
|
|
|
bool isStackable(int symbology = 0) const;
|
2020-10-01 00:19:12 +13:00
|
|
|
bool isExtendable(int symbology = 0) const;
|
2021-11-24 08:12:48 +13:00
|
|
|
bool isComposite(int symbology = 0) const;
|
2020-10-01 00:19:12 +13:00
|
|
|
bool supportsECI(int symbology = 0) const;
|
2021-05-15 23:23:46 +12:00
|
|
|
bool supportsGS1(int symbology = 0) const;
|
2021-11-24 08:12:48 +13:00
|
|
|
bool isDotty(int symbology = 0) const;
|
2021-09-25 00:21:24 +12:00
|
|
|
bool hasDefaultQuietZones(int symbology = 0) const;
|
2020-10-01 00:19:12 +13:00
|
|
|
bool isFixedRatio(int symbology = 0) const;
|
|
|
|
bool supportsReaderInit(int symbology = 0) const;
|
2021-11-24 08:12:48 +13:00
|
|
|
bool supportsFullMultibyte(int symbology = 0) const;
|
|
|
|
bool hasMask(int symbology = 0) const;
|
|
|
|
bool supportsStructApp(int symbology = 0) const;
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
bool hasCompliantHeight(int symbology = 0) const;
|
2020-10-01 00:19:12 +13:00
|
|
|
|
2020-06-05 05:45:25 +12:00
|
|
|
int getError() const;
|
2008-07-19 02:48:31 +12:00
|
|
|
|
2021-09-06 08:52:00 +12:00
|
|
|
const QString& lastError() const;
|
2020-06-05 05:45:25 +12:00
|
|
|
bool hasErrors() const;
|
2017-10-24 08:37:52 +13:00
|
|
|
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-10 06:50:50 +12:00
|
|
|
bool save_to_file(const QString& filename);
|
2017-10-24 08:37:52 +13:00
|
|
|
|
2021-09-06 08:52:00 +12:00
|
|
|
/* Note: legacy argument `mode` is not used */
|
|
|
|
void render(QPainter& painter, const QRectF& paintRect, AspectRatioMode mode = IgnoreAspectRatio);
|
Add Structured Append support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, MAXICODE, MICROPDF417, PDF417, QRCODE, ULTRA
DOTCODE: use pre-calculated generator poly coeffs in Reed-Solomon for
performance improvement
PDF417/MICROPDF417: use common routine pdf417_initial()
GUI: code lines <= 118, shorthand widget_obj(),
shorten calling upcean_addon_gap(), upcean_guard_descent()
various backend: var name debug -> debug_print
2021-09-29 09:42:44 +13:00
|
|
|
|
2020-11-23 00:29:45 +13:00
|
|
|
int getVersion() const;
|
2009-07-08 07:10:22 +12:00
|
|
|
|
2021-11-24 08:12:48 +13:00
|
|
|
/* Translate settings into Command Line equivalent. Set `win` to use Windows escaping of data.
|
|
|
|
If `autoHeight` set then `--height=` option will not be emitted.
|
|
|
|
If HEIGHTPERROW_MODE set and non-zero `heightPerRow` given then use that for height instead of internal
|
|
|
|
height */
|
|
|
|
QString getAsCLI(const bool win, const bool longOptOnly = false, const bool barcodeNames = false,
|
2022-05-13 07:35:06 +12:00
|
|
|
const bool noEXE = false, const bool autoHeight = false, const float heightPerRow = 0.0f,
|
|
|
|
const QString& outfile = "") const;
|
2021-11-24 08:12:48 +13:00
|
|
|
|
2020-10-01 00:19:12 +13:00
|
|
|
signals:
|
|
|
|
void encoded();
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
void errored();
|
2020-10-01 00:19:12 +13:00
|
|
|
|
2008-07-19 02:48:31 +12:00
|
|
|
private:
|
2020-06-05 05:45:25 +12:00
|
|
|
void resetSymbol();
|
|
|
|
void encode();
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-10 06:50:50 +12:00
|
|
|
|
|
|
|
int convertSegs(struct zint_seg segs[], std::vector<QByteArray>& bstrs);
|
|
|
|
|
2020-10-01 00:19:12 +13:00
|
|
|
static Qt::GlobalColor colourToQtColor(int colour);
|
2008-07-19 02:48:31 +12:00
|
|
|
|
2021-11-24 08:12:48 +13:00
|
|
|
/* `getAsCLI()` helpers */
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-10 06:50:50 +12:00
|
|
|
static void arg_str(QString& cmd, const char *const opt, const QString& val);
|
|
|
|
static void arg_int(QString& cmd, const char *const opt, const int val, const bool allowZero = false);
|
|
|
|
static void arg_bool(QString& cmd, const char *const opt, const bool val);
|
|
|
|
static void arg_color(QString& cmd, const char *const opt, const QColor val);
|
|
|
|
static void arg_data(QString& cmd, const char *const opt, const QString& val, const bool win);
|
|
|
|
static void arg_seg(QString& cmd, const int seg_no, const QZintSeg& val, const bool win);
|
|
|
|
static void arg_data_esc(QString& cmd, const char *const opt, QString& text, const bool win);
|
|
|
|
static void arg_float(QString& cmd, const char *const opt, const float val, const bool allowZero = false);
|
|
|
|
static void arg_structapp(QString& cmd, const char *const opt, const int count, const int index,
|
|
|
|
const QString& id, const bool win);
|
2021-11-24 08:12:48 +13:00
|
|
|
|
2008-07-19 02:48:31 +12:00
|
|
|
private:
|
2021-11-24 08:12:48 +13:00
|
|
|
zint_symbol *m_zintSymbol;
|
2020-06-05 05:45:25 +12:00
|
|
|
int m_symbol;
|
2021-11-24 08:12:48 +13:00
|
|
|
int m_input_mode;
|
2020-06-05 05:45:25 +12:00
|
|
|
QString m_text;
|
|
|
|
QString m_primaryMessage;
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-10 06:50:50 +12:00
|
|
|
std::vector<QZintSeg> m_segs;
|
2021-06-20 00:11:23 +12:00
|
|
|
float m_height;
|
2020-12-20 06:13:35 +13:00
|
|
|
int m_option_1;
|
2021-09-22 11:04:15 +12:00
|
|
|
int m_option_2;
|
|
|
|
int m_option_3;
|
2021-11-24 08:12:48 +13:00
|
|
|
float m_scale;
|
|
|
|
bool m_dotty;
|
|
|
|
float m_dot_size;
|
|
|
|
float m_guardDescent;
|
|
|
|
struct zint_structapp m_structapp;
|
2020-06-05 05:45:25 +12:00
|
|
|
QColor m_fgColor;
|
|
|
|
QColor m_bgColor;
|
2020-10-01 00:19:12 +13:00
|
|
|
bool m_cmyk;
|
2021-11-24 08:12:48 +13:00
|
|
|
int m_borderType;
|
|
|
|
int m_borderWidth;
|
2020-06-05 05:45:25 +12:00
|
|
|
int m_whitespace;
|
2021-05-26 07:42:26 +12:00
|
|
|
int m_vwhitespace;
|
2021-11-24 08:12:48 +13:00
|
|
|
int m_fontSetting;
|
2020-10-01 00:19:12 +13:00
|
|
|
bool m_show_hrt;
|
2020-06-05 05:45:25 +12:00
|
|
|
bool m_gssep;
|
2021-09-25 00:21:24 +12:00
|
|
|
bool m_quiet_zones;
|
|
|
|
bool m_no_quiet_zones;
|
Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
static get_zint_version() method, use QStringLiteral (QSL shorthand),
use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
add saveAs shortcut, add main menu, context menus and actions, add help,
reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
lessen triggering of update_preview(), shorten names of getters/setters,
simplify/shorten some update_preview() logic in switch,
CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 12:13:39 +13:00
|
|
|
bool m_compliant_height;
|
2021-11-24 08:12:48 +13:00
|
|
|
int m_rotate_angle;
|
|
|
|
int m_eci;
|
|
|
|
bool m_gs1parens;
|
|
|
|
bool m_gs1nocheck;
|
2020-10-01 00:19:12 +13:00
|
|
|
bool m_reader_init;
|
2021-11-24 08:12:48 +13:00
|
|
|
int m_warn_level;
|
2020-06-05 05:45:25 +12:00
|
|
|
bool m_debug;
|
2021-11-21 00:32:30 +13:00
|
|
|
int m_encodedWidth;
|
|
|
|
int m_encodedRows;
|
2021-11-24 08:12:48 +13:00
|
|
|
QString m_lastError;
|
|
|
|
int m_error;
|
2021-09-22 11:04:15 +12:00
|
|
|
|
|
|
|
int target_size_horiz; /* Legacy */
|
|
|
|
int target_size_vert; /* Legacy */
|
2008-07-19 02:48:31 +12:00
|
|
|
};
|
2021-09-06 08:52:00 +12:00
|
|
|
|
Add Structured Append support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, MAXICODE, MICROPDF417, PDF417, QRCODE, ULTRA
DOTCODE: use pre-calculated generator poly coeffs in Reed-Solomon for
performance improvement
PDF417/MICROPDF417: use common routine pdf417_initial()
GUI: code lines <= 118, shorthand widget_obj(),
shorten calling upcean_addon_gap(), upcean_guard_descent()
various backend: var name debug -> debug_print
2021-09-29 09:42:44 +13:00
|
|
|
} /* namespace Zint */
|
2017-10-24 08:37:52 +13:00
|
|
|
|
Add multiple segments support for AZTEC, CODEONE, DATAMATRIX, DOTCODE,
GRIDMATRIX, HANXIN, MAXICODE, MICROPDF417, PDF417, QRCODE, RMQR, ULTRA
RMQR: fix ECI encoding (wrong bit length for indicator)
MICROQR: check versions M1 and M2 for allowed characters so as to give
better error messages
DOTCODE: some small optimizations
common.c: add is_chr(), segs_length(), segs_cpy()
CODEONE/CODE128/DOTCODE/GRIDMATRIX/HANXIN/MAXICODE/QRCODE/ULTRA: add
namespace prefixes to static funcs/data
includes: use Z_ prefix, unuse double underscore prefixes (guard defines)
manual.txt: compress some tables using double/treble column sets
2022-05-10 06:50:50 +12:00
|
|
|
/* vim: set ts=4 sw=4 et : */
|
2021-09-06 08:52:00 +12:00
|
|
|
#endif /* QZINT_H */
|