mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-09 13:41:59 -04:00
Add text_length
(length of text
) to zint_symbol
, and new
`BARCODE_PLAIN_HRT` option for `output_options` - for use primarily by ZXing-C++ but may be generally useful; centralize setting of HRT using new common `hrt_cpy_nochk()` etc. routines to ensure `text_length` always set PLESSEY: add show default check characters option CODE32: ignore `option_2` (check digit options) PZN: ignore `option_2` (check digit options) except when indicates PZN7 only DPD: exclude DEL from ident tag also out_maybe_mkdir: fix `utf8_to_wide()` return (Windows only) general: replace use of `strcpy()` etc. (except for test suite) with `memcpy()`, `hrt_()` etc. in lib & `cpy_str()` etc. in CLI & `cpy_bytearray_left()` in backend_qt clang-tidy: update README reflecting above backend_tcl: use sizeof(primary) to check length; tabs -> spaces general: various code fiddling docs: pandoc 3.6.2 -> 3.6.3
This commit is contained in:
parent
ddedd00d2d
commit
fef8b083b4
82 changed files with 2873 additions and 1671 deletions
|
@ -19,11 +19,11 @@ else()
|
|||
qt5_wrap_ui(zint-qt_SRCS mainWindow.ui extCLI.ui extData.ui extScale.ui extSequence.ui extExport.ui)
|
||||
endif()
|
||||
|
||||
# grpAztec.ui grpC39.ui grpCodablockF.ui grpDotCode.ui grpMailmark2D.ui grpPDF417.ui grpUPCA.ui
|
||||
# grpC11.ui grpC49.ui grpCodeOne.ui grpDPD.ui grpMaxicode.ui grpPZN.ui grpUPCEAN.ui
|
||||
# grpC128.ui grpC93.ui grpDAFT.ui grpGrid.ui grpMicroPDF.ui grpQR.ui grpUPNQR.ui
|
||||
# grpC16k.ui grpChannel.ui grpDBExtend.ui grpHX.ui grpMQR.ui grpRMQR.ui grpVIN.ui
|
||||
# grpC25.ui grpCodabar.ui grpDM.ui grpITF14.ui grpMSICheck.ui grpUltra.ui
|
||||
# grpAztec.ui grpC39.ui grpCodablockF.ui grpDotCode.ui grpMailmark2D.ui grpPDF417.ui grpUltra.ui
|
||||
# grpC11.ui grpC49.ui grpCodeOne.ui grpDPD.ui grpMaxicode.ui grpPlessey.ui grpUPCA.ui
|
||||
# grpC128.ui grpC93.ui grpDAFT.ui grpGrid.ui grpMicroPDF.ui grpPZN.ui grpUPCEAN.ui
|
||||
# grpC16k.ui grpChannel.ui grpDBExtend.ui grpHX.ui grpMQR.ui grpQR.ui grpUPNQR.ui
|
||||
# grpC25.ui grpCodabar.ui grpDM.ui grpITF14.ui grpMSICheck.ui grpRMQR.ui grpVIN.ui
|
||||
|
||||
if(APPLE)
|
||||
# https://doc.qt.io/qt-5/appicon.html
|
||||
|
|
|
@ -52,6 +52,7 @@ FORMS += extCLI.ui \
|
|||
grpMQR.ui \
|
||||
grpMSICheck.ui \
|
||||
grpPDF417.ui \
|
||||
grpPlessey.ui \
|
||||
grpPZN.ui \
|
||||
grpQR.ui \
|
||||
grpRMQR.ui \
|
||||
|
|
|
@ -44,6 +44,7 @@ FORMS += extCLI.ui \
|
|||
grpMQR.ui \
|
||||
grpMSICheck.ui \
|
||||
grpPDF417.ui \
|
||||
grpPlessey.ui \
|
||||
grpPZN.ui \
|
||||
grpQR.ui \
|
||||
grpRMQR.ui \
|
||||
|
|
50
frontend_qt/grpPlessey.ui
Normal file
50
frontend_qt/grpPlessey.ui
Normal file
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>grpPlessey</class>
|
||||
<widget class="QWidget" name="grpPlessey">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>254</width>
|
||||
<height>131</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="vLayoutPlessey">
|
||||
<property name="contentMargins">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="chkPlesseyShowChecks">
|
||||
<property name="text">
|
||||
<string>Show Chec&k Characters in Text</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Display the 2 check characters in
|
||||
the Human Readable Text</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
|
@ -2206,6 +2206,17 @@ void MainWindow::change_options()
|
|||
connect(m_btnHeightPerRowDisable, SIGNAL(clicked(bool)), SLOT(height_per_row_disable()));
|
||||
connect(m_btnHeightPerRowDefault, SIGNAL(clicked(bool)), SLOT(height_per_row_default()));
|
||||
|
||||
} else if (symbology == BARCODE_PLESSEY) {
|
||||
QFile file(QSL(":/grpPlessey.ui"));
|
||||
if (file.open(QIODevice::ReadOnly)) {
|
||||
m_optionWidget = uiload.load(&file);
|
||||
file.close();
|
||||
load_sub_settings(settings, symbology);
|
||||
vLayoutSpecific->addWidget(m_optionWidget);
|
||||
grpSpecific->show();
|
||||
connect(get_widget(QSL("chkPlesseyShowChecks")), SIGNAL(toggled(bool)), SLOT(update_preview()));
|
||||
}
|
||||
|
||||
} else if (symbology == BARCODE_ULTRA) {
|
||||
QFile file(QSL(":/grpUltra.ui"));
|
||||
if (!file.open(QIODevice::ReadOnly))
|
||||
|
@ -3239,6 +3250,13 @@ void MainWindow::update_preview()
|
|||
}
|
||||
break;
|
||||
|
||||
case BARCODE_PLESSEY:
|
||||
m_bc.bc.setSymbol(BARCODE_PLESSEY);
|
||||
if (get_chk_val(QSL("chkPlesseyShowChecks"))) {
|
||||
m_bc.bc.setOption2(1);
|
||||
}
|
||||
break;
|
||||
|
||||
case BARCODE_ULTRA:
|
||||
m_bc.bc.setSymbol(BARCODE_ULTRA);
|
||||
if (get_rad_val(QSL("radUltraEcc")))
|
||||
|
@ -4385,6 +4403,10 @@ void MainWindow::save_sub_settings(QSettings &settings, int symbology)
|
|||
settings.setValue(QSL("studio/bc/dbar_expstk/height_per_row"), get_dspn_val(QSL("spnDBESHeightPerRow")));
|
||||
break;
|
||||
|
||||
case BARCODE_PLESSEY:
|
||||
settings.setValue(QSL("studio/bc/plessey/chk_show_checks"), get_chk_val(QSL("chkPlesseyShowChecks")));
|
||||
break;
|
||||
|
||||
case BARCODE_ULTRA:
|
||||
settings.setValue(QSL("studio/bc/ultra/autoresizing"), get_rad_grp_index(
|
||||
QStringList() << QSL("radUltraAuto") << QSL("radUltraEcc")));
|
||||
|
@ -4824,6 +4846,10 @@ void MainWindow::load_sub_settings(QSettings &settings, int symbology)
|
|||
0.0f);
|
||||
break;
|
||||
|
||||
case BARCODE_PLESSEY:
|
||||
set_chk_from_setting(settings, QSL("studio/bc/plessey/chk_show_checks"), QSL("chkPlesseyShowChecks"));
|
||||
break;
|
||||
|
||||
case BARCODE_ULTRA:
|
||||
set_rad_from_setting(settings, QSL("studio/bc/ultra/autoresizing"),
|
||||
QStringList() << QSL("radUltraAuto") << QSL("radUltraEcc"));
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
<file>grpMQR.ui</file>
|
||||
<file>grpMSICheck.ui</file>
|
||||
<file>grpPDF417.ui</file>
|
||||
<file>grpPlessey.ui</file>
|
||||
<file>grpPZN.ui</file>
|
||||
<file>grpQR.ui</file>
|
||||
<file>grpRMQR.ui</file>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue