Use zint-64.svg from https://github.com/frhun/flathub for smoother icons, props frhun

This commit is contained in:
gitlost 2021-05-20 18:22:57 +01:00
parent f3a94f0c0c
commit cfcb586f4b
17 changed files with 158 additions and 218 deletions

7
README
View File

@ -275,6 +275,9 @@ Bugs:
- Fix QPainterPath dependency for Visual Studio
Version 2.9.2 not released yet:
***Incompatible change**
- Add halign to struct zint_vector_string NOTE: backward incompatible UPC/EAN
Changes:
- Command line switches -d or -i for code data may now be at any position.
- Add rotation for vector formats
@ -287,8 +290,8 @@ Changes:
- Remove backend Qt interface and incorporate into frontend GUI
- Add ZPL compatibility mode (preliminary)
- Remove version info from zint.h and put in zintconfig.h via zintconfig.h.in
- Add halign to struct zint_vector_string NOTE: backward incompatible UPC/EAN
- Add ZBarcode_Cap()
- Add GUI symbology filter, separate settings for each symbology
- Require cmake 3.5, use PNG::PNG and add Qt6 build option
- Make library fully stack-based so reentrant apart from file operations
- Performance improvements (large data) for Aztec, Han Xin, Grid Matrix, PDF417
@ -300,6 +303,8 @@ Changes:
- png.c: Use palette for file size savings
- tif.c: Use palette/bilevel/LZW to reduce file size, alpha/CMYK support
- Option gs1parens (GS1PARENS_MODE)
- MAXICODE: Rejig raster output to more closely match ISO 16023:2000
- C25STANDARD/C25INTER/C25IATA/C25LOGIC/C25IND: add check digit option (#216)
Bugs:
- Code16k selects GS1 mode by default in GUI

View File

@ -14,8 +14,8 @@
<string>Input Data</string>
</property>
<property name="windowIcon">
<iconset>
<normaloff>images/zint.png</normaloff>images/zint.png</iconset>
<iconset resource="resources.qrc">
<normaloff>:res/zint-qt.ico</normaloff>:res/zint-qt.ico</iconset>
</property>
<property name="modal">
<bool>true</bool>

View File

@ -32,8 +32,8 @@
<string>Export Barcodes</string>
</property>
<property name="windowIcon">
<iconset>
<normaloff>images/zint.png</normaloff>images/zint.png</iconset>
<iconset resource="resources.qrc">
<normaloff>:res/zint-qt.ico</normaloff>:res/zint-qt.ico</iconset>
</property>
<widget class="QLineEdit" name="linDestPath">
<property name="geometry">

View File

@ -14,8 +14,8 @@
<string>Sequence Export</string>
</property>
<property name="windowIcon">
<iconset>
<normaloff>images/zint.png</normaloff>images/zint.png</iconset>
<iconset resource="resources.qrc">
<normaloff>:res/zint-qt.ico</normaloff>:res/zint-qt.ico</iconset>
</property>
<property name="modal">
<bool>true</bool>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -30,7 +30,7 @@
</property>
<property name="windowIcon">
<iconset resource="resources.qrc">
<normaloff>:/images/zint.png</normaloff>:/images/zint.png</iconset>
<normaloff>:/res/zint-qt.ico</normaloff>:/res/zint-qt.ico</iconset>
</property>
<property name="autoFillBackground">
<bool>false</bool>
@ -878,11 +878,11 @@ to delimit GS1 application identifiers
<item row="7" column="0" colspan="2">
<widget class="QCheckBox" name="chkHRTShow">
<property name="toolTip">
<string>Show text in image
<string>Show Human Readable Text in image
(ignored if disabled)</string>
</property>
<property name="text">
<string>Show H&amp;uman Readable Text</string>
<string>Show Te&amp;xt</string>
</property>
<property name="checked">
<bool>true</bool>
@ -1083,7 +1083,7 @@ to delimit GS1 application identifiers
<string>About Zint</string>
</property>
<property name="text">
<string>&amp;About</string>
<string>Abo&amp;ut</string>
</property>
</widget>
</item>
@ -1133,10 +1133,10 @@ to delimit GS1 application identifiers
<item row="0" column="5">
<widget class="QPushButton" name="btnExit">
<property name="toolTip">
<string>Quit Zint Barcode Studio</string>
<string>Exit Zint Barcode Studio</string>
</property>
<property name="text">
<string>E&amp;xit</string>
<string>&amp;Quit</string>
</property>
</widget>
</item>

View File

@ -143,7 +143,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags fl)
int cnt = metaObject()->enumerator(0).keyCount();
for (int i = 0; i < cnt; i++) {
bstyle->addItem(metaObject()->enumerator(0).key(i));
bstyle->setItemText(i, bstyle_text[i]);
bstyle->setItemText(i, tr(bstyle_text[i]));
}
#ifdef _WIN32
bstyle->setMaxVisibleItems(cnt); /* Apart from increasing combo size, seems to be needed for filter to work */
@ -155,8 +155,8 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags fl)
bstyle->setCurrentIndex(settings.value("studio/symbology", 10).toInt());
txtData->setText(settings.value("studio/data", "Your Data Here!").toString());
txtComposite->setText(settings.value("studio/composite_text", "Your Data Here!").toString());
txtData->setText(settings.value("studio/data", tr("Your Data Here!")).toString());
txtComposite->setText(settings.value("studio/composite_text", tr("Your Data Here!")).toString());
chkComposite->setChecked(settings.value("studio/chk_composite").toInt() ? true : false);
cmbCompType->setCurrentIndex(settings.value("studio/comp_type", 0).toInt());
cmbECI->setCurrentIndex(settings.value("studio/appearance/eci", 0).toInt());
@ -293,7 +293,7 @@ bool MainWindow::save()
QString suffix;
save_dialog.setAcceptMode(QFileDialog::AcceptSave);
save_dialog.setWindowTitle("Save Barcode Image");
save_dialog.setWindowTitle(tr("Save Barcode Image"));
save_dialog.setDirectory(settings.value("studio/default_dir", QDir::toNativeSeparators(QDir::homePath())).toString());
#ifdef NO_PNG
@ -305,21 +305,21 @@ bool MainWindow::save()
#endif
if (QString::compare(suffix, "png", Qt::CaseInsensitive) == 0)
save_dialog.selectNameFilter("Portable Network Graphic (*.png)");
save_dialog.selectNameFilter(tr("Portable Network Graphic (*.png)"));
if (QString::compare(suffix, "eps", Qt::CaseInsensitive) == 0)
save_dialog.selectNameFilter("Encapsulated PostScript (*.eps)");
save_dialog.selectNameFilter(tr("Encapsulated PostScript (*.eps)"));
if (QString::compare(suffix, "gif", Qt::CaseInsensitive) == 0)
save_dialog.selectNameFilter("Graphics Interchange Format (*.gif)");
save_dialog.selectNameFilter(tr("Graphics Interchange Format (*.gif)"));
if (QString::compare(suffix, "svg", Qt::CaseInsensitive) == 0)
save_dialog.selectNameFilter("Scalable Vector Graphic (*.svg)");
save_dialog.selectNameFilter(tr("Scalable Vector Graphic (*.svg)"));
if (QString::compare(suffix, "bmp", Qt::CaseInsensitive) == 0)
save_dialog.selectNameFilter("Windows Bitmap (*.bmp)");
save_dialog.selectNameFilter(tr("Windows Bitmap (*.bmp)"));
if (QString::compare(suffix, "pcx", Qt::CaseInsensitive) == 0)
save_dialog.selectNameFilter("ZSoft PC Painter Image (*.pcx)");
save_dialog.selectNameFilter(tr("ZSoft PC Painter Image (*.pcx)"));
if (QString::compare(suffix, "emf", Qt::CaseInsensitive) == 0)
save_dialog.selectNameFilter("Enhanced Metafile (*.emf)");
save_dialog.selectNameFilter(tr("Enhanced Metafile (*.emf)"));
if (QString::compare(suffix, "tif", Qt::CaseInsensitive) == 0)
save_dialog.selectNameFilter("Tagged Image File Format (*.tif)");
save_dialog.selectNameFilter(tr("Tagged Image File Format (*.tif)"));
if (save_dialog.exec()) {
filename = save_dialog.selectedFiles().at(0);
@ -415,7 +415,7 @@ int MainWindow::open_sequence_dialog()
void MainWindow::on_fgcolor_clicked()
{
QColor temp = m_fgcolor;
m_fgcolor=QColorDialog::getColor(m_fgcolor,this,"Set foreground colour",QColorDialog::ShowAlphaChannel);
m_fgcolor = QColorDialog::getColor(m_fgcolor, this, tr("Set foreground colour"), QColorDialog::ShowAlphaChannel);
if (m_fgcolor.isValid()) {
update_preview();
} else {
@ -426,7 +426,7 @@ void MainWindow::on_fgcolor_clicked()
void MainWindow::on_bgcolor_clicked()
{
QColor temp = m_bgcolor;
m_bgcolor=QColorDialog::getColor(m_bgcolor,this,"Set background colour",QColorDialog::ShowAlphaChannel);
m_bgcolor = QColorDialog::getColor(m_bgcolor, this, tr("Set background colour"), QColorDialog::ShowAlphaChannel);
if (m_bgcolor.isValid()) {
update_preview();
} else {
@ -613,8 +613,7 @@ void MainWindow::change_options()
btype->setItemText(0, tr("No border"));
combobox_item_enabled(cmbFontSetting, 1, true);
if (symbology == BARCODE_CODE128)
{
if (symbology == BARCODE_CODE128) {
QFile file(":/grpC128.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -627,10 +626,8 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("radC128CSup"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radC128EAN"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radC128HIBC"), SIGNAL(clicked( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_PDF417)
{
} else if (symbology == BARCODE_PDF417) {
QFile file(":/grpPDF417.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -643,10 +640,7 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("radPDFStand"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radPDFHIBC"), SIGNAL(clicked( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_MICROPDF417)
{
} else if (symbology == BARCODE_MICROPDF417) {
QFile file(":/grpMicroPDF.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -655,10 +649,8 @@ void MainWindow::change_options()
tabMain->insertTab(1, m_optionWidget, tr("Micro PDF41&7"));
connect(m_optionWidget->findChild<QObject*>("cmbMPDFCols"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radMPDFStand"), SIGNAL(toggled( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_DOTCODE)
{
} else if (symbology == BARCODE_DOTCODE) {
QFile file(":/grpDotCode.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -669,10 +661,8 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("cmbDotMask"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radDotStand"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radDotGS1"), SIGNAL(clicked( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_AZTEC)
{
} else if (symbology == BARCODE_AZTEC) {
QFile file(":/grpAztec.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -687,10 +677,8 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("radAztecStand"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radAztecGS1"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radAztecHIBC"), SIGNAL(clicked( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_MSI_PLESSEY)
{
} else if (symbology == BARCODE_MSI_PLESSEY) {
QFile file(":/grpMSICheck.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -698,10 +686,8 @@ void MainWindow::change_options()
file.close();
tabMain->insertTab(1, m_optionWidget, tr("MSI Pless&ey"));
connect(m_optionWidget->findChild<QObject*>("cmbMSICheck"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
}
if (symbology == BARCODE_CODE11)
{
} else if (symbology == BARCODE_CODE11) {
QFile file(":/grpC11.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -711,11 +697,9 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("radC11TwoCheckDigits"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radC11OneCheckDigit"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radC11NoCheckDigits"), SIGNAL(clicked( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_C25STANDARD || symbology == BARCODE_C25INTER || symbology == BARCODE_C25IATA
|| symbology == BARCODE_C25LOGIC || symbology == BARCODE_C25IND)
{
} else if (symbology == BARCODE_C25STANDARD || symbology == BARCODE_C25INTER || symbology == BARCODE_C25IATA
|| symbology == BARCODE_C25LOGIC || symbology == BARCODE_C25IND) {
QFile file(":/grpC25.ui");
if (file.open(QIODevice::ReadOnly)) {
m_optionWidget = uiload.load(&file);
@ -726,10 +710,8 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("radC25Check"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radC25CheckHide"), SIGNAL(clicked( bool )), SLOT(update_preview()));
}
}
if ((symbology == BARCODE_CODE39) || (symbology == BARCODE_EXCODE39))
{
} else if (symbology == BARCODE_CODE39 || symbology == BARCODE_EXCODE39) {
QFile file(":/grpC39.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -738,36 +720,29 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("radC39Stand"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radC39Check"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radC39HIBC"), SIGNAL(clicked( bool )), SLOT(update_preview()));
if (symbology == BARCODE_EXCODE39)
{
if (symbology == BARCODE_EXCODE39) {
tabMain->insertTab(1, m_optionWidget, tr("Cod&e 39 Extended"));
if(m_optionWidget->findChild<QRadioButton*>("radC39HIBC")->isChecked() == true)
{
if (m_optionWidget->findChild<QRadioButton*>("radC39HIBC")->isChecked()) {
m_optionWidget->findChild<QRadioButton*>("radC39HIBC")->setChecked(false);
m_optionWidget->findChild<QRadioButton*>("radC39Stand")->setChecked(true);
}
m_optionWidget->findChild<QRadioButton*>("radC39HIBC")->setEnabled(false);
}
else {
} else {
tabMain->insertTab(1, m_optionWidget, tr("Cod&e 39"));
m_optionWidget->findChild<QRadioButton*>("radC39HIBC")->setEnabled(true);
}
}
if (symbology == BARCODE_LOGMARS)
{
} else if (symbology == BARCODE_LOGMARS) {
QFile file(":/grpLOGMARS.ui");
if (!file.open(QIODevice::ReadOnly))
return;
m_optionWidget = uiload.load(&file);
file.close();
tabMain->insertTab(1,m_optionWidget,tr("LOGMARS"));
tabMain->insertTab(1, m_optionWidget, tr("LOGM&ARS"));
connect(m_optionWidget->findChild<QObject*>("radLOGMARSStand"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radLOGMARSCheck"), SIGNAL(clicked( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_CODE16K)
{
} else if (symbology == BARCODE_CODE16K) {
QFile file(":/grpC16k.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -777,21 +752,17 @@ void MainWindow::change_options()
btype->setItemText(0, tr("Default (bind)"));
connect(m_optionWidget->findChild<QObject*>("cmbC16kRowSepHeight"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radC16kStand"), SIGNAL(toggled( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_CODABAR)
{
} else if (symbology == BARCODE_CODABAR) {
QFile file(":/grpCodabar.ui");
if (!file.open(QIODevice::ReadOnly))
return;
m_optionWidget = uiload.load(&file);
file.close();
tabMain->insertTab(1,m_optionWidget,tr("Codabar"));
tabMain->insertTab(1, m_optionWidget, tr("Cod&abar"));
connect(m_optionWidget->findChild<QObject*>("chkCodabarCheck"), SIGNAL(clicked( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_CODABLOCKF)
{
} else if (symbology == BARCODE_CODABLOCKF) {
QFile file (":/grpCodablockF.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -804,16 +775,14 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("cmbCbfRowSepHeight"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radCbfStand"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radCbfHIBC"), SIGNAL(clicked( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_DATAMATRIX)
{
} else if (symbology == BARCODE_DATAMATRIX) {
QFile file(":/grpDM.ui");
if (!file.open(QIODevice::ReadOnly))
return;
m_optionWidget = uiload.load(&file);
file.close();
tabMain->insertTab(1,m_optionWidget,tr("Data Matrix"));
tabMain->insertTab(1, m_optionWidget, tr("D&ata Matrix"));
connect(m_optionWidget->findChild<QObject*>("radDM200Stand"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radDM200GS1"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radDM200HIBC"), SIGNAL(clicked( bool )), SLOT(update_preview()));
@ -821,15 +790,11 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("chkDMRectangle"), SIGNAL(stateChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("chkDMRE"), SIGNAL(stateChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("chkDMGSSep"), SIGNAL(stateChanged( int )), SLOT(update_preview()));
}
if (symbology == BARCODE_ITF14)
{
} else if (symbology == BARCODE_ITF14) {
btype->setItemText(0, tr("Default (box, non-zero width)"));
}
if (symbology == BARCODE_QRCODE)
{
} else if (symbology == BARCODE_QRCODE) {
QFile file(":/grpQR.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -843,10 +808,8 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("radQRGS1"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radQRHIBC"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("chkQRFullMultibyte"), SIGNAL(stateChanged( int )), SLOT(update_preview()));
}
if (symbology == BARCODE_RMQR)
{
} else if (symbology == BARCODE_RMQR) {
QFile file(":/grpRMQR.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -858,10 +821,8 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("radRMQRStand"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radRMQRGS1"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("chkRMQRFullMultibyte"), SIGNAL(stateChanged( int )), SLOT(update_preview()));
}
if (symbology == BARCODE_HANXIN)
{
} else if (symbology == BARCODE_HANXIN) {
QFile file(":/grpHX.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -873,10 +834,8 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("cmbHXECC"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("cmbHXMask"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("chkHXFullMultibyte"), SIGNAL(stateChanged( int )), SLOT(update_preview()));
}
if (symbology == BARCODE_MICROQR)
{
} else if (symbology == BARCODE_MICROQR) {
QFile file(":/grpMQR.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -887,23 +846,19 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("cmbMQRECC"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("cmbMQRMask"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("chkMQRFullMultibyte"), SIGNAL(stateChanged( int )), SLOT(update_preview()));
}
if (symbology == BARCODE_GRIDMATRIX)
{
} else if (symbology == BARCODE_GRIDMATRIX) {
QFile file(":/grpGrid.ui");
if (!file.open(QIODevice::ReadOnly))
return;
m_optionWidget = uiload.load(&file);
file.close();
tabMain->insertTab(1,m_optionWidget,tr("Grid Matrix"));
tabMain->insertTab(1, m_optionWidget, tr("Grid M&atrix"));
connect(m_optionWidget->findChild<QObject*>("cmbGridSize"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("cmbGridECC"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("chkGridFullMultibyte"), SIGNAL(stateChanged( int )), SLOT(update_preview()));
}
if (symbology == BARCODE_MAXICODE)
{
} else if (symbology == BARCODE_MAXICODE) {
QFile file(":/grpMaxicode.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -916,10 +871,8 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("chkMaxiSCMVV"), SIGNAL(stateChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("chkMaxiSCMVV"), SIGNAL(stateChanged( int )), SLOT(maxi_primary()));
connect(m_optionWidget->findChild<QObject*>("spnMaxiSCMVV"), SIGNAL(valueChanged( int )), SLOT(update_preview()));
}
if (symbology == BARCODE_CHANNEL)
{
} else if (symbology == BARCODE_CHANNEL) {
QFile file(":/grpChannel.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -927,10 +880,8 @@ void MainWindow::change_options()
file.close();
tabMain->insertTab(1, m_optionWidget, tr("Channel Cod&e"));
connect(m_optionWidget->findChild<QObject*>("cmbChannel"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
}
if (symbology == BARCODE_CODEONE)
{
} else if (symbology == BARCODE_CODEONE) {
QFile file(":/grpCodeOne.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -939,10 +890,8 @@ void MainWindow::change_options()
tabMain->insertTab(1, m_optionWidget, tr("Code On&e"));
connect(m_optionWidget->findChild<QObject*>("cmbC1Size"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radC1GS1"), SIGNAL(toggled( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_CODE49)
{
} else if (symbology == BARCODE_CODE49) {
QFile file(":/grpC49.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -951,10 +900,7 @@ void MainWindow::change_options()
tabMain->insertTab(1, m_optionWidget, tr("Cod&e 49"));
connect(m_optionWidget->findChild<QObject*>("cmbC49RowSepHeight"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radC49GS1"), SIGNAL(toggled( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_DBAR_EXPSTK)
{
} else if (symbology == BARCODE_DBAR_EXPSTK) {
QFile file(":/grpDBExtend.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -962,10 +908,8 @@ void MainWindow::change_options()
file.close();
tabMain->insertTab(1, m_optionWidget, tr("GS1 DataBar Stack&ed"));
connect(m_optionWidget->findChild<QObject*>("cmbCols"), SIGNAL(currentIndexChanged ( int )), SLOT(update_preview()));
}
if (symbology == BARCODE_ULTRA)
{
} else if (symbology == BARCODE_ULTRA) {
QFile file(":/grpUltra.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -977,27 +921,23 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("cmbUltraEcc"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radUltraStand"), SIGNAL(clicked( bool )), SLOT(update_preview()));
connect(m_optionWidget->findChild<QObject*>("radUltraGS1"), SIGNAL(clicked( bool )), SLOT(update_preview()));
}
if (symbology == BARCODE_UPCA || symbology == BARCODE_UPCA_CHK || symbology == BARCODE_UPCA_CC)
{
} else if (symbology == BARCODE_UPCA || symbology == BARCODE_UPCA_CHK || symbology == BARCODE_UPCA_CC) {
QFile file(":/grpUPCA.ui");
if (!file.open(QIODevice::ReadOnly))
return;
m_optionWidget = uiload.load(&file);
file.close();
tabMain->insertTab(1, m_optionWidget, tr("UPC-A"));
tabMain->insertTab(1, m_optionWidget, tr("UPC-&A"));
combobox_item_enabled(cmbFontSetting, 1, false);
if (cmbFontSetting->currentIndex() == 1) {
cmbFontSetting->setCurrentIndex(0);
}
connect(m_optionWidget->findChild<QObject*>("cmbUPCAAddonGap"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
}
if (symbology == BARCODE_EANX || symbology == BARCODE_EANX_CHK || symbology == BARCODE_EANX_CC
} else if (symbology == BARCODE_EANX || symbology == BARCODE_EANX_CHK || symbology == BARCODE_EANX_CC
|| symbology == BARCODE_UPCE || symbology == BARCODE_UPCE_CHK || symbology == BARCODE_UPCE_CC
|| symbology == BARCODE_ISBNX)
{
|| symbology == BARCODE_ISBNX) {
QFile file(":/grpUPCEAN.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -1015,10 +955,8 @@ void MainWindow::change_options()
cmbFontSetting->setCurrentIndex(0);
}
connect(m_optionWidget->findChild<QObject*>("cmbUPCEANAddonGap"), SIGNAL(currentIndexChanged( int )), SLOT(update_preview()));
}
if (symbology == BARCODE_VIN)
{
} else if (symbology == BARCODE_VIN) {
QFile file(":/grpVIN.ui");
if (!file.open(QIODevice::ReadOnly))
return;
@ -1028,8 +966,7 @@ void MainWindow::change_options()
connect(m_optionWidget->findChild<QObject*>("chkVINImportChar"), SIGNAL(clicked( bool )), SLOT(update_preview()));
}
switch (symbology)
{
switch (symbology) {
case BARCODE_CODE128:
case BARCODE_EANX:
case BARCODE_UPCA:
@ -1046,6 +983,7 @@ void MainWindow::change_options()
grpComposite->hide();
break;
}
cmbECI->setEnabled(m_bc.bc.supportsECI(symbology)); /* Will need checking again in update_preview() as encoding mode dependent (HIBC) */
chkGS1Parens->setEnabled(m_bc.bc.supportsGS1(symbology)); /* Ditto (GS1) */
chkRInit->setEnabled(m_bc.bc.supportsReaderInit(symbology)); /* Ditto (HIBC and GS1) */
@ -1073,8 +1011,7 @@ void MainWindow::change_options()
void MainWindow::composite_ui_set()
{
if (!grpComposite->isHidden() && chkComposite->isChecked())
{
if (!grpComposite->isHidden() && chkComposite->isChecked()) {
lblCompType->setEnabled(true);
cmbCompType->setEnabled(true);
lblComposite->setEnabled(true);
@ -1085,9 +1022,7 @@ void MainWindow::composite_ui_set()
radioButton->setChecked(true);
}
}
}
else
{
} else {
lblCompType->setEnabled(false);
cmbCompType->setEnabled(false);
lblComposite->setEnabled(false);

View File

@ -58,7 +58,7 @@ BEGIN
VALUE "InternalName", "qtZint"
VALUE "LegalCopyright", "Copyright © 2020 Robin Stuart & BogDan Vatra"
VALUE "LegalCopyright", "Copyright © 2021 Robin Stuart & BogDan Vatra"
VALUE "License", "GNU General Public License version 3"
@ -84,4 +84,4 @@ BEGIN
END
100 ICON MOVEABLE PURE LOADONCALL DISCARDABLE "zint.ico"
100 ICON MOVEABLE PURE LOADONCALL DISCARDABLE "zint-qt.ico"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

View File

@ -1,37 +1,33 @@
<RCC>
<qresource prefix="/">
<file>images/zoomout.png</file>
<file>images/rotateleft.png</file>
<file>images/rotateright.png</file>
<file>images/zoomin.png</file>
<file>grpAztec.ui</file>
<file>grpC11.ui</file>
<file>grpC128.ui</file>
<file>grpC16k.ui</file>
<file>grpC25.ui</file>
<file>grpC39.ui</file>
<file>grpDM.ui</file>
<file>grpMSICheck.ui</file>
<file>grpC128.ui</file>
<file>grpChannel.ui</file>
<file>grpLOGMARS.ui</file>
<file>grpMicroPDF.ui</file>
<file>grpMaxicode.ui</file>
<file>grpPDF417.ui</file>
<file>grpC16k.ui</file>
<file>grpMQR.ui</file>
<file>grpQR.ui</file>
<file>grpCodeOne.ui</file>
<file>grpC49.ui</file>
<file>grpGrid.ui</file>
<file>grpDBExtend.ui</file>
<file>images/zint.png</file>
<file>grpHX.ui</file>
<file>grpDotCode.ui</file>
<file>grpChannel.ui</file>
<file>grpCodabar.ui</file>
<file>grpCodablockF.ui</file>
<file>grpCodeOne.ui</file>
<file>grpDBExtend.ui</file>
<file>grpDM.ui</file>
<file>grpDotCode.ui</file>
<file>grpGrid.ui</file>
<file>grpHX.ui</file>
<file>grpLOGMARS.ui</file>
<file>grpMaxicode.ui</file>
<file>grpMicroPDF.ui</file>
<file>grpMQR.ui</file>
<file>grpMSICheck.ui</file>
<file>grpPDF417.ui</file>
<file>grpQR.ui</file>
<file>grpRMQR.ui</file>
<file>grpUltra.ui</file>
<file>grpUPCA.ui</file>
<file>grpUPCEAN.ui</file>
<file>grpVIN.ui</file>
<file>res/zint-qt.ico</file>
</qresource>
</RCC>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -1,8 +1,12 @@
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Zint Barcode Studio
GenericName=Zint Barcode Studio
GenericName=Barcode Generator
Comment=GUI for the creation of barcodes
Exec=zint-qt
Icon=zint
Icon=zint-qt
Terminal=false
Type=Application
Categories=Utility;
Keywords=barcode;studio;

BIN
zint.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 B