Commit Graph

34373 Commits

Author SHA1 Message Date
wmayer
fdc44d50ef Gui: fixes #10724: TaskView gets truncated 2023-09-21 19:11:45 -05:00
wmayer
5743ce4681 Gui: fix possible memory leak if inappropriate view provider is created
Example code:
doc = App.newDocument()
doc.addObject(type = "Part::Feature", viewType = "MeshGui::ViewProviderMesh")
2023-09-21 19:11:29 -05:00
Yorik van Havre
864026d32b Merge pull request #10741 from Roy-043/Arch-avoid-intersecting-solids-in-windows-and-doors-with-openings
Arch: avoid intersecting solids in windows and doors with openings
2023-09-21 13:51:11 +02:00
Yorik van Havre
e0b814ed59 Merge pull request #10735 from Roy-043/Draft-Add-distance_to_plane-and-project_point_on_plane-to-geometry.py
Draft: Add distance_to_plane and project_point_on_plane to geometry.py
2023-09-21 11:11:44 +02:00
Chris Hennes
e36e16de59 Merge pull request #10667 from chennes/toponamingHasherToDocument
App/Toponaming: Add StringHasher to Document
2023-09-20 13:31:02 -05:00
wandererfan
0b191c477b [TD]initial implementation of cosmetic cicle command 2023-09-20 13:42:11 -04:00
Chris Hennes
3a0582b507 Merge pull request #10738 from qewer33/transform-fixes
Gui: Transform dragger fixes for PR #10706
2023-09-20 09:43:33 -05:00
Pieter Hijma
1fc5dea14c TechDraw: Expose two functions for SVG export 2023-09-20 09:27:17 -04:00
André Caldas
695a314229 TechDraw: creates closure for concurrent thread context.
We use a lambda function with a copy of variables
that might be destructed in the original calling thread,
possibly producing dangling references.

See: https://forum.freecad.org/viewtopic.php?t=81260
2023-09-20 09:26:15 -04:00
Rexbas
c2bf9efc7d Gui: Improve accuracy for navigation cube's rotate to nearest feature 2023-09-20 07:37:02 -05:00
Chris Hennes
730d471fb1 Update translations 2023-09-19 22:25:14 -05:00
Syres916
4e466355f1 [Gui] Fix color bar position and text (#10552)
* [Gui] Fix ColorBar position and labelling

* [Gui] Improve formatting

* [Gui] ColorBar adjusts if user squashes window height

* [Gui] Changes following feedback
2023-09-19 18:35:22 -05:00
wmayer
ab4abab53d Sketch: fix a few minor issues:
* fix compiler warning about unused variable
* fix const correctness
* fix access type of setExpression()
* removed duplicated method
2023-09-19 22:01:19 +02:00
Roy-043
01632916ea Arch: avoid intersecting solids in windows and doors with openings
With the current code, if you place a simple door and change its Opening property to 50, the door leaf and the frame intersect. This PR fixes that issue.
2023-09-19 21:31:09 +02:00
qewer33
4c39dcb347 Gui: Transform dragger fix lint warnings 2023-09-19 21:04:25 +03:00
Chris Hennes
0bbb10864b Merge pull request #10656 from Ondsel-Development/dim_arc_angle
Sketcher_Dimension: Adds arc angle mode.
2023-09-19 12:42:56 -05:00
Pesc0
108e2c175f fix qbytearray length out of bound 2023-09-19 12:38:27 -05:00
MisterMaker
08d6e65218 [Stylesheets] ProDark remove reminant of hex color codes. (#10737)
* [Stylesheets] Fixed and added more accent colors.

Added accent colors to Behave dark ProDark and Dark contrast.
Used accent color 3 to the button gradients.
Added Gradient to the Modern styles, because you can disable the gradient by giving 2 accent colors the same color.
2023-09-19 12:37:52 -05:00
Chris Hennes
2702d3bf00 Merge pull request #10657 from Ondsel-Development/dim_angle_supplementary
Sketcher_Dimension: Enable the user to select what angle he wants.
2023-09-19 12:35:51 -05:00
Chris Hennes
fec8888b50 Merge pull request #10611 from Ondsel-Development/Assembly_joint_basis
Assembly joints
2023-09-19 12:32:43 -05:00
qewer33
cd4d3e4505 Remove unnecessary parameters from ViewParams 2023-09-19 18:26:19 +03:00
qewer33
8d4a01318b Gui: Transform dragger fixes 2023-09-19 18:24:19 +03:00
Roy-043
68276d20ad Draft: Add distance_to_plane and project_point_on_plane to geometry.py
The functions have been copied from the WorkingPlane class. It makes sense to also have them available outside that class. The WorkingPlane class will later be updated to use these functions so that duplicate code is avoided.

Note that the default tolerance of the project_point_on_plane function is 1e-7. In the original projectPoint function it is sys.float_info.epsilon (too small for FreeCAD IMO).
2023-09-19 16:02:59 +02:00
Pieter Hijma
9ae03a5e87 Part: Fix a missing argument for HLR projector 2023-09-19 09:02:13 -04:00
Paddle
04a951aeb3 Assembly : Initial implementation of 'create joint' command. 2023-09-19 10:51:04 +02:00
Paddle
c0185ad95c Move functions to UtilFunctions.py. 2023-09-19 08:31:33 +02:00
Paddle
5a2b2304f9 Split Commands.py so that each command has a file. 2023-09-19 08:31:33 +02:00
Paddle
e3445388a2 Sketcher_Dimension : adds arc-angle mode for arcs. 2023-09-19 08:25:45 +02:00
Paddle
55420d96af Sketcher: Angle constraint: when moving it with mouse, it enables user to switch of supplementary angle. 2023-09-19 07:22:50 +02:00
Paddle
a8f11f12fb Implement a function in sketchObject that swap an angle constraint to its supplementary. 2023-09-19 07:22:50 +02:00
Paddle
e58b52ea12 Add setter/getter for constraint expression. 2023-09-19 07:22:50 +02:00
Paddle
4293c4a65b Core: Selection : Add possibility to set the style of selection between normal and greedy 2023-09-19 00:08:39 +02:00
Paddle
1c8f49ee67 Adds a small convenience function to get arc of circle angle. 2023-09-18 21:33:24 +02:00
Jonas Bähr
efc7fd09e4 Sketcher: update SketchObject's pydocs, first batch
Style like in e.g. `Part.makeLine(...)`, which seems to loosely follow
Google's recommendations [1]. Note that the signature *is* repeated in
the docstrings, as it's not "inspectable" (see notes for non-python
implementations in `inspect.signature` [2]).

[1]: https://github.com/google/styleguide/blob/gh-pages/pyguide.md#38-comments-and-docstrings
[2]: https://docs.python.org/3/library/inspect.html#inspect.signature
2023-09-18 10:57:12 -05:00
howie-j
12913daef5 fixes #10651 2023-09-18 10:56:13 -05:00
Chris Hennes
3915e44ee7 Merge pull request #10681 from wwmayer/dock_windows_rebased
Gui: make layout of Combo, Property and Tree view more flexible
2023-09-18 10:53:40 -05:00
Florian Foinant-Willig
f393a90467 Sketcher: refactor CommandConstraint.cpp (#10692)
* Sketcher: refactor CommandConstraint.cpp with TypeId helpers

* Sketcher: cosmetic empty lines

* fix pointer misusage
2023-09-18 10:37:03 -05:00
qewer
420f099946 Gui: Transform dragger improvements (#10706)
* Gui: Improve transform dragger appereance

* Gui: Implement axis color parameters

* Gui: Implement plane draggers for the Transform tool

* Gui: Clean comments in Transform dragger files
2023-09-18 10:34:26 -05:00
wmayer
ecad77057a Tests: fix a memory leak in StringIDRefTest::getPyObject 2023-09-18 14:58:38 +02:00
bdieterm
e33c5754d4 Core, Gui: allow breakpoints in Init.py and InitGui.py of mods 2023-09-18 10:27:51 +02:00
Yorik van Havre
e1f3e7c5d2 Merge pull request #10711 from Roy-043/Arch-Fix-Arch_Fence-section-placement
Arch: Fix Arch_Fence section placement
2023-09-18 09:22:30 +02:00
Yorik van Havre
492f16d727 Merge pull request #10712 from Roy-043/Draft-shape2dview-avoid-issues-with-intersecting-solids
Draft: shape2dview: avoid issues with intersecting solids
2023-09-18 09:21:55 +02:00
mwganson
788c86e1c4 [Macro Execute Dialog] add file name and file content filtering 2023-09-17 19:45:33 -05:00
wmayer
d567b859d3 Tests: add some more unit tests for Matrix class 2023-09-18 01:21:07 +02:00
wmayer
4f6ab508d7 Base: fix incorrect method names of Matrix class about diagonal and trace 2023-09-18 01:21:07 +02:00
wmayer
939984bf2c Base: fix many lint warnings in Matrix class 2023-09-18 01:21:07 +02:00
qewer33
1063c76882 Assembly: Fix joint icons 2023-09-17 16:36:31 -05:00
Chris Hennes
6704cc6aff App/Toponaming: Clarify return value of addStringHasher 2023-09-17 14:00:22 -05:00
Chris Hennes
ef91d82daf App/Toponaming: Add a few tests for Document 2023-09-17 13:13:37 -05:00
Chris Hennes
b8055fa6f4 App/Toponaming: Minor code cleanup 2023-09-17 13:13:37 -05:00