Commit Graph

441 Commits

Author SHA1 Message Date
Jim Evins 26f10d7faf Check dynamic casts for null. 2018-01-02 03:03:59 -05:00
Jim Evins b2859d47bb Correctly override ModelObject::can*() virtual methods. 2018-01-01 19:42:39 -05:00
Jim Evins ff003e5b17 Use range-based loops when possible. 2017-12-30 22:09:48 -05:00
Jim Evins 9a135f8971 Use auto to reduce some verbosity. 2017-12-30 21:41:02 -05:00
Jim Evins c7a6ed4917 Remove unnecessary typedefs or replace with using. 2017-12-30 18:42:26 -05:00
Jim Evins b11754462f Replace trivial constructors and destructors with defaults. 2017-12-30 17:43:03 -05:00
Jim Evins 7a8159c554 Removed redundant void. 2017-12-29 20:35:41 -05:00
Jim Evins 0edea79495 Use nullptr instead of NULL. Use cstdint instead of stdint.h. 2017-12-29 19:51:46 -05:00
Jim Evins 7f903f5a68 Added some initial CPack support. 2017-12-29 19:13:48 -05:00
Jim Evins 3bac0e9e42 Minor edits to Substitution Field Spec. 2017-12-14 11:04:28 -05:00
Jim Evins 5e9f8355b9 Updated prerequisites and build instructions. Updated Windows install. 2017-12-13 17:09:20 -05:00
Jim Evins 25872eb32c Tweak layout of AboutDialog. 2017-12-03 21:44:31 -05:00
Jim Evins 9917e9d4c2 Don't use tr() in static initialization. 2017-11-26 14:34:26 -05:00
Jim Evins c6c52a8895 Minor code cleanup. 2017-11-25 16:54:37 -05:00
Jim Evins ae76470ea9 Use modern cmake patterns to build translations/XmlStrings. 2017-11-25 12:08:06 -05:00
Jim Evins 32cde7cb1d Made zlib an optional dependency.
Only needed to read legacy files, which is not fully supported yet.  Hopefully
this will make it easier to build on Windows.
2017-11-25 03:18:39 -05:00
Jim Evins a48a929006 Run model unit tests in virtual X fb. 2017-11-24 16:53:03 -05:00
Jim Evins c9f2b91daf Removed C++17 nested namespace definitions. Should build on trusty again. 2017-11-24 15:49:26 -05:00
Jim Evins 4821e103bc CMake 3.2 does not support cxx_std_11 target_compile_feature. 2017-11-23 22:52:13 -05:00
Jim Evins fc014c8e4b Updated required cmake to 3.2. 2017-11-23 22:25:45 -05:00
Jim Evins b8ee5e1f73 Restructuring directory layout. Move towards "Modern CMake" usage. 2017-11-23 22:15:24 -05:00
Jim Evins 8bec3594ec Fleshed out SubstitutionField spec and implementation.
- Added newline modifier to spec and implementation
- Does not belong in Merge, so moved back to glabels
- Incorporated SubstitutionField into RawText
2017-11-22 13:33:30 -05:00
Jim Evins acfa5e9a32 Include unit tests in continuous build. 2017-11-18 23:01:25 -05:00
Jim Evins 8bcec37d7c Created SubstitutionField class. 2017-11-18 22:36:43 -05:00
Jim Evins 7b36ab4943 Tweaked layout of SelectProductDialog.
- Tweaks to layout so that it resizes without artifacts.
- Removed parent window so that window manager will not center dialog on parent,
  which makes resizing difficult depending on size and location of parent window.
2017-11-06 22:35:59 -05:00
Jim Evins e970301680 Fixed old cut&paste artifact. 2017-11-04 12:36:50 -04: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 347bf35c79 Updates to .travis.yml
- Use qt591
- Only install necessary packages
- Use personal clones of linuxdeployqt and upload.sh to minimize risks that
  updates to the upstream projects would unexpectedly break CI builds.  Clones
  can be updated in a coordinated manner.
2017-09-13 20:56:46 -04:00
Jim Evins 6c9e27e0d9 Readme updates. Started draft substitution field spec. 2017-06-17 19:05:41 -04:00
Jim Evins 0be7cada59 Added version requirements to optional dependencies. 2017-06-03 12:55:27 -04:00
Jim Evins 179103ef05 Finished fleshing out Zint barcode backend. 2017-06-03 12:52:04 -04:00
Jim Evins 3e2b40c000 Initial implementation of Zint barcode backend. 2017-06-02 22:39:44 -04:00
Jim Evins cb9013cdd5 Finished fleshing out GNU Barcode backend. 2017-06-01 22:58:11 -04:00
Jim Evins 4ca02e7a40 Fleshed out GNU Barcode EAN barcodes. 2017-05-31 23:16:47 -04:00
Jim Evins 9601541614 Removed use of deprecated Qt APIs. 2017-05-29 21:19:47 -04:00
Jim Evins e0992db6b6 Initial implementation of GNU Barcode backend. 2017-05-29 20:43:10 -04:00
Jim Evins 52edeaff83 Some name cleanup to QrEncode backend. 2017-05-24 19:46:32 -04:00
Jim Evins 662d7a9ef5 Added FindGnuBarcode cmake module. 2017-05-24 19:33:39 -04:00
Jim Evins df5b977853 Created QrEncode barcode backend. 2017-05-22 22:26:28 -04:00
Jim Evins 8e2905727a Moved EnumUtil functionality to XmlUtil. 2017-05-19 23:18:19 -04:00
Jim Evins 28f11da8d9 Update cached editor layouts in constructor. 2017-05-19 23:17:30 -04:00
Jim Evins 438dccd28f Construct objects in XmlLabelParser atomically. 2017-05-19 21:06:16 -04:00
Jim Evins 720c904d2f Fixed size issues with Datamatrix barcodes. 2017-05-14 14:44:13 -04:00
Jim Evins 629c32b90f Improvements to placeholder barcode rendering in editor. 2017-05-13 20:25:32 -04:00
Jim Evins 446d580f13 Correctly handle invalid barcode data cases in label editor. 2017-05-13 15:37:16 -04:00
Jim Evins 276756a317 Read and write barcodes in glabels project files. 2017-05-07 22:21:29 -04:00
Jim Evins 56c2930db7 Finished hooking up barcode style controls in object editor. 2017-05-07 19:09:36 -04:00
Jim Evins 409ca1bf57 Added RawText type for text and barcode objects. 2017-05-06 20:08:17 -04:00
Jim Evins 6d764bbf4d Render barcode placeholder for invalid data in label editor. 2017-05-04 21:58:29 -04:00
Jim Evins c2052abf43 Hooked up barcode data controls in object editor. 2017-05-03 22:20:09 -04:00