24 Commits

Author SHA1 Message Date
Jaye Evins e6673a0a24 Add generic templates (#307)
- Add generic full-page templates.  (This feature from 3.4 was missing)
- Also add generic half-page, quarter-page, and envelope templates.
- Add several more common envelope sizes to page-sizes.xml
- Qt print backend does not need pwg_size.
    - Replace with pwg_class, to distinguish between ISO and NA sizes
2026-02-11 11:27:41 -05:00
Jaye Evins 4b16b0900b Update copyright notices for 2026. (#280) 2026-01-13 19:19:42 -05:00
Jaye Evins 7cadf5308d Implement sizeHint in TemplatePicker's HTML item delegate. (#279)
Height is not always dominated by icon size on all platforms, potentially
cutting off text.
2026-01-13 00:59:47 -05:00
Jaye Evins 1c902230fe Big-Ugly Style Update (#278)
* Bulk replaced tabs with spaces
* Bulk removed trailing whitespace from lines
* Replaced c-style comments with c++-style comments in file banners
* Replace nested namespace definitions with single concise definitions (C++17), this keeps the indentation more manageable
* Cleanup ordering and spacing of include directives
* Bulk renaming of header file extensions from '.h' to '.hpp'.
* Update CODING-STYLE.md
* Update target_compile_features from cxx_std_11 to cxx_std_20.
* Refresh .clang-format file.  Still needs a lot of tweaking.
2026-01-07 19:43:34 -05:00
Jaye Evins 3cd173a37f Replaced all Qt foreach loops with modern C++ range-based loops. (#277) 2026-01-05 15:24:00 -05:00
Jaye Evins 45a92eda89 Base TemplatePicker on QListView instead of QListWidget (#276) 2026-01-05 14:09:00 -05:00
Jaye Evins b6cac2d208 Fix several compile issues (#261)
Fixed several code issues.  Mostly pedantic compiler warnings.  But also a sign issue exposed by newer compilers (#228, #260)
2025-12-06 15:58:38 -05:00
Jaye Evins 8c8e447336 Pointer cleanup (#242)
- Made greater use of smart pointers, eliminating many instances of manual memory management
- Do not use pointers at all for many non-polymorphic classes
- Assorted other code cleanup
2025-10-31 16:11:28 -04:00
Jaye Evins 4c0ce1146a Improvements to SelectTemplateDialog (#109 and #142)
- Added side pane for product preview and information
- Product selection is done with a separate pushbutton, so that user gets a
  chance to preview the complete product information before committing to the
  selection
- Supports two view modes: Grid View and List View
- View mode is automatically stored in Settings, so it will default to the
  user's prefered mode
- Should address most concerns in #109 and #142
2025-05-26 19:23:36 -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 26f10d7faf Check dynamic casts for null. 2018-01-02 03:03:59 -05:00
Jim Evins 9a135f8971 Use auto to reduce some verbosity. 2017-12-30 21:41:02 -05:00
Jim Evins b8ee5e1f73 Restructuring directory layout. Move towards "Modern CMake" usage. 2017-11-23 22:15:24 -05:00
Jim Evins a31484700c Initial implementation of glabels-batch.
Note: must currently use QGuiApplication instead of QCoreApplication to
support QFont.  Unfortunately, this means that glabels-batch must run
within a windowing system.  Ideally, it would not have this requirement.
2017-10-02 23:15:43 -04:00
Jim Evins c926d8fd0d Some coding style adjustments. 2017-04-01 13:30:19 -04:00
Jim Evins 4be4ea08f6 Replace 0 and NULL with nullptr where apropriate.
- fixed using clang-tidy's modernize-use-nullptr check.
2017-03-21 23:48:13 -04:00
Jim Evins 9f9ba345cf Fixed a handful of errors flagged by clang-tidy. 2017-03-21 23:21:35 -04:00
Jim Evins b797d13e40 Reconcile style accross all source files.
- All glabels code is in "glabels" top-level namespace.
- Other assorted cleanup.
2017-01-15 22:58:53 -05:00
Jim Evins 9cba0d4a43 Reconcile style of include directives across all source files. 2017-01-06 19:00:59 -05:00
Jim Evins 50e52d6675 Added recently-used products tab to SelectProductDialog. 2016-04-03 18:42:01 -04:00
Jim Evins 9d1fcbaca3 Added category filter to SelectProductDialog. 2016-04-02 23:48:58 -04:00
Jim Evins 7559544b06 Some namespace cleanup. 2016-03-27 00:14:38 -04:00
Jim Evins ea8a5d084c Tweaking of new label dialog. 2015-08-23 20:30:50 -04:00
Jim Evins cff463a23a Moved app/ to glabels/. 2014-07-06 12:22:06 -04:00