Commit Graph

34803 Commits

Author SHA1 Message Date
Chris Hennes
7c63b41b7e Merge pull request #10546 from chennes/addonManagerRefactorCacheCheck
Addon Manager: Refactor local cache update check
2023-09-04 19:53:59 -05:00
Chris Hennes
92016c4c9c Addon Manager: Refactor local cache update check 2023-09-04 19:13:18 -05:00
Jonas Bähr
9a7523fb4b Sketcher: Fix wrong format string in PyArg_ParseTuple
The part behind the column represents the function name itself, not an
error message. So previously, an argument error looked like this:
("Give an object" is not the method name)
```
>>> obj.carbonCopy()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: Give an object() takes at least 1 argument (0 given)
>>> obj.carbonCopy(123)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: Give an object() argument 1 must be str, not int
```

While the format string also supports a text for the complete error message
(using a semicolon instead), I decided against this: Pythons standard text
is more precise than this:
(the type error here is not "Give an object")
```
>>> obj.carbonCopy()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: Give an object
>>> obj.carbonCopy(123)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: Give an object
```
2023-09-05 00:38:30 +02:00
Jonas Bähr
34e877bc1d Sketcher: fix docs for solve(..)
Since the docstring was initially written, an additional error code was added.
2023-09-05 00:32:54 +02:00
Rexbas
dc216cde2a Gui: Refactor navigation animations
- Animations are played through an Animator
- Standard animations have a fixed duration and inherit from QVariantAnimation
- The animation duration can be changed in the preferences
- Fix animations when using the two arrows above the NaviCube
- Start an animation or start and wait for an animation
- Replaces standard camera animations (e.g. by selecting standard views or NaviCube) with FixedTimeAnimation
- Replace View3DInventorViewer's CameraAnimation with FixedTimeAnimation
- Replace OpenInventor navigation style infinite spin animation with SpinningAnimation
- Stops an active animation when a new animation is started
- Stops an active animation when the user starts dragging, panning or zooming
- Refactor reorientCamera so it can be used in animations
- Enable animations by default
2023-09-04 21:43:41 +02:00
pre-commit-ci[bot]
82abb33555 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-04 17:32:18 +00:00
Syres916
6f57f36620 [Start] Fix Python 3.11 Unicode Errors
Example Error :
  File "/home/john/freecad-daily-build/Mod/Start/StartPage/StartPage.py", line 422, in handle
    ALTCSS = f.read()
             ^^^^^^^^
  File "/usr/lib/python3.11/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 421: ordinal not in range(128)
2023-09-04 18:15:20 +01:00
Chris Hennes
6da62b83fa Merge pull request #10520 from qewer33/startpage-quickstart-open
StartPage: Add custom CSS option, re-organize preferences and further fixes
2023-09-04 11:54:39 -05:00
Chris Hennes
f1cd437fe9 Git: Add recent formatting commits to ignore-revs 2023-09-04 10:04:46 -05:00
didendron
ce2c0ed322 Gui: Add cancel button to transform task UI dialog
Fixes #7517
2023-09-04 16:43:27 +02:00
Chris Hennes
1cdc73ff92 Web: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
fb0f543da2 Test: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
6c9557c39b Surface: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
0611c1d9eb Start: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
dc20955bb7 RE: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
8c3a7ccddb Points: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
5395c563d9 MeshPart: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
6550fe021e Inspection: Final application of pre-commit 2023-09-04 08:18:51 -05:00
Chris Hennes
2f623f095b Assembly: Final application of pre-commit 2023-09-04 08:18:51 -05:00
wmayer
e48964fad5 Test: apply clang format 2023-09-04 07:22:09 -05:00
wmayer
19a1204a5a Test: add to pre-commit hooks 2023-09-04 07:22:09 -05:00
wmayer
255ddb746c Surface: apply clang format 2023-09-04 07:21:32 -05:00
wmayer
016a3de360 Surface: add to pre-commit hooks 2023-09-04 07:21:32 -05:00
Chris Hennes
fcedce3c42 Sketcher: Reformat to current clang-format standard 2023-09-04 07:17:28 -05:00
Yorik van Havre
50513232ac Merge pull request #10505 from Roy-043/Draft-Fix-angle-range-issue-of-make_circle
Draft: Fix angle range issue of make_circle
2023-09-04 11:29:13 +02:00
Yorik van Havre
5c806d707c Merge pull request #10464 from Ondsel-Development/bug/remove_gui_dependency
Bug fix: Allow Draft WB to import in FreeCAD headless docker container
2023-09-04 11:22:53 +02:00
Yorik van Havre
2556801938 Draft: Workaround failing multifuse in shape2Dview (#10478) 2023-09-04 10:45:56 +02:00
kaktus Jacek
1adfa88aee Fem: Removing "constraint" from the names
Removing "constraint" from the names of most FEM workbench features.

https://github.com/FreeCAD/FreeCAD/discussions/10217
2023-09-03 22:29:35 -05:00
qewer33
221e337a04 Apply pre-commit 2023-09-03 23:51:49 +03:00
qewer33
b6df38eb7f Fix CI tests failing 2023-09-03 20:52:58 +03:00
qewer
2dc6a69d65 Merge branch 'master' into startpage-quickstart-open 2023-09-03 19:47:28 +03:00
qewer33
1ece491dfd StartPage remove hide scrollbars option 2023-09-03 19:30:57 +03:00
qewer33
068e77c974 StartPage fixes 2023-09-03 19:23:13 +03:00
wmayer
0e04d526ec Web: apply clang format 2023-09-03 17:22:44 +02:00
wmayer
c6bb13a118 Web: add to pre-commit hooks 2023-09-03 17:22:44 +02:00
Chris Hennes
246a387625 Tests: Reformat to current clang-format standard 2023-09-03 09:51:42 -05:00
Chris Hennes
d9a6a2b51d Tools: Reformat to current clang-format standard 2023-09-03 09:51:22 -05:00
wandererfan
9a6f12d9c6 [TD]fix selection highlighting from tree 2023-09-03 10:09:42 -04:00
qewer33
87d9fb576f Fix StartPage preference widget names 2023-09-03 16:40:58 +03:00
qewer33
5be49a56f9 StartPage implement custom CSS preference 2023-09-03 16:21:49 +03:00
wmayer
fae6f8f5bb Start: apply clang format 2023-09-03 14:21:53 +02:00
wmayer
89f5f07ff7 Start: add to pre-commit hooks 2023-09-03 14:21:53 +02:00
Roy-043
a8e4b3a18f Ammended files based on review 2023-09-03 12:43:34 +02:00
wmayer
beabfd9e06 Base: fixes #10462: mesh.unite() causes segementaion fault 2023-09-03 11:14:34 +02:00
Amritpal Singh
fc973de1d9 Bug fix: Allow Draft WB to import in FreeCAD headless docker container 2023-09-03 12:24:22 +05:30
wandererfan
ffad14a7ff [TD]fix Tolerance format issue in dialog 2023-09-02 21:32:14 -04:00
Roy-043
341649e1d1 Draft: Correct mistake in PR10160 (#10506)
`self.gui_tools_repository` is an instance of a class that manages a dictionary, it is not a dictionary itself.
2023-09-02 23:37:16 +02:00
Roy-043
5cc0cc22db Typo... 2023-09-02 23:04:41 +02:00
Roy-043
0d2b3f566a Draft: Fix angle range issue of make_circle 2023-09-02 20:48:40 +02:00
Chris Hennes
3906828d44 Addon Manager: Reformat with new Black line length 2023-09-02 13:38:08 -05:00