- Add special symbology-specific escape sequences (Code 128 only)

for manual Code Set switching via `input_mode` flag
  `EXTRA_ESCAPE_MODE` (CLI `--extraesc`) (ticket #204)
- GUI: disable "Reset" colour if default; add "Unset" to Printing
  Scale dialog (allows unsetting of X-dim/resolution settings
  without having to zap)
- library: guard against out-of-bounds rows (negative)
- test suite: fix some clang-tidy warnings; slight coverage
  improvements
This commit is contained in:
gitlost
2023-01-15 00:22:43 +00:00
parent 5669addf01
commit 6f7cdd660c
30 changed files with 649 additions and 285 deletions

View File

@ -1,6 +1,6 @@
/*
Zint Barcode Generator - the open source barcode generator
Copyright (C) 2022 Robin Stuart <rstuart114@gmail.com>
Copyright (C) 2022-2023 Robin Stuart <rstuart114@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -32,7 +32,7 @@ private:
BarcodeItem *m_bc;
public:
ScaleWindow(BarcodeItem *bc, struct Zint::QZintXdimDpVars *vars);
ScaleWindow(BarcodeItem *bc, struct Zint::QZintXdimDpVars *vars, double originalScale);
~ScaleWindow();
bool Valid;
@ -45,6 +45,7 @@ signals:
public slots:
void size_msg_ui_set();
private slots:
void unset_scale();
void okay();
void update_scale();
void x_dim_units_change();
@ -57,6 +58,8 @@ private:
float get_dpmm() const;
const char *getFileType() const;
double update_vars();
double m_originalScale;
bool m_unset;
};
/* vim: set ts=4 sw=4 et : */