Commit Graph

37443 Commits

Author SHA1 Message Date
Max
fd360e8fe9 Update context menu with a toggle for suppress property with checkmark (checked when suppressed) 2024-04-29 17:35:14 +02:00
Roy-043
30536de9a8 Only imported modules can be reloaded 2024-04-29 16:15:58 +02:00
Roy-043
4e908ee9bd Draft: legacy DXF importer: downloaded libs should be reloaded
Otherwise old versions will still be used in the current FreeCAD session.
2024-04-29 16:15:58 +02:00
Roy-043
9325a1cd5a Draft: legacy DXF importer fix group and layer behavior
Fixes #13621.

Currently the legacy DXF importer creates a main group with the DXF name if a DXF is imported into an existing FreeCAD document. For each DXF layer it then creates a sub-group (or Draft Layer) inside that main group. Objects are nested in the sub-groups (or Draft Layers).

This does not make sense for Draft Layers as they should be nested in the LayerContainer, which should be in the root of the FreeCAD document.

Both for Draft Layers and sub-groups there is the issue that if mutliple DXF files are imported in the same FreeCAD document, exising Draft Layers and sub-groups are not taken into account. For each DXF a new "0" group/layer is created (with a Label that is not "0" and therefore not recognized), and if there are objects on that layer a new group/layer is created for each object (labelled "0001", "0002", "0003", etc).

To solve this the main group with the DXF name is no longer created in the revised code and the layers variable is initialized with the groups/layers that already exist in the FreeCAD document.

Additionally the formatObject function should not format objects that are in Draft Layers. Its action conflicts with the layer mechanism resulting in the last imported object having an incorrect color.
2024-04-29 16:15:16 +02:00
Roy-043
d1791815b8 Import: C++ DXF importer wrongly scaled polyline bulges
Fixes #13600.
2024-04-29 16:12:17 +02:00
hlorus
74d055e11a [Part/PD] Remove measure tools 2024-04-29 09:27:22 -04:00
wandererfan
722fab240e [Measure] Change icon
Co-Authored-By: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
2024-04-29 09:27:22 -04:00
hlorus
4f66ef8cb0 [Gui] Add command and task for unified measurement facility 2024-04-29 09:27:22 -04:00
hlorus
bed703a6f9 [Measure] Add features, viewproviders and preferences for unified measurement facility 2024-04-29 09:27:22 -04:00
hlorus
309e1c4155 [Sketcher] Add handlers for unified measurement facility 2024-04-29 09:27:22 -04:00
hlorus
6318586353 [PD] Add handlers for unified measurement facility 2024-04-29 09:27:22 -04:00
hlorus
eb59021118 [Part] Add handlers for unified measurement facility 2024-04-29 09:27:22 -04:00
hlorus
e5fee7be14 [App] Add registration functions for unified measurement facility 2024-04-29 09:27:22 -04:00
hlorus
8524ed6daf [Part] Move VectorAdapter into own file in PartGui 2024-04-29 09:27:22 -04:00
hlorus
dc54fdd5b8 [Part] Move ArcEngine into own file in Gui module 2024-04-29 09:27:22 -04:00
hlorus
e4e852d752 [Base] Expose type's "getModuleName" method 2024-04-29 09:27:22 -04:00
Reqrefusion
3e91ca658a Correction of some line colors 2024-04-29 15:44:39 +03:00
Reqrefusion
7851bf65e0 Making Technical Drawing icons more compatible with Part Design and Assembly icons Continue
Another overlooked logo was combined and hidden lines were made into dash lines
2024-04-29 15:18:37 +03:00
Kacper Donat
1f4531bb98 Fix issues with wrong color for preference page tooltips 2024-04-29 13:06:48 +02:00
paullee
9b4d511352 [ArchWall] fix onChanged() length to support ArchSketch 2024-04-29 10:30:09 +02:00
Furgo
61ad5e5000 Arch: Add HeightPropagate tooltip info (#13584) 2024-04-29 10:27:10 +02:00
Reqrefusion
d032654889 Making Technical Drawing icons more compatible with Part Design and Assembly icons
It is aimed to provide integrity by including the shape used in other workbenches in technical drawing icons. For the hidden line, color variation was used instead of dashed. The reason for this is to comply with the art guide. I think the dashed line looks better.
2024-04-28 23:59:51 +03:00
Chris Hennes
b4b548025d Start: Invert sense of checkbox 2024-04-28 12:57:42 -05:00
Chris Hennes
5c46dfd600 Start: Create 'First Start' screen 2024-04-28 12:57:00 -05:00
Chris Hennes
5766505f20 Tests: Ensure MSVC has M_PI
Somewhere in the test suite GTest is including cmath (or something related) and not declaring this, so later includes of it by the tests are being ignored.
2024-04-28 12:56:21 -05:00
Chris Hennes
e3c17ff991 Gui: Add missing GuiExport to PreferencePack 2024-04-28 12:56:21 -05:00
Brad Collette
e22cde251c refactor Sanity
Logic is more modular with many more unit tests.
Reduced dependence on GUI
Cleaner template structure
2024-04-27 17:28:15 -05:00
wmayer
491cb5ffcb PD: Fixes crash if sub-element name of reference axis is empty
This fixes #13656
2024-04-27 07:43:40 +02:00
bgbsww
7961e82c66 Toponaming/Part: Fix all getBaseTopoShape calls. Tests and missing code. 2024-04-26 21:15:11 -05:00
Chris Hennes
5270531f04 Start: Correct card size calculation
Fixes #13671.
2024-04-26 20:21:26 -05:00
wmayer
93c1040d25 FEM: Make sure that points and normals array have equal size as otherwise a crash may occur 2024-04-26 23:30:20 +02:00
Roy-043
472fcc7f23 Gui: Clarify cache directory as read-only in prefs, add Browse tooltip
Fixes #13608.
2024-04-26 23:10:05 +02:00
wmayer
88893f7524 Core: fix possible memory leaks when using parser 2024-04-26 21:42:34 +02:00
wmayer
d86390cbc3 App: Change default constructor of Material class to use DEFAULT instead of STEEL 2024-04-26 15:06:30 +02:00
Roy-043
4d2e124f11 Merge pull request #13633 from Roy-043/Draft-revert-Draft-WB-changes-from-13294
Draft: revert Draft WB changes from #13294
2024-04-26 10:46:05 +02:00
wmayer
f2647448ec Gui: Fix MainWindowPy::removeWindow
See https://forum.freecad.org/viewtopic.php?t=87097
2024-04-26 10:10:25 +02:00
Patryk Skowroński
aec8199bc3 Fix for removeMarkups() 2024-04-25 21:40:39 -05:00
wmayer
e9bf1e4b88 Gui: expose ViewProviderGeometryObject::getUserDefinedMaterial() to Python 2024-04-25 17:56:58 +02:00
wmayer
ecc0da8036 App: Create PropertyMaterialList with a single material element 2024-04-25 17:04:36 +02:00
wmayer
451c55b41d Material: Fix several memory leaks caused by cyclic references
The class MaterialLibrary has a shared pointer to its Material objects and the class Material has a shared pointer to the MaterialLibrary.
The class MaterialManager owns all MaterialLibrary and Material objects in static containers. To resolve the cyclic references the method
cleanup() has been added.

The class ModelLibrary has a shared pointer to its Model objects and the class Model has a shared pointer to the ModelLibrary.
The class ModelManager owns all ModelLibrary and Model objects in static containers. To resolve the cyclic references the method
cleanup() has been added.

The Materials module registers a function to App::CleanupProcess that calls the above cleanup() methods.
NOTE: This registration is only done in debug mode mainly to satisfy memory checkers
2024-04-25 15:47:09 +02:00
wmayer
70950692eb Material: Fix two direct memory leaks in ModelLoader::addToTree and ModelLoader::loadLibrary 2024-04-25 15:45:15 +02:00
wmayer
29017e869a App: Add class CleanupProcess to allow to free resources when closing the application 2024-04-25 15:44:22 +02:00
WandererFan
9843b90970 Merge pull request #13639 from wwmayer/fix_techdraw_issue
TD: Fix compiler warning
2024-04-25 09:18:37 -04:00
wmayer
defc6cd906 Base: Fix memory leak in Quantity::parse
If an exception is thrown then the allocated buffer won't be cleaned up. To make this exception-safe the class
StringBufferCleaner is added using the RAII idiom
2024-04-25 14:34:02 +02:00
wmayer
af7efce41c TD: Fix compiler warning
Warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]
2024-04-25 10:46:24 +02:00
Roy-043
8c19516da2 Merge pull request #13612 from cjmayo/draft-byteCount
Draft: Fix QImage object has no attribute 'byteCount'
2024-04-25 09:20:10 +02:00
Roy-043
152d642b60 Draft: revert Draft WB changes from #13294
Revert the Draft WB related changes of #13294.
2024-04-24 21:27:04 +02:00
Chris Mayo
8f27e53ed4 Start: Allow system Microsoft GSL to be used 2024-04-24 14:23:21 -05:00
Chris Hennes
ead426c6eb Update translations
Note: Web and Start omitted
2024-04-24 13:58:21 -05:00
Chris Hennes
356de59830 Merge pull request #13604 from wwmayer/fix_new_start_page
Start: Fix new start page
2024-04-24 13:57:36 -05:00