Commit Graph

32687 Commits

Author SHA1 Message Date
joha2
2d3293306b Points: show now returns an GeoFeature object
* Added one return statement into try-catch block which returns the appropriate object (instead of `None`).
* Behaviour now in line with `Part.show`.

Example:

```Python
>>> import Points
>>> pp = Points.Points()
>>> pp.addPoints([(1,2,3),(4,5,6)])
>>> go = Points.show(pp)
>>> go  # Former behaviour was to return None
<GeoFeature object>
>>> go.ViewObject.ShapeColor = (1,0,0)
>>> go.ViewObject.ShapeColor = (1.,0.,0.)
>>> go.ViewObject.PointSize = 20
```
2023-04-04 11:35:59 +02:00
Bernd Hahnebach
afbacfeecd Mods: update gitattributes with latest module directories 2023-04-04 08:58:52 +02:00
Chris Hennes
c34c9f5156 Merge pull request #9172 from Ondsel-Development/color_pref_ui
Pref: Colors: Reorganize the ui.
2023-04-03 13:39:53 -05:00
Chris Hennes
afba28929f Merge pull request #9140 from chennes/precommitHooks
Git: Add pre-commit configuration
2023-04-03 13:06:05 -05:00
Paddle
c4aebd9271 pref: color: change according to adrianinsaval mockup 2023-04-03 18:56:35 +02:00
wmayer
90c296af6b Sketcher: fix some lint warnings 2023-04-03 17:36:06 +02:00
wmayer
c38ef7da53 Sketcher: ignore toolbars if toggle action is invisible or style is FORCE_HIDE
This fully fixes #9135
2023-04-03 17:36:06 +02:00
wmayer
43c3a31da9 Sketcher: restore toolbars when changing between workbenches in edit mode
This partially fixes issue #9135
2023-04-03 17:36:06 +02:00
Chris Hennes
d05be2d4f2 Clang-Tidy: Remove readability-qualified-auto 2023-04-03 17:11:19 +02:00
mosfet80
e9c1a1600a [Draft] Remove obsolete code related to Drawing WB
* [Draft] Remove obsolete code related to Drawing WB




remove unused elif

* [Draft] Remove obsolete code related to the Drawing WB

* Update preferences-draftvisual.ui

Also remove the template label.

* Update utils.py

Remove reference to "template"

* Remove Draft_Drawing.svg from Draft.qrc

---------

Co-authored-by: Roy-043 <info@b-k-g.nl>
Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>
2023-04-03 16:36:23 +02:00
Paddle
424ae52547 Pref: Color: change icon to button_switch 2023-04-03 15:49:19 +02:00
Paddle
0065269e14 Pref: Color: move middle checkbox and just disable mid color instead of hidding 2023-04-03 15:05:54 +02:00
Paddle
5301ade710 Pref: Colors: Reorganize the ui. 2023-04-03 13:47:26 +02:00
Chris Hennes
4887bd6d7f Merge pull request #9169 from oursland/conda-pin-libcxx
Pin conda package libcxx<16 to build with boost 1.78.0.
2023-04-02 19:06:15 -05:00
Jacob Oursland
2dcac3360c Pin conda package libcxx<16 to build with boost 1.78.0. 2023-04-02 16:26:29 -07:00
Chris Hennes
d725f1c76e Merge pull request #9143 from Ondsel-Development/unit_prefs
Pref: Remove Unit tab and move settings back to main page.
2023-04-02 16:58:05 -05:00
Chris Hennes
5382509831 Precommit: Add mixed-line-ending
Converts all line endings to Linux linefeed standard.
2023-04-02 13:00:17 -05:00
Chris Hennes
1633f78b8c Merge pull request #9149 from xtemp09/gui-fix
[GUI] Radial gradient implementation
2023-04-02 11:26:38 -05:00
luzpaz
2e8f7817d9 OpenSCAD: linting importCSG.py 2023-04-02 12:19:02 +02:00
luzpaz
5444a4a0cb Fix trailing whitespace 2023-04-02 12:18:13 +02:00
xtemp09
414c803ff3 [GUI] Radial gradient implementation
This commit implements radial gradient as background and adds the option
to settings. It also renames "Color gradient" as "Linear gradient",
keeping Linear gradient default. Internally, it remains unchanged for
compatibility.

Radio gradient is more suitable for CAD, since it gives a more balanced
color distribution across the screen, improving visibility of model and
sketches with a halo-like effect.
2023-04-02 16:33:01 +07:00
Jolbas
bd627a469f Draft: fix error in PR #8698 (#9160)
fix for mistake in pr https://github.com/FreeCAD/FreeCAD/pull/8698
see comment 9983207ab8 (r1155160709)
2023-04-02 11:23:59 +02:00
Chris Hennes
0ac66f1ecd Merge pull request #9142 from chennes/addonManagerReformat
Addon manager reformat
2023-04-01 19:17:51 -05:00
Chris Hennes
f89f3e2ca9 Merge pull request #9156 from luzpaz/toponaming-whitespace
Toponaming: fix whitespace in App/MappedName.cpp
2023-04-01 17:59:44 -05:00
luzpaz
07a5342b60 Toponaming: fix whitespace in App/MappedName.cpp 2023-04-01 15:21:01 +00:00
0penBrain
d31cd90d00 Sketcher: do not apply line/edge color preference to existing sketches, fixes #8188 2023-04-01 16:31:17 +02:00
Paddle
173d4b9464 pref: general: connect comboBox_UnitSystem manually. Fix System unit tooltip string 2023-04-01 16:30:51 +02:00
Paddle
a1b70c294c Pref: Remove Unit tab and move settings back to main page. 2023-04-01 16:30:51 +02:00
wmayer
d08ceef3c8 Gui: use an annotation node so that line is always rendered on top of the scene 2023-04-01 14:53:05 +02:00
luzpaz
6bd40b5dcd Fem: fix trailing whitespace 2023-04-01 08:39:05 +02:00
wandererfan
c9c872d187 [TD]fix oversight in PR9129 2023-03-31 20:14:38 -04:00
Chris Hennes
97a3e8795d Merge pull request #9121 from oursland/conda-devenv-linux
Add conda devenv support for Linux x86-64 and aarch64.
2023-03-31 14:17:14 -05:00
Chris Hennes
7c4ffcd498 Git: ignore formatting rev 2023-03-31 13:48:49 -05:00
Chris Hennes
028c379238 Addon Manager: Black and lint 2023-03-31 13:46:13 -05:00
Chris Hennes
17ad4a20f3 Git: Add pre-commit configuration 2023-03-31 13:35:45 -05:00
wmayer
48c11a77ad Gui: interactive image scaling:
* add option to allow points outside of image
* after starting the interactive scaling allow to cancel it immediately
2023-03-31 19:40:50 +02:00
wmayer
6819055c21 Gui: implement interactive image scaling 2023-03-31 19:40:50 +02:00
wmayer
1b99ad1560 Gui: fix regression when loading an image file 2023-03-31 19:40:50 +02:00
wmayer
6d6199ca3e Tests: add some more fmt tests 2023-03-31 19:37:26 +02:00
wmayer
11c628feeb Mesh: fix -Wclazy-connect-by-name 2023-03-31 19:14:54 +02:00
0penBrain
1c5ea5f278 Use qOverload macro instead of QOverload 2023-03-31 17:17:34 +02:00
wmayer
5f73ab8923 TD: remove deprecation warning 2023-03-31 11:03:10 -04:00
wmayer
7eb661cd78 TD: implement XMLQuery for Qt6 2023-03-31 11:03:10 -04:00
wmayer
0de7d14e15 TD: use new license header 2023-03-31 11:03:10 -04:00
0penBrain
4cc2a1af62 Gui: prevent crashes on MacOS using boost::format 2023-03-31 15:22:03 +02:00
Benjamin Bræstrup Sayoc
0b29a5f0a0 Improve readability of DrawUtil.cpp 2023-03-31 08:45:05 -04:00
Benjamin Bræstrup Sayoc
8196ca323e Improve readability of QGIView.cpp 2023-03-31 08:45:05 -04:00
Pesc0
99e13d9529 Remove all PyQt references 2023-03-31 10:36:04 +02:00
Jolbas
53aa302d8b PartDesign: Return directly if occurrences is 1
In LinearPattern and PolarPattern. Skip all checks if occurrences is 1. Allows Expressions on Length/Angle that evaluates to 0 if Occurrences is 1.

Co-Authored-By: 0penBrain <48731257+0penBrain@users.noreply.github.com>
2023-03-30 23:02:03 +02:00
Jacob Oursland
584f466afb Add conda devenv support for Linux x86-64 and aarch64. 2023-03-29 17:51:32 -07:00