Commit Graph

25455 Commits

Author SHA1 Message Date
wandererfan
e8bc9af344 [TD]prevent object deletion outside dialog 2023-05-24 10:15:45 -04:00
wandererfan
27ef8a598d [TD]fix fail on object deleted during dialog (#9626) 2023-05-24 10:15:45 -04:00
wmayer
9fba227887 Sketcher: fix crash when creating a parabola or hyperbola or when using Sketcher_Split
Forum: https://forum.freecad.org/viewtopic.php?t=78543
2023-05-23 20:01:41 +02:00
wmayer
c72459c268 MeshPart: Allow to cancel trim by plane 2023-05-23 16:05:49 +02:00
Abdullah Tahiri
bcedfae708 Sketcher: Command constraints error handling adaptation
=======================================================

- Better handling for exceptions originating in Python addConstraint.
- Refactor to reuse code for handling of exceptions
2023-05-23 14:24:45 +02:00
Abdullah Tahiri
17f65d8746 Sketcher: Make Command Constraints show the severity of warning for typical user mistakes 2023-05-23 14:24:45 +02:00
Abdullah Tahiri
9d9f928b2d Console: Extend framework with intended recipient and content type metainformation
==================================================================================

Limitations of the current framework:
- Codes the translated state only for TranslatedNotification as part of the type.
- Does not code the intended recipient (user, developer, ...)

Problems:
- Some errors are intended for developers, some errors may only be intended for users,
if, for example, there is another developer error which already contains all the information.
The current framework may lead to information duplication or to showing to the user developer
information, which is perceived as annoying.
- Logs shall be in English (report view), while every message to the user (UI) shall be translated.
The current framework can only differentiate where to report based on subscription (legacy logs do not
subscribe to notifications), and for notifications, whether it is translated or not depends on the type.
It is not possible to code errors or warnings that are already translated.

Solution:
- To extend the ILogger interface with additional metainformation, indicating the intended recipient
(User, Developer, All), and the content of the message (translated, untranslated, untranslatable). The latter
is useful for dynamic strings that won't find a match in the translation framework.

Bonus:
- This extended version allows to do away with translatednotification, as now any message can be independently
marked as translated or untranslated or untraslatable.
- It is now possible to provide the right icon of severity (error, warning, info), even when it is only user intended
and already translated.
2023-05-23 14:24:45 +02:00
Jonas Bähr
f3595bce0b Sketcher: Add tests for Circle to Line distance constraint
Note that support for secants currently only works for reference
constraints but not for driving ones. If and how this should be done
is still under discussion [1].

[1]: https://github.com/FreeCAD/FreeCAD/pull/9044#issuecomment-1548006842
2023-05-23 14:19:51 +02:00
Yorik van Havre
4250d8f991 Merge pull request #9586 from yorikvanhavre/arch-ifc-export-fix
Arch: Minor fix to IFC exporter
2023-05-23 13:53:14 +02:00
Yorik van Havre
2751e92db5 Merge pull request #9585 from yorikvanhavre/arch-svg-fill
Arch: Fixed SVG fill
2023-05-23 13:52:33 +02:00
Chris Hennes
5ce3e83eac Merge pull request #9624 from wwmayer/fix_OpenSCAD_cmds
OpenSCAD: Hull/Minkowski also work for a single selected object
2023-05-22 13:45:31 -05:00
Chris Hennes
7e6fe6030f Merge pull request #9627 from chennes/addonManagerMiscBugs
Addon Manager: Minor error handling cleanup
2023-05-21 20:37:54 -05:00
Chris Hennes
452067c43c Update translations 2023-05-21 19:13:11 -05:00
Chris Hennes
aae9334b7f Addon Manager: Minor error handling cleanup 2023-05-21 15:50:29 -05:00
wmayer
f5fef1c6db OpenSCAD: Hull/Minkowski also work for a single selected object 2023-05-21 16:42:09 +02:00
Roy-043
e1829be977 Draft: fix props_changed_placement_only for attached clones and similar (#9623)
For an attached object whose Shape depends on one or more source objects props_changed_placement_only should always return False.
2023-05-21 16:15:55 +02:00
Chris Hennes
38230171f4 Merge pull request #9614 from chennes/fixPrefPageContext
Gui: Correct translation context of pref pages
2023-05-20 19:53:32 -05:00
MaxiV
f1ab344881 Delete A4_IRAM4504.svg
It is included in the AR_IRAM folder
2023-05-20 10:31:00 -04:00
sliptonic
890979b3c3 Merge pull request #9608 from chennes/pathHTMLRemoval
Path: Remove HTML where not needed
2023-05-20 07:51:57 -05:00
Roy-043
6d69a65218 Draft: remove obsolete gui_array_simple.py (#9616) 2023-05-20 10:37:31 +02:00
Abdullah Tahiri
0f14065d0a Sketcher: App - Clang-format 2023-05-20 07:55:05 +02:00
Abdullah Tahiri
4edd4fe935 Sketcher: PlaneGCS C-lang formatting
====================================

As per:
https://forum.freecad.org/viewtopic.php?t=77205

Please use pre-commit as described in:
https://github.com/FreeCAD/DevelopersHandbook/blob/master/gettingstarted/index.md#setting-up-for-development
2023-05-20 07:55:05 +02:00
Chris Hennes
f7a4ce6928 Gui: Move C++ pref pages to QObject context 2023-05-19 20:54:27 -05:00
Chris Hennes
c0726b8481 Gui: Correct translation context of pref pages
Preference page title strings must be in QObject
2023-05-19 20:46:12 -05:00
Chris Hennes
9de87e8b75 Merge pull request #9612 from chennes/addonmanagerVersionErrorHandling
Addon Manager: Improve error handling for Version
2023-05-19 18:08:14 -05:00
wandererfan
3a2b02ba58 [TD]fix fail on bad selection (#9598) 2023-05-19 19:07:48 -04:00
wandererfan
ab5203de3d [TD]cleanup debug messages 2023-05-19 19:07:48 -04:00
Chris Hennes
89d8c57ee8 Addon Manager: Improve error handling for Version 2023-05-19 17:17:29 -05:00
Chris Hennes
e16ff3f320 Merge pull request #9610 from chennes/openscadWordingTweak
OpenSCAD: Minor wording tweak in preferences
2023-05-19 10:25:29 -05:00
Chris Hennes
2a6cb77730 OpenSCAD: Minor wording tweak in preferences 2023-05-18 21:58:08 -05:00
Chris Hennes
650273dddc Addon Manager: Minor linguistic fixes 2023-05-18 21:49:41 -05:00
Chris Hennes
2c134268fa Path: Misc. minor string cleanup 2023-05-18 21:33:46 -05:00
Chris Hennes
036b8cae10 Path: Remove HTML where not needed 2023-05-18 20:44:00 -05:00
Chris Hennes
2798528b8f Update translations 2023-05-18 07:49:08 -05:00
Chris Hennes
b7e8b14fee Addon Manager: Fix typo 2023-05-17 17:01:17 -05:00
Roy-043
452deddc87 Draft: Draft_Move continue mode failed with numeric input (#9597) 2023-05-17 18:56:36 +02:00
Roy-043
4a0b1a670d Draft: ShapeString: use FaceMakerBullseye instead of current face algo (#9593) 2023-05-17 18:19:00 +02:00
Abdullah Tahiri
87aec0d9ed Skecher: Rendering order
========================

Recently the rendering order functionality was temporarely removed, as it interferred with the development of visual layers.

However, the release comes before visual layers are finished and can provide such functionality.

This commit reintroduces the functionality for the release.
2023-05-17 16:29:34 +02:00
Abdullah Tahiri
991ceea306 Sketcher: RenderingOrder resources and icons 2023-05-17 16:29:34 +02:00
Abdullah Tahiri
b2c428f13f Sketcher: New edit tools toolbar
================================

Move Grid and Snap to edit tools
2023-05-17 16:29:34 +02:00
Chris Hennes
ae646380aa Sketcher: Translate context menu 2 2023-05-17 14:43:57 +02:00
Chris Hennes
e951756611 Sketcher: Translate context menu 2023-05-17 14:43:57 +02:00
0penBrain
9e177158bd Sheet: display an error in console when a cyclic dependency is detected 2023-05-17 10:09:41 +02:00
Roy-043
a3cb3b1a23 Arch: endpoint after Wall length change was not in local sketch coords (#9592) 2023-05-16 21:24:16 +02:00
Yorik van Havre
ec96c2c738 Arch: Minor fix to IFC exporter 2023-05-16 15:25:53 +02:00
Yorik van Havre
6479bf1220 Arch: Fixed SVG fill - fixes #6208 2023-05-16 12:27:59 +02:00
Abdullah Tahiri
260187f924 Fem: Remove Unused variable 2023-05-16 08:29:28 +02:00
wandererfan
4921744b90 [TD]fix direction precision error #9572 2023-05-15 10:13:42 -04:00
sliptonic
f279d863a9 Merge pull request #9554 from wwmayer/issue_9403
Path: fixes #9403: Memory leak in Path
2023-05-15 06:32:11 -05:00
Florian Foinant-Willig
29657c2310 Sketcher: fix Circle to Line distance constraint display 2023-05-15 12:14:21 +02:00