Commit Graph

108 Commits

Author SHA1 Message Date
Mario Blättermann 083425dbdd Update Ukrainian UI translation (#221) 2025-11-25 15:12:28 -05:00
Jaye Evins bcc6b3ec9d PrintView improvements (#250)
- Allow printer selection directly from PrintView
- Print button bypasses the system print dialog, since label printing is quite different from typical printing tasks
- Separate button to optionally use system print dialog, if needed
2025-11-17 17:04:04 -05:00
Jaye Evins 9d516b7e1f Minor string cleanup (#248)
- Simplified some strings to not include unnecessary markup.
- Fix translator comments so that they actually make it to glabels_C.ts file
      - Reconciled the style of these comments.
      - Added translator comments
2025-11-10 17:46:07 -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 0e7049ed73 Support libzint >= 2.15 (#225,#222,#186))
- Update libzint support for 2.15 as new baseline version, removing support for earlier versions, avoiding '#ifdef'-hell
- Based on #186

---------

Co-authored-by: gitlost <burmartke@gmail.com>
2025-08-16 17:00:14 -04:00
Jaye Evins fa96cc5a17 Add grid settings to preferences (#224)
- Allow origin to be either at the top-left corner or center of label (#174)
- For non-rectangular labels (cd, round, etc.) the origin will still
  always be at the center of the label.
- User controllable grid spacing
2025-08-14 15:47:22 -04:00
Jaye Evins f147407a46 Drag n drop (#223)
Added drop interface for image files, images, and text, dragged from other applications.  (#153,#223)

- Lock aspect ration on new image objects by default
- Communicate context menu click location to paste actions
2025-08-12 16:06:43 -04:00
Jaye Evins 9c3e21faf3 Add ObjectsCenter action to center objects in label both h and v. (#184) 2025-07-31 18:01:22 -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 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 f8efe3aafa Update all occurrences of my name with my legal name. 2025-04-08 18:47:02 -04: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 f09ca36b7b Added "Open Recent" button to StartupView.
- Also disabled broken MacOS build in travis CI file
2019-11-12 21:40:43 -05:00
Mario Blättermann 242285e1e4 Update UI translations from Transifex 2019-09-06 16:12:01 +02: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 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 f6ecdc64e0 Redesigned ColorHistory to include color description. 2019-07-24 08:25:22 -04:00
Jim Evins 1e1db1fc89 Incorporated FieldButton into ColorPaletteDialog. Tweaked ColorPaletteDialog. 2019-07-21 17:08:24 -04:00
Jim Evins 5b9eba9af9 Tweaked look of image object placeholders. 2019-07-21 13:17:45 -04:00
Jim Evins 3cfda79b82 Yet another redesign of image file selection in ObjectEditor. 2019-07-21 00:59:14 -04:00
Jim Evins 4e94933dcf Redesigned FieldButton. 2019-07-20 23:18:03 -04:00
gitlost 6ab3a12b92 Share Model merge; Merge initializers; undo/redo descs (#65)
- use "shared" pointer between Model and undo/redo instances
- adds missing initializers to Merge and Text classes
- adds checkpoints for mouse resize, barcode, and image reset.
- renames the position dialog checkpoint from Move -> Position to differentiate it from a mouse move.
- adds the Undo/Redo action descriptions to the menu items.
- adds unit tests for the Merge and Model change, and for ColorNode, RawText and TextNode.
2019-07-20 14:41:01 -04:00
Jim Evins ea4099a57d Removed call to deprecated QRcode_clearCache().
QRcode_clearCache has been deprecated in libqrencode 4.0.  In previous versions,
it was only necessary to help debug memory leaks.  So it should be harmless
to remove this call.
2019-07-07 16:16:23 -04:00
Jim Evins 87cc5d7e22 Redesigned image selection in ObjectEditor to use new FieldCombo widget. 2019-03-30 12:50:30 -04:00
Jim Evins 54a66dfd8f Increment per item, not per merge record. 2019-03-24 22:33:40 -04:00
Jim Evins 37f0a8890d Implemented variable substitution in simple print jobs. 2019-03-24 17:49:41 -04:00
Jim Evins dedbe07312 Populate VariablesView headers in class rather than ui/. 2019-03-22 23:23:50 -04:00
Jim Evins dab2c19862 Add window titles to "Add Variable" and "Edit Variable" dialogs. 2019-03-17 14:35:29 -04:00
Jim Evins d05c6fbfd2 Fleshed out input validation for EditVariableDialog. 2019-03-17 14:24:55 -04:00
Jim Evins 6255939f39 Closed MVC loop for VariablesView. 2019-03-16 18:12:17 -04:00
Jim Evins c9e26c45fb Prototype of VariableView and EditVariableDialog user interface. 2019-03-05 21:35:11 -05:00
Jim Evins 803f42f4de Added "Toolbar" to name of "Quick Access Toolbar" in its context menu. 2019-02-24 10:43:28 -05:00
Jim Evins 6be243d3f9 Handle plural vs. singular cases in PrintView (#47) 2019-02-19 22:13:24 -05:00
Jim Evins ff9188f7e7 Added File->"Open Recent" menu.
Initially based on pull request #40 by hochwasser <oo.o+github@windbuechse.samba-tng.org>, with refactoring.
2019-01-28 12:28:45 -05:00
Jim Evins 0e60c52d4c Added ReportBugDialog to Help menu.
- Also renamed "File" toolbar to "Quick Access" toolbar (#13).
2019-01-27 21:46:56 -05:00
Jim Evins fe6dcd6a7f Cleanup of CMakeLists.txt files.
- Bumped required cmake version to 3.9.
 - Added Appveyor CI YAML file for Windows builds
2018-12-19 23:23:59 -05:00
Jim Evins b9b792272c Created placeholder for Variables page in UI. 2018-12-08 12:53:04 -05:00
Mario Blättermann 0d2ad97a16 Sync updated translations from Zanata 2018-12-06 21:54:24 -05:00
Jim Evins 9024d173d8 Revert accidental reset of translations. (#41)
- Modified build system to not re-generate strings in every translation file
  in every build.
2018-12-05 10:47:11 -05:00
Jim Evins ca6f0c7573 Don't include line numbers in translation files.
Currently there is a lot of source code churn.  This leads to non-substantive
differences in the glabels translation files, complicating merges and commits.
2018-11-30 23:27:21 -05:00
Jim Evins e5cb97441d Merge branch 'ContinuousRollLabels' 2018-11-30 21:04:41 -05:00
Jim Evins 467ca9fc62 Implement continuous tape labels and path-based label shapes.
- Added "roll" as a special paper id
- Added roll_width attribute to draw tape in previews
- Updated Brother QL-500/* label templates
- Preserve print dialog settings between print jobs.
- Added path based labels for arbitrary shaped labels.
- Fleshed out implementation of continuous labels.
2018-11-30 20:30:10 -05:00
Jim Evins be9cdffe02 Propogate typo fixes to translation files. 2018-11-16 21:05:13 -05:00