qewer33
cdf69d692f
Gui: Transform dragger fix lint warnings
2023-09-19 21:04:25 +03:00
Chris Hennes
fb46c8c6f8
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
4767b116ec
fix qbytearray length out of bound
2023-09-19 12:38:27 -05:00
MisterMaker
522a589d9f
[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
73693035a3
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
bc81230157
Merge pull request #10611 from Ondsel-Development/Assembly_joint_basis
...
Assembly joints
2023-09-19 12:32:43 -05:00
qewer33
8f54ba316a
Remove unnecessary parameters from ViewParams
2023-09-19 18:26:19 +03:00
qewer33
53e3af5f98
Gui: Transform dragger fixes
2023-09-19 18:24:19 +03:00
Roy-043
8032698676
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
6c49f90ad3
Part: Fix a missing argument for HLR projector
2023-09-19 09:02:13 -04:00
AgCaliva
4d4667d726
Merge branch 'master' into User/Document/Feature_level_units_selection_#7746
2023-09-19 07:07:15 -03:00
AgCaliva
6ae6126243
Removing /showIncludes option for windows compiler
2023-09-19 07:06:13 -03:00
Paddle
d81c4bac63
Assembly : Initial implementation of 'create joint' command.
2023-09-19 10:51:04 +02:00
Paddle
3fcc839868
Move functions to UtilFunctions.py.
2023-09-19 08:31:33 +02:00
Paddle
bf1833c245
Split Commands.py so that each command has a file.
2023-09-19 08:31:33 +02:00
Paddle
f080b39829
Sketcher_Dimension : adds arc-angle mode for arcs.
2023-09-19 08:25:45 +02:00
Paddle
9c3c763d10
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
3c275de11d
Implement a function in sketchObject that swap an angle constraint to its supplementary.
2023-09-19 07:22:50 +02:00
Paddle
2c2a977e04
Add setter/getter for constraint expression.
2023-09-19 07:22:50 +02:00
Paddle
346d0d7231
Core: Selection : Add possibility to set the style of selection between normal and greedy
2023-09-19 00:08:39 +02:00
AgCaliva
40c05f6714
continue fix DOMDocument redefinition
2023-09-18 18:58:05 -03:00
Paddle
b97a2ef6dc
Adds a small convenience function to get arc of circle angle.
2023-09-18 21:33:24 +02:00
AgCaliva
cfdbd2322a
Merge branch 'master' into User/Document/Feature_level_units_selection_#7746
2023-09-18 14:01:25 -03:00
AgCaliva
ae9bb6ed43
using clang-format tags to avoid get headers reordered(fix DOMDocument redefinition error)
2023-09-18 13:40:13 -03:00
Jonas Bähr
41cae1a561
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
49bca90219
fixes #10651
2023-09-18 10:56:13 -05:00
Chris Hennes
6b792874c9
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
e8becf3f15
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
01ff476b2f
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
bd067fa203
Tests: fix a memory leak in StringIDRefTest::getPyObject
2023-09-18 14:58:38 +02:00
bdieterm
c9a802418a
Core, Gui: allow breakpoints in Init.py and InitGui.py of mods
2023-09-18 10:27:51 +02:00
Yorik van Havre
0d39450d29
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
327541fd2c
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
42e3bf75a2
[Macro Execute Dialog] add file name and file content filtering
2023-09-17 19:45:33 -05:00
wmayer
7bef828734
Tests: add some more unit tests for Matrix class
2023-09-18 01:21:07 +02:00
wmayer
7eff934913
Base: fix incorrect method names of Matrix class about diagonal and trace
2023-09-18 01:21:07 +02:00
wmayer
e5dca19ed6
Base: fix many lint warnings in Matrix class
2023-09-18 01:21:07 +02:00
qewer33
6fd6d95d59
Assembly: Fix joint icons
2023-09-17 16:36:31 -05:00
Chris Hennes
144aaba1af
App/Toponaming: Clarify return value of addStringHasher
2023-09-17 14:00:22 -05:00
Chris Hennes
2f811201d6
App/Toponaming: Add a few tests for Document
2023-09-17 13:13:37 -05:00
Chris Hennes
564f829e5c
App/Toponaming: Minor code cleanup
2023-09-17 13:13:37 -05:00
Chris Hennes
9b55b3a70b
App/Toponaming: Add StringHasher to Document
2023-09-17 13:13:37 -05:00
wmayer
a78ba4b91c
Part: fix crash in Geometry::Restore()
...
If a project contains an unknown geometry extension then the attempt to create it returns a null pointer which isn't checked and causes a segmentation fault.
See also forum: https://forum.freecad.org/viewtopic.php?t=81091
2023-09-17 19:29:28 +02:00
wmayer
24cb532182
Gui: Remove bounding box computation from SoDatumLabel::GLRender()
2023-09-17 19:27:12 +02:00
wmayer
99358cd063
Gui: fix clang-tidy warnings in EditableDatumLabel
...
and fix two further memory leaks
2023-09-17 19:11:31 +02:00
wmayer
10a60f2ec5
Gui: fix clang-tidy warnings in TaskImage
2023-09-17 19:11:31 +02:00
Roy-043
3b7698d77f
Draft: shape2dview: avoid issues with intersecting solids
...
Add `Shape.SubShapes` instead of a copy of the shape. This avoids cut problems if there are intersecting solids.
Forum topic:
https://forum.freecad.org/viewtopic.php?t=81240
2023-09-17 18:59:20 +02:00
Roy-043
8166fb8aea
Arch: Fix Arch_Fence section placement
...
The code relied on the old implementation of Draft patharray where the calculated placements were not returned in sequence.
Forum topic:
https://forum.freecad.org/viewtopic.php?t=81246
2023-09-17 18:21:13 +02:00
Paddle
4079c924d9
TaskImage: remove the spinbox/sodatumLabel gestion and use the global EditableDatumLabel instead.
2023-09-17 13:05:53 +02:00
Paddle
620c2ce239
Introduce EditableDatumLabel. A class that handles a SoDatumLabel with a spinbox to edit its value.
2023-09-17 13:05:53 +02:00