Commit Graph
35 Commits
Author SHA1 Message Date
Leonardo Zide 688859b120 Localize numeric displays and HTML export labels
Format UI measurements, snap angles, ladder increments, edge-color values, Preferences labels, counts, and step/page labels using the widget locale without grouping. Preserve numeric table sorting with stored count values and trim localized zero digits correctly. Give float/double formatting and float parsing explicit helper names.

Mark HTML export titles, navigation, alternate text, and credits for translation, escape translated text, and declare UTF-8 output. Keep numbers in HTML, piece-list images, and print/PDF output in ASCII. Include the pending command-status translation drafts in all eight language catalogs, preserving their unfinished review status.

Validation: macOS Qt debug build, display and count-sorting checks across ten locales, all three HTML layouts with test translations under an Arabic numeric locale, and ASCII print/image checks. All eight catalogs pass XML, changed-placeholder, and lrelease validation.
2026-10-23 14:17:52 -07:00
Leonardo Zide 5c1126519d Reject invalid Array and transform input with optional results
Rename the localized float parser to lcParseFloatValueLocalized and return std::optional<float> so conversion failures and nonfinite values cannot silently become zero. Return std::optional<lcVector3> from GetTransformAmount and apply transforms only when every nonempty axis is valid, preserving blank axes as zero.

Validate all Array offsets and rotations before updating dialog results, and show an informational message with focus on invalid input. Verified with a macOS Qt debug build and actual Array/transform checks in US English, German, and Arabic locales, including blank input, overflow, NaN, and infinity.
2026-10-23 13:04:18 -07:00
Leonardo Zide 2125868dc6 Validate localized numeric input and unify image limits
Parse dialog numbers using their validator locale so localized decimals and grouped input round trip correctly, while displaying values without digit grouping. Keep invalid input open with a validation message instead of silently saving or clamping it, and serialize Blender settings in their canonical format.

Use a 1–32768 pixel range for image dimensions across Save Image, HTML export, command-line output, POV-Ray, and Blender. Bound export step edits by the model step count, grid spacing to 10000 studs, and area-light grids to 64 samples per axis. Preserve existing show/hide step bounds and avoid a total-pixel cap.

Validation: macOS Qt debug build and numeric dialog checks across ten locales, including localized input, validation messages, image dimension boundaries, and settings round trips.
2026-10-23 12:54:55 -07:00
Leonardo Zide 306520badc Complete preferences and chooser help coverage
Add Help/F1 support to Preferences, Render Log, Blender Add-on Reset, and the piece and custom color choosers. Share help routing between dialogs and menu-embedded widgets while preserving chooser selections and shortcut recording.

Explain all Preferences controls, link labels to their fields, and correct the Color Theme label buddy. Make Blender reset cancellation preserve pending edits and retain Apply availability after an accepted reset. Refresh catalogs while keeping existing translations and new strings unfinished.

Validation: debug build, all seven Preferences tabs, 85 field F1 routes, label buddies, F1 shortcut recording, native chooser menu Help/Escape, reset Cancel/Apply behavior, layouts, and catalog preservation checks passed.
2026-10-22 17:48:06 -07:00
Leonardo Zide 554c1d28a7 Add contextual help to Array and Save Image dialogs
Explain array counts, offsets, rotations, image dimensions, file naming,
and step ranges with translated tooltips and contextual help. Give both
dialogs a standard Help button and dialog-scoped F1 support that falls back
from the focused control through its parent groups to the overview.

Link image field labels to their buddies and share tooltip and field help
text. Add accessible names for unlabeled controls. Document the writing and
maintenance conventions, with concise guidance in the existing AGENTS.md.

Refresh all eight language catalogs while preserving existing translations
and review status. The 62 new help and accessibility strings remain
unfinished pending translation.

Validation: Qt 6.10 debug build; runtime checks for seven F1 routes, Help,
Escape, dialog state, spin-box focus, and five label buddies with matching
help; visual layout inspection; catalog coverage for all 2,118 active source
messages and existing translation preservation; git diff --check.
2026-10-22 15:14:11 -07:00
Leonardo Zide 7bc6c018b1 Rename PieceInfo to lcPieceData
Use PieceData consistently for the shared part/model record, its related
APIs and variables, and its source files. Keep the existing reference
counting and loading behavior so ownership and readiness changes can be
reviewed separately.
2026-10-18 23:22:28 -07:00
Leonardo Zide bc61124f50 Remove the Q prefix from dialog classes. 2026-04-29 20:43:00 -07:00
Leonardo Zide a575e7c616 Qt6 fix. 2025-12-21 22:16:39 -03:00
Leonardo Zide b91acb1963 Compile fix. 2025-08-18 09:40:08 -07:00
Leonardo Zide e450fb035b Run blender addon installer as admin. 2025-08-07 15:38:14 -07:00
Leonardo Zide 2e507036d9 Refactored part picker popups. 2025-07-08 19:31:27 -07:00
Leonardo Zide 2c8926563b Fixed warnings. 2025-07-05 20:07:32 -07:00
Leonardo Zide e4a38cb23b Updated minifig dialog widgets to match the property widget. 2025-06-30 19:23:51 -07:00
Leonardo Zide 1d065c10c9 Added 12v track support. 2025-02-16 19:45:48 -08:00
Leonardo Zide 79f5d28f26 Added support for different connection types. 2025-02-08 18:04:41 -08:00
Leonardo Zide 79dbf992bf Fixed enter key not working on the part picker. 2025-01-20 16:42:08 -08:00
Leonardo Zide eaf5241655 Made the color picker a modeless popup. 2024-08-08 14:37:21 -07:00
Leonardo Zide 82463473d5 Renamed part selection events. 2024-07-25 17:56:29 -07:00
Leonardo Zide b2074a7c0a Use the part selection widget in the properties widget. 2024-07-25 14:16:23 -07:00
Leonardo Zide ef43c152ad Replaced piece properties widget. 2023-12-31 12:55:35 -08:00
Trevor SANDY e71ed90b3d Preserve interactive stretch when navigating across tabs 2022-09-08 08:49:56 +02:00
Trevor SANDY aedfa16e42 Improve shortcuts dialog interactive resize 2022-09-07 17:58:26 +02:00
Leonardo Zide 7d884e6b5f Static analysis fixes. 2021-11-14 18:34:24 -08:00
Leonardo Zide f4461756bd Added Page Setup controls. 2021-01-06 17:45:38 -08:00
Leonardo 6ae6fbade7 Removed deprecated functions. 2020-12-11 14:51:46 -08:00
Leonardo Zide 7c9773f228 Fixed override and virtual function qualifiers. 2020-03-22 15:44:41 -07:00
Leonardo 1b415cf853 Disabled shortcuts when one of the part transform fields has focus. 2018-01-01 10:14:05 -08:00
leozide 57bad9ceba Smaller transform edits. 2017-11-13 17:24:36 -08:00
leozide 5de0644c7b Save positions with 4 digits and rotations with 6. 2017-07-26 17:34:25 -07:00
leozide c924b90955 Converted include guards to pragma once. 2017-07-19 14:20:32 -07:00
leozide 8ed7e0d6c8 Removed old parts tree. 2016-12-20 14:11:19 -08:00
leo acfa6784a7 Fixed more instances of unlocalized decimal separators. 2016-06-13 23:57:31 +00:00
leo 4ca6006a6e Format property tree strings according to the system locale. 2016-06-13 01:46:50 +00:00
leo 817ffce7ef Avoid using floating point notation in the properties pane. 2015-01-19 23:48:46 +00:00
leo f11c97777a Merged qtest branch into trunk. 2013-08-09 04:57:18 +00:00