Commit graph

124 commits

Author SHA1 Message Date
Schaich
7e3d0f2405 Fix compilation with Qt <= 5.12
The `__has_feature` macro is a clang extension that works like a macro. If
zint is being compiled using a compiler other then clang, `__has_feature`
is not defined. As it is not defined, it cannot be used as a function call
expression. Any environment that doesn't have `__has_feature` should prevent
the preprocessor from "seeing" the invokation of the macro, as invoking
undefined macros is not supported by the C language.

The usual procedure to assure this would be a construction like
  \#if defined(__has_feature)
  \#  if __has_feature(...)
  \#  endif
  \#endif

which, combined with the GCC check we have here, would result in a
3 level nesting of if and elseif expressions .. and that's without
covering microsoft's compiler.

For this purpose, Qt >= 5.13 has been defining the `__has_feature`
macro on non-clang environments, while defining all (clang) features
to not be available. This allows to write feature checks with "less"
nesting, as we have here.

Mimic Qt-5.13's behavior and provide the `__has_feature` macro if
it's not provided otherwise (either by clang or by Qt), allowing the
function-call-like expression to be parsed on those systems.
2021-11-11 15:51:34 +09:00
gitlost
4e72a541f7 PDF417: fix cols/rows calculation to require multiple <= 928 codewords;
add specify rows option (option_3) (#204);
  warn if cols increased from specified (back-incompatible);
  move table definitions from "pdf417.h" to new "pdf417_tabs.h" and
  make INTERNAL_DATA and share with composite.c (saves ~10K);
  prefix routines and tables with "pdf_";
  some small performance improvements through if/elses, pdf_textprocess()
  & pdf_numbprocess() loop simplifications
MICROQR: fix debug access crash on printing non-NUL-terminating binary
DATAMATRIX: fix missing ++ from "[tp]" at C40/TEXT EOD processing of GS1
  (though probably never reached); use "[tp++]" throughout
Add const to static tables missing it and also to some variables
Change "debug" -> "debug_print" throughout
2021-10-30 22:00:31 +01:00
gitlost
72eac41c34 Add compliant height, using ZINT_COMPLIANT_HEIGHT flag for back-compatibility
Rename barcode funcs to same as BARCODE_XXX name
library: barcode funcs array for dispatch, used for ZBarcode_ValidID() also
general: change is_sane() comparison to nonzero from ZINT_ERROR_INVALID_OPTION
MAILMARK: fuller error messages
CODABAR: add option to show check character in HRT
zint.h: use 0xNNNN for OR-able defines
GUI: add guard descent height reset button, add Zint version to window title,
  static get_zint_version() method, use QStringLiteral (QSL shorthand),
  use SIGNAL(toggled()), add errtxt "popup" and status bar, add icons,
  add saveAs shortcut, add main menu, context menus and actions, add help,
  reset_view() -> reset_colours(), add copy to clipboard as EMF/GIF/PNG/TIF,
  lessen triggering of update_preview(), shorten names of getters/setters,
  simplify/shorten some update_preview() logic in switch,
  CODEONE disable structapp for Version S
qzint.cpp: add on_errored signal, add missing getters, add test
2021-10-09 00:13:39 +01:00
gitlost
c0791ad85e 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 21:42:44 +01:00
gitlost
4284f3c578 Add output_options BARCODE_QUIET_ZONES and BARCODE_NO_QUIET_ZONES 2021-09-24 13:21:24 +01:00
gitlost
4009c86c5f UPC/EAN: Add guard_bar descent (guard_descent)
zint.h: Adjust field order to improve alignments; encoded_data 143 -> 144
2021-09-22 00:04:15 +01:00
gitlost
492d9a41c5 GUI: remove refs to AspectRatioMode and mark as legacy (#243) 2021-09-05 21:52:00 +01:00
gitlost
b7adbf4e5b vector: Add width to struct zint_vector_circle: fix qzint render 2021-08-23 22:54:27 +01:00
gitlost
3388f98c00 vector: Add width to struct zint_vector_circle & use for MaxiCode bullseye
**Incompatible change**
2021-08-22 13:59:01 +01:00
gitlost
62cc9e49f5 Bump version to 2.10.0.9 (dev) 2021-08-14 16:11:25 +01:00
gitlost
a04a44f1e6 Update zint version to 2.10.0 2021-08-10 16:14:10 +01:00
gitlost
2e84fd5157 Replace WARN_ZPL_COMPAT with GS1NOCHECK_MODE 2021-07-13 17:39:03 +01:00
atom
3e995c70fb Simpily CMakeLists 2021-07-07 12:39:21 +03:00
gitlost
54947fb435 Restore backend_qt - static only now; qzint: legacy support for renamed methods 2021-06-24 18:31:08 +01:00
Robin Stuart
f9b639ed9c Move QZint class into frontend binary 2020-11-22 20:17:46 +00:00
Robin Stuart
3eb31fe3f8 Take version information from CmakeLists.txt
Warning: potential incompatibility because version number is no longer stored in zint.h
2020-11-22 11:29:45 +00:00
gitlost
943ba79866 AZTEC: fix bit-stuffing; AZTECRUNE: fix >= 128; DATAMATRIX: eod shift -> 0 pad; Qt6 2020-10-26 12:21:43 +00:00
gitlost
90012ab23f EANX_CC: allow for check digit + buffer overflow for too long add-on; GUI text colour; cmake 3.0 2020-10-05 23:22:06 +01:00
gitlost
36c19053d7 vector.c: string halign; POSTNET/PLANET: 1 module space; ZBarcode_Cap(); GUI settings 2020-09-30 12:19:12 +01:00
gitlost
ac7b5dd282 #206 build: version to 2.9.1.9; ZINT_VERSION_BUILD (9 dev); tools/update_version.php 2020-09-04 16:38:11 +01:00
Robin Stuart
20f767c4b6 Force white squares (not same as bgcolour) in Ultracode 2020-08-12 12:19:26 +01:00
Robin Stuart
0a6459aed6 Restore link for alpha option from GUI 2020-08-04 15:10:16 +01:00
Harald Oehlmann
b78fa8cf2f - Compile-able with MS-VC6
- Compile-able with MS-VC2015+QT5.18
- transbarency in TCL backend
- correct TCL demo
- README changes
2020-08-04 15:49:25 +02:00
Robin Stuart
fd9aa785ab Make alpha channel available from GUI 2020-08-03 21:08:48 +01:00
gitlost
9db5dd15c2 Windows: #196 Visual Studio 2017 Zint Studio instructions 2020-06-17 20:46:18 +01:00
gitlost
3690c19749 CHANNEL: use nested loops (CHNCHK) and pre-calculated values for performance 2020-06-10 18:41:36 +01:00
gitlost
6242e02638 CODEONE/ULTRA overrun fixes; TELEPEN fixes; CODEONE/LOGMARS/VIN/CODABAR options; GUI updates; tests 2020-06-04 18:45:25 +01:00
gitlost
7be63a00b6 CODE16K fixes; separator default 1; raster/vector.c quiet_zones, output.c; #191 2020-05-21 18:22:28 +01:00
gitlost
8dcd09406c CODABLOCKF and CODE128 fixes; row separator height option_3; #191 2020-05-16 10:22:33 +01:00
Robin Stuart
0d26948baa Merge branch Ultra 2020-04-06 17:05:22 +01:00
Robin Stuart
a63f3af6a4 Add Ultracode to Qt frontend 2020-04-06 16:37:34 +01:00
Harald Oehlmann
0c5dc4d030 Set version to 2.7.1 2020-02-01 19:36:50 +01:00
gitlost
b00b227b4f PDF417 no longer uses option_3 for no. codewords so set default 0 & remove from Studio 2019-12-19 20:29:11 +00:00
gitlost
889e786d95 HANXIN ECI conversion, GB 18030 LIBICONV port; some codeword fixes; optimized encoding modes 2019-12-08 16:15:34 +00:00
Harald Oehlmann
e03d03c877 Update version to 2.7.0 2019-12-05 20:16:39 +01:00
Harald Oehlmann
045a9e3b00 Make zint compile on MS-VC6. Adopt makefiles to new file list. 2019-12-05 19:19:37 +01:00
gitlost
8be13283db ECI conversion for GRIDMATRIX; GB 2312 LIBICONV port 2019-11-28 19:15:29 +00:00
gitlost
fed7378675 Handle UNICODE_MODE ECI conversion for reduced charset barcodes and QRCODE/MICROQR 2019-11-27 16:16:14 +00:00
Harald Oehlmann
23ec0d48fc Make compile with ms-vc6 (zint, tcl) and VS2015 (qzint) 2019-11-17 19:30:55 +01:00
gitlost
3b87cd4ec6 EAN128_CC ecc, cc_width, rows and alignment adjustments 2019-11-05 14:16:48 +00:00
Robin Stuart
1564cd7a34 Add Automatic Height option to UI and enable by default
Brings UI default settings in line with CLI default settings
2019-10-21 08:29:21 +01:00
Harald Oehlmann
6e1283ccd8 2019-10-07 2.6.7 HaO Set version to 2.6.7, documentation, readme 2019-10-07 11:57:35 +02:00
Harald Oehlmann
6751a816a6 2019-09-19 HaO Set Version to 2.6.6 2019-09-18 11:58:57 +02:00
Harald Oehlmann
40aab7908b 2018-08-30 2.6.5 HaO Set version to 2.6.5 2019-09-02 12:37:01 +02:00
Harald Oehlmann
6949143419 2018-08-30 2.6.4 HaO Set version to 2.6.4 2019-08-30 19:18:14 +02:00
Harald Oehlmann
128a6f43d6 Included backend/ultra.c in makefiles I maintain 2019-08-30 14:41:03 +02:00
Harald Oehlmann
30a334f60b Add backend/vector.c to makefiles I maintain 2018-11-02 09:34:00 +01:00
Robin Stuart
3ed1b5692f Adjust vector border to place bottom border above text 2018-06-19 03:56:44 +01:00
Robin Stuart
ff332335ea Improved font positioning in Qt backend 2018-06-18 03:55:52 +01:00
Robin Stuart
656c8132a8 Use internal vector format in Qt backend 2018-06-18 02:36:40 +01:00
Robin Stuart
749eb55321 Merge branch 'master' of ssh://git.code.sf.net/p/zint/code
Thanks to work being done at SF!
2018-02-15 10:47:59 +00:00
Robin Stuart
ffd1ed2d6b Update version number to 2.6.3 2018-02-15 10:46:02 +00:00
Harald Oehlmann
7fb7203a86 Include VIN and MailMark symbologies 2018-02-13 16:37:46 +01:00
Robin Stuart
0d4af7a462 Resolve further error message and warning idiosyncrasies 2018-01-21 18:10:42 +00:00
Robin Stuart
baf56daa17 Don't display warning 222 in GUI 2018-01-21 14:59:15 +00:00
Robin Stuart
c55340f4f3 Remove DMatrix option bug in UI
Do not change value of option3 if user has selected a Data Matrix symbol size.
If a warning is generated when saving, make this visible to user.
Fixes #85 reported by Harald Oehlmann
2017-12-19 22:01:45 +00:00
Robin Stuart
a91e4fab79 Revert "Select escape mode from GUI"
This reverts commit 7f897608d4.

After testing it was found this doesn't work in Windows - further testing is required before adding this functionality to the GUI.
2017-10-30 21:02:07 +00:00
Robin Stuart
7f897608d4 Select escape mode from GUI 2017-10-30 20:44:42 +00:00
Robin Stuart
426b21b2f9 Remove input mode bug
This bug prevents qZint from working on Windows
2017-10-29 21:38:39 +00:00
Boris Zentner
31cc0ae78a Remove spaces before EOL 2017-10-25 17:23:57 +01:00
Harald Oehlmann
4b03bccba0 Make compile with MS-VC and set release version 2.6.2 in various files
Attention: qtzint.exe core dumpfs for me
2017-10-23 17:07:30 +02:00
Robin Stuart
29dbb49325 Add escape sequence support to GUI
Also ensures that CR/LF formatted files remain unaltered when importing
Fixes #72 reported by Siniša Sudec
2017-10-22 10:55:50 +01:00
Rodrigo Torres
4963a772db Refactor 2017-09-11 19:21:33 +01:00
Robin Stuart
1882d76b70 Update version to 2.6.1 2017-08-27 09:31:02 +01:00
Robin Stuart
670242a3fe Feed back results of batch process to user in Studio 2017-08-11 22:36:40 +01:00
Robin Stuart
2da42d1733 fix for uninitialized variables in qzint.cpp
Bug found and fixed by Holger Schröder <holger@holgis.net>
2017-08-06 07:02:07 +01:00
Robin Stuart
3a24230cd0 Change default borderwidth to 0 in Qt front end
Also correctly draw boxes and binding for Code 49, ITF-14 etc.
Fixes #67, Bug reported by Jim R
2017-06-17 15:17:24 +01:00
Robin Stuart
ff6995070b Merge branch 'qt5' 2017-04-11 07:54:28 +01:00
Harald Oehlmann
ffc9c441f7 Make png work 2017-01-18 18:07:17 +01:00
Harald Oehlmann
1863399956 Finalize Win Build including instructions and setup script 2017-01-18 17:39:41 +01:00
Harald Oehlmann
877201bcfe 2017-01-18 Tried to compile QT5 on windows: - no PNG (64 bit issues), exe does not run ;-) 2017-01-18 15:53:50 +01:00
Robin Stuart
f479a68ccd Calculate correct size of Maxicode in GUI 2016-12-15 19:41:20 +00:00
Robin Stuart
28ea2f1c69 Make GUI scalable 2016-12-14 23:33:17 +00:00
Robin Stuart
0f9a326398 Update to Qt5 2016-12-11 15:29:06 +00:00