Commit Graph

35719 Commits

Author SHA1 Message Date
Roy-043
d63ca9c2dc Arch: importDAE: DaeUnsupportedError is defined in common.py
Forum topic:
https://forum.freecad.org/viewtopic.php?t=84626
2024-01-23 17:52:32 +01:00
Chris Hennes
c47b380e85 Merge pull request #12028 from bgbsww/bgbsww-toponaming-makeElementFace
Toponaming move makEFace as makeElementFace and dependencies
2024-01-23 08:45:21 -06:00
Chris Hennes
5662c51ab4 Merge pull request #12054 from kadet1090/styling-elements-and-constraints-ui
Sketcher: Apply styling to elements and constraints UI
2024-01-23 08:40:48 -06:00
xtemp09
5aa36cd7dc Correction of #11775 2024-01-23 07:39:51 -06:00
bgbsww
a6ee5f4df9 Merge branch 'main' into bgbsww-toponaming-makeElementFace 2024-01-23 08:14:07 -05:00
wandererfan
3541ccc40d [TD]fix Compass widget update in section 2024-01-22 20:02:54 -05:00
wandererfan
deed6df1b2 [TD]fix line number not saved for cosmetic edge 2024-01-22 20:02:54 -05:00
Chris Hennes
1a7e3848b9 Merge pull request #12023 from bgbsww/bgbsww-patch-30
Initial code of mapSubElement Test
2024-01-22 16:02:00 -06:00
Chris Hennes
c3091337c5 Part/TopoShapeMapper: Add missing PreCompiled include 2024-01-22 15:57:54 -06:00
bgbsww
6ec676799d Small cleanups 2024-01-22 16:14:20 -05:00
Max Wilfinger
0bef2e927b [Sketcher] enable BSpline commands in contextual right click menu 2024-01-22 12:21:01 -06:00
bgbsww
5586c52069 Merge branch 'main' into bgbsww-toponaming-makeElementFace 2024-01-22 12:50:13 -05:00
WandererFan
cc45b58dad [Import]fix linkage warning on linux/gcc (#12071)
* [Import]fix linkage warning on linux/gcc


https://stackoverflow.com/questions/41167119/how-to-fix-a-wsubobject-linkage-warning

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-22 14:37:33 -03:00
Roy-043
a14e0cbbbb Draft: ShapeString double escape backslash in string
Fixes 12058.
2024-01-22 14:35:34 -03:00
Roy-043
341f71ec5b Draft: Inform user that objects without a Shape cannot be cloned
Fixes #11923.
2024-01-22 12:31:02 -05:00
Roy-043
5b98a762d1 Draft: Improve layer functions
The current make_layer function has a `None` default for the shape color and the line color. With that value the current preference is used. This, and how the function is called, results in some confusing behaviors:
* Newly created layers will only use 2 values from the preferences when they might use 5. The latter makes more sense for the end-user IMO.
* Layers created during DXF import (for example) will have a different shape color depending on the current preferences.
* The make_layer function may reapply colors that have already been set by the view provider.

To solve this all view property related function parameter have been changed to a not None value. If a None value is supplied the view property as set by the view provider is not changed. The Layer Manager has been updated accordingly.
I realize that calling a function with 6 None values is not very convenient, but think it is the solution that is least likely to break other exiting code.

Additionally:
* Removed the makeLayer function. Layers were introduced in V0.19 when the naming scheme was changed to "make_*". Maybe it was created by mistake, or before the actual renaming operation started, but it is safe to remove it now.
* Removed overly verbose messages.
* gui_layers.py had a missing import (result of a previous V0.22 PR): `from draftutils import utils`.
2024-01-22 11:29:13 -06:00
Chris Hennes
8c3ff5d3e9 Gui: Add missing override 2024-01-22 12:26:50 -05:00
Chris Hennes
37ec34df9d Merge pull request #12014 from bgbsww/bgbsww-patch-29
Toponaming ShapeMapper
2024-01-22 11:23:56 -06:00
Chris Hennes
5f743aa36b Merge pull request #12012 from Ondsel-Development/radius_render_fix
[Sketcher] Improve rendering of arc-angle, line-angle, arc-distances and fix radius
2024-01-22 11:21:53 -06:00
Vincenzo Calligaro
1fdffef21d [Core] [Preferences] Modernize for loop in DlgSettingsEditor.cpp (#12011)
* Preferences: modernize for loop in DlgSettingsEditor.cpp

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>

* Preferences: modernize for loop in DlgSettingsEditor.cpp
added textType and textColor variables to unpack range-for loops iterators

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>

* Update src/Gui/PreferencePages/DlgSettingsEditor.cpp

Minor linter updates, as suggested

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Update src/Gui/PreferencePages/DlgSettingsEditor.cpp

Minor linter updates, as suggested

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

---------

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-01-22 11:19:46 -06:00
mosfet80
9cd9d752ef Update action.yml
Updated ccache
https://ccache.dev/releasenotes.html#_ccache_4_9
2024-01-22 14:19:02 -03:00
Paddle
b140feabaf Sketcher: Edges pattern and width by type. 2024-01-22 11:12:42 -06:00
bgbsww
3fd886d58f Update src/Mod/Part/App/TopoShapeExpansion.cpp
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-01-22 12:12:21 -05:00
Adrián Insaurralde Avalos
90d3ede49a Merge pull request #11993 from Syres916/Tux_Nav_Style_Icon_Fix
[Gui] [Tux] Status Bar - Fix Nav Style Icons and theme recognition
2024-01-22 14:12:07 -03:00
Paddle
cce2c24262 Core: tree: prevent object replacement when dragging 2024-01-22 10:53:47 -06:00
xtemp09
51ccf610c0 Fix occasional segmentation fault when exiting
Fixes #11521.
2024-01-22 10:49:52 -06:00
Chris Hennes
6dfbdfc09e Merge pull request #11537 from Ondsel-Development/copy_paste_2023
[Sketcher] Add copy/cut/paste sketcher commands
2024-01-22 10:45:22 -06:00
André Caldas
0cbc9cd66e Does not rely on the pointervalue returned by getNameInDocument() to use as a DAG key.
In order to make getNameInDocument() always return a valid string,
we implement a getDagKey() method that shall be used instead of getNameInDocument()
when we want to use the pointer value as a "key" to identify the DocumentObject.
2024-01-22 10:40:24 -06:00
bgbsww
96b4171c09 Single char constants 2024-01-22 11:29:41 -05:00
bgbsww
31a6eb5a4a lint / review cleanups 2024-01-22 11:01:19 -05:00
marioalexis
c6911695e7 Material: Initialize types 2024-01-22 08:53:38 -06:00
Chris Hennes
5011381b4a Merge pull request #12059 from 3x380V/pyside6_fixes
Pyside6 fixes
2024-01-22 08:03:32 -06:00
Chris Hennes
501a5e3c85 Merge pull request #12061 from 3x380V/base_cleanup
Base cleanup
2024-01-22 08:01:17 -06:00
Ladislav Michl
ac6f991baf Gui: Consolidate Python -> Qt class conversion 2024-01-22 06:58:17 +01:00
Ladislav Michl
9f5f00db69 Gui: Consolidate module error message in PythonWrapper 2024-01-22 06:58:17 +01:00
Ladislav Michl
8c220492e3 CMake: Fix searching for pip installed PySide 2024-01-22 06:58:17 +01:00
Ulices
fa0702956c PartDesign: Update Length/Offset when Occurrences changes (#12069)
* Add 'HACK:'/`NOTE:` tags to get special highlightning

* [PD] Bugfix: Update Length/Offset when Occurrences changes

Fix #12068
2024-01-21 18:52:34 -06:00
marioalexis
629f585a15 Fem: Set PotentialEnabled to False in capacitance_two_balls example - fixes #9707 2024-01-21 16:23:29 -07:00
bgbsww
1490de0087 apply Comp to Comparator name change 2024-01-21 16:06:32 -05:00
bgbsww
541ec563e3 Merge branch 'main' into bgbsww-toponaming-makeElementFace 2024-01-21 15:52:31 -05:00
bgbsww
d4c5906c5c Add tests, reformat to modern C++, clean 2024-01-21 15:34:46 -05:00
Kacper Donat
34b6b36547 Sketcher: Disable visibility checkbox for external geometry 2024-01-21 20:33:49 +01:00
Kacper Donat
2fac012226 Sketcher: Fix checkbox behavior for Element checkboxes
This creates new method overload for changing layer of exact
ElementItem. This fixes strange behavior of the checkboxes for elements
that were dependent not on what user clicked but on what is selected.

Fixes: #8814
2024-01-21 20:33:37 +01:00
Kacper Donat
da6a4fe57b Sketcher: Make Elements UI style aware
This commit like previous one introduces ability to style list of
elements in the sketcher. It also completely refactors the rendering
delegate introducing dedicated method for calculating rects of each
element and method for rendering each sub control. Thanks to this
refactor we can be sure that areas drawn are the same as areas checked
for events in editorEvent.
2024-01-21 20:33:34 +01:00
Chris Hennes
35e09e233c Materials: Correct PreCompiled.h includes in Gui 2024-01-21 09:52:55 -07:00
Chris Hennes
b164457a30 Materials: Correct PreCompiled.h includes in App 2024-01-21 09:52:55 -07:00
Ladislav Michl
f1fdd2e2a9 Base: Replace if else with switch statement 2024-01-21 16:14:12 +01:00
Ladislav Michl
95b37fa806 Base: Do not use else before return 2024-01-21 16:14:12 +01:00
Ladislav Michl
915bfd3dde Base: Use std::recursive_mutex 2024-01-21 16:14:12 +01:00
wandererfan
562fb5114a [TD]handle View rotation in ExtensionPack circle centerlines 2024-01-21 09:28:19 -05:00