Commit Graph

621 Commits

Author SHA1 Message Date
Jaye Evins ca68c84cad Handle filenames with periods in basename consistently. (#199)
Use QFileInfo::completeBaseName() instead of QFileInfo::baseName() in
Model::shortName().  This was already the case when building list of
recent labels in MainWindow.
2025-05-15 00:02:47 -04:00
Jaye Evins 18b0a1b09b Minor bug fixes
- model::Db::lookupPaperNameFromId() bad if-else-if
- model::StrUtil::formatFraction missing arg in QString
- Added unit tests for StrUtil
2025-05-08 11:09:11 -04:00
Jaye Evins f15c21a01d Update to Qt6
- New baseline minimum platform is Ubuntu 22.04
    - Qt6 requires at least 6.2
        - some deprecations may be flagged on later versions (e.g. 6.8)
    - CMake requires at least 3.22
- Include build-tests.yml github action to validate builds on mulitple platforms
- QtTest is no longer optional since it easily comes along for the ride with Qt
- Replaced QStringRef in model::SubstitutionField with simple ParserState class
- Removed deprecations up to Qt 6.2
2025-05-06 18:26:53 -04:00
Mario Blättermann f683896706 Fetching latest translations from Transifex (#207) 2025-04-28 22:50:34 -04:00
Jim Lieb be567f90eb Update Qt dependency from QT 5.6 to QT 5.15 (#162)
* Update QT5 references 5.6 -> 5.15

Builds and runs but now needs deprecated -> current updates.

Signed-off-by: Jim Lieb <lieb@sea-troll.net>

* Update build instructions for Fedora 35 particulars

Signed-off-by: Jim Lieb <lieb@sea-troll.net>

* Replace deprecated QtString::sprintf with QtString::arg

This was deprecated some revisions prior to 5.15.

Signed-off-by: Jim Lieb <lieb@sea-troll.net>

* Replace deprecated QtString::SkipEmptyParts with Qt::SkipEmptyParts

Builds now with 5.15

Signed-off-by: Jim Lieb <lieb@sea-troll.net>

* Replace deprecated QPrinter::setPageMargins with 5.15 version

Signed-off-by: Jim Lieb <lieb@sea-troll.net>

* Replace deprecated QImage::byteCount() with QImage::sizeInBytes()

This could be problematic if qsizetype differs from int

Signed-off-by: Jim Lieb <lieb@sea-troll.net>

* Replace deprecated endl with QT::endl

Signed-off-by: Jim Lieb <lieb@sea-troll.net>

* Replace deprecated QMatrix with QTransform

Signed-off-by: Jim Lieb <lieb@sea-troll.net>

---------

Signed-off-by: Jim Lieb <lieb@sea-troll.net>
2025-04-28 22:16:28 -04:00
Jaye Evins 7f98f1e308 Allow for an external build directory when gathering version information with git 2025-04-16 12:43:23 -04:00
Jaye Evins f8efe3aafa Update all occurrences of my name with my legal name. 2025-04-08 18:47:02 -04:00
Jim Evins 2da9b2d856 Fix build problem when incompatible barcode.h is found. (#101) 2021-02-06 12:58:32 -05:00
Jakob Haufe 3c33e3e64f Bump required Qt version (fixes #112) (#113) 2021-02-06 07:37:54 -05:00
Teresa Remmet 39c9676a32 Adding Herma 5028 template (#105)
Signed-off-by: Teresa Remmet <teresa-dev@remmet.eu>
2020-11-28 10:27:37 -05:00
Jim Evins 142aaf2a92 Glabels-batch: allow project file to be provided on stdin. (#90) 2020-03-28 19:10:28 -04:00
Juan Jose Pablos 4a9f3aad8e Update TRANSLATIONS.md (#89)
* Update TRANSLATIONS.md

Co-authored-by: Jim Evins <evins@snaught.com>
2020-02-29 21:30:41 -05:00
cus 7b20797aea Relax code39 barcode minimum size requirements (#88)
- Most libraries use the 7.5 mils for the minimum X value, not 10.
- Minimum recommended barcode height is 5 mm according to ISO/IEC 16388.
- Minimum quiet zone is 10 * X according to ISO/IEC 16388.
- Adjust minimum text sizes for reduced minimum barcode sizes

Signed-off-by: Marton Balint <cus@passwd.hu>
2020-02-29 17:06:06 -05:00
Jim Evins ac93dc9b2c Disable Zint barcode backend for zint-2.7.x (#86)
- New zint API is incompatible, may eventually create a compatible backend
2020-01-18 07:47:26 -05:00
Jim Evins 2f331c54dd Fixes issue recognizing a change in barcode backend with no change in symbology. 2020-01-12 00:35:39 -05:00
Jim Evins bcc3b2fb23 Fixed minor cut&paste issue with man page. 2020-01-02 20:07:59 -05:00
Jim Evins 2d5650767a Reconciled parsing of field names with Substitution Field Spec. (#82)
According to the spec., valid syntax for merge field names is determined
by the merge source with a couple of minor exceptions.  Current text backends
allow any printable characters, so the SubstitutionField parser now accepts
any printable characters.
2020-01-01 17:04:19 -05:00
Jim Evins aebcda43cb Merge branch 'RefactorPrint'
- Modifies printing model to be similar to glabels-3.x.
   - Allow simple projects to print by-the-page (#51)
   - Added collated vs uncollated document merges
- Added ability to separate merge groups by page
- Updated man pages
- Updated misc developer documentation
2020-01-01 14:35:15 -05:00
Jim Evins af607ca4af Barcode tweaks.
- Add capability to disable text in glbarcode UPC/EAN barcodes. (#79)
- Add backend name to display text in BarcodeMenuButton.
2019-12-08 17:07:10 -05:00
Jim Evins bd92e6f238 Increase maximum density of 2D barcodes to 64 blocks/in. (#78)
This affects the minimum size of 2D barcodes.  Even though you can print
at this density, it may be problematic depending on printer quality or
scanner optics.
2019-12-03 21:31:37 -05:00
Jim Evins edcb0d7166 Add workaround for non-gui environments to glabels-batch manpage. (#68) 2019-11-27 19:26:00 -05:00
Jim Evins f09ca36b7b Added "Open Recent" button to StartupView.
- Also disabled broken MacOS build in travis CI file
2019-11-12 21:40:43 -05:00
Jim Evins 75e613e9f1 Trim leading and trailing spaces from image filenames from merge records. (#76) 2019-11-11 23:21:34 -05:00
Jim Evins 7a02c0b226 Allow user variables to be set from glabels-batch command line (#75) 2019-10-12 21:57:04 -04:00
Jim Evins 1a900d0ebc CI cleanup/updates
- Create versioned snapshots
  - include MacOS build -- still needs test and deploy steps
  - include barcode and libqrencode in Linux build
  - include libqrencode in Windows build

  Updated README and TODO files.
2019-10-06 16:46:57 -04:00
Jim Evins 34efe8ddb3 Merge pull request #73 from mariobl/transifex
Latest translations from Transifex
2019-09-06 20:00:53 -04:00
Mario Blättermann 242285e1e4 Update UI translations from Transifex 2019-09-06 16:12:01 +02:00
Mario Blättermann f8e801ee4c Merge remote-tracking branch 'upstream/master' 2019-09-06 15:59:21 +02:00
Jim Evins d9e644472b Merge pull request #72 from gitlost/UserVariables
User variables (includes original UserVariables branch and gitlost's mods)
2019-08-29 19:58:19 -04:00
gitlost 6bc0cb8443 Remove XmlLabel png render tests, too system dependent 2019-08-29 08:10:27 +01:00
gitlost 7e44bbdc06 New FileUtil::makeRelativeIfInDir func; label parser_3 barcode map; unit tests 2019-08-26 03:00:32 +01:00
gitlost e8daa8aa48 Fix readImageFile to set mSvg, use in drawShadow also 2019-08-23 09:27:14 +01:00
gitlost 98038e34e7 Make absolute image filename more Windows friendly 2019-08-23 00:56:31 +01:00
gitlost 010879fa71 Add root to images search path, readImageFile svg; unit tests 2019-08-21 15:04:52 +01:00
gitlost 2444cacb74 UserVariables branch merge 2019-08-21 03:37:56 +01:00
Jim Evins 6a789c9632 Save/restore file paths as relative to project file. 2019-08-18 21:56:37 -04:00
Jim Evins ec3d900e87 Display merge file locations as relative paths. 2019-08-12 23:03:38 -04:00
Jim Evins d4f742e7e6 Display image filenames as relative paths. 2019-08-08 07:57:12 -04:00
Jim Evins c2d9a4c075 Make sure keys are set for all apropos controls in ObjectEditor. 2019-08-05 20:26:07 -04:00
Jim Evins 3fedb16c2c Look for image files from substitution fields relative to project file. 2019-08-04 23:32:50 -04:00
Jim Evins f41461ef26 Added color variable type. 2019-08-03 17:16:14 -04:00
Jim Evins dd41aa3dd7 Minor tweaking of EditVariablesDialog. 2019-08-03 15:31:57 -04:00
Jim Evins 48bfb68837 Make ColorHistory more robust to change in format. 2019-08-03 14:10:01 -04:00
Jim Evins 2c1c865f53 Update .gitignore. 2019-08-03 13:44:05 -04:00
Jim Evins 6fda0246a8 Implement fields in ModelImageObject. 2019-07-30 21:26:16 -04:00
Jim Evins 57cbf18039 Added variables expansion to TextNode and ColorNode. 2019-07-27 22:00:05 -04:00
Jim Evins f6ecdc64e0 Redesigned ColorHistory to include color description. 2019-07-24 08:25:22 -04:00
Jim Evins cd0af020c6 Added default cases to switch statements. 2019-07-21 19:26:03 -04:00
Jim Evins 1e1db1fc89 Incorporated FieldButton into ColorPaletteDialog. Tweaked ColorPaletteDialog. 2019-07-21 17:08:24 -04:00
Jim Evins 8fa34325a5 Reconciled margin of VariablesView with other views. 2019-07-21 13:44:39 -04:00