Commit Graph

37141 Commits

Author SHA1 Message Date
Max Wilfinger
4a588df3b7 Add Std_Measure command to tool menu. (#13777) 2024-05-06 11:02:50 -05:00
Martin Rodriguez Reboredo
9759da82e4 Fixups with Qt6 enums (#13611)
* Python PySide enums to C++ converter

* Python IntFlags to C++ int in getStandardButtons

* Remove int conversion in mods Python sources
2024-05-06 18:02:18 +02:00
Zheng Lei
c24ace7f73 Gui: support toolbar drag and drop to status bar and menu bar (#13571)
* Gui: support toolbar drag and drop to status bar and menu bar

Closes FreeCAD/FreeCAD#12979

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Gui: improve toolbar handling in status and menu bar

* Gui: fix workbench tab bar orientation in status or menu bar

* Gui: remove workbench toolbar position settings

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-06 17:59:16 +02:00
farley
56b938e1de Update Tree.cpp
- Disable document activation when right-clicking
2024-05-06 17:57:15 +02:00
wmayer
913e409b24 Core: Fix crash when loading a file with v0.21 that was created with v0.22
In v0.22 a version number -1 is added to the material files to distinguish between old and new project file.
But v0.21 doesn't know about this version number and interprets it as number of elements instead.
Because this value is assigned to an unsigned type the value becomes 2**32 - 1. Now trying to create a container of this size requires > 280 GB
of RAM. On most systems FreeCAD new handler will jump in and raises a memory exception to stop the allocation. But an other systems with
plenty of RAM it's tried to allocate the memory and then may crash at some point.

This PR fixes this regression. It puts the version number to the MaterialList XML element as an optional attribute.
With this change FreeCAD v0.22 is still able to load projects that have been created prior to this change.
Additionally FreeCAD v0.21 can again load project files without crashing.

For more details see: https://forum.freecad.org/viewtopic.php?t=87268
2024-05-06 17:56:25 +02:00
marioalexis84
0e1e8ce141 Fem: Rescaling and transparency fix for heat constraint symbols (#13723) 2024-05-06 10:54:57 -05:00
marioalexis
1b6fa97472 Fem: Save and restore custom colors of elements in mesh - fixes #6131 2024-05-06 17:53:39 +02:00
PaddleStroke
2e7a1cf358 Sketcher: Dimension tool : add arc length 2024-05-06 17:50:17 +02:00
wmayer
1febe5cde8 Part: Create CompSolid/Compound/Shell if null before adding a sub-shape
Creating a shape with Part.CompSolid(), Part.Compound() or Part.Shell() is a null shape. In order to allow to append sub-shapes with the add()
method a valid shape must be created beforehand.

This fixes #13208
2024-05-06 17:45:58 +02:00
Bas Ruigrok
5ba93dd9f0 Gui: Improve lookAtPoint (#13556)
* Gui: Rename NavigationStyle::pan to setupPanningPlane

* Gui: Replace duplicate code with NavigationStyle::setupPanningPlane

* Gui: Use panning plane when hit point not found in lookAtPoint

Also enables navigation animations when pressing MMB while the mouse is not over an object

* Gui: Remove unused methods
2024-05-06 10:45:14 -05:00
sliptonic
d977689b47 Merge pull request #13529 from davesrocketshop/hardness_units_pr
Materials: Update Material Models
2024-05-06 10:43:32 -05:00
bgbsww
d7ade12dc3 Ensure we set up a valid sketch even with invalid external references 2024-05-06 17:42:38 +02:00
wmayer
4ea1ad58c8 PD: Fix crash when adding sketch to loft via tree view
The underlying problem is the method DocumentItem::updateItemSelection() where
the selection is altered. This may cause the destruction and recreation of the
DocumentObjectItems so that the passed pointer can become dangling.

The issue is fixed in two steps:
1. Add the method 'DocumentObjectItem *findItem(App::DocumentObject* obj, const std::string& subname) const'
   to safely re-access the item.
2. Add a boolean flag 'dirtyFlag' and the methods insertItem() and removeItem() to DocumentObjectData.
   This is needed to check when the iterator over the container becomes invalid.
2024-05-06 17:38:59 +02:00
sliptonic
92a9b3061d Merge pull request #13668 from Ondsel-Development/RefactorPostCommand
Refactor post command
2024-05-06 09:49:28 -05:00
sliptonic
6b25433fbf Merge pull request #13667 from Ondsel-Development/refactorsanity
refactor Sanity
2024-05-06 09:48:59 -05:00
WandererFan
644020f000 Merge pull request #13842 from WandererFan/fixDimRotation3
[TD]fix dimension autocorrect
2024-05-06 08:44:03 -04:00
Furgo
cf59ec5ade Revert missed change on the last commit 2024-05-06 11:32:10 +02:00
Furgo
5179a4b9c5 Look up materials with full path. Revert changes to the Material namespace 2024-05-06 11:32:10 +02:00
Furgo
4448f25923 Arch: adapt materials to new Materials path scheme 2024-05-06 11:32:10 +02:00
Roy-043
bd39f4396d Clean up... 2024-05-06 11:07:23 +02:00
Roy-043
34afffc148 More files are involved... 2024-05-06 11:07:23 +02:00
Roy-043
22dc172154 Draft: Do not show temporary line object in tree (additional)
#13778 introduced `self.obj.ViewObject.ShowInTree = False` to hide the temporary object. But objects that are hidden in the tree are displayed in the tree when they are selected in the 3D view. This selection occurs during commands that take more than 2 points. The solution is to change `self.obj.ViewObject.Selectable` on mouse button up/down.

Fixes #13700.
2024-05-06 11:07:23 +02:00
Chris Hennes
fb513587b7 cMake: Restore wrappers for QtWebEngine 2024-05-06 08:08:35 +02:00
wandererfan
d2d93458e9 [TD]fix dimension autocorrect
- autocorrect was not handling scaled and rotated reference geometry
  properly.
2024-05-05 20:38:14 -04:00
Chris Hennes
15b612ebca Themes: Explicitly remove Editor/Text setting in Classic 2024-05-05 13:46:14 +02:00
sliptonic
7d841c05f0 More work on unit tests
Avoid unnecessary reloads from disk
2024-05-04 08:24:00 -05:00
WandererFan
9bd19ff43a Merge pull request #13790 from pavltom/techdraw_split_sheet_autofill
[TechDraw] Issue #13661 - Split sheet autofill to separate values
2024-05-04 09:15:04 -04:00
Max Wilfinger
f74bfc4620 Changing the stop icon from a green one to a red one. 2024-05-03 14:50:59 -05:00
Chris Hennes
a75350b688 Merge pull request #13773 from bgbsww/bgbsww-toponamingMissingAppMethods
Toponaming: Add toponaming missing methods in app
2024-05-03 13:44:09 -05:00
bgbsww
2bff3f5343 Lint corrections 2024-05-03 12:07:02 -04:00
sliptonic
26e9d396d9 add generic post processor 2024-05-03 10:16:41 -05:00
sliptonic
205d6339cb Make Job gui work with new PostProcessor class 2024-05-03 10:16:41 -05:00
sliptonic
72cfbe02df fix test script 2024-05-03 10:16:41 -05:00
sliptonic
0514163ec7 Major refactor on post stack 2024-05-03 10:16:41 -05:00
sliptonic
7c3ca87e4a findParentJob will now return the original object if it is a job rather than None 2024-05-03 10:16:41 -05:00
wmayer
ede6c811fd Core: Set tab title for MDIViewPyWrap 2024-05-03 14:18:00 +02:00
Dov Grobgeld
960998ed42 Add <algorithm> include and remove explicit 3rdparty/GSL include reference 2024-05-03 14:17:09 +02:00
Roy-043
ede724366e Merge pull request #13803 from Roy-043/Arch-Arch-Schedule-allow-2-and-3-in-unit-string
Arch: Arch Schedule allow ^2 and ^3 in unit string
2024-05-03 10:04:27 +02:00
bgbsww
d861b81c51 Merge branch 'main' into bgbsww-toponamingMissingAppMethods 2024-05-02 22:43:36 -04:00
WandererFan
af2b8b661f Merge pull request #13784 from WandererFan/defaultTemplate
[TD]add fallback default template
2024-05-02 22:15:00 -04:00
bgbsww
928e9897eb Performance measurement tools 2024-05-02 18:53:39 -05:00
bgbsww
ad0cb61656 Toponaming/Part: unify revolution changes 2024-05-02 18:50:02 -05:00
Roy-043
5607f5d52e Merge pull request #13798 from paullee0/ArchCurtainWall_01_add_self-Type
[ArchCurtainWall] add self.Type definition like other Arch Objects
2024-05-02 22:31:40 +02:00
Roy-043
b45bf9ba13 Merge pull request #13778 from yorikvanhavre/draft-hide-templine
Draft: Do not show temporary line object in tree
2024-05-02 22:28:11 +02:00
Roy-043
c792effb06 Arch: Arch Schedule allow ^2 and ^3 in unit string
Fixes #13796.
2024-05-02 21:31:26 +02:00
paullee
d8ab9467c3 [ArchCurtainWall] add self.Type definition like other Arch Objects
All Arch Objects have self.Type defined, add here for Arch Curtain Wall.

        self.Type = "Axis"
        self.Type = "AxisSystem"
        self.Type = "Building"
        self.Type = "BuildingPart"
        self.Type = "Component"
        self.Type = "Equipment"
        self.Type = "Fence"
        self.Type = "Floor"
        self.Type = "Frame"
        self.Type = "Grid"
        self.Type = "MaterialContainer"
        self.Type = "Panel"
        self.Type = "Pipe"
        self.Type = "Precast"
        self.Type = "Profile"
        self.Type = "Project"
        self.Type = "Rebar"
        self.Type = "Reference"
        self.Type = "Roof"
        self.Type = "Schedule"
        self.Type = "SectionPlane"
        self.Type = "Site"
        self.Type = "Space"
        self.Type = "Stairs"
        self.Type = "Structure"
        self.Type = "Truss"
        self.Type = "Wall"
        self.Type = "Window"

FC Forum Discussion - https://forum.freecad.org/viewtopic.php?t=87210
2024-05-03 01:20:10 +08:00
pavltom
b3413926a8 [TechDraw] Issue #13661 - Split sheet autofill to separate values 2024-05-02 15:34:38 +02:00
wandererfan
dc1245aef0 [TD]add fallback default template 2024-05-02 07:06:58 -04:00
Yorik van Havre
b731b8a9e8 Draft: Do not show temporary line object in tree - fixes #13700 2024-05-02 11:04:15 +02:00
wandererfan
e4eb859849 [Admin]add privacy policy 2024-05-02 10:13:25 +02:00