2008-07-18 18:49:14 +04:00
/***************************************************************************
2009-04-27 02:04:51 +04:00
* Copyright ( C ) 2008 by BogDan Vatra < bogdan @ licentia . eu > *
2021-01-11 21:11:41 +03:00
* Copyright ( C ) 2009 - 2021 by Robin Stuart < rstuart114 @ gmail . com > *
2008-07-18 18:49:14 +04:00
* *
2008-09-17 22:38:53 +04:00
* This program is free software : you can redistribute it and / or modify *
2008-07-18 18:49:14 +04:00
* it under the terms of the GNU General Public License as published by *
2008-09-17 22:38:53 +04:00
* the Free Software Foundation , either version 3 of the License , or *
2008-07-18 18:49:14 +04:00
* ( 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 *
2008-09-17 22:38:53 +04:00
* along with this program . If not , see < http : //www.gnu.org/licenses/>. *
2008-07-18 18:49:14 +04:00
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2020-05-16 12:22:33 +03:00
/* vim: set ts=4 sw=4 et : */
2008-07-18 18:49:14 +04:00
2020-09-30 14:19:12 +03:00
//#include <QDebug>
2008-07-18 18:49:14 +04:00
# include <QGraphicsScene>
# include <QImage>
# include <QColorDialog>
2009-05-22 01:00:23 +04:00
# include <QUiLoader>
# include <QFile>
2016-12-11 18:29:06 +03:00
# include <QRadioButton>
# include <QFileDialog>
# include <QMessageBox>
2017-01-14 19:34:03 +03:00
# include <QSettings>
2017-04-22 14:21:27 +03:00
# include <QClipboard>
# include <QMimeData>
2017-06-17 17:34:41 +03:00
# include <QColor>
2020-09-30 14:19:12 +03:00
# include <QListView>
# include <QShortcut>
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 02:13:39 +03:00
# include <QMenu>
# include <QAction>
2008-07-18 18:49:14 +04:00
# include "mainwindow.h"
2009-09-17 12:01:49 +04:00
# include "datawindow.h"
# include "sequencewindow.h"
2009-04-27 02:04:51 +04:00
# include <stdio.h>
2008-07-18 18:49:14 +04: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 02:13:39 +03:00
// Shorthand
# define QSL QStringLiteral
static const int statusBarTimeout = 0 ; // Don't timeout
static const QKeySequence quitKeySeq ( Qt : : CTRL | Qt : : Key_Q ) ; // Use on Windows also (i.e. not using QKeySequence::Quit)
2021-07-06 21:53:31 +03:00
struct bstyle_item {
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 02:13:39 +03:00
const QString text ;
2021-07-06 21:53:31 +03:00
int symbology ;
} ;
static const struct bstyle_item bstyle_items [ ] = {
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 02:13:39 +03:00
{ QSL ( " Australia Post Redirect Code " ) , BARCODE_AUSREDIRECT } ,
{ QSL ( " Australia Post Reply-Paid " ) , BARCODE_AUSREPLY } ,
{ QSL ( " Australia Post Routing Code " ) , BARCODE_AUSROUTE } ,
{ QSL ( " Australia Post Standard Customer " ) , BARCODE_AUSPOST } ,
{ QSL ( " Aztec Code (ISO 24778) (and HIBC) " ) , BARCODE_AZTEC } ,
{ QSL ( " Aztec Runes " ) , BARCODE_AZRUNE } ,
{ QSL ( " Channel Code " ) , BARCODE_CHANNEL } ,
{ QSL ( " Codabar " ) , BARCODE_CODABAR } ,
{ QSL ( " Codablock-F (and HIBC) " ) , BARCODE_CODABLOCKF } ,
{ QSL ( " Code 11 " ) , BARCODE_CODE11 } ,
{ QSL ( " Code 128 (ISO 15417) (and GS1-128 and HIBC) " ) , BARCODE_CODE128 } ,
{ QSL ( " Code 16k (EN 12323) " ) , BARCODE_CODE16K } ,
{ QSL ( " Code 2 of 5 Data Logic " ) , BARCODE_C25LOGIC } ,
{ QSL ( " Code 2 of 5 IATA " ) , BARCODE_C25IATA } ,
{ QSL ( " Code 2 of 5 Industrial " ) , BARCODE_C25IND } ,
{ QSL ( " Code 2 of 5 Interleaved (ISO 16390) " ) , BARCODE_C25INTER } ,
{ QSL ( " Code 2 of 5 Standard (Matrix) " ) , BARCODE_C25STANDARD } ,
{ QSL ( " Code 32 (Italian Pharmacode) " ) , BARCODE_CODE32 } ,
{ QSL ( " Code 39 (ISO 16388) (and HIBC) " ) , BARCODE_CODE39 } ,
{ QSL ( " Code 39 Extended " ) , BARCODE_EXCODE39 } ,
{ QSL ( " Code 49 " ) , BARCODE_CODE49 } ,
{ QSL ( " Code 93 " ) , BARCODE_CODE93 } ,
{ QSL ( " Code One " ) , BARCODE_CODEONE } ,
{ QSL ( " DAFT Code " ) , BARCODE_DAFT } ,
{ QSL ( " Data Matrix (ISO 16022) (and HIBC) " ) , BARCODE_DATAMATRIX } ,
{ QSL ( " Deutsche Post Identcode " ) , BARCODE_DPIDENT } ,
{ QSL ( " Deutsche Post Leitcode " ) , BARCODE_DPLEIT } ,
{ QSL ( " DotCode " ) , BARCODE_DOTCODE } ,
{ QSL ( " DPD Code " ) , BARCODE_DPD } ,
{ QSL ( " Dutch Post KIX " ) , BARCODE_KIX } ,
{ QSL ( " EAN-14 " ) , BARCODE_EAN14 } ,
{ QSL ( " European Article Number (EAN) " ) , BARCODE_EANX } ,
{ QSL ( " Facing Identification Mark (FIM) " ) , BARCODE_FIM } ,
{ QSL ( " Flattermarken " ) , BARCODE_FLAT } ,
{ QSL ( " Grid Matrix " ) , BARCODE_GRIDMATRIX } ,
{ QSL ( " GS1 DataBar Expanded " ) , BARCODE_DBAR_EXP } ,
{ QSL ( " GS1 DataBar Expanded Stacked " ) , BARCODE_DBAR_EXPSTK } ,
{ QSL ( " GS1 DataBar Limited " ) , BARCODE_DBAR_LTD } ,
{ QSL ( " GS1 DataBar Omnidirectional (and Truncated) " ) , BARCODE_DBAR_OMN } ,
{ QSL ( " GS1 DataBar Stacked " ) , BARCODE_DBAR_STK } ,
{ QSL ( " GS1 DataBar Stacked Omnidirectional " ) , BARCODE_DBAR_OMNSTK } ,
{ QSL ( " Han Xin (Chinese Sensible) Code " ) , BARCODE_HANXIN } ,
{ QSL ( " International Standard Book Number (ISBN) " ) , BARCODE_ISBNX } ,
{ QSL ( " ITF-14 " ) , BARCODE_ITF14 } ,
{ QSL ( " Japanese Postal Barcode " ) , BARCODE_JAPANPOST } ,
{ QSL ( " Korean Postal Barcode " ) , BARCODE_KOREAPOST } ,
{ QSL ( " LOGMARS " ) , BARCODE_LOGMARS } ,
{ QSL ( " MaxiCode (ISO 16023) " ) , BARCODE_MAXICODE } ,
{ QSL ( " MicroPDF417 (ISO 24728) (and HIBC) " ) , BARCODE_MICROPDF417 } ,
{ QSL ( " Micro QR Code " ) , BARCODE_MICROQR } ,
{ QSL ( " MSI Plessey " ) , BARCODE_MSI_PLESSEY } ,
{ QSL ( " NVE-18 (SSCC-18) " ) , BARCODE_NVE18 } ,
{ QSL ( " PDF417 (ISO 15438) (and Compact and HIBC) " ) , BARCODE_PDF417 } ,
{ QSL ( " Pharmacode " ) , BARCODE_PHARMA } ,
{ QSL ( " Pharmacode 2-track " ) , BARCODE_PHARMA_TWO } ,
{ QSL ( " Pharma Zentralnummer (PZN) " ) , BARCODE_PZN } ,
{ QSL ( " PLANET " ) , BARCODE_PLANET } ,
{ QSL ( " POSTNET " ) , BARCODE_POSTNET } ,
{ QSL ( " QR Code (ISO 18004) (and HIBC) " ) , BARCODE_QRCODE } ,
{ QSL ( " Rectangular Micro QR (rMQR) " ) , BARCODE_RMQR } ,
2021-10-21 01:05:30 +03:00
{ QSL ( " Royal Mail 4-state Barcode (RM4SCC) " ) , BARCODE_RM4SCC } ,
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 02:13:39 +03:00
{ QSL ( " Royal Mail 4-state Mailmark " ) , BARCODE_MAILMARK } ,
{ QSL ( " Telepen " ) , BARCODE_TELEPEN } ,
{ QSL ( " Telepen Numeric " ) , BARCODE_TELEPEN_NUM } ,
{ QSL ( " UK Plessey " ) , BARCODE_PLESSEY } ,
{ QSL ( " Ultracode " ) , BARCODE_ULTRA } ,
{ QSL ( " Universal Product Code (UPC-A) " ) , BARCODE_UPCA } ,
{ QSL ( " Universal Product Code (UPC-E) " ) , BARCODE_UPCE } ,
{ QSL ( " UPNQR " ) , BARCODE_UPNQR } ,
{ QSL ( " USPS Intelligent Mail (OneCode) " ) , BARCODE_USPS_IMAIL } ,
{ QSL ( " VIN (Vehicle Identification Number) " ) , BARCODE_VIN } ,
2021-07-06 21:53:31 +03:00
} ;
MainWindow : : MainWindow ( QWidget * parent , Qt : : WindowFlags fl )
2021-11-20 14:32:30 +03:00
: QWidget ( parent , fl ) , m_optionWidget ( nullptr ) , m_symbology ( 0 ) , m_saveAsShortcut ( nullptr ) , m_menu ( nullptr ) ,
m_lblHeightPerRow ( nullptr ) , m_spnHeightPerRow ( nullptr ) ,
m_btnHeightPerRowDisable ( nullptr ) , m_btnHeightPerRowDefault ( nullptr )
2008-07-18 18:49:14 +04: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 02:13:39 +03:00
// Undocumented command line debug flag
m_bc . bc . setDebug ( QCoreApplication : : arguments ( ) . contains ( QSL ( " --verbose " ) ) ) ;
2017-10-23 22:37:52 +03: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 02:13:39 +03:00
QCoreApplication : : setOrganizationName ( QSL ( " zint " ) ) ;
QCoreApplication : : setOrganizationDomain ( QSL ( " zint.org.uk " ) ) ;
QCoreApplication : : setApplicationName ( QSL ( " Barcode Studio " ) ) ;
2017-10-23 22:37:52 +03:00
2017-01-14 19:34:03 +03:00
QSettings settings ;
2021-01-11 21:11:41 +03:00
# if QT_VERSION < 0x60000
2020-10-27 18:11:33 +03:00
settings . setIniCodec ( " UTF-8 " ) ;
2021-01-11 21:11:41 +03:00
# endif
2009-05-19 18:05:26 +04:00
2019-11-26 00:20:21 +03:00
scene = new QGraphicsScene ( this ) ;
setupUi ( this ) ;
view - > setScene ( scene ) ;
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 02:13:39 +03:00
restoreGeometry ( settings . value ( QSL ( " studio/window_geometry " ) ) . toByteArray ( ) ) ;
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
m_fgcolor . setRgb ( settings . value ( QSL ( " studio/ink/red " ) , 0 ) . toInt ( ) ,
settings . value ( QSL ( " studio/ink/green " ) , 0 ) . toInt ( ) ,
settings . value ( QSL ( " studio/ink/blue " ) , 0 ) . toInt ( ) ,
settings . value ( QSL ( " studio/ink/alpha " ) , 0xff ) . toInt ( ) ) ;
m_bgcolor . setRgb ( settings . value ( QSL ( " studio/paper/red " ) , 0xff ) . toInt ( ) ,
settings . value ( QSL ( " studio/paper/green " ) , 0xff ) . toInt ( ) ,
settings . value ( QSL ( " studio/paper/blue " ) , 0xff ) . toInt ( ) ,
settings . value ( QSL ( " studio/paper/alpha " ) , 0xff ) . toInt ( ) ) ;
2020-07-10 21:39:32 +03: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 02:13:39 +03:00
const int cnt = ( int ) ( sizeof ( bstyle_items ) / sizeof ( bstyle_items [ 0 ] ) ) ;
2020-09-30 14:19:12 +03:00
for ( int i = 0 ; i < cnt ; i + + ) {
2021-07-06 21:53:31 +03:00
bstyle - > addItem ( bstyle_items [ i ] . text ) ;
2019-11-26 00:20:21 +03:00
}
2020-09-30 14:19:12 +03:00
# ifdef _WIN32
bstyle - > setMaxVisibleItems ( cnt ) ; /* Apart from increasing combo size, seems to be needed for filter to work */
# endif
2021-01-11 21:11:41 +03:00
# if QT_VERSION < 0x50A00
2020-09-30 14:19:12 +03:00
/* Prior to Qt 5.10 comboboxes have display issues when filtered (scrollers not accounted for), so disable */
filter_bstyle - > hide ( ) ;
# endif
2020-07-10 21:39:32 +03: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 02:13:39 +03:00
bstyle - > setCurrentIndex ( settings . value ( QSL ( " studio/symbology " ) , 10 ) . toInt ( ) ) ;
txtData - > setText ( settings . value ( QSL ( " studio/data " ) , tr ( " Your Data Here! " ) ) . toString ( ) ) ;
txtComposite - > setText ( settings . value ( QSL ( " studio/composite_text " ) , tr ( " Your Data Here! " ) ) . toString ( ) ) ;
chkComposite - > setChecked ( settings . value ( QSL ( " studio/chk_composite " ) ) . toInt ( ) ? true : false ) ;
cmbCompType - > setCurrentIndex ( settings . value ( QSL ( " studio/comp_type " ) , 0 ) . toInt ( ) ) ;
cmbECI - > setCurrentIndex ( settings . value ( QSL ( " studio/appearance/eci " ) , 0 ) . toInt ( ) ) ;
chkEscape - > setChecked ( settings . value ( QSL ( " studio/chk_escape " ) ) . toInt ( ) ? true : false ) ;
chkData - > setChecked ( settings . value ( QSL ( " studio/chk_data " ) ) . toInt ( ) ? true : false ) ;
chkRInit - > setChecked ( settings . value ( QSL ( " studio/chk_rinit " ) ) . toInt ( ) ? true : false ) ;
chkGS1Parens - > setChecked ( settings . value ( QSL ( " studio/chk_gs1parens " ) ) . toInt ( ) ? true : false ) ;
chkGS1NoCheck - > setChecked ( settings . value ( QSL ( " studio/chk_gs1nocheck " ) ) . toInt ( ) ? true : false ) ;
chkAutoHeight - > setChecked ( settings . value ( QSL ( " studio/appearance/autoheight " ) , 1 ) . toInt ( ) ? true : false ) ;
chkCompliantHeight - > setChecked (
settings . value ( QSL ( " studio/appearance/compliantheight " ) , 1 ) . toInt ( ) ? true : false ) ;
heightb - > setValue ( settings . value ( QSL ( " studio/appearance/height " ) , 50.0f ) . toFloat ( ) ) ;
bwidth - > setValue ( settings . value ( QSL ( " studio/appearance/border " ) , 0 ) . toInt ( ) ) ;
spnWhitespace - > setValue ( settings . value ( QSL ( " studio/appearance/whitespace " ) , 0 ) . toInt ( ) ) ;
spnVWhitespace - > setValue ( settings . value ( QSL ( " studio/appearance/vwhitespace " ) , 0 ) . toInt ( ) ) ;
spnScale - > setValue ( settings . value ( QSL ( " studio/appearance/scale " ) , 1.0 ) . toFloat ( ) ) ;
btype - > setCurrentIndex ( settings . value ( QSL ( " studio/appearance/border_type " ) , 0 ) . toInt ( ) ) ;
cmbFontSetting - > setCurrentIndex ( settings . value ( QSL ( " studio/appearance/font_setting " ) , 0 ) . toInt ( ) ) ;
chkHRTShow - > setChecked ( settings . value ( QSL ( " studio/appearance/chk_hrt_show " ) , 1 ) . toInt ( ) ? true : false ) ;
chkCMYK - > setChecked ( settings . value ( QSL ( " studio/appearance/chk_cmyk " ) , 0 ) . toInt ( ) ? true : false ) ;
chkQuietZones - > setChecked ( settings . value ( QSL ( " studio/appearance/chk_quiet_zones " ) , 0 ) . toInt ( ) ? true : false ) ;
cmbRotate - > setCurrentIndex ( settings . value ( QSL ( " studio/appearance/rotate " ) , 0 ) . toInt ( ) ) ;
chkDotty - > setChecked ( settings . value ( QSL ( " studio/appearance/chk_dotty " ) , 0 ) . toInt ( ) ? true : false ) ;
spnDotSize - > setValue ( settings . value ( QSL ( " studio/appearance/dot_size " ) , 4.0 / 5.0 ) . toFloat ( ) ) ;
2020-07-10 21:39:32 +03:00
2019-11-26 00:20:21 +03:00
change_options ( ) ;
2020-09-30 14:19:12 +03:00
2020-07-10 21:39:32 +03:00
scene - > addItem ( & m_bc ) ;
2019-11-26 00:20:21 +03:00
connect ( bstyle , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( change_options ( ) ) ) ;
connect ( bstyle , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2020-09-30 14:19:12 +03:00
connect ( filter_bstyle , SIGNAL ( textChanged ( const QString & ) ) , SLOT ( filter_symbologies ( ) ) ) ;
2021-06-19 15:11:23 +03:00
connect ( heightb , SIGNAL ( valueChanged ( double ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
connect ( bwidth , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( btype , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2020-09-30 14:19:12 +03:00
connect ( cmbFontSetting , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
connect ( txtData , SIGNAL ( textChanged ( const QString & ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( txtComposite , SIGNAL ( textChanged ( ) ) , SLOT ( update_preview ( ) ) ) ;
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 02:13:39 +03:00
connect ( chkComposite , SIGNAL ( toggled ( bool ) ) , SLOT ( composite_ui_set ( ) ) ) ;
connect ( chkComposite , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
connect ( cmbCompType , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2020-09-30 14:19:12 +03:00
connect ( cmbECI , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
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 02:13:39 +03:00
connect ( chkEscape , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( chkData , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( chkRInit , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( chkGS1Parens , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( chkGS1NoCheck , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
connect ( spnWhitespace , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2021-05-25 22:42:26 +03:00
connect ( spnVWhitespace , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
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 02:13:39 +03:00
connect ( btnMenu , SIGNAL ( clicked ( bool ) ) , SLOT ( menu ( ) ) ) ;
2019-11-26 00:20:21 +03:00
connect ( btnSave , SIGNAL ( clicked ( bool ) ) , SLOT ( save ( ) ) ) ;
connect ( spnScale , SIGNAL ( valueChanged ( double ) ) , SLOT ( change_print_scale ( ) ) ) ;
connect ( btnExit , SIGNAL ( clicked ( bool ) ) , SLOT ( quit_now ( ) ) ) ;
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 02:13:39 +03:00
connect ( btnReset , SIGNAL ( clicked ( bool ) ) , SLOT ( reset_colours ( ) ) ) ;
2019-11-26 00:20:21 +03:00
connect ( btnMoreData , SIGNAL ( clicked ( bool ) ) , SLOT ( open_data_dialog ( ) ) ) ;
connect ( btnSequence , SIGNAL ( clicked ( bool ) ) , SLOT ( open_sequence_dialog ( ) ) ) ;
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 02:13:39 +03:00
connect ( chkAutoHeight , SIGNAL ( toggled ( bool ) ) , SLOT ( autoheight_ui_set ( ) ) ) ;
connect ( chkAutoHeight , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( chkCompliantHeight , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( chkHRTShow , SIGNAL ( toggled ( bool ) ) , SLOT ( HRTShow_ui_set ( ) ) ) ;
connect ( chkHRTShow , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( chkCMYK , SIGNAL ( toggled ( bool ) ) , SLOT ( change_cmyk ( ) ) ) ;
connect ( chkQuietZones , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2020-09-30 14:19:12 +03:00
connect ( cmbRotate , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
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 02:13:39 +03:00
connect ( chkDotty , SIGNAL ( toggled ( bool ) ) , SLOT ( dotty_ui_set ( ) ) ) ;
connect ( chkDotty , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2020-09-30 14:19:12 +03:00
connect ( spnDotSize , SIGNAL ( valueChanged ( double ) ) , SLOT ( update_preview ( ) ) ) ;
2017-05-15 23:12:19 +03:00
connect ( btnCopySVG , SIGNAL ( clicked ( bool ) ) , SLOT ( copy_to_clipboard_svg ( ) ) ) ;
connect ( btnCopyBMP , SIGNAL ( clicked ( bool ) ) , SLOT ( copy_to_clipboard_bmp ( ) ) ) ;
2020-09-30 14:19:12 +03:00
connect ( & m_bc . bc , SIGNAL ( encoded ( ) ) , SLOT ( on_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 02:13:39 +03:00
connect ( & m_bc . bc , SIGNAL ( errored ( ) ) , SLOT ( on_errored ( ) ) ) ;
connect ( view , SIGNAL ( customContextMenuRequested ( const QPoint & ) ) , this , SLOT ( view_context_menu ( const QPoint & ) ) ) ;
connect ( errtxtBar , SIGNAL ( customContextMenuRequested ( const QPoint & ) ) , this ,
SLOT ( errtxtBar_context_menu ( const QPoint & ) ) ) ;
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
m_saveAsShortcut = new QShortcut ( QKeySequence : : Save , this ) ; // Will enable/disable this on error
connect ( m_saveAsShortcut , SIGNAL ( activated ( ) ) , SLOT ( save ( ) ) ) ;
QShortcut * helpShortcut = new QShortcut ( QKeySequence : : HelpContents , this ) ;
connect ( helpShortcut , SIGNAL ( activated ( ) ) , SLOT ( help ( ) ) ) ;
QShortcut * quitShortcut = new QShortcut ( quitKeySeq , this ) ;
connect ( quitShortcut , SIGNAL ( activated ( ) ) , SLOT ( quit_now ( ) ) ) ;
createActions ( ) ;
createMenu ( ) ;
2008-07-18 18:49:14 +04:00
}
MainWindow : : ~ MainWindow ( )
{
2017-01-14 19:34:03 +03:00
QSettings settings ;
2021-01-11 21:11:41 +03:00
# if QT_VERSION < 0x60000
2020-10-27 18:11:33 +03:00
settings . setIniCodec ( " UTF-8 " ) ;
2021-01-11 21:11:41 +03:00
# endif
2017-10-23 22:37:52 +03: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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/window_geometry " ) , saveGeometry ( ) ) ;
settings . setValue ( QSL ( " studio/tab_index " ) , tabMain - > currentIndex ( ) ) ;
settings . setValue ( QSL ( " studio/symbology " ) , bstyle - > currentIndex ( ) ) ;
settings . setValue ( QSL ( " studio/ink/red " ) , m_fgcolor . red ( ) ) ;
settings . setValue ( QSL ( " studio/ink/green " ) , m_fgcolor . green ( ) ) ;
settings . setValue ( QSL ( " studio/ink/blue " ) , m_fgcolor . blue ( ) ) ;
settings . setValue ( QSL ( " studio/ink/alpha " ) , m_fgcolor . alpha ( ) ) ;
settings . setValue ( QSL ( " studio/paper/red " ) , m_bgcolor . red ( ) ) ;
settings . setValue ( QSL ( " studio/paper/green " ) , m_bgcolor . green ( ) ) ;
settings . setValue ( QSL ( " studio/paper/blue " ) , m_bgcolor . blue ( ) ) ;
settings . setValue ( QSL ( " studio/paper/alpha " ) , m_bgcolor . alpha ( ) ) ;
settings . setValue ( QSL ( " studio/data " ) , txtData - > text ( ) ) ;
settings . setValue ( QSL ( " studio/composite_text " ) , txtComposite - > toPlainText ( ) ) ;
settings . setValue ( QSL ( " studio/chk_composite " ) , chkComposite - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/comp_type " ) , cmbCompType - > currentIndex ( ) ) ;
settings . setValue ( QSL ( " studio/eci " ) , cmbECI - > currentIndex ( ) ) ;
settings . setValue ( QSL ( " studio/chk_escape " ) , chkEscape - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/chk_data " ) , chkData - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/chk_rinit " ) , chkRInit - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/chk_gs1parens " ) , chkGS1Parens - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/chk_gs1nocheck " ) , chkGS1NoCheck - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/appearance/autoheight " ) , chkAutoHeight - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/appearance/compliantheight " ) , chkCompliantHeight - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/appearance/height " ) , heightb - > value ( ) ) ;
settings . setValue ( QSL ( " studio/appearance/border " ) , bwidth - > value ( ) ) ;
settings . setValue ( QSL ( " studio/appearance/whitespace " ) , spnWhitespace - > value ( ) ) ;
settings . setValue ( QSL ( " studio/appearance/vwhitespace " ) , spnVWhitespace - > value ( ) ) ;
settings . setValue ( QSL ( " studio/appearance/scale " ) , spnScale - > value ( ) ) ;
settings . setValue ( QSL ( " studio/appearance/border_type " ) , btype - > currentIndex ( ) ) ;
settings . setValue ( QSL ( " studio/appearance/font_setting " ) , cmbFontSetting - > currentIndex ( ) ) ;
settings . setValue ( QSL ( " studio/appearance/chk_hrt_show " ) , chkHRTShow - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/appearance/chk_cmyk " ) , chkCMYK - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/appearance/chk_quiet_zones " ) , chkQuietZones - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/appearance/rotate " ) , cmbRotate - > currentIndex ( ) ) ;
settings . setValue ( QSL ( " studio/appearance/chk_dotty " ) , chkDotty - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/appearance/dot_size " ) , spnDotSize - > value ( ) ) ;
2020-09-30 14:19:12 +03:00
save_sub_settings ( settings , m_bc . bc . symbol ( ) ) ;
2008-07-18 18:49:14 +04:00
}
2009-07-16 16:59:22 +04:00
2021-10-31 00:00:31 +03:00
QString MainWindow : : get_zint_version ( void )
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 02:13:39 +03:00
{
QString zint_version ;
int lib_version = ZBarcode_Version ( ) ;
int version_major = lib_version / 10000 ;
int version_minor = ( lib_version % 10000 ) / 100 ;
int version_release = lib_version % 100 ;
int version_build ;
if ( version_release > = 9 ) {
/* This is a test release */
version_release = version_release / 10 ;
version_build = lib_version % 10 ;
QTextStream ( & zint_version ) < < version_major < < ' . ' < < version_minor < < ' . ' < < version_release
< < ' . ' < < version_build < < QSL ( " (dev) " ) ;
} else {
/* This is a stable release */
QTextStream ( & zint_version ) < < version_major < < ' . ' < < version_minor < < ' . ' < < version_release ;
}
return zint_version ;
}
void MainWindow : : resizeEvent ( QResizeEvent * event )
2016-12-15 02:33:17 +03:00
{
QWidget : : resizeEvent ( event ) ;
update_preview ( ) ;
2008-07-18 18:49:14 +04:00
}
2009-07-16 16:59:22 +04: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 02:13:39 +03:00
bool MainWindow : : event ( QEvent * event )
{
switch ( event - > type ( ) ) {
case QEvent : : StatusTip :
statusBar - > showMessage ( static_cast < QStatusTipEvent * > ( event ) - > tip ( ) ) ;
break ;
default :
break ;
}
return QWidget : : event ( event ) ;
}
void MainWindow : : reset_colours ( )
2009-07-16 16:59:22 +04:00
{
2020-09-30 14:19:12 +03:00
m_fgcolor . setRgb ( 0 , 0 , 0 , 0xff ) ;
m_bgcolor . setRgb ( 0xff , 0xff , 0xff , 0xff ) ;
2019-11-26 00:20:21 +03:00
update_preview ( ) ;
2009-07-16 16:59:22 +04:00
}
2009-05-19 18:05:26 +04:00
bool MainWindow : : save ( )
{
2019-11-26 00:20:21 +03:00
QSettings settings ;
2021-01-11 21:11:41 +03:00
# if QT_VERSION < 0x60000
2020-10-27 18:11:33 +03:00
settings . setIniCodec ( " UTF-8 " ) ;
2021-01-11 21:11:41 +03:00
# endif
2019-11-26 00:20:21 +03:00
QFileDialog save_dialog ;
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 02:13:39 +03:00
QString pathname ;
2019-11-26 00:20:21 +03:00
QString suffix ;
2017-07-27 12:21:46 +03:00
2019-11-26 00:20:21 +03:00
save_dialog . setAcceptMode ( QFileDialog : : AcceptSave ) ;
2021-05-20 20:22:57 +03:00
save_dialog . setWindowTitle ( tr ( " Save Barcode Image " ) ) ;
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 02:13:39 +03:00
save_dialog . setDirectory ( settings . value ( QSL ( " studio/default_dir " ) ,
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-28 23:42:44 +03:00
QDir : : toNativeSeparators ( QDir : : homePath ( ) ) ) . toString ( ) ) ;
2017-10-23 22:37:52 +03:00
2015-08-18 14:50:42 +03:00
# ifdef NO_PNG
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 02:13:39 +03:00
suffix = settings . value ( QSL ( " studio/default_suffix " ) , QSL ( " gif " ) ) . toString ( ) ;
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-28 23:42:44 +03:00
save_dialog . setNameFilter ( tr (
" Encapsulated PostScript (*.eps);;Graphics Interchange Format (*.gif) "
" ;;Scalable Vector Graphic (*.svg);;Windows Bitmap (*.bmp);;ZSoft PC Painter Image (*.pcx) "
" ;;Enhanced Metafile (*.emf);;Tagged Image File Format (*.tif) " ) ) ;
2015-08-18 14:50:42 +03:00
# else
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 02:13:39 +03:00
suffix = settings . value ( QSL ( " studio/default_suffix " ) , QSL ( " png " ) ) . toString ( ) ;
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-28 23:42:44 +03:00
save_dialog . setNameFilter ( tr (
" Portable Network Graphic (*.png);;Encapsulated PostScript (*.eps);;Graphics Interchange Format (*.gif) "
" ;;Scalable Vector Graphic (*.svg);;Windows Bitmap (*.bmp);;ZSoft PC Painter Image (*.pcx) "
" ;;Enhanced Metafile (*.emf);;Tagged Image File Format (*.tif) " ) ) ;
2015-08-18 14:50:42 +03:00
# endif
2017-10-23 22:37:52 +03: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 02:13:39 +03:00
if ( QString : : compare ( suffix , QSL ( " png " ) , Qt : : CaseInsensitive ) = = 0 )
2021-05-20 20:22:57 +03:00
save_dialog . selectNameFilter ( tr ( " Portable Network Graphic (*.png) " ) ) ;
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 02:13:39 +03:00
else if ( QString : : compare ( suffix , QSL ( " eps " ) , Qt : : CaseInsensitive ) = = 0 )
2021-05-20 20:22:57 +03:00
save_dialog . selectNameFilter ( tr ( " Encapsulated PostScript (*.eps) " ) ) ;
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 02:13:39 +03:00
else if ( QString : : compare ( suffix , QSL ( " gif " ) , Qt : : CaseInsensitive ) = = 0 )
2021-05-20 20:22:57 +03:00
save_dialog . selectNameFilter ( tr ( " Graphics Interchange Format (*.gif) " ) ) ;
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 02:13:39 +03:00
else if ( QString : : compare ( suffix , QSL ( " svg " ) , Qt : : CaseInsensitive ) = = 0 )
2021-05-20 20:22:57 +03:00
save_dialog . selectNameFilter ( tr ( " Scalable Vector Graphic (*.svg) " ) ) ;
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 02:13:39 +03:00
else if ( QString : : compare ( suffix , QSL ( " bmp " ) , Qt : : CaseInsensitive ) = = 0 )
2021-05-20 20:22:57 +03:00
save_dialog . selectNameFilter ( tr ( " Windows Bitmap (*.bmp) " ) ) ;
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 02:13:39 +03:00
else if ( QString : : compare ( suffix , QSL ( " pcx " ) , Qt : : CaseInsensitive ) = = 0 )
2021-05-20 20:22:57 +03:00
save_dialog . selectNameFilter ( tr ( " ZSoft PC Painter Image (*.pcx) " ) ) ;
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 02:13:39 +03:00
else if ( QString : : compare ( suffix , QSL ( " emf " ) , Qt : : CaseInsensitive ) = = 0 )
2021-05-20 20:22:57 +03:00
save_dialog . selectNameFilter ( tr ( " Enhanced Metafile (*.emf) " ) ) ;
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 02:13:39 +03:00
else if ( QString : : compare ( suffix , QSL ( " tif " ) , Qt : : CaseInsensitive ) = = 0 )
2021-05-20 20:22:57 +03:00
save_dialog . selectNameFilter ( tr ( " Tagged Image File Format (*.tif) " ) ) ;
2019-11-26 00:20:21 +03:00
if ( save_dialog . exec ( ) ) {
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 02:13:39 +03:00
pathname = save_dialog . selectedFiles ( ) . at ( 0 ) ;
if ( ( pathname . lastIndexOf ( ' . ' ) = = - 1 ) | | ( pathname . lastIndexOf ( ' . ' ) < ( pathname . length ( ) - 5 ) ) ) {
2019-11-26 00:20:21 +03:00
suffix = save_dialog . selectedNameFilter ( ) ;
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 02:13:39 +03:00
suffix = suffix . mid ( ( suffix . lastIndexOf ( ' . ' ) + 1 ) , 3 ) ;
pathname . append ( ' . ' ) ;
pathname . append ( suffix ) ;
2017-07-27 12:21:46 +03:00
} else {
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 02:13:39 +03:00
suffix = pathname . right ( pathname . length ( ) - ( pathname . lastIndexOf ( ' . ' ) + 1 ) ) ;
2017-07-27 12:21:46 +03:00
}
2019-11-26 00:20:21 +03:00
} else {
return false ;
}
2017-07-27 12:21:46 +03: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 02:13:39 +03:00
if ( m_bc . bc . save_to_file ( pathname ) = = false ) {
2020-09-30 14:19:12 +03:00
if ( m_bc . bc . getError ( ) > = ZINT_ERROR ) {
2020-07-10 21:39:32 +03:00
QMessageBox : : critical ( this , tr ( " Save Error " ) , m_bc . bc . error_message ( ) ) ;
return false ;
}
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 02:13:39 +03:00
QMessageBox : : warning ( this , tr ( " Save Warning " ) , m_bc . bc . error_message ( ) ) ;
}
int lastSeparator = pathname . lastIndexOf ( QDir : : separator ( ) ) ;
QString dirname = pathname . mid ( 0 , lastSeparator ) ;
if ( dirname . isEmpty ( ) ) {
/*: %1 is path saved to */
statusBar - > showMessage ( tr ( " Saved as \" %1 \" " ) . arg ( pathname ) , statusBarTimeout ) ;
} else {
QString filename = pathname . right ( pathname . length ( ) - ( lastSeparator + 1 ) ) ;
/*: %1 is base filename saved to, %2 is directory saved in */
statusBar - > showMessage ( tr ( " Saved as \" %1 \" in \" %2 \" " ) . arg ( filename ) . arg ( dirname ) , statusBarTimeout ) ;
2019-11-26 00:20:21 +03:00
}
2017-10-23 22:37:52 +03: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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/default_dir " ) , dirname ) ;
settings . setValue ( QSL ( " studio/default_suffix " ) , suffix ) ;
2019-11-26 00:20:21 +03:00
return true ;
2009-05-19 18:05:26 +04:00
}
void MainWindow : : about ( )
{
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 02:13:39 +03:00
QString zint_version = get_zint_version ( ) ;
2020-09-04 18:38:11 +03:00
2019-11-26 00:20:21 +03:00
QMessageBox : : about ( this , tr ( " About Zint " ) ,
2020-09-04 18:38:11 +03:00
/*: %1 is Zint version, %2 is Qt version */
tr ( " <h2>Zint Barcode Studio %1</h2> "
2021-08-11 21:39:39 +03:00
" <p>A free barcode generator</p> "
2019-11-26 00:20:21 +03:00
" <p>Instruction manual is available at the project homepage:<br> "
" <a href= \" http://www.zint.org.uk \" >http://www.zint.org.uk</a> "
2021-01-11 21:11:41 +03:00
" <p>Copyright © 2006-2021 Robin Stuart and others.<br> "
2021-08-11 21:39:39 +03:00
" Qt backend by BogDan Vatra</p> "
" <p>Qt version %2</p> "
" <p>With thanks to Harald Oehlmann, Norbert Szabó, Robert Elliott, Milton Neal, "
" Git Lost, Alonso Schaich, Andre Maute and many others at Sourceforge.</p> "
2019-11-26 00:20:21 +03:00
" <p>Released under the GNU General Public License ver. 3 or later.<br> "
" \" QR Code \" is a Registered Trademark of Denso Corp.<br> "
2021-08-11 21:39:39 +03:00
" \" Telepen \" is a Registered Trademark of SB Electronics.</p> "
2019-11-26 00:20:21 +03:00
" <p><table border=1><tr><td><small>Currently supported standards include:<br> "
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 02:13:39 +03:00
" EN 797:1996, EN 798:1996, EN 12323:2005, ISO/IEC 15417:2007,<br> "
2019-11-26 00:20:21 +03:00
" ISO/IEC 15438:2015, ISO/IEC 16022:2006, ISO/IEC 16023:2000,<br> "
" ISO/IEC 16388:2007, ISO/IEC 18004:2015, ISO/IEC 24723:2010,<br> "
" ISO/IEC 24724:2011, ISO/IEC 24728:2006, ISO/IEC 24778:2008,<br> "
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 02:13:39 +03:00
" ISO/IEC 16390:2007, ISO/IEC 21471:2019, ANSI-HIBC 2.6-2016,<br> "
" ANSI/AIM BC6-2000, ANSI/AIM BC12-1998, ANSI/AIM BC5-1995,<br> "
" AIM ISS-X-24, AIMD014 (v 1.63), USPS-B-3200 "
2021-08-11 21:39:39 +03:00
" </small></td></tr></table></p> " ) . arg ( zint_version ) . arg ( QT_VERSION_STR ) ) ;
2009-05-19 18:05:26 +04:00
}
2008-07-18 18:49:14 +04: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 02:13:39 +03:00
void MainWindow : : help ( )
{
QDesktopServices : : openUrl ( QSL ( " https://zint.org.uk/manual " ) ) ; // TODO: manual.md
}
2009-09-17 12:01:49 +04:00
int MainWindow : : open_data_dialog ( )
{
2019-11-26 00:20:21 +03:00
int retval ;
DataWindow dlg ( txtData - > text ( ) ) ;
retval = dlg . exec ( ) ;
if ( dlg . Valid = = 1 )
txtData - > setText ( dlg . DataOutput ) ;
return retval ;
2009-09-17 12:01:49 +04:00
}
int MainWindow : : open_sequence_dialog ( )
{
2019-11-26 00:20:21 +03:00
SequenceWindow dlg ;
dlg . barcode = & m_bc ;
return dlg . exec ( ) ;
2009-09-17 12:01:49 +04:00
}
2008-07-18 18:49:14 +04:00
void MainWindow : : on_fgcolor_clicked ( )
{
2017-06-17 17:34:41 +03:00
QColor temp = m_fgcolor ;
2021-05-20 20:22:57 +03:00
m_fgcolor = QColorDialog : : getColor ( m_fgcolor , this , tr ( " Set foreground colour " ) , QColorDialog : : ShowAlphaChannel ) ;
2019-11-26 00:20:21 +03:00
if ( m_fgcolor . isValid ( ) ) {
update_preview ( ) ;
} else {
m_fgcolor = temp ;
}
2008-07-18 18:49:14 +04:00
}
void MainWindow : : on_bgcolor_clicked ( )
{
2017-06-17 17:34:41 +03:00
QColor temp = m_bgcolor ;
2021-05-20 20:22:57 +03:00
m_bgcolor = QColorDialog : : getColor ( m_bgcolor , this , tr ( " Set background colour " ) , QColorDialog : : ShowAlphaChannel ) ;
2019-11-26 00:20:21 +03:00
if ( m_bgcolor . isValid ( ) ) {
update_preview ( ) ;
} else {
m_bgcolor = temp ;
}
2008-07-18 18:49:14 +04:00
}
2020-09-30 14:19:12 +03:00
void MainWindow : : autoheight_ui_set ( )
2019-10-21 10:29:21 +03: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 02:13:39 +03:00
bool enabled = chkAutoHeight - > isEnabled ( ) & & ! chkAutoHeight - > isChecked ( ) ;
lblHeight - > setEnabled ( enabled ) ;
heightb - > setEnabled ( enabled ) ;
2021-11-20 14:32:30 +03:00
if ( m_lblHeightPerRow & & m_spnHeightPerRow ) {
m_lblHeightPerRow - > setEnabled ( enabled ) ;
m_spnHeightPerRow - > setEnabled ( enabled ) ;
if ( enabled & & m_spnHeightPerRow - > value ( ) ) {
lblHeight - > setEnabled ( ! enabled ) ;
heightb - > setEnabled ( ! enabled ) ;
statusBar - > showMessage ( tr ( " Using \" Row Height \" " ) , statusBarTimeout ) ;
} else {
statusBar - > clearMessage ( ) ;
}
if ( m_btnHeightPerRowDisable ) {
m_btnHeightPerRowDisable - > setEnabled ( enabled & & m_spnHeightPerRow - > value ( ) ) ;
}
if ( m_btnHeightPerRowDefault ) {
m_btnHeightPerRowDefault - > setEnabled ( enabled ) ;
}
}
2020-09-30 14:19:12 +03:00
}
void MainWindow : : HRTShow_ui_set ( )
{
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 02:13:39 +03:00
bool enabled = chkHRTShow - > isEnabled ( ) & & chkHRTShow - > isChecked ( ) ;
lblFontSetting - > setEnabled ( enabled ) ;
cmbFontSetting - > setEnabled ( enabled ) ;
2020-09-30 14:19:12 +03:00
}
void MainWindow : : dotty_ui_set ( )
{
2021-07-06 21:53:31 +03:00
int symbology = bstyle_items [ bstyle - > currentIndex ( ) ] . symbology ;
2020-09-30 14:19:12 +03:00
if ( symbology = = BARCODE_DOTCODE ) {
chkDotty - > setEnabled ( false ) ;
lblDotSize - > setEnabled ( true ) ;
spnDotSize - > setEnabled ( true ) ;
} else {
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 02:13:39 +03:00
bool enabled = chkDotty - > isEnabled ( ) & & chkDotty - > isChecked ( ) ;
lblDotSize - > setEnabled ( enabled ) ;
spnDotSize - > setEnabled ( enabled ) ;
}
}
void MainWindow : : codeone_ui_set ( )
{
int symbology = bstyle_items [ bstyle - > currentIndex ( ) ] . symbology ;
if ( symbology ! = BARCODE_CODEONE )
return ;
QGroupBox * groupBox = m_optionWidget - > findChild < QGroupBox * > ( QSL ( " groupBoxC1StructApp " ) ) ;
if ( groupBox ) {
bool enabled = get_cmb_index ( QSL ( " cmbC1Size " ) ) ! = 9 ; // Not Version S
groupBox - > setEnabled ( enabled ) ;
2020-09-30 14:19:12 +03: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-28 23:42:44 +03:00
void MainWindow : : structapp_ui_set ( )
{
int symbology = bstyle_items [ bstyle - > currentIndex ( ) ] . symbology ;
QString name ;
bool enabled = false ;
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 02:13:39 +03:00
QWidget * widgetCount = nullptr , * widgetIndex = nullptr ;
QLabel * lblID2 = nullptr ;
QWidget * widgetID = nullptr , * widgetID2 = nullptr ;
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-28 23:42:44 +03:00
if ( symbology = = BARCODE_AZTEC ) {
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 02:13:39 +03:00
name = QSL ( " Aztec " ) ;
widgetID = get_widget ( QSL ( " txt " ) + name + QSL ( " StructAppID " ) ) ;
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-28 23:42:44 +03:00
} else if ( symbology = = BARCODE_CODEONE ) {
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 02:13:39 +03:00
name = QSL ( " C1 " ) ;
QSpinBox * spnCount = m_optionWidget - > findChild < QSpinBox * > ( QSL ( " spn " ) + name + QSL ( " StructAppCount " ) ) ;
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-28 23:42:44 +03:00
enabled = spnCount ? spnCount - > value ( ) > 1 : false ;
widgetCount = spnCount ;
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 02:13:39 +03:00
widgetIndex = get_widget ( QSL ( " spn " ) + name + QSL ( " StructAppIndex " ) ) ;
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-28 23:42:44 +03:00
} else if ( symbology = = BARCODE_DATAMATRIX ) {
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 02:13:39 +03:00
name = QSL ( " DM " ) ;
widgetID = get_widget ( QSL ( " spn " ) + name + QSL ( " StructAppID " ) ) ;
widgetID2 = get_widget ( QSL ( " spn " ) + name + QSL ( " StructAppID2 " ) ) ;
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-28 23:42:44 +03:00
} else if ( symbology = = BARCODE_DOTCODE ) {
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 02:13:39 +03:00
name = QSL ( " Dot " ) ;
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-28 23:42:44 +03:00
} else if ( symbology = = BARCODE_MAXICODE ) {
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 02:13:39 +03:00
name = QSL ( " Maxi " ) ;
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-28 23:42:44 +03:00
} else if ( symbology = = BARCODE_PDF417 | | symbology = = BARCODE_MICROPDF417 ) {
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 02:13:39 +03:00
name = symbology = = BARCODE_PDF417 ? QSL ( " PDF " ) : QSL ( " MPDF " ) ;
QSpinBox * spnCount = m_optionWidget - > findChild < QSpinBox * > ( QSL ( " spn " ) + name + QSL ( " StructAppCount " ) ) ;
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-28 23:42:44 +03:00
enabled = spnCount ? spnCount - > value ( ) > 1 : false ;
widgetCount = spnCount ;
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 02:13:39 +03:00
widgetIndex = get_widget ( QSL ( " spn " ) + name + QSL ( " StructAppIndex " ) ) ;
widgetID = get_widget ( QSL ( " txt " ) + name + QSL ( " StructAppID " ) ) ;
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-28 23:42:44 +03:00
} else if ( symbology = = BARCODE_QRCODE ) {
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 02:13:39 +03:00
name = QSL ( " QR " ) ;
widgetID = get_widget ( QSL ( " spn " ) + name + QSL ( " StructAppID " ) ) ;
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-28 23:42:44 +03:00
} else if ( symbology = = BARCODE_GRIDMATRIX ) {
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 02:13:39 +03:00
name = QSL ( " Grid " ) ;
widgetID = get_widget ( QSL ( " spn " ) + name + QSL ( " StructAppID " ) ) ;
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-28 23:42:44 +03:00
} else if ( symbology = = BARCODE_ULTRA ) {
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 02:13:39 +03:00
name = QSL ( " Ultra " ) ;
widgetID = get_widget ( QSL ( " spn " ) + name + QSL ( " StructAppID " ) ) ;
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-28 23:42:44 +03:00
}
if ( ! name . isEmpty ( ) ) {
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 02:13:39 +03:00
QLabel * lblIndex = m_optionWidget - > findChild < QLabel * > ( QSL ( " lbl " ) + name + QSL ( " StructAppIndex " ) ) ;
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-28 23:42:44 +03:00
if ( ! widgetCount ) {
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 02:13:39 +03:00
QComboBox * cmbCount = m_optionWidget - > findChild < QComboBox * > ( QSL ( " cmb " ) + name + QSL ( " StructAppCount " ) ) ;
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-28 23:42:44 +03:00
enabled = cmbCount ? cmbCount - > currentIndex ( ) ! = 0 : false ;
widgetCount = cmbCount ;
}
if ( ! widgetIndex ) {
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 02:13:39 +03:00
widgetIndex = get_widget ( QSL ( " cmb " ) + name + QSL ( " StructAppIndex " ) ) ;
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-28 23:42:44 +03:00
}
if ( lblIndex & & widgetCount & & widgetIndex ) {
lblIndex - > setEnabled ( enabled ) ;
widgetIndex - > setEnabled ( enabled ) ;
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 02:13:39 +03:00
QLabel * lblID = m_optionWidget - > findChild < QLabel * > ( QSL ( " lbl " ) + name + QSL ( " StructAppID " ) ) ;
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-28 23:42:44 +03:00
if ( lblID ) {
lblID - > setEnabled ( enabled ) ;
if ( lblID2 ) {
lblID2 - > setEnabled ( enabled ) ;
}
}
if ( widgetID ) {
widgetID - > setEnabled ( enabled ) ;
if ( widgetID2 ) {
widgetID2 - > setEnabled ( enabled ) ;
}
}
}
}
}
2020-09-30 14:19:12 +03:00
void MainWindow : : on_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 02:13:39 +03:00
this - > setMinimumHeight ( m_bc . bc . getError ( ) ? 455 : 435 ) ;
enableActions ( true ) ;
errtxtBar_set ( false /*isError*/ ) ;
2021-11-20 14:32:30 +03:00
if ( ! chkAutoHeight - > isEnabled ( ) | | chkAutoHeight - > isChecked ( ) | | ! heightb - > isEnabled ( ) ) {
2021-06-19 15:11:23 +03:00
/* setValue() rounds up/down to precision (decimals 3), we want round up only */
float height = ( float ) ( ceil ( m_bc . bc . height ( ) * 1000.0f ) / 1000.0f ) ;
heightb - > setValue ( height ) ;
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
void MainWindow : : on_errored ( )
{
this - > setMinimumHeight ( 455 ) ;
enableActions ( false ) ;
errtxtBar_set ( true /*isError*/ ) ;
}
2020-09-30 14:19:12 +03:00
void MainWindow : : filter_symbologies ( )
{
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-28 23:42:44 +03:00
// `simplified()` trims and reduces inner whitespace to a single space - nice!
QString filter = filter_bstyle - > text ( ) . simplified ( ) ;
2021-06-10 13:15:39 +03:00
QListView * lview = qobject_cast < QListView * > ( bstyle - > view ( ) ) ;
2020-09-30 14:19:12 +03:00
QStandardItemModel * model = qobject_cast < QStandardItemModel * > ( bstyle - > model ( ) ) ;
QStandardItem * item ;
2021-06-10 13:15:39 +03:00
if ( ! lview | | ! model ) {
2020-09-30 14:19:12 +03:00
return ;
}
/* QString::split() only introduced Qt 5.14, so too new for us to use */
QStringList filter_list ;
if ( ! filter . isEmpty ( ) ) {
int i , j ;
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 02:13:39 +03:00
for ( i = 0 ; ( j = filter . indexOf ( ' ' , i ) ) ! = - 1 ; i = j + 1 ) {
2020-09-30 14:19:12 +03:00
filter_list < < filter . mid ( i , j - i ) ;
}
filter_list < < filter . mid ( i ) ;
}
int filter_cnt = filter_list . size ( ) ;
2021-07-06 21:53:31 +03:00
int cnt = ( int ) ( sizeof ( bstyle_items ) / sizeof ( bstyle_items [ 0 ] ) ) ;
2020-09-30 14:19:12 +03:00
if ( filter_cnt ) {
for ( int i = 0 ; i < cnt ; i + + ) {
2021-06-10 13:15:39 +03:00
bool hidden = lview - > isRowHidden ( i ) ;
2020-09-30 14:19:12 +03:00
bool hide = true ;
for ( int j = 0 ; j < filter_cnt ; j + + ) {
if ( bstyle - > itemText ( i ) . contains ( filter_list [ j ] , Qt : : CaseInsensitive ) ) {
hide = false ;
break ;
}
}
if ( ( hide & & ! hidden ) | | ( ! hide & & hidden ) ) {
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 02:13:39 +03:00
// https://stackoverflow.com/questions/25172220
// /how-to-hide-qcombobox-items-instead-of-clearing-them-out
2020-09-30 14:19:12 +03:00
item = model - > item ( i ) ;
item - > setFlags ( hide ? item - > flags ( ) & ~ Qt : : ItemIsEnabled : item - > flags ( ) | Qt : : ItemIsEnabled ) ;
2021-06-10 13:15:39 +03:00
lview - > setRowHidden ( i , hide ) ;
2020-09-30 14:19:12 +03:00
}
}
} else {
for ( int i = 0 ; i < cnt ; i + + ) {
2021-06-10 13:15:39 +03:00
if ( lview - > isRowHidden ( i ) ) {
2020-09-30 14:19:12 +03:00
item = model - > item ( i ) ;
item - > setFlags ( item - > flags ( ) | Qt : : ItemIsEnabled ) ;
2021-06-10 13:15:39 +03:00
lview - > setRowHidden ( i , false ) ;
2020-09-30 14:19:12 +03:00
}
}
}
2019-10-21 10:29:21 +03:00
}
2009-05-19 18:05:26 +04:00
void MainWindow : : change_print_scale ( )
{
2019-11-26 00:20:21 +03:00
/* This value is only used when printing (saving) to file */
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 02:13:39 +03:00
m_bc . bc . setScale ( ( float ) spnScale - > value ( ) ) ;
2009-05-19 18:05:26 +04:00
}
2020-09-30 14:19:12 +03:00
void MainWindow : : change_cmyk ( )
{
/* This value is only used when printing (saving) to file */
m_bc . bc . setCMYK ( chkCMYK - > isChecked ( ) ) ;
}
2009-05-19 18:05:26 +04:00
void MainWindow : : quit_now ( )
{
2019-11-26 00:20:21 +03:00
close ( ) ;
2009-05-19 18:05:26 +04: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 02:13:39 +03:00
void MainWindow : : menu ( )
{
QSize size = m_menu - > sizeHint ( ) ;
m_menu - > exec ( btnMenu - > mapToGlobal ( QPoint ( 0 , - size . height ( ) ) ) ) ;
}
void MainWindow : : copy_to_clipboard_bmp ( )
{
copy_to_clipboard ( QSL ( " .zint.bmp " ) , QSL ( " BMP " ) ) ;
}
void MainWindow : : copy_to_clipboard_emf ( )
{
copy_to_clipboard ( QSL ( " .zint.emf " ) , QSL ( " EMF " ) , " image/x-emf " ) ;
}
void MainWindow : : copy_to_clipboard_eps ( )
{
// TODO: try other possibles application/eps, application/x-eps, image/eps, image/x-eps
copy_to_clipboard ( QSL ( " .zint.eps " ) , QSL ( " EPS " ) , " application/postscript " ) ;
}
void MainWindow : : copy_to_clipboard_gif ( )
{
copy_to_clipboard ( QSL ( " .zint.gif " ) , QSL ( " GIF " ) ) ;
}
void MainWindow : : copy_to_clipboard_pcx ( )
{
// TODO: try other mime types in various apps
copy_to_clipboard ( QSL ( " .zint.pcx " ) , QSL ( " PCX " ) , " image/x-pcx " ) ;
}
# ifndef NO_PNG
void MainWindow : : copy_to_clipboard_png ( )
{
copy_to_clipboard ( QSL ( " .zint.png " ) , QSL ( " PNG " ) ) ;
}
# endif
2017-05-15 23:12:19 +03:00
void MainWindow : : copy_to_clipboard_svg ( )
2017-04-22 14:21:27 +03: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 02:13:39 +03:00
copy_to_clipboard ( QSL ( " .zint.svg " ) , QSL ( " SVG " ) ) ;
}
2017-04-22 14:44:32 +03: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 02:13:39 +03:00
void MainWindow : : copy_to_clipboard_tif ( )
{
copy_to_clipboard ( QSL ( " .zint.tif " ) , QSL ( " TIF " ) ) ;
}
2017-04-22 14:21:27 +03: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 02:13:39 +03:00
void MainWindow : : copy_to_clipboard_errtxt ( )
{
if ( m_bc . bc . hasErrors ( ) ) {
QClipboard * clipboard = QGuiApplication : : clipboard ( ) ;
QMimeData * mdata = new QMimeData ;
mdata - > setText ( m_bc . bc . lastError ( ) ) ;
clipboard - > setMimeData ( mdata , QClipboard : : Clipboard ) ;
statusBar - > showMessage ( tr ( " Copied message to clipboard " ) , statusBarTimeout ) ;
2017-04-22 14:21:27 +03: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 02:13:39 +03:00
}
2017-04-22 14:21:27 +03:00
2021-11-20 14:32:30 +03:00
void MainWindow : : height_per_row_disable ( )
{
if ( m_spnHeightPerRow ) {
m_spnHeightPerRow - > setValue ( 0.0 ) ;
}
}
void MainWindow : : height_per_row_default ( )
{
if ( m_spnHeightPerRow & & m_btnHeightPerRowDefault ) {
const QString & name = m_btnHeightPerRowDefault - > objectName ( ) ;
double val = 0.0 ;
if ( name = = QSL ( " btnPDFHeightPerRowDefault " ) ) {
val = 3.0 ;
} else if ( name = = QSL ( " btnMPDFHeightPerRowDefault " ) ) {
val = 2.0 ;
} else if ( name = = QSL ( " btnC16kHeightPerRowDefault " ) ) {
if ( chkCompliantHeight - > isEnabled ( ) & & chkCompliantHeight - > isChecked ( ) ) {
const int rows = m_bc . bc . encodedRows ( ) ;
val = 10.0 + ( double ) ( ( rows - 1 ) * ( get_cmb_index ( QSL ( " cmbC16kRowSepHeight " ) ) + 1 ) ) / rows ;
} else {
val = 10.0 ;
}
} else if ( name = = QSL ( " btnCbfHeightPerRowDefault " ) ) {
// Depends on no. of data cols
const int cols = ( m_bc . bc . encodedWidth ( ) - 57 ) / 11 ; // 57 = 4 * 11 (start/subset/checks) + 13 (stop char)
val = 0.55 * cols + 3 ;
if ( val < 10.0 ) {
val = 10.0 ;
}
} else if ( name = = QSL ( " btnC49HeightPerRowDefault " ) ) {
if ( chkCompliantHeight - > isEnabled ( ) & & chkCompliantHeight - > isChecked ( ) ) {
const int rows = m_bc . bc . encodedRows ( ) ;
val = 10.0 + ( double ) ( ( rows - 1 ) * ( get_cmb_index ( QSL ( " cmbC49RowSepHeight " ) ) + 1 ) ) / rows ;
} else {
val = 10.0 ;
}
} else if ( name = = QSL ( " btnDBESHeightPerRowDefault " ) ) {
val = 34.0 ;
}
if ( val ) {
m_spnHeightPerRow - > setValue ( val ) ;
}
}
}
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 02:13:39 +03:00
void MainWindow : : guard_reset_upcean ( )
{
guard_reset ( QSL ( " spnUPCEANGuardDescent " ) ) ;
}
2017-04-22 14:44:32 +03: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 02:13:39 +03:00
void MainWindow : : guard_reset_upca ( )
{
guard_reset ( QSL ( " spnUPCAGuardDescent " ) ) ;
2017-04-22 14:21:27 +03: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 02:13:39 +03:00
void MainWindow : : view_context_menu ( const QPoint & pos )
2017-05-15 23:12:19 +03: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 02:13:39 +03:00
QMenu menu ( tr ( " View Menu " ) , view ) ;
2017-05-15 23:12:19 +03: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 02:13:39 +03:00
if ( m_bc . bc . getError ( ) > = ZINT_ERROR ) {
menu . addAction ( m_copyErrtxtAct ) ;
menu . exec ( get_context_menu_pos ( pos , view ) ) ;
} else {
menu . addAction ( m_copyBMPAct ) ;
menu . addAction ( m_copyEMFAct ) ;
# ifdef MAINWINDOW_COPY_EPS
menu . addAction ( m_copyEPSAct ) ;
# endif
menu . addAction ( m_copyGIFAct ) ;
# ifdef MAINWINDOW_COPY_PCX
menu . addAction ( m_copyPCXAct ) ;
# endif
# ifndef NO_PNG
menu . addAction ( m_copyPNGAct ) ;
# endif
menu . addAction ( m_copySVGAct ) ;
menu . addAction ( m_copyTIFAct ) ;
2021-11-20 14:32:30 +03:00
menu . addSeparator ( ) ;
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 02:13:39 +03:00
menu . addAction ( m_saveAsAct ) ;
menu . exec ( get_context_menu_pos ( pos , view ) ) ;
2017-05-15 23:12:19 +03: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 02:13:39 +03:00
}
2017-05-15 23:12:19 +03: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 02:13:39 +03:00
void MainWindow : : errtxtBar_context_menu ( const QPoint & pos )
{
QMenu menu ( tr ( " Message Menu " ) , errtxtBar ) ;
2017-05-15 23:12:19 +03: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 02:13:39 +03:00
menu . addAction ( m_copyErrtxtAct ) ;
menu . exec ( get_context_menu_pos ( pos , errtxtBar ) ) ;
2017-05-15 23:12:19 +03:00
}
2009-04-27 02:04:51 +04:00
void MainWindow : : change_options ( )
2008-07-18 18:49:14 +04:00
{
2019-11-26 00:20:21 +03:00
QUiLoader uiload ;
2020-09-30 14:19:12 +03:00
QSettings settings ;
2021-01-11 21:11:41 +03:00
# if QT_VERSION < 0x60000
2020-10-27 18:11:33 +03:00
settings . setIniCodec ( " UTF-8 " ) ;
2021-01-11 21:11:41 +03:00
# endif
2020-09-30 14:19:12 +03:00
bool initial_load = m_symbology = = 0 ;
int original_tab_count = tabMain - > count ( ) ;
int original_tab_index = tabMain - > currentIndex ( ) ;
2021-07-06 21:53:31 +03:00
int symbology = bstyle_items [ bstyle - > currentIndex ( ) ] . symbology ;
2019-11-26 00:20:21 +03:00
2020-09-30 14:19:12 +03:00
if ( m_symbology ) {
save_sub_settings ( settings , m_symbology ) ;
}
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 02:13:39 +03:00
statusBar - > clearMessage ( ) ;
2020-09-30 14:19:12 +03:00
2021-05-20 20:22:57 +03:00
if ( tabMain - > count ( ) = = 3 )
2019-11-26 00:20:21 +03:00
tabMain - > removeTab ( 1 ) ;
2020-10-04 00:51:08 +03:00
chkComposite - > setText ( tr ( " Add &2D Component " ) ) ;
2021-07-06 21:53:31 +03:00
combobox_item_enabled ( cmbCompType , 3 , false ) ; // CC-C
2021-01-11 21:11:41 +03:00
cmbECI - > setItemText ( 25 , tr ( " 29: GB 2312 (PRC) " ) ) ;
2020-08-01 00:56:41 +03:00
btype - > setItemText ( 0 , tr ( " No border " ) ) ;
2020-09-30 14:19:12 +03:00
combobox_item_enabled ( cmbFontSetting , 1 , true ) ;
2021-11-20 14:32:30 +03:00
m_lblHeightPerRow = nullptr ;
m_spnHeightPerRow = nullptr ;
m_btnHeightPerRowDisable = nullptr ;
m_btnHeightPerRowDefault = nullptr ;
2020-08-01 00:56:41 +03:00
2021-05-20 20:22:57 +03:00
if ( symbology = = BARCODE_CODE128 ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpC128.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Cod&e 128 " ) ) ;
2020-10-04 00:51:08 +03:00
chkComposite - > setText ( tr ( " Add &2D Component (GS1-128 only) " ) ) ;
2021-07-06 21:53:31 +03:00
combobox_item_enabled ( cmbCompType , 3 , true ) ; // CC-C
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 02:13:39 +03:00
set_smaller_font ( QSL ( " noteC128CompositeEAN " ) ) ;
connect ( get_widget ( QSL ( " radC128Stand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radC128CSup " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radC128EAN " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( composite_ean_check ( ) ) ) ;
connect ( get_widget ( QSL ( " radC128EAN " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radC128HIBC " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_PDF417 ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpPDF417.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
structapp_ui_set ( ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " PDF41&7 " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbPDFECC " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbPDFCols " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2021-10-31 00:00:31 +03:00
connect ( get_widget ( QSL ( " cmbPDFRows " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2021-11-20 14:32:30 +03:00
m_lblHeightPerRow = m_optionWidget - > findChild < QLabel * > ( QSL ( " lblPDFHeightPerRow " ) ) ;
m_spnHeightPerRow = m_optionWidget - > findChild < QDoubleSpinBox * > ( QSL ( " spnPDFHeightPerRow " ) ) ;
connect ( m_spnHeightPerRow , SIGNAL ( valueChanged ( double ) ) , SLOT ( autoheight_ui_set ( ) ) ) ;
connect ( m_spnHeightPerRow , SIGNAL ( valueChanged ( double ) ) , SLOT ( update_preview ( ) ) ) ;
m_btnHeightPerRowDisable = m_optionWidget - > findChild < QPushButton * > ( QSL ( " btnPDFHeightPerRowDisable " ) ) ;
m_btnHeightPerRowDefault = m_optionWidget - > findChild < QPushButton * > ( QSL ( " btnPDFHeightPerRowDefault " ) ) ;
connect ( m_btnHeightPerRowDisable , SIGNAL ( clicked ( bool ) ) , SLOT ( height_per_row_disable ( ) ) ) ;
connect ( m_btnHeightPerRowDefault , SIGNAL ( clicked ( bool ) ) , SLOT ( height_per_row_default ( ) ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " radPDFTruncated " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radPDFStand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radPDFHIBC " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnPDFStructAppCount " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnPDFStructAppCount " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( structapp_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " spnPDFStructAppIndex " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " txtPDFStructAppID " ) ) , SIGNAL ( textChanged ( const QString & ) ) , SLOT ( update_preview ( ) ) ) ;
2020-06-04 20:45:25 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_MICROPDF417 ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpMicroPDF.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
structapp_ui_set ( ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Micro PDF41&7 " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbMPDFCols " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2021-11-20 14:32:30 +03:00
m_lblHeightPerRow = m_optionWidget - > findChild < QLabel * > ( QSL ( " lblMPDFHeightPerRow " ) ) ;
m_spnHeightPerRow = m_optionWidget - > findChild < QDoubleSpinBox * > ( QSL ( " spnMPDFHeightPerRow " ) ) ;
connect ( m_spnHeightPerRow , SIGNAL ( valueChanged ( double ) ) , SLOT ( autoheight_ui_set ( ) ) ) ;
connect ( m_spnHeightPerRow , SIGNAL ( valueChanged ( double ) ) , SLOT ( update_preview ( ) ) ) ;
m_btnHeightPerRowDisable = m_optionWidget - > findChild < QPushButton * > ( QSL ( " btnMPDFHeightPerRowDisable " ) ) ;
m_btnHeightPerRowDefault = m_optionWidget - > findChild < QPushButton * > ( QSL ( " btnMPDFHeightPerRowDefault " ) ) ;
connect ( m_btnHeightPerRowDisable , SIGNAL ( clicked ( bool ) ) , SLOT ( height_per_row_disable ( ) ) ) ;
connect ( m_btnHeightPerRowDefault , SIGNAL ( clicked ( bool ) ) , SLOT ( height_per_row_default ( ) ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " radMPDFStand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnMPDFStructAppCount " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnMPDFStructAppCount " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( structapp_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " spnMPDFStructAppIndex " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " txtMPDFStructAppID " ) ) , SIGNAL ( textChanged ( const QString & ) ) , SLOT ( update_preview ( ) ) ) ;
2009-04-27 02:04:51 +04:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_DOTCODE ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpDotCode.ui " ) ) ;
2016-08-20 15:21:05 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2016-08-20 15:21:05 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
structapp_ui_set ( ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " DotCod&e " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbDotCols " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbDotMask " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radDotStand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radDotGS1 " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbDotStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbDotStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) ,
SLOT ( structapp_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbDotStructAppIndex " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2016-08-20 15:21:05 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_AZTEC ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpAztec.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
structapp_ui_set ( ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Aztec Cod&e " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " radAztecAuto " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radAztecSize " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radAztecECC " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbAztecSize " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbAztecECC " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radAztecStand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radAztecGS1 " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radAztecHIBC " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbAztecStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) ,
SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbAztecStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) ,
SLOT ( structapp_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbAztecStructAppIndex " ) ) , SIGNAL ( currentIndexChanged ( int ) ) ,
SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " txtAztecStructAppID " ) ) , SIGNAL ( textChanged ( const QString & ) ) ,
SLOT ( update_preview ( ) ) ) ;
2017-10-23 22:37:52 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_MSI_PLESSEY ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpMSICheck.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " MSI Pless&ey " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbMSICheck " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbMSICheck " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( msi_plessey_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " chkMSICheckText " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_CODE11 ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpC11.ui " ) ) ;
2020-06-04 20:45:25 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2020-06-04 20:45:25 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Cod&e 11 " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " radC11TwoCheckDigits " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radC11OneCheckDigit " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radC11NoCheckDigits " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2020-06-04 20:45:25 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_C25STANDARD | | symbology = = BARCODE_C25INTER | | symbology = = BARCODE_C25IATA
| | symbology = = BARCODE_C25LOGIC | | symbology = = BARCODE_C25IND ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpC25.ui " ) ) ;
2021-05-17 22:04:00 +03:00
if ( file . open ( QIODevice : : ReadOnly ) ) {
m_optionWidget = uiload . load ( & file ) ;
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
static const QString names [ ] = {
QSL ( " Standard " ) , QSL ( " Interleaved " ) , QSL ( " IATA " ) , QSL ( " " ) , QSL ( " Data Logic " ) , QSL ( " Industrial " )
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-28 23:42:44 +03:00
} ;
2021-05-25 22:42:26 +03:00
/*: %1 is name of variant (Standard, Interleaved, IATA, Data Logic, Industrial) */
2021-05-17 22:04:00 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Cod&e 2 of 5 %1 " ) . arg ( names [ symbology - BARCODE_C25STANDARD ] ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " radC25Stand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radC25Check " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radC25CheckHide " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2021-05-17 22:04:00 +03:00
}
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_CODE39 | | symbology = = BARCODE_EXCODE39 ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpC39.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
connect ( get_widget ( QSL ( " radC39Stand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radC39Check " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radC39HIBC " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2021-05-20 20:22:57 +03:00
if ( symbology = = BARCODE_EXCODE39 ) {
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Cod&e 39 Extended " ) ) ;
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 02:13:39 +03:00
if ( m_optionWidget - > findChild < QRadioButton * > ( QSL ( " radC39HIBC " ) ) - > isChecked ( ) ) {
m_optionWidget - > findChild < QRadioButton * > ( QSL ( " radC39HIBC " ) ) - > setChecked ( false ) ;
m_optionWidget - > findChild < QRadioButton * > ( QSL ( " radC39Stand " ) ) - > setChecked ( true ) ;
2019-11-26 00:20:21 +03: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 02:13:39 +03:00
m_optionWidget - > findChild < QRadioButton * > ( QSL ( " radC39HIBC " ) ) - > setEnabled ( false ) ;
2021-05-20 20:22:57 +03:00
} else {
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Cod&e 39 " ) ) ;
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 02:13:39 +03:00
m_optionWidget - > findChild < QRadioButton * > ( QSL ( " radC39HIBC " ) ) - > setEnabled ( true ) ;
2020-09-30 14:19:12 +03:00
}
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_LOGMARS ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpLOGMARS.ui " ) ) ;
2020-06-04 20:45:25 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2020-06-04 20:45:25 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " LOGM&ARS " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " radLOGMARSStand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radLOGMARSCheck " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2020-06-04 20:45:25 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_CODE16K ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpC16k.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Cod&e 16K " ) ) ;
2020-08-01 00:56:41 +03:00
btype - > setItemText ( 0 , tr ( " Default (bind) " ) ) ;
2021-11-20 14:32:30 +03:00
connect ( get_widget ( QSL ( " cmbC16kRows " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
m_lblHeightPerRow = m_optionWidget - > findChild < QLabel * > ( QSL ( " lblC16kHeightPerRow " ) ) ;
m_spnHeightPerRow = m_optionWidget - > findChild < QDoubleSpinBox * > ( QSL ( " spnC16kHeightPerRow " ) ) ;
connect ( m_spnHeightPerRow , SIGNAL ( valueChanged ( double ) ) , SLOT ( autoheight_ui_set ( ) ) ) ;
connect ( m_spnHeightPerRow , SIGNAL ( valueChanged ( double ) ) , SLOT ( update_preview ( ) ) ) ;
m_btnHeightPerRowDisable = m_optionWidget - > findChild < QPushButton * > ( QSL ( " btnC16kHeightPerRowDisable " ) ) ;
m_btnHeightPerRowDefault = m_optionWidget - > findChild < QPushButton * > ( QSL ( " btnC16kHeightPerRowDefault " ) ) ;
connect ( m_btnHeightPerRowDisable , SIGNAL ( clicked ( bool ) ) , SLOT ( height_per_row_disable ( ) ) ) ;
connect ( m_btnHeightPerRowDefault , SIGNAL ( clicked ( bool ) ) , SLOT ( height_per_row_default ( ) ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbC16kRowSepHeight " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radC16kStand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkC16kNoQuietZones " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_CODABAR ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpCodabar.ui " ) ) ;
2020-06-04 20:45:25 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2020-06-04 20:45:25 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Cod&abar " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " radCodabarStand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radCodabarCheckHide " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radCodabarCheck " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2020-06-04 20:45:25 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_CODABLOCKF ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpCodablockF.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Codablock&-F " ) ) ;
2020-08-01 00:56:41 +03:00
btype - > setItemText ( 0 , tr ( " Default (bind) " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbCbfWidth " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbCbfHeight " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2021-11-20 14:32:30 +03:00
m_lblHeightPerRow = m_optionWidget - > findChild < QLabel * > ( QSL ( " lblCbfHeightPerRow " ) ) ;
m_spnHeightPerRow = m_optionWidget - > findChild < QDoubleSpinBox * > ( QSL ( " spnCbfHeightPerRow " ) ) ;
connect ( m_spnHeightPerRow , SIGNAL ( valueChanged ( double ) ) , SLOT ( autoheight_ui_set ( ) ) ) ;
connect ( m_spnHeightPerRow , SIGNAL ( valueChanged ( double ) ) , SLOT ( update_preview ( ) ) ) ;
m_btnHeightPerRowDisable = m_optionWidget - > findChild < QPushButton * > ( QSL ( " btnCbfHeightPerRowDisable " ) ) ;
m_btnHeightPerRowDefault = m_optionWidget - > findChild < QPushButton * > ( QSL ( " btnCbfHeightPerRowDefault " ) ) ;
connect ( m_btnHeightPerRowDisable , SIGNAL ( clicked ( bool ) ) , SLOT ( height_per_row_disable ( ) ) ) ;
connect ( m_btnHeightPerRowDefault , SIGNAL ( clicked ( bool ) ) , SLOT ( height_per_row_default ( ) ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbCbfRowSepHeight " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radCbfStand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radCbfHIBC " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkCbfNoQuietZones " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2009-04-27 02:04:51 +04:00
2021-06-19 15:11:23 +03:00
} else if ( symbology = = BARCODE_DAFT ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpDAFT.ui " ) ) ;
2021-06-19 15:11:23 +03:00
if ( file . open ( QIODevice : : ReadOnly ) ) {
m_optionWidget = uiload . load ( & file ) ;
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-06-19 15:11:23 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " DAFT " ) ) ;
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 02:13:39 +03:00
set_smaller_font ( QSL ( " noteTrackerRatios " ) ) ;
connect ( get_widget ( QSL ( " spnDAFTTrackerRatio " ) ) , SIGNAL ( valueChanged ( double ) ) , SLOT ( update_preview ( ) ) ) ;
2021-06-19 15:11:23 +03:00
}
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_DATAMATRIX ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpDM.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
structapp_ui_set ( ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " D&ata Matrix " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " radDM200Stand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radDM200GS1 " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radDM200HIBC " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbDM200Size " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkDMRectangle " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkDMRE " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkDMGSSep " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbDMStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbDMStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( structapp_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbDMStructAppIndex " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnDMStructAppID " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnDMStructAppID2 " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_ITF14 ) {
2020-08-01 00:56:41 +03:00
btype - > setItemText ( 0 , tr ( " Default (box, non-zero width) " ) ) ;
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpITF14.ui " ) ) ;
2021-09-24 15:21:24 +03:00
if ( file . open ( QIODevice : : ReadOnly ) ) {
m_optionWidget = uiload . load ( & file ) ;
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-09-24 15:21:24 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " ITF-1&4 " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " chkITF14NoQuietZones " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2021-09-24 15:21:24 +03:00
}
2020-08-01 00:56:41 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_QRCODE ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpQR.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
structapp_ui_set ( ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " QR Cod&e " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbQRSize " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbQRECC " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbQRMask " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radQRStand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radQRGS1 " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radQRHIBC " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkQRFullMultibyte " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbQRStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbQRStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( structapp_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbQRStructAppIndex " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnQRStructAppID " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_RMQR ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpRMQR.ui " ) ) ;
2019-11-27 19:54:03 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-27 19:54:03 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " rMQR Cod&e " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbRMQRSize " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbRMQRECC " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radRMQRStand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radRMQRGS1 " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkRMQRFullMultibyte " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-27 19:54:03 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_HANXIN ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpHX.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Han Xin Cod&e " ) ) ;
2021-01-11 21:11:41 +03:00
cmbECI - > setItemText ( 25 , tr ( " 29: GB 18030 (PRC) " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbHXSize " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbHXECC " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbHXMask " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkHXFullMultibyte " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_MICROQR ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpMQR.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Micro QR Cod&e " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbMQRSize " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbMQRECC " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbMQRMask " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkMQRFullMultibyte " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_GRIDMATRIX ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpGrid.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
structapp_ui_set ( ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Grid M&atrix " ) ) ;
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 02:13:39 +03:00
set_smaller_font ( QSL ( " noteGridECC " ) ) ;
connect ( get_widget ( QSL ( " cmbGridSize " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbGridECC " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkGridFullMultibyte " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbGridStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbGridStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) ,
SLOT ( structapp_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbGridStructAppIndex " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnGridStructAppID " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_MAXICODE ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpMaxicode.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
structapp_ui_set ( ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " MaxiCod&e " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbMaxiMode " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbMaxiMode " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( maxi_scm_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " txtMaxiSCMPostcode " ) ) , SIGNAL ( textChanged ( const QString & ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnMaxiSCMCountry " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnMaxiSCMService " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkMaxiSCMVV " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkMaxiSCMVV " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( maxi_scm_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " spnMaxiSCMVV " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbMaxiStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbMaxiStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) ,
SLOT ( structapp_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbMaxiStructAppIndex " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
maxi_scm_ui_set ( ) ;
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_CHANNEL ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpChannel.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Channel Cod&e " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbChannel " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_CODEONE ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpCodeOne.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
codeone_ui_set ( ) ;
structapp_ui_set ( ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Code On&e " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbC1Size " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( codeone_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbC1Size " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radC1GS1 " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnC1StructAppCount " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnC1StructAppCount " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( structapp_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " spnC1StructAppIndex " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_CODE49 ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpC49.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Cod&e 49 " ) ) ;
2021-05-25 22:42:26 +03:00
btype - > setItemText ( 0 , tr ( " Default (bind) " ) ) ;
2021-11-20 14:32:30 +03:00
connect ( get_widget ( QSL ( " cmbC49Rows " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
m_lblHeightPerRow = m_optionWidget - > findChild < QLabel * > ( QSL ( " lblC49HeightPerRow " ) ) ;
m_spnHeightPerRow = m_optionWidget - > findChild < QDoubleSpinBox * > ( QSL ( " spnC49HeightPerRow " ) ) ;
connect ( m_spnHeightPerRow , SIGNAL ( valueChanged ( double ) ) , SLOT ( autoheight_ui_set ( ) ) ) ;
connect ( m_spnHeightPerRow , SIGNAL ( valueChanged ( double ) ) , SLOT ( update_preview ( ) ) ) ;
m_btnHeightPerRowDisable = m_optionWidget - > findChild < QPushButton * > ( QSL ( " btnC49HeightPerRowDisable " ) ) ;
m_btnHeightPerRowDefault = m_optionWidget - > findChild < QPushButton * > ( QSL ( " btnC49HeightPerRowDefault " ) ) ;
connect ( m_btnHeightPerRowDisable , SIGNAL ( clicked ( bool ) ) , SLOT ( height_per_row_disable ( ) ) ) ;
connect ( m_btnHeightPerRowDefault , SIGNAL ( clicked ( bool ) ) , SLOT ( height_per_row_default ( ) ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbC49RowSepHeight " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radC49GS1 " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " chkC49NoQuietZones " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2021-06-19 15:11:23 +03:00
2021-09-13 20:49:25 +03:00
} else if ( symbology = = BARCODE_CODE93 ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpC93.ui " ) ) ;
2021-09-13 20:49:25 +03:00
if ( file . open ( QIODevice : : ReadOnly ) ) {
m_optionWidget = uiload . load ( & file ) ;
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-09-13 20:49:25 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Cod&e 93 " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " chkC93ShowChecks " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2021-09-13 20:49:25 +03:00
}
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_DBAR_EXPSTK ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpDBExtend.ui " ) ) ;
2019-11-26 00:20:21 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2019-11-26 00:20:21 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-11-20 14:32:30 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " GS1 D&ataBar Exp Stack " ) ) ;
connect ( get_widget ( QSL ( " radDBESCols " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radDBESRows " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbDBESCols " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbDBESRows " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
m_lblHeightPerRow = m_optionWidget - > findChild < QLabel * > ( QSL ( " lblDBESHeightPerRow " ) ) ;
m_spnHeightPerRow = m_optionWidget - > findChild < QDoubleSpinBox * > ( QSL ( " spnDBESHeightPerRow " ) ) ;
connect ( m_spnHeightPerRow , SIGNAL ( valueChanged ( double ) ) , SLOT ( autoheight_ui_set ( ) ) ) ;
connect ( m_spnHeightPerRow , SIGNAL ( valueChanged ( double ) ) , SLOT ( update_preview ( ) ) ) ;
m_btnHeightPerRowDisable = m_optionWidget - > findChild < QPushButton * > ( QSL ( " btnDBESHeightPerRowDisable " ) ) ;
m_btnHeightPerRowDefault = m_optionWidget - > findChild < QPushButton * > ( QSL ( " btnDBESHeightPerRowDefault " ) ) ;
connect ( m_btnHeightPerRowDisable , SIGNAL ( clicked ( bool ) ) , SLOT ( height_per_row_disable ( ) ) ) ;
connect ( m_btnHeightPerRowDefault , SIGNAL ( clicked ( bool ) ) , SLOT ( height_per_row_default ( ) ) ) ;
2020-07-15 21:00:12 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_ULTRA ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpUltra.ui " ) ) ;
2020-04-07 20:09:53 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2020-04-07 20:09:53 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
structapp_ui_set ( ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " Ultracod&e " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " radUltraAuto " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radUltraEcc " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbUltraEcc " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbUltraRevision " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radUltraStand " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " radUltraGS1 " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbUltraStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) ,
SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbUltraStructAppCount " ) ) , SIGNAL ( currentIndexChanged ( int ) ) ,
SLOT ( structapp_ui_set ( ) ) ) ;
connect ( get_widget ( QSL ( " cmbUltraStructAppIndex " ) ) , SIGNAL ( currentIndexChanged ( int ) ) ,
SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnUltraStructAppID " ) ) , SIGNAL ( valueChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
2019-11-26 00:20:21 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_UPCA | | symbology = = BARCODE_UPCA_CHK | | symbology = = BARCODE_UPCA_CC ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpUPCA.ui " ) ) ;
2020-07-15 21:00:12 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2020-07-15 21:00:12 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " UPC-&A " ) ) ;
2020-09-30 14:19:12 +03:00
combobox_item_enabled ( cmbFontSetting , 1 , false ) ;
if ( cmbFontSetting - > currentIndex ( ) = = 1 ) {
cmbFontSetting - > setCurrentIndex ( 0 ) ;
}
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbUPCAAddonGap " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnUPCAGuardDescent " ) ) , SIGNAL ( valueChanged ( double ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " btnUPCAGuardReset " ) ) , SIGNAL ( clicked ( bool ) ) , SLOT ( guard_reset_upca ( ) ) ) ;
connect ( get_widget ( QSL ( " chkUPCANoQuietZones " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2020-07-15 21:00:12 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_EANX | | symbology = = BARCODE_EANX_CHK | | symbology = = BARCODE_EANX_CC
2020-07-15 21:00:12 +03:00
| | symbology = = BARCODE_UPCE | | symbology = = BARCODE_UPCE_CHK | | symbology = = BARCODE_UPCE_CC
2021-05-20 20:22:57 +03:00
| | symbology = = BARCODE_ISBNX ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpUPCEAN.ui " ) ) ;
2020-07-15 21:00:12 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2020-07-15 21:00:12 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2020-07-15 21:00:12 +03:00
if ( symbology = = BARCODE_UPCE | | symbology = = BARCODE_UPCE_CHK | | symbology = = BARCODE_UPCE_CC ) {
2020-10-04 00:51:08 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " UPC-&E " ) ) ;
2020-07-15 21:00:12 +03:00
} else if ( symbology = = BARCODE_ISBNX ) {
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " ISBN " ) ) ;
} else {
2020-10-04 00:51:08 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " &EAN " ) ) ;
2020-07-15 21:00:12 +03:00
}
2020-09-30 14:19:12 +03:00
combobox_item_enabled ( cmbFontSetting , 1 , false ) ;
if ( cmbFontSetting - > currentIndex ( ) = = 1 ) {
cmbFontSetting - > setCurrentIndex ( 0 ) ;
}
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " cmbUPCEANAddonGap " ) ) , SIGNAL ( currentIndexChanged ( int ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " spnUPCEANGuardDescent " ) ) , SIGNAL ( valueChanged ( double ) ) , SLOT ( update_preview ( ) ) ) ;
connect ( get_widget ( QSL ( " btnUPCEANGuardReset " ) ) , SIGNAL ( clicked ( bool ) ) , SLOT ( guard_reset_upcean ( ) ) ) ;
connect ( get_widget ( QSL ( " chkUPCEANNoQuietZones " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
2020-07-15 21:00:12 +03:00
2021-05-20 20:22:57 +03:00
} else if ( symbology = = BARCODE_VIN ) {
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 02:13:39 +03:00
QFile file ( QSL ( " :/grpVIN.ui " ) ) ;
2020-06-04 20:45:25 +03:00
if ( ! file . open ( QIODevice : : ReadOnly ) )
return ;
2021-05-20 20:22:57 +03:00
m_optionWidget = uiload . load ( & file ) ;
2020-06-04 20:45:25 +03:00
file . close ( ) ;
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 02:13:39 +03:00
load_sub_settings ( settings , symbology ) ;
2021-05-20 20:22:57 +03:00
tabMain - > insertTab ( 1 , m_optionWidget , tr ( " &VIN " ) ) ;
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 02:13:39 +03:00
connect ( get_widget ( QSL ( " chkVINImportChar " ) ) , SIGNAL ( toggled ( bool ) ) , SLOT ( update_preview ( ) ) ) ;
} else {
load_sub_settings ( settings , symbology ) ;
2020-06-04 20:45:25 +03:00
}
2021-05-20 20:22:57 +03:00
switch ( symbology ) {
2019-11-26 00:20:21 +03:00
case BARCODE_CODE128 :
case BARCODE_EANX :
case BARCODE_UPCA :
case BARCODE_UPCE :
2020-07-29 22:43:08 +03:00
case BARCODE_DBAR_OMN :
case BARCODE_DBAR_LTD :
case BARCODE_DBAR_EXP :
case BARCODE_DBAR_STK :
case BARCODE_DBAR_OMNSTK :
case BARCODE_DBAR_EXPSTK :
2019-11-26 00:20:21 +03:00
grpComposite - > show ( ) ;
break ;
default :
grpComposite - > hide ( ) ;
break ;
}
2021-05-20 20:22:57 +03: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 02:13:39 +03:00
// ECI, GS1Parens, GS1NoCheck, RInit, CompliantHeight will be checked in update_preview() as
// encoding mode dependent (HIBC and/or GS1)
2020-09-30 14:19:12 +03:00
chkAutoHeight - > setEnabled ( ! m_bc . bc . isFixedRatio ( symbology ) ) ;
chkHRTShow - > setEnabled ( m_bc . bc . hasHRT ( symbology ) ) ;
2021-09-24 15:21:24 +03:00
chkQuietZones - > setEnabled ( ! m_bc . bc . hasDefaultQuietZones ( symbology ) ) ;
2020-09-30 14:19:12 +03:00
chkDotty - > setEnabled ( m_bc . bc . isDotty ( symbology ) ) ;
composite_ui_set ( ) ;
autoheight_ui_set ( ) ;
HRTShow_ui_set ( ) ;
dotty_ui_set ( ) ;
if ( initial_load ) {
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 02:13:39 +03:00
tabMain - > setCurrentIndex ( settings . value ( QSL ( " studio/tab_index " ) , 0 ) . toInt ( ) ) ;
2020-09-30 14:19:12 +03:00
} else if ( original_tab_count = = tabMain - > count ( ) ) {
tabMain - > setCurrentIndex ( original_tab_index ) ;
} else if ( original_tab_count > tabMain - > count ( ) ) {
tabMain - > setCurrentIndex ( original_tab_index = = 2 ? 1 : 0 ) ;
} else {
tabMain - > setCurrentIndex ( original_tab_index = = 1 ? 2 : 0 ) ;
}
2008-07-18 18:49:14 +04:00
}
2020-09-30 14:19:12 +03:00
void MainWindow : : composite_ui_set ( )
2009-04-27 02:04:51 +04: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 02:13:39 +03:00
bool enabled = ! grpComposite - > isHidden ( ) & & chkComposite - > isChecked ( ) ;
lblCompType - > setEnabled ( enabled ) ;
cmbCompType - > setEnabled ( enabled ) ;
lblComposite - > setEnabled ( enabled ) ;
txtComposite - > setEnabled ( enabled ) ;
if ( enabled ) {
2021-07-06 21:53:31 +03:00
if ( bstyle_items [ bstyle - > currentIndex ( ) ] . symbology = = BARCODE_CODE128 ) {
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 02:13:39 +03:00
QRadioButton * radioButton = m_optionWidget - > findChild < QRadioButton * > ( QSL ( " radC128EAN " ) ) ;
2020-09-30 14:19:12 +03:00
if ( radioButton ) {
radioButton - > setChecked ( true ) ;
}
}
2019-11-26 00:20:21 +03:00
}
2009-04-27 02:04:51 +04:00
}
void MainWindow : : composite_ean_check ( )
{
2021-07-06 21:53:31 +03:00
if ( bstyle_items [ bstyle - > currentIndex ( ) ] . symbology ! = BARCODE_CODE128 )
2019-11-26 00:20:21 +03:00
return ;
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 02:13:39 +03:00
QRadioButton * radioButton = m_optionWidget - > findChild < QRadioButton * > ( QSL ( " radC128EAN " ) ) ;
2020-09-30 14:19:12 +03:00
if ( radioButton & & ! radioButton - > isChecked ( ) )
2019-11-26 00:20:21 +03:00
chkComposite - > setChecked ( false ) ;
2009-04-27 02:04:51 +04: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 02:13:39 +03:00
void MainWindow : : maxi_scm_ui_set ( )
2008-10-07 18:28:32 +04:00
{
2021-07-06 21:53:31 +03:00
if ( bstyle_items [ bstyle - > currentIndex ( ) ] . symbology ! = BARCODE_MAXICODE )
2019-11-26 00:20:21 +03:00
return ;
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 02:13:39 +03:00
QCheckBox * chkMaxiSCMVV = m_optionWidget ? m_optionWidget - > findChild < QCheckBox * > ( QSL ( " chkMaxiSCMVV " ) ) : nullptr ;
if ( ! chkMaxiSCMVV )
return ;
2021-09-09 23:50:02 +03: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 02:13:39 +03:00
bool isMode2or3 = get_cmb_index ( QSL ( " cmbMaxiMode " ) ) = = 0 ;
2021-09-09 23:50:02 +03: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 02:13:39 +03:00
m_optionWidget - > findChild < QLabel * > ( QSL ( " lblMaxiSCMPostcode " ) ) - > setEnabled ( isMode2or3 ) ;
m_optionWidget - > findChild < QLineEdit * > ( QSL ( " txtMaxiSCMPostcode " ) ) - > setEnabled ( isMode2or3 ) ;
m_optionWidget - > findChild < QLabel * > ( QSL ( " lblMaxiSCMCountry " ) ) - > setEnabled ( isMode2or3 ) ;
m_optionWidget - > findChild < QSpinBox * > ( QSL ( " spnMaxiSCMCountry " ) ) - > setEnabled ( isMode2or3 ) ;
m_optionWidget - > findChild < QLabel * > ( QSL ( " lblMaxiSCMService " ) ) - > setEnabled ( isMode2or3 ) ;
m_optionWidget - > findChild < QSpinBox * > ( QSL ( " spnMaxiSCMService " ) ) - > setEnabled ( isMode2or3 ) ;
2021-09-09 23:50:02 +03:00
chkMaxiSCMVV - > setEnabled ( isMode2or3 ) ;
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 02:13:39 +03:00
m_optionWidget - > findChild < QLabel * > ( QSL ( " lblMaxiSCMVV " ) ) - > setEnabled ( isMode2or3 & & chkMaxiSCMVV - > isChecked ( ) ) ;
m_optionWidget - > findChild < QSpinBox * > ( QSL ( " spnMaxiSCMVV " ) ) - > setEnabled ( isMode2or3 & & chkMaxiSCMVV - > isChecked ( ) ) ;
2008-10-07 18:28:32 +04:00
}
2009-04-27 02:04:51 +04:00
2021-06-10 13:15:39 +03:00
void MainWindow : : msi_plessey_ui_set ( )
{
2021-07-06 21:53:31 +03:00
if ( bstyle_items [ bstyle - > currentIndex ( ) ] . symbology ! = BARCODE_MSI_PLESSEY )
2021-06-10 13:15:39 +03:00
return ;
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 02:13:39 +03:00
QCheckBox * checkBox = m_optionWidget ? m_optionWidget - > findChild < QCheckBox * > ( QSL ( " chkMSICheckText " ) ) : nullptr ;
2021-06-10 13:15:39 +03:00
if ( checkBox ) {
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 02:13:39 +03:00
checkBox - > setEnabled ( get_cmb_index ( QSL ( " cmbMSICheck " ) ) > 0 ) ;
2021-06-10 13:15:39 +03:00
}
}
2020-09-30 14:19:12 +03:00
// Taken from https://stackoverflow.com/questions/38915001/disable-specific-items-in-qcombobox
void MainWindow : : combobox_item_enabled ( QComboBox * comboBox , int index , bool enabled )
{
QStandardItemModel * model = qobject_cast < QStandardItemModel * > ( comboBox - > model ( ) ) ;
if ( model ) {
QStandardItem * item = model - > item ( index ) ;
if ( item ) {
item - > setEnabled ( enabled ) ;
}
}
}
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 02:13:39 +03:00
void MainWindow : : upcean_addon_gap ( const QString & comboBoxName , const QString & labelName , int base )
2020-07-15 21:00:12 +03: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-28 23:42:44 +03:00
QComboBox * comboBox = m_optionWidget - > findChild < QComboBox * > ( comboBoxName ) ;
QLabel * label = m_optionWidget - > findChild < QLabel * > ( labelName ) ;
2020-07-15 21:00:12 +03: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 02:13:39 +03:00
const QRegularExpression addonRE ( QSL ( " ^[0-9X]+[+][0-9]+$ " ) ) ;
2021-09-22 02:04:15 +03:00
bool enabled = txtData - > text ( ) . contains ( addonRE ) ;
if ( comboBox ) {
comboBox - > setEnabled ( enabled ) ;
}
if ( label ) {
label - > setEnabled ( enabled ) ;
}
if ( enabled & & comboBox ) {
int item_val = comboBox - > currentIndex ( ) ;
2020-07-15 21:00:12 +03:00
if ( item_val ) {
m_bc . bc . setOption2 ( item_val + base ) ;
}
2021-09-22 02:04:15 +03: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 02:13:39 +03:00
void MainWindow : : upcean_guard_descent ( const QString & spnBoxName , const QString & labelName )
2021-09-22 02:04:15 +03: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-28 23:42:44 +03:00
QDoubleSpinBox * spnBox = m_optionWidget - > findChild < QDoubleSpinBox * > ( spnBoxName ) ;
QLabel * label = m_optionWidget - > findChild < QLabel * > ( labelName ) ;
2021-09-22 02:04:15 +03:00
bool enabled = txtData - > text ( ) . length ( ) > 5 ;
if ( spnBox ) {
spnBox - > setEnabled ( enabled ) ;
}
if ( label ) {
label - > setEnabled ( enabled ) ;
}
if ( enabled & & spnBox ) {
2021-09-24 13:06:15 +03:00
m_bc . bc . setGuardDescent ( spnBox - > value ( ) ) ;
2020-07-15 21:00:12 +03: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 02:13:39 +03:00
void MainWindow : : guard_reset ( const QString & spnBoxName )
{
QDoubleSpinBox * spnBox = m_optionWidget - > findChild < QDoubleSpinBox * > ( spnBoxName ) ;
if ( spnBox & & spnBox - > value ( ) ! = 5.0 ) {
spnBox - > setValue ( 5.0 ) ;
update_preview ( ) ;
}
}
2020-07-19 02:13:03 +03:00
void MainWindow : : set_gs1_mode ( bool gs1_mode )
{
if ( gs1_mode ) {
m_bc . bc . setInputMode ( GS1_MODE | ( m_bc . bc . inputMode ( ) & ~ 0x07 ) ) ; // Keep upper bits
chkData - > setEnabled ( false ) ;
} else {
chkData - > setEnabled ( true ) ;
}
}
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 02:13:39 +03:00
void MainWindow : : set_smaller_font ( const QString & labelName )
2021-08-10 14:04:25 +03: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 02:13:39 +03:00
QLabel * label = m_optionWidget ? m_optionWidget - > findChild < QLabel * > ( labelName ) : nullptr ;
2021-08-10 14:04:25 +03:00
if ( label ) {
const QFont & appFont = QApplication : : font ( ) ;
qreal pointSize = appFont . pointSizeF ( ) ;
if ( pointSize ! = - 1.0 ) {
QFont font = label - > font ( ) ;
pointSize * = 0.9 ;
font . setPointSizeF ( pointSize ) ;
label - > setFont ( font ) ;
} else {
int pixelSize = appFont . pixelSize ( ) ;
if ( pixelSize > 1 ) {
QFont font = label - > font ( ) ;
font . setPixelSize ( pixelSize - 1 ) ;
label - > setFont ( font ) ;
}
}
}
}
2009-04-27 02:04:51 +04:00
void MainWindow : : update_preview ( )
2008-10-07 18:28:32 +04:00
{
2021-07-06 21:53:31 +03:00
int symbology = bstyle_items [ bstyle - > currentIndex ( ) ] . symbology ;
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 02:13:39 +03:00
int eci_not_set = true ;
2019-11-26 00:20:21 +03:00
int width = view - > geometry ( ) . width ( ) ;
int height = view - > geometry ( ) . height ( ) ;
2020-05-16 12:22:33 +03:00
int item_val ;
2020-06-04 20:45:25 +03:00
QCheckBox * checkBox ;
2019-11-26 00:20:21 +03:00
2020-09-30 14:19:12 +03:00
if ( ! grpComposite - > isHidden ( ) & & chkComposite - > isChecked ( ) ) {
2019-11-26 00:20:21 +03:00
m_bc . bc . setPrimaryMessage ( txtData - > text ( ) ) ;
m_bc . bc . setText ( txtComposite - > toPlainText ( ) ) ;
} else {
m_bc . bc . setText ( txtData - > text ( ) ) ;
}
2020-12-19 20:13:35 +03:00
m_bc . bc . setOption1 ( - 1 ) ;
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( 0 ) ;
2020-05-16 12:22:33 +03:00
m_bc . bc . setOption3 ( 0 ) ;
2020-07-19 02:13:03 +03:00
chkData - > setEnabled ( true ) ;
if ( chkData - > isChecked ( ) ) {
m_bc . bc . setInputMode ( DATA_MODE ) ;
} else {
m_bc . bc . setInputMode ( UNICODE_MODE ) ;
}
2020-06-04 20:45:25 +03:00
if ( chkEscape - > isChecked ( ) ) {
m_bc . bc . setInputMode ( m_bc . bc . inputMode ( ) | ESCAPE_MODE ) ;
}
m_bc . bc . setGSSep ( false ) ;
2021-09-24 15:21:24 +03:00
m_bc . bc . setNoQuietZones ( false ) ;
2020-09-30 14:19:12 +03:00
m_bc . bc . setDotSize ( 0.4f / 0.5f ) ;
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-28 23:42:44 +03:00
m_bc . bc . clearStructApp ( ) ;
2020-07-15 21:00:12 +03:00
switch ( symbology ) {
2019-11-26 00:20:21 +03:00
case BARCODE_CODE128 :
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radC128CSup " ) ) )
2019-11-26 00:20:21 +03:00
m_bc . bc . setSymbol ( BARCODE_CODE128B ) ;
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 02:13:39 +03:00
else if ( get_rad_val ( QSL ( " radC128EAN " ) ) )
m_bc . bc . setSymbol ( chkComposite - > isChecked ( ) ? BARCODE_GS1_128_CC : BARCODE_GS1_128 ) ;
else if ( get_rad_val ( QSL ( " radC128HIBC " ) ) )
2019-11-26 00:20:21 +03:00
m_bc . bc . setSymbol ( BARCODE_HIBC_128 ) ;
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 02:13:39 +03:00
else
m_bc . bc . setSymbol ( BARCODE_CODE128 ) ;
2019-11-26 00:20:21 +03:00
break ;
case BARCODE_EANX :
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 02:13:39 +03:00
m_bc . bc . setSymbol ( chkComposite - > isChecked ( ) ? BARCODE_EANX_CC : BARCODE_EANX ) ;
upcean_addon_gap ( QSL ( " cmbUPCEANAddonGap " ) , QSL ( " lblUPCEANAddonGap " ) , 7 /*base*/ ) ;
upcean_guard_descent ( QSL ( " spnUPCEANGuardDescent " ) , QSL ( " lblUPCEANGuardDescent " ) ) ;
if ( get_chk_val ( QSL ( " chkUPCEANNoQuietZones " ) ) ) {
2021-09-24 15:21:24 +03:00
m_bc . bc . setNoQuietZones ( true ) ;
}
2020-07-15 21:00:12 +03:00
break ;
case BARCODE_ISBNX :
m_bc . bc . setSymbol ( symbology ) ;
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 02:13:39 +03:00
upcean_addon_gap ( QSL ( " cmbUPCEANAddonGap " ) , QSL ( " lblUPCEANAddonGap " ) , 7 /*base*/ ) ;
upcean_guard_descent ( QSL ( " spnUPCEANGuardDescent " ) , QSL ( " lblUPCEANGuardDescent " ) ) ;
if ( get_chk_val ( QSL ( " chkUPCEANNoQuietZones " ) ) ) {
2021-09-24 15:21:24 +03:00
m_bc . bc . setNoQuietZones ( true ) ;
}
2019-11-26 00:20:21 +03:00
break ;
case BARCODE_UPCA :
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 02:13:39 +03:00
m_bc . bc . setSymbol ( chkComposite - > isChecked ( ) ? BARCODE_UPCA_CC : BARCODE_UPCA ) ;
upcean_addon_gap ( QSL ( " cmbUPCAAddonGap " ) , QSL ( " lblUPCAAddonGap " ) , 9 /*base*/ ) ;
upcean_guard_descent ( QSL ( " spnUPCAGuardDescent " ) , QSL ( " lblUPCAGuardDescent " ) ) ;
if ( get_chk_val ( QSL ( " chkUPCANoQuietZones " ) ) ) {
2021-09-24 15:21:24 +03:00
m_bc . bc . setNoQuietZones ( true ) ;
}
2019-11-26 00:20:21 +03:00
break ;
case BARCODE_UPCE :
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 02:13:39 +03:00
m_bc . bc . setSymbol ( chkComposite - > isChecked ( ) ? BARCODE_UPCE_CC : BARCODE_UPCE ) ;
upcean_addon_gap ( QSL ( " cmbUPCEANAddonGap " ) , QSL ( " lblUPCEANAddonGap " ) , 7 /*base*/ ) ;
upcean_guard_descent ( QSL ( " spnUPCEANGuardDescent " ) , QSL ( " lblUPCEANGuardDescent " ) ) ;
if ( get_chk_val ( QSL ( " chkUPCEANNoQuietZones " ) ) ) {
2021-09-24 15:21:24 +03:00
m_bc . bc . setNoQuietZones ( true ) ;
}
2019-11-26 00:20:21 +03:00
break ;
2020-07-29 22:43:08 +03:00
case BARCODE_DBAR_OMN :
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 02:13:39 +03:00
m_bc . bc . setSymbol ( chkComposite - > isChecked ( ) ? BARCODE_DBAR_OMN_CC : BARCODE_DBAR_OMN ) ;
2019-11-26 00:20:21 +03:00
break ;
2020-07-29 22:43:08 +03:00
case BARCODE_DBAR_LTD :
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 02:13:39 +03:00
m_bc . bc . setSymbol ( chkComposite - > isChecked ( ) ? BARCODE_DBAR_LTD_CC : BARCODE_DBAR_LTD ) ;
2019-11-26 00:20:21 +03:00
break ;
2020-07-29 22:43:08 +03:00
case BARCODE_DBAR_EXP :
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 02:13:39 +03:00
m_bc . bc . setSymbol ( chkComposite - > isChecked ( ) ? BARCODE_DBAR_EXP_CC : BARCODE_DBAR_EXP ) ;
2019-11-26 00:20:21 +03:00
break ;
2020-07-29 22:43:08 +03:00
case BARCODE_DBAR_STK :
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 02:13:39 +03:00
m_bc . bc . setSymbol ( chkComposite - > isChecked ( ) ? BARCODE_DBAR_STK_CC : BARCODE_DBAR_STK ) ;
2019-11-26 00:20:21 +03:00
break ;
2020-07-29 22:43:08 +03:00
case BARCODE_DBAR_OMNSTK :
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 02:13:39 +03:00
m_bc . bc . setSymbol ( chkComposite - > isChecked ( ) ? BARCODE_DBAR_OMNSTK_CC : BARCODE_DBAR_OMNSTK ) ;
2019-11-26 00:20:21 +03:00
break ;
2020-07-29 22:43:08 +03:00
case BARCODE_DBAR_EXPSTK :
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 02:13:39 +03:00
m_bc . bc . setSymbol ( chkComposite - > isChecked ( ) ? BARCODE_DBAR_EXPSTK_CC : BARCODE_DBAR_EXPSTK ) ;
2021-11-20 14:32:30 +03:00
if ( get_rad_val ( QSL ( " radDBESCols " ) ) ) {
if ( ( item_val = get_cmb_index ( QSL ( " cmbDBESCols " ) ) ) ! = 0 ) {
m_bc . bc . setOption2 ( item_val ) ;
}
} else if ( get_rad_val ( QSL ( " radDBESRows " ) ) ) {
if ( ( item_val = get_cmb_index ( QSL ( " cmbDBESRows " ) ) ) ! = 0 ) {
m_bc . bc . setOption3 ( item_val + 1 ) ; // Begins at 2
}
}
2019-11-26 00:20:21 +03:00
break ;
case BARCODE_PDF417 :
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radPDFTruncated " ) ) )
2020-07-30 00:35:31 +03:00
m_bc . bc . setSymbol ( BARCODE_PDF417COMP ) ;
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 02:13:39 +03:00
else if ( get_rad_val ( QSL ( " radPDFHIBC " ) ) )
2019-11-26 00:20:21 +03:00
m_bc . bc . setSymbol ( BARCODE_HIBC_PDF ) ;
2021-09-09 23:50:02 +03:00
else
m_bc . bc . setSymbol ( BARCODE_PDF417 ) ;
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-28 23:42:44 +03: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 02:13:39 +03:00
m_bc . bc . setOption2 ( get_cmb_index ( QSL ( " cmbPDFCols " ) ) ) ;
2021-10-31 00:00:31 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbPDFRows " ) ) ) ! = 0 ) {
m_bc . bc . setOption3 ( item_val + 2 ) ; // Starts at 3 rows
}
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 02:13:39 +03:00
m_bc . bc . setOption1 ( get_cmb_index ( QSL ( " cmbPDFECC " ) ) - 1 ) ;
if ( ( item_val = get_spn_val ( QSL ( " spnPDFStructAppCount " ) ) ) > 1 ) {
m_bc . bc . setStructApp ( item_val , get_spn_val ( QSL ( " spnPDFStructAppIndex " ) ) ,
get_txt_val ( QSL ( " txtPDFStructAppID " ) ) ) ;
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-28 23:42:44 +03:00
}
2019-11-26 00:20:21 +03:00
break ;
case BARCODE_MICROPDF417 :
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radMPDFHIBC " ) ) )
2019-11-26 00:20:21 +03:00
m_bc . bc . setSymbol ( BARCODE_HIBC_MICPDF ) ;
2021-09-09 23:50:02 +03:00
else
m_bc . bc . setSymbol ( BARCODE_MICROPDF417 ) ;
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-28 23:42:44 +03: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 02:13:39 +03:00
m_bc . bc . setOption2 ( get_cmb_index ( QSL ( " cmbMPDFCols " ) ) ) ;
if ( ( item_val = get_spn_val ( QSL ( " spnMPDFStructAppCount " ) ) ) > 1 ) {
m_bc . bc . setStructApp ( item_val , get_spn_val ( QSL ( " spnMPDFStructAppIndex " ) ) ,
get_txt_val ( QSL ( " txtMPDFStructAppID " ) ) ) ;
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-28 23:42:44 +03:00
}
2019-11-26 00:20:21 +03:00
break ;
2009-05-22 01:00:23 +04:00
2016-08-20 15:21:05 +03:00
case BARCODE_DOTCODE :
m_bc . bc . setSymbol ( BARCODE_DOTCODE ) ;
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbDotCols " ) ) ) ! = 0 ) {
2021-05-28 17:05:06 +03:00
m_bc . bc . setOption2 ( item_val + 4 ) ; // Cols 1-4 not listed
}
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbDotMask " ) ) ) ! = 0 ) {
2021-01-22 21:07:59 +03:00
m_bc . bc . setOption3 ( ( item_val < < 8 ) | m_bc . bc . option3 ( ) ) ;
}
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 02:13:39 +03:00
set_gs1_mode ( get_rad_val ( QSL ( " radDotGS1 " ) ) ) ;
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-28 23:42:44 +03: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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbDotStructAppCount " ) ) ) ! = 0 ) {
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-28 23:42:44 +03:00
QString id ; // Dummy ID
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 02:13:39 +03:00
m_bc . bc . setStructApp ( item_val + 1 , get_cmb_index ( QSL ( " cmbDotStructAppIndex " ) ) + 1 , id ) ;
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-28 23:42:44 +03:00
}
2016-08-20 15:21:05 +03:00
break ;
2019-11-26 00:20:21 +03:00
case BARCODE_AZTEC :
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radAztecHIBC " ) ) )
m_bc . bc . setSymbol ( BARCODE_HIBC_AZTEC ) ;
else
m_bc . bc . setSymbol ( BARCODE_AZTEC ) ;
2019-11-26 00:20:21 +03: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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radAztecSize " ) ) )
m_bc . bc . setOption2 ( get_cmb_index ( QSL ( " cmbAztecSize " ) ) + 1 ) ;
2019-11-26 00:20:21 +03: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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radAztecECC " ) ) )
m_bc . bc . setOption1 ( get_cmb_index ( QSL ( " cmbAztecECC " ) ) + 1 ) ;
set_gs1_mode ( get_rad_val ( QSL ( " radAztecGS1 " ) ) ) ;
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-28 23:42:44 +03: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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbAztecStructAppCount " ) ) ) ! = 0 ) {
m_bc . bc . setStructApp ( item_val + 1 , get_cmb_index ( QSL ( " cmbAztecStructAppIndex " ) ) + 1 ,
get_txt_val ( QSL ( " txtAztecStructAppID " ) ) ) ;
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-28 23:42:44 +03:00
}
2019-11-26 00:20:21 +03:00
break ;
case BARCODE_MSI_PLESSEY :
m_bc . bc . setSymbol ( BARCODE_MSI_PLESSEY ) ;
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 02:13:39 +03:00
item_val = get_cmb_index ( QSL ( " cmbMSICheck " ) ) ;
if ( item_val & & get_chk_val ( QSL ( " chkMSICheckText " ) ) ) {
2021-06-10 13:15:39 +03:00
item_val + = 10 ;
}
m_bc . bc . setOption2 ( item_val ) ;
2020-06-04 20:45:25 +03:00
break ;
case BARCODE_CODE11 :
m_bc . bc . setSymbol ( BARCODE_CODE11 ) ;
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radC11OneCheckDigit " ) ) ) {
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( 1 ) ;
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 02:13:39 +03:00
} else if ( get_rad_val ( QSL ( " radC11NoCheckDigits " ) ) ) {
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( 2 ) ;
}
2019-11-26 00:20:21 +03:00
break ;
2021-05-17 22:04:00 +03:00
case BARCODE_C25STANDARD :
case BARCODE_C25INTER :
case BARCODE_C25IATA :
case BARCODE_C25LOGIC :
case BARCODE_C25IND :
m_bc . bc . setSymbol ( symbology ) ;
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 02:13:39 +03:00
m_bc . bc . setOption2 ( get_rad_grp_index (
QStringList ( ) < < QSL ( " radC25Stand " ) < < QSL ( " radC25Check " ) < < QSL ( " radC25CheckHide " ) ) ) ;
2021-05-17 22:04:00 +03:00
break ;
2019-11-26 00:20:21 +03:00
case BARCODE_CODE39 :
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radC39HIBC " ) ) )
2019-11-26 00:20:21 +03:00
m_bc . bc . setSymbol ( BARCODE_HIBC_39 ) ;
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 02:13:39 +03:00
else {
2019-11-26 00:20:21 +03:00
m_bc . bc . setSymbol ( BARCODE_CODE39 ) ;
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radC39Check " ) ) )
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( 1 ) ;
2019-11-26 00:20:21 +03:00
}
break ;
case BARCODE_EXCODE39 :
m_bc . bc . setSymbol ( BARCODE_EXCODE39 ) ;
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radC39Check " ) ) )
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( 1 ) ;
2019-11-26 00:20:21 +03:00
break ;
2020-06-04 20:45:25 +03:00
case BARCODE_LOGMARS :
m_bc . bc . setSymbol ( BARCODE_LOGMARS ) ;
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radLOGMARSCheck " ) ) ) {
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( 1 ) ;
}
break ;
2019-11-26 00:20:21 +03:00
case BARCODE_CODE16K :
m_bc . bc . setSymbol ( BARCODE_CODE16K ) ;
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 02:13:39 +03:00
set_gs1_mode ( get_rad_val ( QSL ( " radC16kGS1 " ) ) ) ;
2021-11-20 14:32:30 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbC16kRows " ) ) ) ! = 0 ) {
m_bc . bc . setOption1 ( item_val + 2 ) ; // Starts at 3
}
2020-05-21 20:22:28 +03:00
// Row separator height selection uses option 3 in zint_symbol
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbC16kRowSepHeight " ) ) ) ! = 0 ) {
2020-05-21 20:22:28 +03:00
m_bc . bc . setOption3 ( item_val + 1 ) ; // Zero-based
}
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 02:13:39 +03:00
if ( get_chk_val ( QSL ( " chkC16kNoQuietZones " ) ) ) {
2021-09-24 15:21:24 +03:00
m_bc . bc . setNoQuietZones ( true ) ;
}
2019-11-26 00:20:21 +03:00
break ;
2009-05-22 01:00:23 +04:00
2020-06-04 20:45:25 +03:00
case BARCODE_CODABAR :
m_bc . bc . setSymbol ( BARCODE_CODABAR ) ;
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 02:13:39 +03:00
m_bc . bc . setOption2 ( get_rad_grp_index (
QStringList ( ) < < QSL ( " radCodabarStand " ) < < QSL ( " radCodabarCheckHide " ) < < QSL ( " radCodabarCheck " ) ) ) ;
2020-06-04 20:45:25 +03:00
break ;
2020-05-16 12:22:33 +03:00
case BARCODE_CODABLOCKF :
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radCbfHIBC " ) ) ) {
2020-05-16 12:22:33 +03:00
m_bc . bc . setSymbol ( BARCODE_HIBC_BLOCKF ) ;
} else {
2016-09-17 13:39:01 +03:00
m_bc . bc . setSymbol ( BARCODE_CODABLOCKF ) ;
2020-05-16 12:22:33 +03: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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbCbfWidth " ) ) ) ! = 0 ) {
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( item_val - 1 + 9 ) ;
2020-05-16 12:22:33 +03:00
}
// Height selection uses option 1 in zint_symbol
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbCbfHeight " ) ) ) ! = 0 ) {
2020-12-19 20:13:35 +03:00
m_bc . bc . setOption1 ( item_val ) ;
2020-05-16 12:22:33 +03:00
}
// Row separator height selection uses option 3 in zint_symbol
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbCbfRowSepHeight " ) ) ) ! = 0 ) {
2020-05-21 20:22:28 +03:00
m_bc . bc . setOption3 ( item_val + 1 ) ; // Zero-based
2020-05-16 12:22:33 +03: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 02:13:39 +03:00
if ( get_chk_val ( QSL ( " chkCbfNoQuietZones " ) ) ) {
2021-09-24 15:21:24 +03:00
m_bc . bc . setNoQuietZones ( true ) ;
}
2020-05-16 12:22:33 +03:00
break ;
2017-10-23 22:37:52 +03:00
2021-06-19 15:11:23 +03:00
case BARCODE_DAFT :
m_bc . bc . setSymbol ( BARCODE_DAFT ) ;
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-28 23:42:44 +03:00
// Kept as percentage, convert to thousandths
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 02:13:39 +03:00
m_bc . bc . setOption2 ( ( int ) ( get_dspn_val ( QSL ( " spnDAFTTrackerRatio " ) ) * 10 ) ) ;
2021-06-19 15:11:23 +03:00
break ;
2019-11-26 00:20:21 +03:00
case BARCODE_DATAMATRIX :
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radDM200HIBC " ) ) )
2019-11-26 00:20:21 +03:00
m_bc . bc . setSymbol ( BARCODE_HIBC_DM ) ;
else
m_bc . bc . setSymbol ( BARCODE_DATAMATRIX ) ;
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 02:13:39 +03:00
checkBox = m_optionWidget - > findChild < QCheckBox * > ( QSL ( " chkDMGSSep " ) ) ;
if ( get_rad_val ( QSL ( " radDM200GS1 " ) ) ) {
2020-07-19 02:13:03 +03:00
set_gs1_mode ( true ) ;
2020-06-04 20:45:25 +03:00
checkBox - > setEnabled ( true ) ;
if ( checkBox - > isChecked ( ) ) {
m_bc . bc . setGSSep ( true ) ;
}
} else {
2020-07-19 02:13:03 +03:00
set_gs1_mode ( false ) ;
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 02:13:39 +03:00
checkBox - > setEnabled ( false ) ;
2020-06-04 20:45:25 +03:00
}
2019-11-26 00:20:21 +03: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 02:13:39 +03:00
m_bc . bc . setOption2 ( get_cmb_index ( QSL ( " cmbDM200Size " ) ) ) ;
2019-11-26 00:20:21 +03: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 02:13:39 +03:00
if ( get_cmb_index ( QSL ( " cmbDM200Size " ) ) = = 0 ) {
// Suppressing rectangles or allowing DMRE only makes sense if in automatic size mode
2021-10-13 17:31:28 +03:00
m_optionWidget - > findChild < QLabel * > ( QSL ( " lblDMAutoSize " ) ) - > setEnabled ( true ) ;
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 02:13:39 +03:00
m_optionWidget - > findChild < QCheckBox * > ( QSL ( " chkDMRectangle " ) ) - > setEnabled ( true ) ;
if ( m_optionWidget - > findChild < QCheckBox * > ( QSL ( " chkDMRectangle " ) ) - > isChecked ( ) ) {
2021-09-29 18:25:59 +03:00
m_bc . bc . setOption3 ( DM_SQUARE ) ;
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 02:13:39 +03:00
m_optionWidget - > findChild < QCheckBox * > ( QSL ( " chkDMRE " ) ) - > setEnabled ( false ) ;
2021-09-29 18:25:59 +03:00
} else {
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 02:13:39 +03:00
m_optionWidget - > findChild < QCheckBox * > ( QSL ( " chkDMRE " ) ) - > setEnabled ( true ) ;
if ( m_optionWidget - > findChild < QCheckBox * > ( QSL ( " chkDMRE " ) ) - > isChecked ( ) )
2019-11-26 00:20:21 +03:00
m_bc . bc . setOption3 ( DM_DMRE ) ;
else
m_bc . bc . setOption3 ( 0 ) ;
}
} else {
2021-10-13 17:31:28 +03:00
m_optionWidget - > findChild < QLabel * > ( QSL ( " lblDMAutoSize " ) ) - > setEnabled ( false ) ;
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 02:13:39 +03:00
m_optionWidget - > findChild < QCheckBox * > ( QSL ( " chkDMRectangle " ) ) - > setEnabled ( false ) ;
m_optionWidget - > findChild < QCheckBox * > ( QSL ( " chkDMRE " ) ) - > setEnabled ( false ) ;
2019-11-26 00:20:21 +03:00
m_bc . bc . setOption3 ( 0 ) ;
}
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-28 23:42:44 +03: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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbDMStructAppCount " ) ) ) ! = 0 ) {
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-28 23:42:44 +03:00
QString id ;
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 02:13:39 +03:00
int id1 = get_spn_val ( QSL ( " spnDMStructAppID " ) ) ;
int id2 = get_spn_val ( QSL ( " spnDMStructAppID2 " ) ) ;
m_bc . bc . setStructApp ( item_val + 1 , get_cmb_index ( QSL ( " cmbDMStructAppIndex " ) ) + 1 ,
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-28 23:42:44 +03:00
id . setNum ( id1 * 1000 + id2 ) ) ;
}
2019-11-26 00:20:21 +03:00
break ;
2021-09-24 15:21:24 +03:00
case BARCODE_ITF14 :
m_bc . bc . setSymbol ( BARCODE_ITF14 ) ;
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 02:13:39 +03:00
if ( get_chk_val ( QSL ( " chkITF14NoQuietZones " ) ) ) {
2021-09-24 15:21:24 +03:00
m_bc . bc . setNoQuietZones ( true ) ;
}
break ;
2019-11-26 00:20:21 +03:00
case BARCODE_QRCODE :
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radQRHIBC " ) ) )
2019-11-26 00:20:21 +03:00
m_bc . bc . setSymbol ( BARCODE_HIBC_QR ) ;
else
m_bc . bc . setSymbol ( BARCODE_QRCODE ) ;
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 02:13:39 +03:00
set_gs1_mode ( get_rad_val ( QSL ( " radQRGS1 " ) ) ) ;
2019-11-26 00:20:21 +03: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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbQRSize " ) ) ) ! = 0 ) {
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( item_val ) ;
}
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbQRECC " ) ) ) ! = 0 ) {
2020-12-19 20:13:35 +03:00
m_bc . bc . setOption1 ( item_val ) ;
2020-06-04 20:45:25 +03: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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbQRMask " ) ) ) ! = 0 ) {
2020-11-27 15:54:44 +03:00
m_bc . bc . setOption3 ( ( item_val < < 8 ) | m_bc . bc . option3 ( ) ) ;
}
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 02:13:39 +03:00
if ( get_chk_val ( QSL ( " chkQRFullMultibyte " ) ) ) {
2020-11-27 15:54:44 +03:00
m_bc . bc . setOption3 ( ZINT_FULL_MULTIBYTE | m_bc . bc . option3 ( ) ) ;
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbQRStructAppCount " ) ) ) ! = 0 ) {
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-28 23:42:44 +03:00
QString id ;
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 02:13:39 +03:00
int id_val = get_spn_val ( QSL ( " spnQRStructAppID " ) ) ;
m_bc . bc . setStructApp ( item_val + 1 , get_cmb_index ( QSL ( " cmbQRStructAppIndex " ) ) + 1 , id . setNum ( id_val ) ) ;
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-28 23:42:44 +03:00
}
2019-11-26 00:20:21 +03:00
break ;
case BARCODE_MICROQR :
m_bc . bc . setSymbol ( BARCODE_MICROQR ) ;
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbMQRSize " ) ) ) ! = 0 ) {
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( item_val ) ;
}
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbMQRECC " ) ) ) ! = 0 ) {
2020-12-19 20:13:35 +03:00
m_bc . bc . setOption1 ( item_val ) ;
2020-06-04 20:45:25 +03: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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbMQRMask " ) ) ) ! = 0 ) {
2020-11-27 15:54:44 +03:00
m_bc . bc . setOption3 ( ( item_val < < 8 ) | m_bc . bc . option3 ( ) ) ;
}
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 02:13:39 +03:00
if ( get_chk_val ( QSL ( " chkMQRFullMultibyte " ) ) ) {
2020-11-27 15:54:44 +03:00
m_bc . bc . setOption3 ( ZINT_FULL_MULTIBYTE | m_bc . bc . option3 ( ) ) ;
2020-09-30 14:19:12 +03:00
}
2019-11-26 00:20:21 +03:00
break ;
2019-11-27 19:54:03 +03:00
case BARCODE_RMQR :
m_bc . bc . setSymbol ( BARCODE_RMQR ) ;
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 02:13:39 +03:00
set_gs1_mode ( get_rad_val ( QSL ( " radRMQRGS1 " ) ) ) ;
2019-11-27 19:54:03 +03: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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbRMQRSize " ) ) ) ! = 0 ) {
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( item_val ) ;
}
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbRMQRECC " ) ) ) ! = 0 ) {
2020-12-19 20:13:35 +03:00
m_bc . bc . setOption1 ( item_val * 2 ) ; // Levels 2 (M) and 4 (H) only
2020-06-04 20:45:25 +03: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 02:13:39 +03:00
if ( get_chk_val ( QSL ( " chkRMQRFullMultibyte " ) ) ) {
2020-09-30 14:19:12 +03:00
m_bc . bc . setOption3 ( ZINT_FULL_MULTIBYTE ) ;
}
2019-11-27 19:54:03 +03:00
break ;
2019-11-26 00:20:21 +03:00
case BARCODE_GRIDMATRIX :
m_bc . bc . setSymbol ( BARCODE_GRIDMATRIX ) ;
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbGridSize " ) ) ) ! = 0 ) {
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( item_val ) ;
}
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbGridECC " ) ) ) ! = 0 ) {
2020-12-19 20:13:35 +03:00
m_bc . bc . setOption1 ( item_val ) ;
2020-06-04 20:45:25 +03: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 02:13:39 +03:00
if ( get_chk_val ( QSL ( " chkGridFullMultibyte " ) ) ) {
2020-09-30 14:19:12 +03:00
m_bc . bc . setOption3 ( ZINT_FULL_MULTIBYTE ) ;
}
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbGridStructAppCount " ) ) ) ! = 0 ) {
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-28 23:42:44 +03:00
QString id ;
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 02:13:39 +03:00
int id_val = get_spn_val ( QSL ( " spnGridStructAppID " ) ) ;
m_bc . bc . setStructApp ( item_val + 1 , get_cmb_index ( QSL ( " cmbGridStructAppIndex " ) ) + 1 ,
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-28 23:42:44 +03:00
id . setNum ( id_val ) ) ;
}
2019-11-26 00:20:21 +03:00
break ;
case BARCODE_MAXICODE :
m_bc . bc . setSymbol ( BARCODE_MAXICODE ) ;
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 02:13:39 +03:00
if ( get_cmb_index ( QSL ( " cmbMaxiMode " ) ) = = 0 ) {
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-28 23:42:44 +03:00
m_bc . bc . setOption1 ( 0 ) ; // Auto-determine mode 2 or 3 from primary message (checks that it isn't empty)
2021-09-09 23:50:02 +03:00
m_bc . bc . setPrimaryMessage ( QString : : asprintf ( " %s%03d%03d " ,
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 02:13:39 +03:00
get_txt_val ( QSL ( " txtMaxiSCMPostcode " ) ) . toUtf8 ( ) . constData ( ) ,
get_spn_val ( QSL ( " spnMaxiSCMCountry " ) ) , get_spn_val ( QSL ( " spnMaxiSCMService " ) ) ) ) ;
QCheckBox * chkMaxiSCMVV = m_optionWidget - > findChild < QCheckBox * > ( QSL ( " chkMaxiSCMVV " ) ) ;
if ( chkMaxiSCMVV & & chkMaxiSCMVV - > isEnabled ( ) & & chkMaxiSCMVV - > isChecked ( ) ) {
m_bc . bc . setOption2 ( get_spn_val ( QSL ( " spnMaxiSCMVV " ) ) + 1 ) ;
2020-12-19 20:13:35 +03:00
}
2021-09-09 23:50:02 +03:00
} else {
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 02:13:39 +03:00
m_bc . bc . setOption1 ( get_cmb_index ( QSL ( " cmbMaxiMode " ) ) + 3 ) ;
2021-09-09 23:50:02 +03: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-28 23:42:44 +03: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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbMaxiStructAppCount " ) ) ) ! = 0 ) {
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-28 23:42:44 +03:00
QString id ; // Dummy ID
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 02:13:39 +03:00
m_bc . bc . setStructApp ( item_val + 1 , get_cmb_index ( QSL ( " cmbMaxiStructAppIndex " ) ) + 1 , id ) ;
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-28 23:42:44 +03:00
}
2019-11-26 00:20:21 +03:00
break ;
case BARCODE_CHANNEL :
m_bc . bc . setSymbol ( BARCODE_CHANNEL ) ;
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbChannel " ) ) ) = = 0 )
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( 0 ) ;
2019-11-26 00:20:21 +03:00
else
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 02:13:39 +03:00
m_bc . bc . setOption2 ( item_val + 2 ) ;
2019-11-26 00:20:21 +03:00
break ;
case BARCODE_CODEONE :
m_bc . bc . setSymbol ( BARCODE_CODEONE ) ;
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 02:13:39 +03:00
m_bc . bc . setOption2 ( get_cmb_index ( QSL ( " cmbC1Size " ) ) ) ;
2021-02-06 02:55:24 +03:00
if ( m_bc . bc . option2 ( ) = = 9 ) { // Version S
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 02:13:39 +03:00
eci_not_set = false ;
2021-02-06 02:55:24 +03:00
cmbECI - > setEnabled ( false ) ;
lblECI - > setEnabled ( false ) ;
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 02:13:39 +03:00
m_optionWidget - > findChild < QRadioButton * > ( QSL ( " radC1GS1 " ) ) - > setEnabled ( false ) ;
2021-02-06 02:55:24 +03:00
} else {
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 02:13:39 +03:00
m_optionWidget - > findChild < QRadioButton * > ( QSL ( " radC1GS1 " ) ) - > setEnabled ( true ) ;
set_gs1_mode ( get_rad_val ( QSL ( " radC1GS1 " ) ) ) ;
2021-02-06 02:55:24 +03: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 02:13:39 +03:00
if ( get_cmb_index ( QSL ( " cmbC1Size " ) ) ! = 9 & & ( item_val = get_spn_val ( QSL ( " spnC1StructAppCount " ) ) ) > 1 ) {
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-28 23:42:44 +03:00
QString id ; // Dummy ID
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 02:13:39 +03:00
m_bc . bc . setStructApp ( item_val , get_spn_val ( QSL ( " spnC1StructAppIndex " ) ) , id ) ;
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-28 23:42:44 +03:00
}
2019-11-26 00:20:21 +03:00
break ;
case BARCODE_CODE49 :
m_bc . bc . setSymbol ( BARCODE_CODE49 ) ;
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 02:13:39 +03:00
set_gs1_mode ( get_rad_val ( QSL ( " radC49GS1 " ) ) ) ;
2021-11-20 14:32:30 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbC49Rows " ) ) ) ! = 0 ) {
m_bc . bc . setOption1 ( item_val + 2 ) ; // Starts at 3
}
2020-05-21 20:22:28 +03:00
// Row separator height selection uses option 3 in zint_symbol
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbC49RowSepHeight " ) ) ) ! = 0 ) {
2020-05-21 20:22:28 +03:00
m_bc . bc . setOption3 ( item_val + 1 ) ; // Zero-based
}
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 02:13:39 +03:00
if ( get_chk_val ( QSL ( " chkC49NoQuietZones " ) ) ) {
2021-09-24 15:21:24 +03:00
m_bc . bc . setNoQuietZones ( true ) ;
}
2019-11-26 00:20:21 +03:00
break ;
2021-09-13 20:49:25 +03:00
case BARCODE_CODE93 :
m_bc . bc . setSymbol ( BARCODE_CODE93 ) ;
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 02:13:39 +03:00
if ( get_chk_val ( QSL ( " chkC93ShowChecks " ) ) ) {
2021-09-13 20:49:25 +03:00
m_bc . bc . setOption2 ( 1 ) ;
}
break ;
2019-11-26 00:20:21 +03:00
case BARCODE_HANXIN :
m_bc . bc . setSymbol ( BARCODE_HANXIN ) ;
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbHXSize " ) ) ) ! = 0 ) {
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( item_val ) ;
}
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbHXECC " ) ) ) ! = 0 ) {
2020-12-19 20:13:35 +03:00
m_bc . bc . setOption1 ( item_val ) ;
2020-06-04 20:45:25 +03: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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbHXMask " ) ) ) ! = 0 ) {
2020-11-27 15:54:44 +03:00
m_bc . bc . setOption3 ( ( item_val < < 8 ) | m_bc . bc . option3 ( ) ) ;
}
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 02:13:39 +03:00
if ( get_chk_val ( QSL ( " chkHXFullMultibyte " ) ) ) {
2020-11-27 15:54:44 +03:00
m_bc . bc . setOption3 ( ZINT_FULL_MULTIBYTE | m_bc . bc . option3 ( ) ) ;
2020-09-30 14:19:12 +03:00
}
2019-11-26 00:20:21 +03:00
break ;
2020-07-15 21:00:12 +03:00
2020-04-07 20:09:53 +03:00
case BARCODE_ULTRA :
m_bc . bc . setSymbol ( BARCODE_ULTRA ) ;
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 02:13:39 +03:00
if ( get_rad_val ( QSL ( " radUltraEcc " ) ) )
m_bc . bc . setOption1 ( get_cmb_index ( QSL ( " cmbUltraEcc " ) ) + 1 ) ;
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-28 23:42:44 +03: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 02:13:39 +03:00
set_gs1_mode ( get_rad_val ( QSL ( " radUltraGS1 " ) ) ) ;
if ( ( item_val = get_cmb_index ( QSL ( " cmbUltraRevision " ) ) ) > 0 ) {
2021-09-29 18:25:59 +03:00
m_bc . bc . setOption2 ( item_val + 1 ) ; // Combobox 0-based
}
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 02:13:39 +03:00
if ( ( item_val = get_cmb_index ( QSL ( " cmbUltraStructAppCount " ) ) ) ! = 0 ) {
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-28 23:42:44 +03:00
QString id ;
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 02:13:39 +03:00
int id_val = get_spn_val ( QSL ( " spnUltraStructAppID " ) ) ;
m_bc . bc . setStructApp ( item_val + 1 , get_cmb_index ( QSL ( " cmbUltraStructAppIndex " ) ) + 1 ,
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-28 23:42:44 +03:00
id . setNum ( id_val ) ) ;
}
2020-04-07 20:09:53 +03:00
break ;
2019-11-26 00:20:21 +03:00
2020-06-04 20:45:25 +03:00
case BARCODE_VIN :
m_bc . bc . setSymbol ( BARCODE_VIN ) ;
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 02:13:39 +03:00
if ( get_chk_val ( QSL ( " chkVINImportChar " ) ) ) {
2020-06-04 20:45:25 +03:00
m_bc . bc . setOption2 ( m_bc . bc . option2 ( ) | 1 ) ; // Import character 'I' prefix
}
break ;
2019-11-26 00:20:21 +03:00
default :
2020-07-15 21:00:12 +03:00
m_bc . bc . setSymbol ( symbology ) ;
2019-11-26 00:20:21 +03:00
break ;
}
2020-09-30 14:19:12 +03:00
m_symbology = m_bc . bc . symbol ( ) ;
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 02:13:39 +03:00
if ( eci_not_set ) {
2021-02-06 02:55:24 +03:00
cmbECI - > setEnabled ( m_bc . bc . supportsECI ( ) ) ;
lblECI - > setEnabled ( cmbECI - > isEnabled ( ) ) ;
}
2021-05-15 14:23:46 +03:00
chkGS1Parens - > setEnabled ( m_bc . bc . supportsGS1 ( ) ) ;
2021-07-13 19:39:03 +03:00
chkGS1NoCheck - > setEnabled ( m_bc . bc . supportsGS1 ( ) ) ;
2020-09-30 14:19:12 +03:00
chkRInit - > setEnabled ( m_bc . bc . supportsReaderInit ( ) & & ( m_bc . bc . inputMode ( ) & 0x07 ) ! = GS1_MODE ) ;
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 02:13:39 +03:00
chkCompliantHeight - > setEnabled ( m_bc . bc . hasCompliantHeight ( ) ) ;
2019-11-26 00:20:21 +03:00
2020-09-30 14:19:12 +03:00
if ( ! grpComposite - > isHidden ( ) & & chkComposite - > isChecked ( ) )
2020-12-19 20:13:35 +03:00
m_bc . bc . setOption1 ( cmbCompType - > currentIndex ( ) ) ;
2019-11-26 00:20:21 +03:00
2020-09-30 14:19:12 +03:00
if ( ! chkAutoHeight - > isEnabled ( ) | | chkAutoHeight - > isChecked ( ) ) {
2019-10-21 10:29:21 +03:00
m_bc . bc . setHeight ( 0 ) ;
} else {
2021-11-20 14:32:30 +03:00
if ( m_spnHeightPerRow & & m_spnHeightPerRow - > isEnabled ( ) & & m_spnHeightPerRow - > value ( ) ) {
// This causes a double-encode unfortunately, as heightb gets synced
m_bc . bc . setInputMode ( m_bc . bc . inputMode ( ) | HEIGHTPERROW_MODE ) ;
m_bc . bc . setHeight ( m_spnHeightPerRow - > value ( ) ) ;
} else {
m_bc . bc . setHeight ( heightb - > value ( ) ) ;
}
2019-10-21 10:29:21 +03: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 02:13:39 +03:00
m_bc . bc . setCompliantHeight ( chkCompliantHeight - > isEnabled ( ) & & chkCompliantHeight - > isChecked ( ) ) ;
2020-09-30 14:19:12 +03:00
m_bc . bc . setECI ( cmbECI - > isEnabled ( ) ? cmbECI - > currentIndex ( ) : 0 ) ;
2021-05-15 14:23:46 +03:00
m_bc . bc . setGS1Parens ( chkGS1Parens - > isEnabled ( ) & & chkGS1Parens - > isChecked ( ) ) ;
2021-07-13 19:39:03 +03:00
m_bc . bc . setGS1NoCheck ( chkGS1NoCheck - > isEnabled ( ) & & chkGS1NoCheck - > isChecked ( ) ) ;
2021-05-15 14:23:46 +03:00
m_bc . bc . setReaderInit ( chkRInit - > isEnabled ( ) & & chkRInit - > isChecked ( ) ) ;
2020-09-30 14:19:12 +03:00
m_bc . bc . setShowText ( chkHRTShow - > isEnabled ( ) & & chkHRTShow - > isChecked ( ) ) ;
m_bc . bc . setBorderType ( btype - > currentIndex ( ) ) ;
m_bc . bc . setBorderWidth ( bwidth - > value ( ) ) ;
2019-11-26 00:20:21 +03:00
m_bc . bc . setWhitespace ( spnWhitespace - > value ( ) ) ;
2021-05-25 22:42:26 +03:00
m_bc . bc . setVWhitespace ( spnVWhitespace - > value ( ) ) ;
2021-09-24 15:21:24 +03:00
m_bc . bc . setQuietZones ( chkQuietZones - > isEnabled ( ) & & chkQuietZones - > isChecked ( ) ) ;
2020-09-30 14:19:12 +03:00
m_bc . bc . setFontSetting ( cmbFontSetting - > currentIndex ( ) ) ;
m_bc . bc . setRotateAngle ( cmbRotate - > currentIndex ( ) ) ;
m_bc . bc . setDotty ( chkDotty - > isEnabled ( ) & & chkDotty - > isChecked ( ) ) ;
if ( m_symbology = = BARCODE_DOTCODE | | ( chkDotty - > isEnabled ( ) & & chkDotty - > isChecked ( ) ) ) {
m_bc . bc . setDotSize ( spnDotSize - > value ( ) ) ;
}
2019-11-26 00:20:21 +03:00
m_bc . bc . setFgColor ( m_fgcolor ) ;
m_bc . bc . setBgColor ( m_bgcolor ) ;
2020-09-30 14:19:12 +03:00
change_print_scale ( ) ;
change_cmyk ( ) ;
2019-11-26 00:20:21 +03:00
m_bc . setSize ( width - 10 , height - 10 ) ;
m_bc . update ( ) ;
2020-09-30 14:19:12 +03:00
scene - > setSceneRect ( m_bc . boundingRect ( ) ) ;
2019-11-26 00:20:21 +03:00
scene - > update ( ) ;
2008-10-07 18:28:32 +04:00
}
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
void MainWindow : : createActions ( )
{
// SVG icons from https://github.com/feathericons/feather
// MIT license - see site and "frontend_qt/res/LICENSE_feathericons"
QIcon menuIcon ( QSL ( " :res/menu.svg " ) ) ;
QIcon copyIcon ( QIcon : : fromTheme ( QSL ( " edit-copy " ) , QIcon ( QSL ( " :res/copy.svg " ) ) ) ) ;
QIcon saveIcon ( QIcon : : fromTheme ( QSL ( " document-save " ) , QIcon ( QSL ( " :res/download.svg " ) ) ) ) ;
QIcon aboutIcon ( QSL ( " :res/zint-qt.ico " ) ) ;
QIcon helpIcon ( QIcon : : fromTheme ( QSL ( " help-contents " ) , QIcon ( QSL ( " :res/help-circle.svg " ) ) ) ) ;
QIcon quitIcon ( QIcon : : fromTheme ( QSL ( " window-close " ) , QIcon ( QSL ( " :res/x.svg " ) ) ) ) ;
btnMenu - > setIcon ( menuIcon ) ;
btnCopyBMP - > setIcon ( copyIcon ) ;
btnCopySVG - > setIcon ( copyIcon ) ;
//btnSave->setIcon(saveIcon); // Makes it too big
btnExit - > setIcon ( quitIcon ) ;
m_copyBMPAct = new QAction ( copyIcon , tr ( " Copy as &BMP " ) , this ) ;
m_copyBMPAct - > setStatusTip ( tr ( " Copy to clipboard as BMP " ) ) ;
connect ( m_copyBMPAct , SIGNAL ( triggered ( ) ) , this , SLOT ( copy_to_clipboard_bmp ( ) ) ) ;
m_copyEMFAct = new QAction ( copyIcon , tr ( " Copy as E&MF " ) , this ) ;
m_copyEMFAct - > setStatusTip ( tr ( " Copy to clipboard as EMF " ) ) ;
connect ( m_copyEMFAct , SIGNAL ( triggered ( ) ) , this , SLOT ( copy_to_clipboard_emf ( ) ) ) ;
# ifdef MAINWINDOW_COPY_EPS /* TODO: see if can get this to work */
m_copyEPSAct = new QAction ( copyIcon , tr ( " Copy as &EPS " ) , this ) ;
m_copyEPSAct - > setStatusTip ( tr ( " Copy to clipboard as EPS " ) ) ;
connect ( m_copyEPSAct , SIGNAL ( triggered ( ) ) , this , SLOT ( copy_to_clipboard_eps ( ) ) ) ;
# endif
m_copyGIFAct = new QAction ( copyIcon , tr ( " Copy as &GIF " ) , this ) ;
m_copyGIFAct - > setStatusTip ( tr ( " Copy to clipboard as GIF " ) ) ;
connect ( m_copyGIFAct , SIGNAL ( triggered ( ) ) , this , SLOT ( copy_to_clipboard_gif ( ) ) ) ;
# ifdef MAINWINDOW_COPY_PCX /* TODO: see if can get this to work */
m_copyPCXAct = new QAction ( copyIcon , tr ( " Copy as P&CX " ) , this ) ;
m_copyPCXAct - > setStatusTip ( tr ( " Copy to clipboard as PCX " ) ) ;
connect ( m_copyPCXAct , SIGNAL ( triggered ( ) ) , this , SLOT ( copy_to_clipboard_pcx ( ) ) ) ;
# endif
# ifndef NO_PNG
m_copyPNGAct = new QAction ( copyIcon , tr ( " Copy as &PNG " ) , this ) ;
m_copyPNGAct - > setStatusTip ( tr ( " Copy to clipboard as PNG " ) ) ;
connect ( m_copyPNGAct , SIGNAL ( triggered ( ) ) , this , SLOT ( copy_to_clipboard_png ( ) ) ) ;
# endif
m_copySVGAct = new QAction ( copyIcon , tr ( " Copy as S&VG " ) , this ) ;
m_copySVGAct - > setStatusTip ( tr ( " Copy to clipboard as SVG " ) ) ;
connect ( m_copySVGAct , SIGNAL ( triggered ( ) ) , this , SLOT ( copy_to_clipboard_svg ( ) ) ) ;
m_copyTIFAct = new QAction ( copyIcon , tr ( " Copy as &TIF " ) , this ) ;
m_copyTIFAct - > setStatusTip ( tr ( " Copy to clipboard as TIF " ) ) ;
connect ( m_copyTIFAct , SIGNAL ( triggered ( ) ) , this , SLOT ( copy_to_clipboard_tif ( ) ) ) ;
m_saveAsAct = new QAction ( saveIcon , tr ( " &Save As... " ) , this ) ;
m_saveAsAct - > setStatusTip ( tr ( " Output image to file " ) ) ;
m_saveAsAct - > setShortcut ( QKeySequence : : Save ) ;
connect ( m_saveAsAct , SIGNAL ( triggered ( ) ) , this , SLOT ( save ( ) ) ) ;
m_helpAct = new QAction ( helpIcon , tr ( " &Help (online) " ) , this ) ;
m_helpAct - > setStatusTip ( tr ( " Online manual " ) ) ;
m_helpAct - > setShortcut ( QKeySequence : : HelpContents ) ;
connect ( m_helpAct , SIGNAL ( triggered ( ) ) , this , SLOT ( help ( ) ) ) ;
m_aboutAct = new QAction ( aboutIcon , tr ( " &About " ) , this ) ;
m_aboutAct - > setStatusTip ( tr ( " About Zint Barcode Studio " ) ) ;
connect ( m_aboutAct , SIGNAL ( triggered ( ) ) , this , SLOT ( about ( ) ) ) ;
m_quitAct = new QAction ( quitIcon , tr ( " &Quit " ) , this ) ;
m_quitAct - > setStatusTip ( tr ( " Exit Zint Barcode Studio " ) ) ;
m_quitAct - > setShortcut ( quitKeySeq ) ;
connect ( m_quitAct , SIGNAL ( triggered ( ) ) , this , SLOT ( quit_now ( ) ) ) ;
m_copyErrtxtAct = new QAction ( copyIcon , tr ( " &Copy " ) , this ) ;
m_copyErrtxtAct - > setStatusTip ( tr ( " Copy message to clipboard " ) ) ;
connect ( m_copyErrtxtAct , SIGNAL ( triggered ( ) ) , this , SLOT ( copy_to_clipboard_errtxt ( ) ) ) ;
}
void MainWindow : : createMenu ( )
{
m_menu = new QMenu ( tr ( " Menu " ) , this ) ;
m_menu - > addAction ( m_copyBMPAct ) ;
m_menu - > addAction ( m_copyEMFAct ) ;
# ifdef MAINWINDOW_COPY_EPS
m_menu - > addAction ( m_copyEPSAct ) ;
# endif
m_menu - > addAction ( m_copyGIFAct ) ;
# ifdef MAINWINDOW_COPY_PCX
m_menu - > addAction ( m_copyPCXAct ) ;
# endif
# ifndef NO_PNG
m_menu - > addAction ( m_copyPNGAct ) ;
# endif
m_menu - > addAction ( m_copySVGAct ) ;
m_menu - > addAction ( m_copyTIFAct ) ;
m_menu - > addSeparator ( ) ;
m_menu - > addAction ( m_saveAsAct ) ;
m_menu - > addSeparator ( ) ;
m_menu - > addAction ( m_helpAct ) ;
m_menu - > addAction ( m_aboutAct ) ;
m_menu - > addSeparator ( ) ;
m_menu - > addAction ( m_quitAct ) ;
}
void MainWindow : : enableActions ( bool enabled )
{
btnCopyBMP - > setEnabled ( enabled ) ;
btnCopySVG - > setEnabled ( enabled ) ;
btnSave - > setEnabled ( enabled ) ;
m_copyBMPAct - > setEnabled ( enabled ) ;
m_copyEMFAct - > setEnabled ( enabled ) ;
# ifdef MAINWINDOW_COPY_EPS
m_copyEPSAct - > setEnabled ( enabled ) ;
# endif
m_copyGIFAct - > setEnabled ( enabled ) ;
# ifdef MAINWINDOW_COPY_PCX
m_copyPCXAct - > setEnabled ( enabled ) ;
# endif
# ifndef NO_PNG
m_copyPNGAct - > setEnabled ( enabled ) ;
# endif
m_copySVGAct - > setEnabled ( enabled ) ;
m_copyTIFAct - > setEnabled ( enabled ) ;
m_saveAsAct - > setEnabled ( enabled ) ;
m_saveAsShortcut - > setEnabled ( enabled ) ;
}
void MainWindow : : copy_to_clipboard ( const QString & filename , const QString & name , const char * mimeType )
{
QClipboard * clipboard = QGuiApplication : : clipboard ( ) ;
if ( ! m_bc . bc . save_to_file ( filename ) ) {
return ;
}
QMimeData * mdata = new QMimeData ;
if ( mimeType ) {
QFile file ( filename ) ;
if ( ! file . open ( QIODevice : : ReadOnly ) ) {
delete mdata ;
} else {
mdata - > setData ( mimeType , file . readAll ( ) ) ;
file . close ( ) ;
clipboard - > setMimeData ( mdata , QClipboard : : Clipboard ) ;
/*: %1 is format (BMP/EMF etc) */
statusBar - > showMessage ( tr ( " Copied to clipboard as %1 " ) . arg ( name ) , statusBarTimeout ) ;
}
} else {
mdata - > setImageData ( QImage ( filename ) ) ;
clipboard - > setMimeData ( mdata , QClipboard : : Clipboard ) ;
/*: %1 is format (BMP/EMF etc) */
statusBar - > showMessage ( tr ( " Copied to clipboard as %1 " ) . arg ( name ) , statusBarTimeout ) ;
}
QFile : : remove ( filename ) ;
}
void MainWindow : : errtxtBar_clear ( )
{
errtxtBar - > clearMessage ( ) ;
if ( ! errtxtBarContainer - > isHidden ( ) ) {
errtxtBarContainer - > hide ( ) ;
errtxtBarContainer - > update ( ) ;
update_preview ( ) ;
}
}
void MainWindow : : errtxtBar_set ( bool isError )
{
if ( ! m_bc . bc . hasErrors ( ) ) {
errtxtBar_clear ( ) ;
} else {
errtxtBar - > showMessage ( m_bc . bc . lastError ( ) ) ;
errtxtBar - > setStyleSheet ( isError
? QSL ( " QStatusBar {background:white; color:#dd0000;} " )
: QSL ( " QStatusBar {background:white; color:#ff6f00;} " ) ) ;
if ( errtxtBarContainer - > isHidden ( ) ) {
errtxtBarContainer - > show ( ) ;
errtxtBarContainer - > update ( ) ;
update_preview ( ) ;
}
}
}
QPoint MainWindow : : get_context_menu_pos ( const QPoint & pos , QWidget * widget )
{
QPoint menuPos ( pos ) ;
if ( menuPos . x ( ) = = 0 & & menuPos . y ( ) = = 0 ) { // May have been invoked by menu key
QPoint mousePos ( widget - > mapFromGlobal ( QCursor : : pos ( ) ) ) ;
if ( widget - > rect ( ) . contains ( mousePos ) ) {
menuPos = mousePos ;
}
}
return widget - > mapToGlobal ( menuPos ) ;
}
/* Shorthand to find widget child as generic QWidget */
QWidget * MainWindow : : get_widget ( const QString & name )
{
2021-11-20 14:32:30 +03:00
return m_optionWidget ? m_optionWidget - > findChild < QWidget * > ( name ) : nullptr ;
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-28 23:42:44 +03:00
}
2020-09-30 14:19:12 +03:00
/* Return settings subsection name for a symbol */
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 02:13:39 +03:00
const QString & MainWindow : : get_setting_name ( int symbology )
{
2020-09-30 14:19:12 +03:00
struct item {
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 02:13:39 +03:00
const QString name ;
2020-09-30 14:19:12 +03:00
int define ;
int val ;
} ;
2021-06-10 13:15:39 +03:00
static const struct item ndata [ ] = {
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 02:13:39 +03:00
{ QSL ( " " ) , - 1 , 0 } ,
{ QSL ( " code11 " ) , BARCODE_CODE11 , 1 } ,
{ QSL ( " c25standard " ) , BARCODE_C25STANDARD , 2 } ,
{ QSL ( " c25inter " ) , BARCODE_C25INTER , 3 } ,
{ QSL ( " c25iata " ) , BARCODE_C25IATA , 4 } ,
{ QSL ( " " ) , - 1 , 5 } ,
{ QSL ( " c25logic " ) , BARCODE_C25LOGIC , 6 } ,
{ QSL ( " c25ind " ) , BARCODE_C25IND , 7 } ,
{ QSL ( " code39 " ) , BARCODE_CODE39 , 8 } ,
{ QSL ( " excode39 " ) , BARCODE_EXCODE39 , 9 } ,
{ QSL ( " " ) , - 1 , 10 } ,
{ QSL ( " " ) , - 1 , 11 } ,
{ QSL ( " " ) , - 1 , 12 } ,
{ QSL ( " eanx " ) , BARCODE_EANX , 13 } ,
{ QSL ( " eanx " ) , BARCODE_EANX_CHK , 14 } ,
{ QSL ( " " ) , - 1 , 15 } ,
{ QSL ( " code128 " ) , BARCODE_GS1_128 , 16 } ,
{ QSL ( " " ) , - 1 , 17 } ,
{ QSL ( " codabar " ) , BARCODE_CODABAR , 18 } ,
{ QSL ( " " ) , - 1 , 19 } ,
{ QSL ( " code128 " ) , BARCODE_CODE128 , 20 } ,
{ QSL ( " dpleit " ) , BARCODE_DPLEIT , 21 } ,
{ QSL ( " dpident " ) , BARCODE_DPIDENT , 22 } ,
{ QSL ( " code16k " ) , BARCODE_CODE16K , 23 } ,
{ QSL ( " code49 " ) , BARCODE_CODE49 , 24 } ,
{ QSL ( " code93 " ) , BARCODE_CODE93 , 25 } ,
{ QSL ( " " ) , - 1 , 26 } ,
{ QSL ( " " ) , - 1 , 27 } ,
{ QSL ( " flat " ) , BARCODE_FLAT , 28 } ,
{ QSL ( " dbar_omn " ) , BARCODE_DBAR_OMN , 29 } ,
{ QSL ( " dbar_ltd " ) , BARCODE_DBAR_LTD , 30 } ,
{ QSL ( " dbar_exp " ) , BARCODE_DBAR_EXP , 31 } ,
{ QSL ( " telepen " ) , BARCODE_TELEPEN , 32 } ,
{ QSL ( " " ) , - 1 , 33 } ,
{ QSL ( " upca " ) , BARCODE_UPCA , 34 } ,
{ QSL ( " upca " ) , BARCODE_UPCA_CHK , 35 } ,
{ QSL ( " " ) , - 1 , 36 } ,
{ QSL ( " upce " ) , BARCODE_UPCE , 37 } ,
{ QSL ( " upce " ) , BARCODE_UPCE_CHK , 38 } ,
{ QSL ( " " ) , - 1 , 39 } ,
{ QSL ( " postnet " ) , BARCODE_POSTNET , 40 } ,
{ QSL ( " " ) , - 1 , 41 } ,
{ QSL ( " " ) , - 1 , 42 } ,
{ QSL ( " " ) , - 1 , 43 } ,
{ QSL ( " " ) , - 1 , 44 } ,
{ QSL ( " " ) , - 1 , 45 } ,
{ QSL ( " " ) , - 1 , 46 } ,
{ QSL ( " msi_plessey " ) , BARCODE_MSI_PLESSEY , 47 } ,
{ QSL ( " " ) , - 1 , 48 } ,
{ QSL ( " fim " ) , BARCODE_FIM , 49 } ,
{ QSL ( " logmars " ) , BARCODE_LOGMARS , 50 } ,
{ QSL ( " pharma " ) , BARCODE_PHARMA , 51 } ,
{ QSL ( " pzn " ) , BARCODE_PZN , 52 } ,
{ QSL ( " pharma_two " ) , BARCODE_PHARMA_TWO , 53 } ,
{ QSL ( " " ) , - 1 , 54 } ,
{ QSL ( " pdf417 " ) , BARCODE_PDF417 , 55 } ,
{ QSL ( " pdf417 " ) , BARCODE_PDF417COMP , 56 } ,
{ QSL ( " maxicode " ) , BARCODE_MAXICODE , 57 } ,
{ QSL ( " qrcode " ) , BARCODE_QRCODE , 58 } ,
{ QSL ( " " ) , - 1 , 59 } ,
{ QSL ( " code128 " ) , BARCODE_CODE128B , 60 } ,
{ QSL ( " " ) , - 1 , 61 } ,
{ QSL ( " " ) , - 1 , 62 } ,
{ QSL ( " auspost " ) , BARCODE_AUSPOST , 63 } ,
{ QSL ( " " ) , - 1 , 64 } ,
{ QSL ( " " ) , - 1 , 65 } ,
{ QSL ( " ausreply " ) , BARCODE_AUSREPLY , 66 } ,
{ QSL ( " ausroute " ) , BARCODE_AUSROUTE , 67 } ,
{ QSL ( " ausredirect " ) , BARCODE_AUSREDIRECT , 68 } ,
{ QSL ( " isbnx " ) , BARCODE_ISBNX , 69 } ,
{ QSL ( " rm4scc " ) , BARCODE_RM4SCC , 70 } ,
{ QSL ( " datamatrix " ) , BARCODE_DATAMATRIX , 71 } ,
{ QSL ( " ean14 " ) , BARCODE_EAN14 , 72 } ,
{ QSL ( " vin " ) , BARCODE_VIN , 73 } ,
{ QSL ( " codablockf " ) , BARCODE_CODABLOCKF , 74 } ,
{ QSL ( " nve18 " ) , BARCODE_NVE18 , 75 } ,
{ QSL ( " japanpost " ) , BARCODE_JAPANPOST , 76 } ,
{ QSL ( " koreapost " ) , BARCODE_KOREAPOST , 77 } ,
{ QSL ( " " ) , - 1 , 78 } ,
{ QSL ( " dbar_stk " ) , BARCODE_DBAR_STK , 79 } ,
{ QSL ( " dbar_omnstk " ) , BARCODE_DBAR_OMNSTK , 80 } ,
{ QSL ( " dbar_expstk " ) , BARCODE_DBAR_EXPSTK , 81 } ,
{ QSL ( " planet " ) , BARCODE_PLANET , 82 } ,
{ QSL ( " " ) , - 1 , 83 } ,
{ QSL ( " micropdf417 " ) , BARCODE_MICROPDF417 , 84 } ,
{ QSL ( " usps_imail " ) , BARCODE_USPS_IMAIL , 85 } ,
{ QSL ( " plessey " ) , BARCODE_PLESSEY , 86 } ,
{ QSL ( " telepen_num " ) , BARCODE_TELEPEN_NUM , 87 } ,
{ QSL ( " " ) , - 1 , 88 } ,
{ QSL ( " itf14 " ) , BARCODE_ITF14 , 89 } ,
{ QSL ( " kix " ) , BARCODE_KIX , 90 } ,
{ QSL ( " " ) , - 1 , 91 } ,
{ QSL ( " aztec " ) , BARCODE_AZTEC , 92 } ,
{ QSL ( " daft " ) , BARCODE_DAFT , 93 } ,
{ QSL ( " " ) , - 1 , 94 } ,
{ QSL ( " " ) , - 1 , 95 } ,
{ QSL ( " dpd " ) , BARCODE_DPD , 96 } ,
{ QSL ( " microqr " ) , BARCODE_MICROQR , 97 } ,
{ QSL ( " code128 " ) , BARCODE_HIBC_128 , 98 } ,
{ QSL ( " code39 " ) , BARCODE_HIBC_39 , 99 } ,
{ QSL ( " " ) , - 1 , 100 } ,
{ QSL ( " " ) , - 1 , 101 } ,
{ QSL ( " datamatrix " ) , BARCODE_HIBC_DM , 102 } ,
{ QSL ( " " ) , - 1 , 103 } ,
{ QSL ( " qrcode " ) , BARCODE_HIBC_QR , 104 } ,
{ QSL ( " " ) , - 1 , 105 } ,
{ QSL ( " pdf417 " ) , BARCODE_HIBC_PDF , 106 } ,
{ QSL ( " " ) , - 1 , 107 } ,
{ QSL ( " micropdf417 " ) , BARCODE_HIBC_MICPDF , 108 } ,
{ QSL ( " " ) , - 1 , 109 } ,
{ QSL ( " codablockf " ) , BARCODE_HIBC_BLOCKF , 110 } ,
{ QSL ( " " ) , - 1 , 111 } ,
{ QSL ( " aztec " ) , BARCODE_HIBC_AZTEC , 112 } ,
{ QSL ( " " ) , - 1 , 113 } ,
{ QSL ( " " ) , - 1 , 114 } ,
{ QSL ( " dotcode " ) , BARCODE_DOTCODE , 115 } ,
{ QSL ( " hanxin " ) , BARCODE_HANXIN , 116 } ,
{ QSL ( " " ) , - 1 , 117 } ,
{ QSL ( " " ) , - 1 , 118 } ,
{ QSL ( " " ) , - 1 , 119 } ,
{ QSL ( " " ) , - 1 , 120 } ,
{ QSL ( " mailmark " ) , BARCODE_MAILMARK , 121 } ,
{ QSL ( " " ) , - 1 , 122 } ,
{ QSL ( " " ) , - 1 , 123 } ,
{ QSL ( " " ) , - 1 , 124 } ,
{ QSL ( " " ) , - 1 , 125 } ,
{ QSL ( " " ) , - 1 , 126 } ,
{ QSL ( " " ) , - 1 , 127 } ,
{ QSL ( " azrune " ) , BARCODE_AZRUNE , 128 } ,
{ QSL ( " code32 " ) , BARCODE_CODE32 , 129 } ,
{ QSL ( " eanx " ) , BARCODE_EANX_CC , 130 } ,
{ QSL ( " code128 " ) , BARCODE_GS1_128_CC , 131 } ,
{ QSL ( " dbar_omn " ) , BARCODE_DBAR_OMN_CC , 132 } ,
{ QSL ( " dbar_ltd " ) , BARCODE_DBAR_LTD_CC , 133 } ,
{ QSL ( " dbar_exp " ) , BARCODE_DBAR_EXP_CC , 134 } ,
{ QSL ( " upca " ) , BARCODE_UPCA_CC , 135 } ,
{ QSL ( " upce " ) , BARCODE_UPCE_CC , 136 } ,
{ QSL ( " dbar_stk " ) , BARCODE_DBAR_STK_CC , 137 } ,
{ QSL ( " dbar_omnstk " ) , BARCODE_DBAR_OMNSTK_CC , 138 } ,
{ QSL ( " dbar_expstk " ) , BARCODE_DBAR_EXPSTK_CC , 139 } ,
{ QSL ( " channel " ) , BARCODE_CHANNEL , 140 } ,
{ QSL ( " codeone " ) , BARCODE_CODEONE , 141 } ,
{ QSL ( " gridmatrix " ) , BARCODE_GRIDMATRIX , 142 } ,
{ QSL ( " upnqr " ) , BARCODE_UPNQR , 143 } ,
{ QSL ( " ultra " ) , BARCODE_ULTRA , 144 } ,
{ QSL ( " rmqr " ) , BARCODE_RMQR , 145 } ,
2020-09-30 14:19:12 +03:00
} ;
2021-06-10 13:15:39 +03:00
static const int data_size = sizeof ( ndata ) / sizeof ( struct item ) ;
2020-09-30 14:19:12 +03:00
if ( symbology < 0 | | symbology > = data_size ) {
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 02:13:39 +03:00
return ndata [ 0 ] . name ; // ""
2020-09-30 14:19:12 +03: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-28 23:42:44 +03:00
if ( ndata [ symbology ] . val ! = symbology | |
( ndata [ symbology ] . define ! = - 1 & & ndata [ symbology ] . define ! = symbology ) ) { // Self-check
2021-06-10 13:15:39 +03:00
fprintf ( stderr , " MainWindow::get_setting_name: ndata table out of sync (%d) \n " , symbology ) ;
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 02:13:39 +03:00
return ndata [ 0 ] . name ; // ""
2020-09-30 14:19:12 +03:00
}
2021-06-10 13:15:39 +03:00
return ndata [ symbology ] . name ;
2020-09-30 14:19:12 +03:00
}
/* Helper to return index of selected radio button in group, checking for NULL */
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 02:13:39 +03:00
int MainWindow : : get_rad_grp_index ( const QStringList & names )
{
2021-05-17 22:04:00 +03:00
if ( m_optionWidget ) {
QRadioButton * radioButton ;
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 02:13:39 +03:00
for ( int index = 0 ; index < names . size ( ) ; index + + ) {
radioButton = m_optionWidget - > findChild < QRadioButton * > ( names [ index ] ) ;
2021-05-17 22:04:00 +03:00
if ( radioButton & & radioButton - > isChecked ( ) ) {
return index ;
}
2020-09-30 14:19:12 +03:00
}
}
return 0 ;
}
/* Helper to set radio button in group from index in settings, checking for NULL */
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 02:13:39 +03:00
void MainWindow : : set_rad_from_setting ( QSettings & settings , const QString & setting ,
const QStringList & names , int default_val )
{
2021-05-17 22:04:00 +03:00
if ( m_optionWidget ) {
int index = settings . value ( setting , default_val ) . toInt ( ) ;
QRadioButton * radioButton ;
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 02:13:39 +03:00
if ( index > = 0 & & index < names . size ( ) ) {
radioButton = m_optionWidget - > findChild < QRadioButton * > ( names [ index ] ) ;
2021-05-17 22:04:00 +03:00
} else {
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 02:13:39 +03:00
radioButton = m_optionWidget - > findChild < QRadioButton * > ( names [ 0 ] ) ;
2021-05-17 22:04:00 +03:00
}
if ( radioButton ) {
radioButton - > setChecked ( true ) ;
}
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
/* Helper to see if radio button checked, checking for NULL and whether enabled */
bool MainWindow : : get_rad_val ( const QString & name )
{
QRadioButton * radioButton = m_optionWidget ? m_optionWidget - > findChild < QRadioButton * > ( name ) : nullptr ;
return radioButton & & radioButton - > isEnabled ( ) & & radioButton - > isChecked ( ) ;
}
2020-09-30 14:19:12 +03:00
/* Helper to return index of selected item in combobox, checking for NULL */
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 02:13:39 +03:00
int MainWindow : : get_cmb_index ( const QString & name )
{
QComboBox * comboBox = m_optionWidget ? m_optionWidget - > findChild < QComboBox * > ( name ) : nullptr ;
2020-09-30 14:19:12 +03:00
return comboBox ? comboBox - > currentIndex ( ) : 0 ;
}
/* Helper to set item in combobox from index in settings, checking for NULL */
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 02:13:39 +03:00
void MainWindow : : set_cmb_from_setting ( QSettings & settings , const QString & setting , const QString & name ,
int default_val )
{
QComboBox * comboBox = m_optionWidget ? m_optionWidget - > findChild < QComboBox * > ( name ) : nullptr ;
2020-09-30 14:19:12 +03:00
if ( comboBox ) {
comboBox - > setCurrentIndex ( settings . value ( setting , default_val ) . toInt ( ) ) ;
}
}
/* Helper to return if checkbox checked, checking for NULL */
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 02:13:39 +03:00
int MainWindow : : get_chk_val ( const QString & name )
{
QCheckBox * checkBox = m_optionWidget ? m_optionWidget - > findChild < QCheckBox * > ( name ) : nullptr ;
2020-09-30 14:19:12 +03:00
return checkBox & & checkBox - > isChecked ( ) ? 1 : 0 ;
}
/* Helper to set checkbox from settings, checking for NULL */
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 02:13:39 +03:00
void MainWindow : : set_chk_from_setting ( QSettings & settings , const QString & setting , const QString & name ,
int default_val )
{
QCheckBox * checkBox = m_optionWidget ? m_optionWidget - > findChild < QCheckBox * > ( name ) : nullptr ;
2020-09-30 14:19:12 +03:00
if ( checkBox ) {
checkBox - > setChecked ( settings . value ( setting , default_val ) . toInt ( ) ? true : false ) ;
}
}
2021-06-19 15:11:23 +03:00
/* Helper to return value of double spinner, checking for NULL */
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 02:13:39 +03:00
double MainWindow : : get_dspn_val ( const QString & name )
{
QDoubleSpinBox * spinBox = m_optionWidget - > findChild < QDoubleSpinBox * > ( name ) ;
2021-06-19 15:11:23 +03:00
return spinBox ? spinBox - > value ( ) : 0.0 ;
}
/* Helper to set double spinner from settings, checking for NULL */
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 02:13:39 +03:00
void MainWindow : : set_dspn_from_setting ( QSettings & settings , const QString & setting , const QString & name ,
float default_val )
{
QDoubleSpinBox * spinBox = m_optionWidget - > findChild < QDoubleSpinBox * > ( name ) ;
2021-06-19 15:11:23 +03:00
if ( spinBox ) {
spinBox - > setValue ( settings . value ( setting , default_val ) . toFloat ( ) ) ;
}
}
2020-09-30 14:19:12 +03:00
/* Helper to return text of line edit, checking for NULL */
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 02:13:39 +03:00
QString MainWindow : : get_txt_val ( const QString & name )
{
QLineEdit * lineEdit = m_optionWidget ? m_optionWidget - > findChild < QLineEdit * > ( name ) : nullptr ;
return lineEdit ? lineEdit - > text ( ) : QSL ( " " ) ;
2020-09-30 14:19:12 +03:00
}
/* Helper to set line edit from settings, checking for NULL */
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 02:13:39 +03:00
void MainWindow : : set_txt_from_setting ( QSettings & settings , const QString & setting , const QString & name ,
const QString & default_val )
{
QLineEdit * lineEdit = m_optionWidget ? m_optionWidget - > findChild < QLineEdit * > ( name ) : nullptr ;
2020-09-30 14:19:12 +03:00
if ( lineEdit ) {
lineEdit - > setText ( settings . value ( setting , default_val ) . toString ( ) ) ;
}
}
2020-12-19 20:13:35 +03:00
/* Helper to return value of spin box, checking for NULL */
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 02:13:39 +03:00
int MainWindow : : get_spn_val ( const QString & name )
{
QSpinBox * spinBox = m_optionWidget ? m_optionWidget - > findChild < QSpinBox * > ( name ) : nullptr ;
2020-12-19 20:13:35 +03:00
return spinBox ? spinBox - > value ( ) : 0 ;
}
/* Helper to set spin box from settings, checking for NULL */
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 02:13:39 +03:00
void MainWindow : : set_spn_from_setting ( QSettings & settings , const QString & setting , const QString & name ,
int default_val )
{
QSpinBox * spinBox = m_optionWidget ? m_optionWidget - > findChild < QSpinBox * > ( name ) : nullptr ;
2020-12-19 20:13:35 +03:00
if ( spinBox ) {
spinBox - > setValue ( settings . value ( setting , default_val ) . toInt ( ) ) ;
}
}
2020-09-30 14:19:12 +03:00
/* Save settings for an individual symbol */
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 02:13:39 +03:00
void MainWindow : : save_sub_settings ( QSettings & settings , int symbology )
{
const QString & name = get_setting_name ( symbology ) ;
if ( ! name . isEmpty ( ) ) {
settings . setValue ( QSL ( " studio/bc/%1/data " ) . arg ( name ) , txtData - > text ( ) ) ;
2020-09-30 14:19:12 +03:00
if ( ! grpComposite - > isHidden ( ) ) {
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/%1/composite_text " ) . arg ( name ) , txtComposite - > toPlainText ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/chk_composite " ) . arg ( name ) , chkComposite - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/bc/%1/comp_type " ) . arg ( name ) , cmbCompType - > currentIndex ( ) ) ;
2020-09-30 14:19:12 +03:00
}
if ( cmbECI - > isEnabled ( ) ) {
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/%1/eci " ) . arg ( name ) , cmbECI - > currentIndex ( ) ) ;
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/%1/chk_escape " ) . arg ( name ) , chkEscape - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/bc/%1/chk_data " ) . arg ( name ) , chkData - > isChecked ( ) ? 1 : 0 ) ;
2020-09-30 14:19:12 +03:00
if ( chkRInit - > isEnabled ( ) ) {
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/%1/chk_rinit " ) . arg ( name ) , chkRInit - > isChecked ( ) ? 1 : 0 ) ;
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/%1/chk_gs1parens " ) . arg ( name ) , chkGS1Parens - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/bc/%1/chk_gs1nocheck " ) . arg ( name ) , chkGS1NoCheck - > isChecked ( ) ? 1 : 0 ) ;
2020-09-30 14:19:12 +03:00
if ( chkAutoHeight - > isEnabled ( ) ) {
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-28 23:42:44 +03:00
settings . setValue (
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 02:13:39 +03:00
QSL ( " studio/bc/%1/appearance/autoheight " ) . arg ( name ) , chkAutoHeight - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/bc/%1/appearance/height " ) . arg ( name ) , heightb - > value ( ) ) ;
2020-09-30 14:19:12 +03:00
}
2021-10-13 17:31:28 +03:00
if ( chkCompliantHeight - > isEnabled ( ) ) {
settings . setValue (
QSL ( " studio/bc/%1/appearance/compliantheight " ) . arg ( name ) , chkCompliantHeight - > isChecked ( ) ? 1 : 0 ) ;
}
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/%1/appearance/border " ) . arg ( name ) , bwidth - > value ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/appearance/whitespace " ) . arg ( name ) , spnWhitespace - > value ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/appearance/vwhitespace " ) . arg ( name ) , spnVWhitespace - > value ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/appearance/scale " ) . arg ( name ) , spnScale - > value ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/appearance/border_type " ) . arg ( name ) , btype - > currentIndex ( ) ) ;
2020-09-30 14:19:12 +03:00
if ( chkHRTShow - > isEnabled ( ) ) {
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/%1/appearance/font_setting " ) . arg ( name ) , cmbFontSetting - > currentIndex ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/appearance/chk_hrt_show " ) . arg ( name ) , chkHRTShow - > isChecked ( ) ? 1 : 0 ) ;
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/%1/appearance/chk_cmyk " ) . arg ( name ) , chkCMYK - > isChecked ( ) ? 1 : 0 ) ;
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-28 23:42:44 +03:00
settings . setValue (
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 02:13:39 +03:00
QSL ( " studio/bc/%1/appearance/chk_quietzones " ) . arg ( name ) , chkQuietZones - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/bc/%1/appearance/rotate " ) . arg ( name ) , cmbRotate - > currentIndex ( ) ) ;
2020-09-30 14:19:12 +03:00
if ( symbology = = BARCODE_DOTCODE | | chkDotty - > isEnabled ( ) ) {
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/%1/appearance/chk_dotty " ) . arg ( name ) , chkDotty - > isChecked ( ) ? 1 : 0 ) ;
settings . setValue ( QSL ( " studio/bc/%1/appearance/dot_size " ) . arg ( name ) , spnDotSize - > value ( ) ) ;
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/%1/ink/red " ) . arg ( name ) , m_fgcolor . red ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/ink/green " ) . arg ( name ) , m_fgcolor . green ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/ink/blue " ) . arg ( name ) , m_fgcolor . blue ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/ink/alpha " ) . arg ( name ) , m_fgcolor . alpha ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/paper/red " ) . arg ( name ) , m_bgcolor . red ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/paper/green " ) . arg ( name ) , m_bgcolor . green ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/paper/blue " ) . arg ( name ) , m_bgcolor . blue ( ) ) ;
settings . setValue ( QSL ( " studio/bc/%1/paper/alpha " ) . arg ( name ) , m_bgcolor . alpha ( ) ) ;
2020-09-30 14:19:12 +03:00
}
switch ( symbology ) {
case BARCODE_CODE128 :
case BARCODE_CODE128B :
case BARCODE_GS1_128 :
case BARCODE_GS1_128_CC :
case BARCODE_HIBC_128 :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/code128/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radC128Stand " ) < < QSL ( " radC128EAN " ) < < QSL ( " radC128CSup " )
< < QSL ( " radC128HIBC " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_PDF417 :
case BARCODE_PDF417COMP :
case BARCODE_HIBC_PDF :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/pdf417/cols " ) , get_cmb_index ( QSL ( " cmbPDFCols " ) ) ) ;
2021-10-31 00:00:31 +03:00
settings . setValue ( QSL ( " studio/bc/pdf417/rows " ) , get_cmb_index ( QSL ( " cmbPDFRows " ) ) ) ;
2021-11-20 14:32:30 +03:00
settings . setValue ( QSL ( " studio/bc/pdf417/height_per_row " ) , get_dspn_val ( QSL ( " spnPDFHeightPerRow " ) ) ) ;
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/pdf417/ecc " ) , get_cmb_index ( QSL ( " cmbPDFECC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/pdf417/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radPDFStand " ) < < QSL ( " radPDFTruncated " ) < < QSL ( " radPDFHIBC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/pdf417/structapp_count " ) , get_spn_val ( QSL ( " spnPDFStructAppCount " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/pdf417/structapp_index " ) , get_spn_val ( QSL ( " spnPDFStructAppIndex " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/pdf417/structapp_id " ) , get_txt_val ( QSL ( " txtPDFStructAppID " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_MICROPDF417 :
case BARCODE_HIBC_MICPDF :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/micropdf417/cols " ) , get_cmb_index ( QSL ( " cmbMPDFCols " ) ) ) ;
2021-11-20 14:32:30 +03:00
settings . setValue ( QSL ( " studio/bc/micropdf417/height_per_row " ) , get_dspn_val ( QSL ( " spnMPDFHeightPerRow " ) ) ) ;
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/micropdf417/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radMPDFStand " ) < < QSL ( " radMPDFHIBC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/micropdf417/structapp_count " ) ,
get_spn_val ( QSL ( " spnMPDFStructAppCount " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/micropdf417/structapp_index " ) ,
get_spn_val ( QSL ( " spnMPDFStructAppIndex " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/micropdf417/structapp_id " ) , get_txt_val ( QSL ( " txtMPDFStructAppID " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_DOTCODE :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/dotcode/cols " ) , get_cmb_index ( QSL ( " cmbDotCols " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/dotcode/mask " ) , get_cmb_index ( QSL ( " cmbDotMask " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/dotcode/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radDotStand " ) < < QSL ( " radDotGS1 " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/dotcode/structapp_count " ) , get_cmb_index ( QSL ( " cmbDotStructAppCount " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/dotcode/structapp_index " ) , get_cmb_index ( QSL ( " cmbDotStructAppIndex " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_AZTEC :
case BARCODE_HIBC_AZTEC :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/aztec/autoresizing " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radAztecAuto " ) < < QSL ( " radAztecSize " ) < < QSL ( " radAztecECC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/aztec/size " ) , get_cmb_index ( QSL ( " cmbAztecSize " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/aztec/ecc " ) , get_cmb_index ( QSL ( " cmbAztecECC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/aztec/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radAztecStand " ) < < QSL ( " radAztecGS1 " ) < < QSL ( " radAztecHIBC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/aztec/structapp_count " ) , get_cmb_index ( QSL ( " cmbAztecStructAppCount " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/aztec/structapp_index " ) , get_cmb_index ( QSL ( " cmbAztecStructAppIndex " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/aztec/structapp_id " ) , get_txt_val ( QSL ( " txtAztecStructAppID " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_MSI_PLESSEY :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/msi_plessey/check_digit " ) , get_cmb_index ( QSL ( " cmbMSICheck " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/msi_plessey/check_text " ) , get_chk_val ( QSL ( " chkMSICheckText " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_CODE11 :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/code11/check_digit " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radC11TwoCheckDigits " ) < < QSL ( " radC11OneCheckDigit " )
< < QSL ( " radC11NoCheckDigits " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
2021-05-17 22:04:00 +03:00
case BARCODE_C25STANDARD :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/c25standard/check_digit " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radC25Stand " ) < < QSL ( " radC25Check " ) < < QSL ( " radC25CheckHide " ) ) ) ;
2021-05-17 22:04:00 +03:00
break ;
case BARCODE_C25INTER :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/c25inter/check_digit " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radC25Stand " ) < < QSL ( " radC25Check " ) < < QSL ( " radC25CheckHide " ) ) ) ;
2021-05-17 22:04:00 +03:00
break ;
case BARCODE_C25IATA :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/c25iata/check_digit " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radC25Stand " ) < < QSL ( " radC25Check " ) < < QSL ( " radC25CheckHide " ) ) ) ;
2021-05-17 22:04:00 +03:00
break ;
case BARCODE_C25LOGIC :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/c25logic/check_digit " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radC25Stand " ) < < QSL ( " radC25Check " ) < < QSL ( " radC25CheckHide " ) ) ) ;
2021-05-17 22:04:00 +03:00
break ;
case BARCODE_C25IND :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/c25ind/check_digit " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radC25Stand " ) < < QSL ( " radC25Check " ) < < QSL ( " radC25CheckHide " ) ) ) ;
2021-05-17 22:04:00 +03:00
break ;
2020-09-30 14:19:12 +03:00
case BARCODE_CODE39 :
case BARCODE_HIBC_39 :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/code39/check_digit " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radC39Stand " ) < < QSL ( " radC39Check " ) < < QSL ( " radC39HIBC " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_EXCODE39 :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/excode39/check_digit " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radC39Stand " ) < < QSL ( " radC39Check " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_LOGMARS :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/logmars/check_digit " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radLOGMARSStand " ) < < QSL ( " radLOGMARSCheck " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_CODE16K :
2021-11-20 14:32:30 +03:00
settings . setValue ( QSL ( " studio/bc/code16k/rows " ) , get_cmb_index ( QSL ( " cmbC16kRows " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/code16k/height_per_row " ) , get_dspn_val ( QSL ( " spnC16kHeightPerRow " ) ) ) ;
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/code16k/row_sep_height " ) , get_cmb_index ( QSL ( " cmbC16kRowSepHeight " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/code16k/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radC16kStand " ) < < QSL ( " radC16kGS1 " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/code16k/chk_no_quiet_zones " ) , get_chk_val ( QSL ( " chkC16kNoQuietZones " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_CODABAR :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/codabar/check_digit " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radCodabarStand " ) < < QSL ( " radCodabarCheckHide " ) < < QSL ( " radCodabarCheck " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_CODABLOCKF :
case BARCODE_HIBC_BLOCKF :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/codablockf/width " ) , get_cmb_index ( QSL ( " cmbCbfWidth " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/codablockf/height " ) , get_cmb_index ( QSL ( " cmbCbfHeight " ) ) ) ;
2021-11-20 14:32:30 +03:00
settings . setValue ( QSL ( " studio/bc/codablockf/height_per_row " ) , get_dspn_val ( QSL ( " spnCbfHeightPerRow " ) ) ) ;
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/codablockf/row_sep_height " ) , get_cmb_index ( QSL ( " cmbCbfRowSepHeight " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/codablockf/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radCbfStand " ) < < QSL ( " radCbfHIBC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/codablockf/chk_no_quiet_zones " ) , get_chk_val ( QSL ( " chkCbfNoQuietZones " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
2021-06-19 15:11:23 +03:00
case BARCODE_DAFT :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/daft/tracker_ratio " ) ,
QString : : number ( get_dspn_val ( QSL ( " spnDAFTTrackerRatio " ) ) , ' f ' , 1 /*precision*/ ) ) ;
2021-06-19 15:11:23 +03:00
break ;
2020-09-30 14:19:12 +03:00
case BARCODE_DATAMATRIX :
case BARCODE_HIBC_DM :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/datamatrix/size " ) , get_cmb_index ( QSL ( " cmbDM200Size " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/datamatrix/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radDM200Stand " ) < < QSL ( " radDM200GS1 " ) < < QSL ( " radDM200HIBC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/datamatrix/chk_suppress_rect " ) , get_chk_val ( QSL ( " chkDMRectangle " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/datamatrix/chk_allow_dmre " ) , get_chk_val ( QSL ( " chkDMRE " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/datamatrix/chk_gs_sep " ) , get_chk_val ( QSL ( " chkDMGSSep " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/datamatrix/structapp_count " ) , get_cmb_index ( QSL ( " cmbDMStructAppCount " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/datamatrix/structapp_index " ) , get_cmb_index ( QSL ( " cmbDMStructAppIndex " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/datamatrix/structapp_id " ) , get_spn_val ( QSL ( " spnDMStructAppID " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/datamatrix/structapp_id2 " ) , get_spn_val ( QSL ( " spnDMStructAppID2 " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
2021-09-24 15:21:24 +03:00
case BARCODE_ITF14 :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/itf14/chk_no_quiet_zones " ) , get_chk_val ( QSL ( " chkITF14NoQuietZones " ) ) ) ;
2021-09-24 15:21:24 +03:00
break ;
2020-09-30 14:19:12 +03:00
case BARCODE_QRCODE :
case BARCODE_HIBC_QR :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/qrcode/size " ) , get_cmb_index ( QSL ( " cmbQRSize " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/qrcode/ecc " ) , get_cmb_index ( QSL ( " cmbQRECC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/qrcode/mask " ) , get_cmb_index ( QSL ( " cmbQRMask " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/qrcode/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radDM200Stand " ) < < QSL ( " radQRGS1 " ) < < QSL ( " radQRHIBC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/qrcode/chk_full_multibyte " ) , get_chk_val ( QSL ( " chkQRFullMultibyte " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/qrcode/structapp_count " ) , get_cmb_index ( QSL ( " cmbQRStructAppCount " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/qrcode/structapp_index " ) , get_cmb_index ( QSL ( " cmbQRStructAppIndex " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/qrcode/structapp_id " ) , get_spn_val ( QSL ( " spnQRStructAppID " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_RMQR :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/rmqr/size " ) , get_cmb_index ( QSL ( " cmbRMQRSize " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/rmqr/ecc " ) , get_cmb_index ( QSL ( " cmbRMQRECC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/rmqr/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radQRStand " ) < < QSL ( " radRMQRGS1 " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/rmqr/chk_full_multibyte " ) , get_chk_val ( QSL ( " chkRMQRFullMultibyte " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_HANXIN :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/hanxin/size " ) , get_cmb_index ( QSL ( " cmbHXSize " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/hanxin/ecc " ) , get_cmb_index ( QSL ( " cmbHXECC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/hanxin/mask " ) , get_cmb_index ( QSL ( " cmbHXMask " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/hanxin/chk_full_multibyte " ) , get_chk_val ( QSL ( " chkHXFullMultibyte " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_MICROQR :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/microqr/size " ) , get_cmb_index ( QSL ( " cmbMQRSize " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/microqr/ecc " ) , get_cmb_index ( QSL ( " cmbMQRECC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/microqr/mask " ) , get_cmb_index ( QSL ( " cmbMQRMask " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/microqr/chk_full_multibyte " ) , get_chk_val ( QSL ( " chkMQRFullMultibyte " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_GRIDMATRIX :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/gridmatrix/size " ) , get_cmb_index ( QSL ( " cmbGridSize " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/gridmatrix/ecc " ) , get_cmb_index ( QSL ( " cmbGridECC " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/gridmatrix/chk_full_multibyte " ) ,
get_chk_val ( QSL ( " chkGridFullMultibyte " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/gridmatrix/structapp_count " ) ,
get_cmb_index ( QSL ( " cmbGridStructAppCount " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/gridmatrix/structapp_index " ) ,
get_cmb_index ( QSL ( " cmbGridStructAppIndex " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/gridmatrix/structapp_id " ) , get_spn_val ( QSL ( " spnGridStructAppID " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_MAXICODE :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/maxicode/mode " ) , get_cmb_index ( QSL ( " cmbMaxiMode " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/maxicode/scm_postcode " ) , get_txt_val ( QSL ( " txtMaxiSCMPostcode " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/maxicode/scm_country " ) , get_spn_val ( QSL ( " spnMaxiSCMCountry " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/maxicode/scm_service " ) , get_spn_val ( QSL ( " spnMaxiSCMService " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/maxicode/chk_scm_vv " ) , get_chk_val ( QSL ( " chkMaxiSCMVV " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/maxicode/spn_scm_vv " ) , get_spn_val ( QSL ( " spnMaxiSCMVV " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/maxicode/structapp_count " ) , get_cmb_index ( QSL ( " cmbMaxiStructAppCount " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/maxicode/structapp_index " ) , get_cmb_index ( QSL ( " cmbMaxiStructAppIndex " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_CODEONE :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/codeone/size " ) , get_cmb_index ( QSL ( " cmbC1Size " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/codeone/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radC1Stand " ) < < QSL ( " radC1GS1 " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/codeone/structapp_count " ) , get_spn_val ( QSL ( " spnC1StructAppCount " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/codeone/structapp_index " ) , get_spn_val ( QSL ( " spnC1StructAppIndex " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_CODE49 :
2021-11-20 14:32:30 +03:00
settings . setValue ( QSL ( " studio/bc/code49/rows " ) , get_cmb_index ( QSL ( " cmbC49Rows " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/code49/height_per_row " ) , get_dspn_val ( QSL ( " spnC49HeightPerRow " ) ) ) ;
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/code49/row_sep_height " ) , get_cmb_index ( QSL ( " cmbC49RowSepHeight " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/code49/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radC49Stand " ) < < QSL ( " radC49GS1 " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/code49/chk_no_quiet_zones " ) , get_chk_val ( QSL ( " chkC49NoQuietZones " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
2021-09-13 20:49:25 +03:00
case BARCODE_CODE93 :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/code93/chk_show_checks " ) , get_chk_val ( QSL ( " chkC93ShowChecks " ) ) ) ;
2021-09-13 20:49:25 +03:00
break ;
2020-09-30 14:19:12 +03:00
case BARCODE_DBAR_EXPSTK :
case BARCODE_DBAR_EXPSTK_CC :
2021-11-20 14:32:30 +03:00
settings . setValue ( QSL ( " studio/bc/dbar_expstk/colsrows " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radDBESCols " ) < < QSL ( " radDBESRows " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/dbar_expstk/cols " ) , get_cmb_index ( QSL ( " cmbDBESCols " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/dbar_expstk/rows " ) , get_cmb_index ( QSL ( " cmbDBESRows " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/dbar_expstk/height_per_row " ) , get_dspn_val ( QSL ( " spnDBESHeightPerRow " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_ULTRA :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/ultra/autoresizing " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radUltraAuto " ) < < QSL ( " radUltraEcc " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/ultra/ecc " ) , get_cmb_index ( QSL ( " cmbUltraEcc " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/ultra/revision " ) , get_cmb_index ( QSL ( " cmbUltraRevision " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/ultra/encoding_mode " ) , get_rad_grp_index (
QStringList ( ) < < QSL ( " radUltraStand " ) < < QSL ( " radUltraGS1 " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/ultra/structapp_count " ) , get_cmb_index ( QSL ( " cmbUltraStructAppCount " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/ultra/structapp_index " ) , get_cmb_index ( QSL ( " cmbUltraStructAppIndex " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/ultra/structapp_id " ) , get_spn_val ( QSL ( " spnUltraStructAppID " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_UPCA :
case BARCODE_UPCA_CHK :
case BARCODE_UPCA_CC :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/upca/addongap " ) , get_cmb_index ( QSL ( " cmbUPCAAddonGap " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/upca/guard_descent " ) ,
QString : : number ( get_dspn_val ( QSL ( " spnUPCAGuardDescent " ) ) , ' f ' , 3 /*precision*/ ) ) ;
settings . setValue ( QSL ( " studio/bc/upca/chk_no_quiet_zones " ) , get_chk_val ( QSL ( " chkUPCANoQuietZones " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_EANX :
case BARCODE_EANX_CHK :
case BARCODE_EANX_CC :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/eanx/addongap " ) , get_cmb_index ( QSL ( " cmbUPCEANAddonGap " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/eanx/guard_descent " ) ,
QString : : number ( get_dspn_val ( QSL ( " spnUPCEANGuardDescent " ) ) , ' f ' , 3 /*precision*/ ) ) ;
settings . setValue ( QSL ( " studio/bc/eanx/chk_no_quiet_zones " ) , get_chk_val ( QSL ( " chkUPCEANNoQuietZones " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_UPCE :
case BARCODE_UPCE_CHK :
case BARCODE_UPCE_CC :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/upce/addongap " ) , get_cmb_index ( QSL ( " cmbUPCEANAddonGap " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/upce/guard_descent " ) ,
QString : : number ( get_dspn_val ( QSL ( " spnUPCEANGuardDescent " ) ) , ' f ' , 3 /*precision*/ ) ) ;
settings . setValue ( QSL ( " studio/bc/upce/chk_no_quiet_zones " ) , get_chk_val ( QSL ( " chkUPCEANNoQuietZones " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_ISBNX :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/isnbx/addongap " ) , get_cmb_index ( QSL ( " cmbUPCEANAddonGap " ) ) ) ;
settings . setValue ( QSL ( " studio/bc/isnbx/guard_descent " ) ,
QString : : number ( get_dspn_val ( QSL ( " spnUPCEANGuardDescent " ) ) , ' f ' , 3 /*precision*/ ) ) ;
settings . setValue ( QSL ( " studio/bc/isnbx/chk_no_quiet_zones " ) , get_chk_val ( QSL ( " chkUPCEANNoQuietZones " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_VIN :
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 02:13:39 +03:00
settings . setValue ( QSL ( " studio/bc/vin/chk_import_char_prefix " ) , get_chk_val ( QSL ( " chkVINImportChar " ) ) ) ;
2020-09-30 14:19:12 +03:00
break ;
}
}
/* Load settings for an individual symbol */
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 02:13:39 +03:00
void MainWindow : : load_sub_settings ( QSettings & settings , int symbology )
{
const QString & name = get_setting_name ( symbology ) ;
if ( ! name . isEmpty ( ) ) {
const QString & tdata = settings . value ( QSL ( " studio/bc/%1/data " ) . arg ( name ) , QSL ( " " ) ) . toString ( ) ;
2021-06-10 13:15:39 +03:00
if ( ! tdata . isEmpty ( ) ) {
txtData - > setText ( tdata ) ;
2020-09-30 14:19:12 +03:00
}
if ( ! grpComposite - > isHidden ( ) ) {
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-28 23:42:44 +03:00
const QString & composite_text = settings . value (
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 02:13:39 +03:00
QSL ( " studio/bc/%1/composite_text " ) . arg ( name ) , QSL ( " " ) ) . toString ( ) ;
2020-09-30 14:19:12 +03:00
if ( ! composite_text . isEmpty ( ) ) {
txtComposite - > setText ( composite_text ) ;
}
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-28 23:42:44 +03:00
chkComposite - > setChecked ( settings . value (
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 02:13:39 +03:00
QSL ( " studio/bc/%1/chk_composite " ) . arg ( name ) , 0 ) . toInt ( ) ? true : false ) ;
cmbCompType - > setCurrentIndex ( settings . value ( QSL ( " studio/bc/%1/comp_type " ) . arg ( name ) , 0 ) . toInt ( ) ) ;
2020-09-30 14:19:12 +03:00
}
if ( cmbECI - > isEnabled ( ) ) {
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 02:13:39 +03:00
cmbECI - > setCurrentIndex ( settings . value ( QSL ( " studio/bc/%1/eci " ) . arg ( name ) , 0 ) . toInt ( ) ) ;
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
chkEscape - > setChecked ( settings . value ( QSL ( " studio/bc/%1/chk_escape " ) . arg ( name ) ) . toInt ( ) ? true : false ) ;
chkData - > setChecked ( settings . value ( QSL ( " studio/bc/%1/chk_data " ) . arg ( name ) ) . toInt ( ) ? true : false ) ;
2020-09-30 14:19:12 +03:00
if ( chkRInit - > isEnabled ( ) ) {
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 02:13:39 +03:00
chkRInit - > setChecked ( settings . value ( QSL ( " studio/bc/%1/chk_rinit " ) . arg ( name ) ) . toInt ( ) ? true : false ) ;
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
chkGS1Parens - > setChecked ( settings . value ( QSL ( " studio/bc/%1/chk_gs1parens " ) . arg ( name ) ) . toInt ( ) ? true : false ) ;
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-28 23:42:44 +03:00
chkGS1NoCheck - > setChecked ( settings . value (
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 02:13:39 +03:00
QSL ( " studio/bc/%1/chk_gs1nocheck " ) . arg ( name ) ) . toInt ( ) ? true : false ) ;
2020-09-30 14:19:12 +03:00
if ( chkAutoHeight - > isEnabled ( ) ) {
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-28 23:42:44 +03:00
chkAutoHeight - > setChecked ( settings . value (
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 02:13:39 +03:00
QSL ( " studio/bc/%1/appearance/autoheight " ) . arg ( name ) , 1 ) . toInt ( ) ? true : false ) ;
heightb - > setValue ( settings . value ( QSL ( " studio/bc/%1/appearance/height " ) . arg ( name ) , 50.0f ) . toFloat ( ) ) ;
2020-09-30 14:19:12 +03:00
}
2021-10-13 17:31:28 +03:00
if ( chkCompliantHeight - > isEnabled ( ) ) {
chkCompliantHeight - > setChecked ( settings . value (
QSL ( " studio/bc/%1/appearance/compliantheight " ) . arg ( name ) , 1 ) . toInt ( ) ? true : false ) ;
}
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 02:13:39 +03:00
bwidth - > setValue ( settings . value ( QSL ( " studio/bc/%1/appearance/border " ) . arg ( name ) , 0 ) . toInt ( ) ) ;
spnWhitespace - > setValue ( settings . value ( QSL ( " studio/bc/%1/appearance/whitespace " ) . arg ( name ) , 0 ) . toInt ( ) ) ;
spnVWhitespace - > setValue ( settings . value ( QSL ( " studio/bc/%1/appearance/vwhitespace " ) . arg ( name ) , 0 ) . toInt ( ) ) ;
spnScale - > setValue ( settings . value ( QSL ( " studio/bc/%1/appearance/scale " ) . arg ( name ) , 1.0 ) . toFloat ( ) ) ;
btype - > setCurrentIndex ( settings . value ( QSL ( " studio/bc/%1/appearance/border_type " ) . arg ( name ) , 0 ) . toInt ( ) ) ;
2020-09-30 14:19:12 +03:00
if ( chkHRTShow - > isEnabled ( ) ) {
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-28 23:42:44 +03:00
cmbFontSetting - > setCurrentIndex ( settings . value (
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 02:13:39 +03:00
QSL ( " studio/bc/%1/appearance/font_setting " ) . arg ( name ) , 0 ) . toInt ( ) ) ;
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-28 23:42:44 +03:00
chkHRTShow - > setChecked ( settings . value (
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 02:13:39 +03:00
QSL ( " studio/bc/%1/appearance/chk_hrt_show " ) . arg ( name ) , 1 ) . toInt ( ) ? true : false ) ;
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
chkCMYK - > setChecked ( settings . value ( QSL ( " studio/bc/%1/appearance/cmyk " ) . arg ( name ) , 0 ) . toInt ( ) ? true : false ) ;
2021-10-31 00:00:31 +03:00
chkQuietZones - > setChecked ( settings . value (
QSL ( " studio/bc/%1/appearance/chk_quietzones " ) . arg ( name ) , 0 ) . toInt ( ) ? true : false ) ;
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 02:13:39 +03:00
cmbRotate - > setCurrentIndex ( settings . value ( QSL ( " studio/bc/%1/appearance/rotate " ) . arg ( name ) , 0 ) . toInt ( ) ) ;
2020-09-30 14:19:12 +03:00
if ( symbology = = BARCODE_DOTCODE | | chkDotty - > isEnabled ( ) ) {
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-28 23:42:44 +03:00
chkDotty - > setChecked ( settings . value (
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 02:13:39 +03:00
QSL ( " studio/bc/%1/appearance/chk_dotty " ) . arg ( name ) , 0 ) . toInt ( ) ? true : false ) ;
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-28 23:42:44 +03:00
spnDotSize - > setValue ( settings . value (
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 02:13:39 +03:00
QSL ( " studio/bc/%1/appearance/dot_size " ) . arg ( name ) , 0.4f / 0.5f ) . toFloat ( ) ) ;
2020-09-30 14:19:12 +03: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 02:13:39 +03:00
m_fgcolor . setRgb ( settings . value ( QSL ( " studio/bc/%1/ink/red " ) . arg ( name ) , 0 ) . toInt ( ) ,
settings . value ( QSL ( " studio/bc/%1/ink/green " ) . arg ( name ) , 0 ) . toInt ( ) ,
settings . value ( QSL ( " studio/bc/%1/ink/blue " ) . arg ( name ) , 0 ) . toInt ( ) ,
settings . value ( QSL ( " studio/bc/%1/ink/alpha " ) . arg ( name ) , 0xff ) . toInt ( ) ) ;
m_bgcolor . setRgb ( settings . value ( QSL ( " studio/bc/%1/paper/red " ) . arg ( name ) , 0xff ) . toInt ( ) ,
settings . value ( QSL ( " studio/bc/%1/paper/green " ) . arg ( name ) , 0xff ) . toInt ( ) ,
settings . value ( QSL ( " studio/bc/%1/paper/blue " ) . arg ( name ) , 0xff ) . toInt ( ) ,
settings . value ( QSL ( " studio/bc/%1/paper/alpha " ) . arg ( name ) , 0xff ) . toInt ( ) ) ;
2020-09-30 14:19:12 +03:00
}
switch ( symbology ) {
case BARCODE_CODE128 :
case BARCODE_CODE128B :
case BARCODE_GS1_128 :
case BARCODE_GS1_128_CC :
case BARCODE_HIBC_128 :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/code128/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radC128Stand " ) < < QSL ( " radC128EAN " ) < < QSL ( " radC128CSup " )
< < QSL ( " radC128HIBC " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_PDF417 :
case BARCODE_PDF417COMP :
case BARCODE_HIBC_PDF :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/pdf417/cols " ) , QSL ( " cmbPDFCols " ) ) ;
2021-10-31 00:00:31 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/pdf417/rows " ) , QSL ( " cmbPDFRows " ) ) ;
2021-11-20 14:32:30 +03:00
set_dspn_from_setting ( settings , QSL ( " studio/bc/pdf417/height_per_row " ) , QSL ( " spnPDFHeightPerRow " ) , 0.0f ) ;
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/pdf417/ecc " ) , QSL ( " cmbPDFECC " ) ) ;
set_rad_from_setting ( settings , QSL ( " studio/bc/pdf417/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radPDFStand " ) < < QSL ( " radPDFTruncated " ) < < QSL ( " radPDFHIBC " ) ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/pdf417/structapp_count " ) , QSL ( " spnPDFStructAppCount " ) , 1 ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/pdf417/structapp_index " ) , QSL ( " spnPDFStructAppIndex " ) , 0 ) ;
set_txt_from_setting ( settings , QSL ( " studio/bc/pdf417/structapp_id " ) , QSL ( " txtPDFStructAppID " ) , QSL ( " " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_MICROPDF417 :
case BARCODE_HIBC_MICPDF :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/micropdf417/cols " ) , QSL ( " cmbMPDFCols " ) ) ;
2021-11-20 14:32:30 +03:00
set_dspn_from_setting ( settings , QSL ( " studio/bc/micropdf417/height_per_row " ) , QSL ( " spnMPDFHeightPerRow " ) ,
0.0f ) ;
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/micropdf417/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radMPDFStand " ) < < QSL ( " radMPDFHIBC " ) ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/micropdf417/structapp_count " ) ,
QSL ( " spnMPDFStructAppCount " ) , 1 ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/micropdf417/structapp_index " ) ,
QSL ( " spnMPDFStructAppIndex " ) , 0 ) ;
set_txt_from_setting ( settings , QSL ( " studio/bc/micropdf417/structapp_id " ) , QSL ( " txtMPDFStructAppID " ) ,
QSL ( " " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_DOTCODE :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/dotcode/cols " ) , QSL ( " cmbDotCols " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/dotcode/mask " ) , QSL ( " cmbDotMask " ) ) ;
set_rad_from_setting ( settings , QSL ( " studio/bc/dotcode/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radDotStand " ) < < QSL ( " radDotGS1 " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/dotcode/structapp_count " ) , QSL ( " cmbDotStructAppCount " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/dotcode/structapp_index " ) , QSL ( " cmbDotStructAppIndex " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_AZTEC :
case BARCODE_HIBC_AZTEC :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/aztec/autoresizing " ) ,
QStringList ( ) < < QSL ( " radAztecAuto " ) < < QSL ( " radAztecSize " ) < < QSL ( " radAztecECC " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/aztec/size " ) , QSL ( " cmbAztecSize " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/aztec/ecc " ) , QSL ( " cmbAztecECC " ) ) ;
set_rad_from_setting ( settings , QSL ( " studio/bc/aztec/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radAztecStand " ) < < QSL ( " radAztecGS1 " ) < < QSL ( " radAztecHIBC " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/aztec/structapp_count " ) , QSL ( " cmbAztecStructAppCount " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/aztec/structapp_index " ) , QSL ( " cmbAztecStructAppIndex " ) ) ;
set_txt_from_setting ( settings , QSL ( " studio/bc/aztec/structapp_id " ) , QSL ( " txtAztecStructAppID " ) , QSL ( " " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_MSI_PLESSEY :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/msi_plessey/check_digit " ) , QSL ( " cmbMSICheck " ) ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/msi_plessey/check_text " ) , QSL ( " chkMSICheckText " ) ) ;
2021-06-10 13:15:39 +03:00
msi_plessey_ui_set ( ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_CODE11 :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/code11/check_digit " ) ,
QStringList ( ) < < QSL ( " radC11TwoCheckDigits " ) < < QSL ( " radC11OneCheckDigit " )
< < QSL ( " radC11NoCheckDigits " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
2021-05-17 22:04:00 +03:00
case BARCODE_C25STANDARD :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/c25standard/check_digit " ) ,
QStringList ( ) < < QSL ( " radC25Stand " ) < < QSL ( " radC25Check " ) < < QSL ( " radC25CheckHide " ) ) ;
2021-05-17 22:04:00 +03:00
break ;
case BARCODE_C25INTER :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/c25inter/check_digit " ) ,
QStringList ( ) < < QSL ( " radC25Stand " ) < < QSL ( " radC25Check " ) < < QSL ( " radC25CheckHide " ) ) ;
2021-05-17 22:04:00 +03:00
break ;
case BARCODE_C25IATA :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/c25iata/check_digit " ) ,
QStringList ( ) < < QSL ( " radC25Stand " ) < < QSL ( " radC25Check " ) < < QSL ( " radC25CheckHide " ) ) ;
2021-05-17 22:04:00 +03:00
break ;
case BARCODE_C25LOGIC :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/c25logic/check_digit " ) ,
QStringList ( ) < < QSL ( " radC25Stand " ) < < QSL ( " radC25Check " ) < < QSL ( " radC25CheckHide " ) ) ;
2021-05-17 22:04:00 +03:00
break ;
case BARCODE_C25IND :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/c25ind/check_digit " ) ,
QStringList ( ) < < QSL ( " radC25Stand " ) < < QSL ( " radC25Check " ) < < QSL ( " radC25CheckHide " ) ) ;
2021-05-17 22:04:00 +03:00
break ;
2020-09-30 14:19:12 +03:00
case BARCODE_CODE39 :
case BARCODE_HIBC_39 :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/code39/check_digit " ) ,
QStringList ( ) < < QSL ( " radC39Stand " ) < < QSL ( " radC39Check " ) < < QSL ( " radC39HIBC " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_EXCODE39 :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/excode39/check_digit " ) ,
QStringList ( ) < < QSL ( " radC39Stand " ) < < QSL ( " radC39Check " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_LOGMARS :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/logmars/check_digit " ) ,
QStringList ( ) < < QSL ( " radLOGMARSStand " ) < < QSL ( " radLOGMARSCheck " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_CODE16K :
2021-11-20 14:32:30 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/code16k/rows " ) , QSL ( " cmbC16kRows " ) ) ;
set_dspn_from_setting ( settings , QSL ( " studio/bc/code16k/height_per_row " ) , QSL ( " spnC16kHeightPerRow " ) ,
0.0f ) ;
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/code16k/row_sep_height " ) , QSL ( " cmbC16kRowSepHeight " ) ) ;
set_rad_from_setting ( settings , QSL ( " studio/bc/code16k/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radC16kStand " ) < < QSL ( " radC16kGS1 " ) ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/code16k/chk_no_quiet_zones " ) , QSL ( " chkC16kNoQuietZones " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_CODABAR :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/codabar/check_digit " ) ,
QStringList ( ) < < QSL ( " radCodabarStand " ) < < QSL ( " radCodabarCheckHide " ) < < QSL ( " radCodabarCheck " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_CODABLOCKF :
case BARCODE_HIBC_BLOCKF :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/codablockf/width " ) , QSL ( " cmbCbfWidth " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/codablockf/height " ) , QSL ( " cmbCbfHeight " ) ) ;
2021-11-20 14:32:30 +03:00
set_dspn_from_setting ( settings , QSL ( " studio/bc/codablockf/height_per_row " ) , QSL ( " spnCbfHeightPerRow " ) ,
0.0f ) ;
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/codablockf/row_sep_height " ) ,
QSL ( " cmbCbfRowSepHeight " ) ) ;
set_rad_from_setting ( settings , QSL ( " studio/bc/codablockf/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radCbfStand " ) < < QSL ( " radCbfHIBC " ) ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/codablockf/chk_no_quiet_zones " ) , QSL ( " chkCbfNoQuietZones " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
2021-06-19 15:11:23 +03:00
case BARCODE_DAFT :
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 02:13:39 +03:00
set_dspn_from_setting ( settings , QSL ( " studio/bc/daft/tracker_ratio " ) , QSL ( " spnDAFTTrackerRatio " ) , 25.0f ) ;
2021-06-19 15:11:23 +03:00
break ;
2020-09-30 14:19:12 +03:00
case BARCODE_DATAMATRIX :
case BARCODE_HIBC_DM :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/datamatrix/size " ) , QSL ( " cmbDM200Size " ) ) ;
set_rad_from_setting ( settings , QSL ( " studio/bc/datamatrix/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radDM200Stand " ) < < QSL ( " radDM200GS1 " ) < < QSL ( " radDM200HIBC " ) ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/datamatrix/chk_suppress_rect " ) , QSL ( " chkDMRectangle " ) ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/datamatrix/chk_allow_dmre " ) , QSL ( " chkDMRE " ) ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/datamatrix/chk_gs_sep " ) , QSL ( " chkDMGSSep " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/datamatrix/structapp_count " ) , QSL ( " cmbDMStructAppCount " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/datamatrix/structapp_index " ) , QSL ( " cmbDMStructAppIndex " ) ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/datamatrix/structapp_id " ) , QSL ( " spnDMStructAppID " ) , 1 ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/datamatrix/structapp_id2 " ) , QSL ( " spnDMStructAppID2 " ) , 1 ) ;
2020-09-30 14:19:12 +03:00
break ;
2021-09-24 15:21:24 +03:00
case BARCODE_ITF14 :
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 02:13:39 +03:00
set_chk_from_setting ( settings , QSL ( " studio/bc/itf14/chk_no_quiet_zones " ) , QSL ( " chkITF14NoQuietZones " ) ) ;
2021-09-24 15:21:24 +03:00
break ;
2020-09-30 14:19:12 +03:00
case BARCODE_QRCODE :
case BARCODE_HIBC_QR :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/qrcode/size " ) , QSL ( " cmbQRSize " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/qrcode/ecc " ) , QSL ( " cmbQRECC " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/qrcode/mask " ) , QSL ( " cmbQRMask " ) ) ;
set_rad_from_setting ( settings , QSL ( " studio/bc/qrcode/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radDM200Stand " ) < < QSL ( " radQRGS1 " ) < < QSL ( " radQRHIBC " ) ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/qrcode/chk_full_multibyte " ) , QSL ( " chkQRFullMultibyte " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/qrcode/structapp_count " ) , QSL ( " cmbQRStructAppCount " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/qrcode/structapp_index " ) , QSL ( " cmbQRStructAppIndex " ) ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/qrcode/structapp_id " ) , QSL ( " spnQRStructAppID " ) , 0 ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_RMQR :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/rmqr/size " ) , QSL ( " cmbRMQRSize " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/rmqr/ecc " ) , QSL ( " cmbRMQRECC " ) ) ;
set_rad_from_setting ( settings , QSL ( " studio/bc/rmqr/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radQRStand " ) < < QSL ( " radRMQRGS1 " ) ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/rmqr/chk_full_multibyte " ) , QSL ( " chkRMQRFullMultibyte " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_HANXIN :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/hanxin/size " ) , QSL ( " cmbHXSize " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/hanxin/ecc " ) , QSL ( " cmbHXECC " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/hanxin/mask " ) , QSL ( " cmbHXMask " ) ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/hanxin/chk_full_multibyte " ) , QSL ( " chkHXFullMultibyte " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_MICROQR :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/microqr/size " ) , QSL ( " cmbMQRSize " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/microqr/ecc " ) , QSL ( " cmbMQRECC " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/microqr/mask " ) , QSL ( " cmbMQRMask " ) ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/microqr/chk_full_multibyte " ) , QSL ( " chkMQRFullMultibyte " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_GRIDMATRIX :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/gridmatrix/size " ) , QSL ( " cmbGridSize " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/gridmatrix/ecc " ) , QSL ( " cmbGridECC " ) ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/gridmatrix/chk_full_multibyte " ) ,
QSL ( " chkGridFullMultibyte " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/gridmatrix/structapp_count " ) , QSL ( " cmbGridStructAppCount " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/gridmatrix/structapp_index " ) , QSL ( " cmbGridStructAppIndex " ) ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/gridmatrix/structapp_id " ) , QSL ( " spnGridStructAppID " ) , 0 ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_MAXICODE :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/maxicode/mode " ) , QSL ( " cmbMaxiMode " ) , 1 ) ;
set_txt_from_setting ( settings , QSL ( " studio/bc/maxicode/scm_postcode " ) , QSL ( " txtMaxiSCMPostcode " ) ,
QSL ( " " ) ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/maxicode/scm_country " ) , QSL ( " spnMaxiSCMCountry " ) , 0 ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/maxicode/scm_service " ) , QSL ( " spnMaxiSCMService " ) , 0 ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/maxicode/chk_scm_vv " ) , QSL ( " chkMaxiSCMVV " ) ) ;
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-28 23:42:44 +03:00
// 96 is ASC MH10/SC 8
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 02:13:39 +03:00
set_spn_from_setting ( settings , QSL ( " studio/bc/maxicode/spn_scm_vv " ) , QSL ( " spnMaxiSCMVV " ) , 96 ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/maxicode/structapp_count " ) , QSL ( " cmbMaxiStructAppCount " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/maxicode/structapp_index " ) , QSL ( " cmbMaxiStructAppIndex " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_CODEONE :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/codeone/size " ) , QSL ( " cmbC1Size " ) ) ;
set_rad_from_setting ( settings , QSL ( " studio/bc/codeone/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radC1Stand " ) < < QSL ( " radC1GS1 " ) ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/codeone/structapp_count " ) , QSL ( " spnC1StructAppCount " ) , 1 ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/codeone/structapp_index " ) , QSL ( " spnC1StructAppIndex " ) , 0 ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_CODE49 :
2021-11-20 14:32:30 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/code49/rows " ) , QSL ( " cmbC49Rows " ) ) ;
set_dspn_from_setting ( settings , QSL ( " studio/bc/code49/height_per_row " ) , QSL ( " spnC49HeightPerRow " ) , 0.0f ) ;
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/code49/row_sep_height " ) , QSL ( " cmbC49RowSepHeight " ) ) ;
set_rad_from_setting ( settings , QSL ( " studio/bc/code49/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radC49Stand " ) < < QSL ( " radC49GS1 " ) ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/code49/chk_no_quiet_zones " ) , QSL ( " chkC49NoQuietZones " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
2021-09-13 20:49:25 +03:00
case BARCODE_CODE93 :
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 02:13:39 +03:00
set_chk_from_setting ( settings , QSL ( " studio/bc/code93/chk_show_checks " ) , QSL ( " chkC93ShowChecks " ) ) ;
2021-09-13 20:49:25 +03:00
break ;
2020-09-30 14:19:12 +03:00
case BARCODE_DBAR_EXPSTK :
2021-11-20 14:32:30 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/dbar_expstk/colsrows " ) ,
QStringList ( ) < < QSL ( " radDBESCols " ) < < QSL ( " radDBESRows " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/dbar_expstk/cols " ) , QSL ( " cmbDBESCols " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/dbar_expstk/rows " ) , QSL ( " cmbDBESRows " ) ) ;
set_dspn_from_setting ( settings , QSL ( " studio/bc/dbar_expstk/height_per_row " ) , QSL ( " spnDBESHeightPerRow " ) ,
0.0f ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_ULTRA :
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 02:13:39 +03:00
set_rad_from_setting ( settings , QSL ( " studio/bc/ultra/autoresizing " ) ,
QStringList ( ) < < QSL ( " radUltraAuto " ) < < QSL ( " radUltraEcc " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/ultra/ecc " ) , QSL ( " cmbUltraEcc " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/ultra/revision " ) , QSL ( " cmbUltraRevision " ) ) ;
set_rad_from_setting ( settings , QSL ( " studio/bc/ultra/encoding_mode " ) ,
QStringList ( ) < < QSL ( " radUltraStand " ) < < QSL ( " radUltraGS1 " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/ultra/structapp_count " ) , QSL ( " cmbUltraStructAppCount " ) ) ;
set_cmb_from_setting ( settings , QSL ( " studio/bc/ultra/structapp_index " ) , QSL ( " cmbUltraStructAppIndex " ) ) ;
set_spn_from_setting ( settings , QSL ( " studio/bc/ultra/structapp_id " ) , QSL ( " spnUltraStructAppID " ) , 0 ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_UPCA :
case BARCODE_UPCA_CHK :
case BARCODE_UPCA_CC :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/upca/addongap " ) , QSL ( " cmbUPCAAddonGap " ) ) ;
set_dspn_from_setting ( settings , QSL ( " studio/bc/upca/guard_descent " ) , QSL ( " spnUPCAGuardDescent " ) , 5.0f ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/upca/chk_no_quiet_zones " ) , QSL ( " chkUPCANoQuietZones " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_EANX :
case BARCODE_EANX_CHK :
case BARCODE_EANX_CC :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/eanx/addongap " ) , QSL ( " cmbUPCEANAddonGap " ) ) ;
set_dspn_from_setting ( settings , QSL ( " studio/bc/eanx/guard_descent " ) , QSL ( " spnUPCEANGuardDescent " ) , 5.0f ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/eanx/chk_no_quiet_zones " ) , QSL ( " chkUPCEANNoQuietZones " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_UPCE :
case BARCODE_UPCE_CHK :
case BARCODE_UPCE_CC :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/upce/addongap " ) , QSL ( " cmbUPCEANAddonGap " ) ) ;
set_dspn_from_setting ( settings , QSL ( " studio/bc/upce/guard_descent " ) , QSL ( " spnUPCEANGuardDescent " ) , 5.0f ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/upce/chk_no_quiet_zones " ) , QSL ( " chkUPCEANNoQuietZones " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_ISBNX :
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 02:13:39 +03:00
set_cmb_from_setting ( settings , QSL ( " studio/bc/isbnx/addongap " ) , QSL ( " cmbUPCEANAddonGap " ) ) ;
set_dspn_from_setting ( settings , QSL ( " studio/bc/isbnx/guard_descent " ) , QSL ( " spnUPCEANGuardDescent " ) , 5.0f ) ;
set_chk_from_setting ( settings , QSL ( " studio/bc/isbnx/chk_no_quiet_zones " ) , QSL ( " chkUPCEANNoQuietZones " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
case BARCODE_VIN :
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 02:13:39 +03:00
set_chk_from_setting ( settings , QSL ( " studio/bc/vin/chk_import_char_prefix " ) , QSL ( " chkVINImportChar " ) ) ;
2020-09-30 14:19:12 +03:00
break ;
}
}