Commit Graph

35692 Commits

Author SHA1 Message Date
Max Wilfinger
b57a6b504c [Sketcher] enable BSpline commands in contextual right click menu 2024-01-22 12:21:01 -06:00
WandererFan
e72efde5eb [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
427e75707e Draft: ShapeString double escape backslash in string
Fixes 12058.
2024-01-22 14:35:34 -03:00
Roy-043
6e0112d5f8 Draft: Inform user that objects without a Shape cannot be cloned
Fixes #11923.
2024-01-22 12:31:02 -05:00
Roy-043
7a85dd07e1 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
05f425eab9 Gui: Add missing override 2024-01-22 12:26:50 -05:00
Chris Hennes
5a7956cd61 Merge pull request #12014 from bgbsww/bgbsww-patch-29
Toponaming ShapeMapper
2024-01-22 11:23:56 -06:00
Chris Hennes
1ebcb6c99b 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
1bd3b531aa [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
049bd9c209 Update action.yml
Updated ccache
https://ccache.dev/releasenotes.html#_ccache_4_9
2024-01-22 14:19:02 -03:00
Paddle
a5d980ff59 Sketcher: Edges pattern and width by type. 2024-01-22 11:12:42 -06:00
Adrián Insaurralde Avalos
9b14a56198 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
8889cc1163 Core: tree: prevent object replacement when dragging 2024-01-22 10:53:47 -06:00
xtemp09
fbb114c47c Fix occasional segmentation fault when exiting
Fixes #11521.
2024-01-22 10:49:52 -06:00
Chris Hennes
4d416016e5 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
e6b5fd0a21 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
marioalexis
500f3b6086 Material: Initialize types 2024-01-22 08:53:38 -06:00
Chris Hennes
d260e1df43 Merge pull request #12059 from 3x380V/pyside6_fixes
Pyside6 fixes
2024-01-22 08:03:32 -06:00
Chris Hennes
0c403ca2f1 Merge pull request #12061 from 3x380V/base_cleanup
Base cleanup
2024-01-22 08:01:17 -06:00
Ladislav Michl
d03a0dfcd7 Gui: Consolidate Python -> Qt class conversion 2024-01-22 06:58:17 +01:00
Ladislav Michl
3dd2fc8f0f Gui: Consolidate module error message in PythonWrapper 2024-01-22 06:58:17 +01:00
Ladislav Michl
cf3d084ca2 CMake: Fix searching for pip installed PySide 2024-01-22 06:58:17 +01:00
Ulices
bf7adc51d1 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
5b7cca7703 Fem: Set PotentialEnabled to False in capacitance_two_balls example - fixes #9707 2024-01-21 16:23:29 -07:00
Chris Hennes
e11a65813c Materials: Correct PreCompiled.h includes in Gui 2024-01-21 09:52:55 -07:00
Chris Hennes
de46393711 Materials: Correct PreCompiled.h includes in App 2024-01-21 09:52:55 -07:00
Ladislav Michl
839cd947c7 Base: Replace if else with switch statement 2024-01-21 16:14:12 +01:00
Ladislav Michl
3a25a66a05 Base: Do not use else before return 2024-01-21 16:14:12 +01:00
Ladislav Michl
411b7573cc Base: Use std::recursive_mutex 2024-01-21 16:14:12 +01:00
wandererfan
f178206a2f [TD]handle View rotation in ExtensionPack circle centerlines 2024-01-21 09:28:19 -05:00
marioalexis
336bf03ada Fem: Call base class handleChangedProperyType function 2024-01-20 20:20:56 -07:00
Ajinkya Dahale
04bc6f8006 [Sketcher] Visualize B-spline in edit mode
Instead of the control polygon, or "join the dots" for interpolated splines.
2024-01-20 18:45:18 -07:00
wandererfan
a4c55b9ec8 [TD]protect against stretch factor == 0 2024-01-20 18:58:55 -05:00
wandererfan
d1297ebf85 [TD]handle equal section line end points 2024-01-20 18:58:55 -05:00
marioalexis
56d4214317 Fem: Improve self weight constraint - fixes #11652 2024-01-20 08:57:46 -07:00
Paddle
85b5a343f0 Sketcher: PythonConverter: Replace useLastGeoIdVar bool by enum class 2024-01-20 06:49:32 +01:00
sliptonic
fc1b138db2 Merge pull request #12041 from Ondsel-Development/fixorderbywidget
fixes #12029
2024-01-19 12:12:46 -06:00
Roy-043
62c951112d Merge pull request #12042 from Roy-043/Draft-DraftGui.py-make-type-of-self.facecolor-consistent
Draft: DraftGui.py make type of self.facecolor consistent
2024-01-19 18:59:20 +01:00
sliptonic
8e48165b16 fixes #12029 2024-01-19 11:31:53 -06:00
Roy-043
c155edcd87 Draft: DraftGui.py make type of self.facecolor consistent
Since V0.19 self.facecolor had two types: integer (initial value) or QColor. With this PR it is again always a QColor.
2024-01-19 18:31:11 +01:00
Chris Hennes
297dff5e9b Merge pull request #12007 from chennes/toponamingElementNameComparator
App/Toponaming: Add Comparator for mapped elements
2024-01-19 09:20:59 -06:00
Chris Hennes
f2fbac8e5e Merge pull request #12024 from Ondsel-Development/property_rightclick
Core : Tree: Add 'Properties' action in contextual menu. Opens a prop…
2024-01-19 08:58:54 -06:00
Kacper Donat
1a4639f71f Gui: Fix scroll behaviour in preference pages selector
This fixes problem with scroll jumping after selecting page on bottom of
the pages tree view. It was caused by collapsing group of the current
item and then re-expanding it few lines after.

Fixes: #12000
2024-01-19 08:27:05 -06:00
Paddle
e3860080e5 Sketcher : Distance constraint : introduce arc helpers for conic distances. 2024-01-19 11:50:38 +01:00
Paddle
7654c4446b Sketcher: copy paste : move from XML to python. 2024-01-19 11:13:53 +01:00
Paddle
f0c491ef79 Sketcher: python converter : add possibility to add lastGeoId to the constraint process. 2024-01-19 11:13:53 +01:00
Paddle
88883faaf8 Sketcher: Add copy/cut/paste sketcher commands 2024-01-19 11:13:53 +01:00
Paddle
3b9a1f7949 SoDatumLabel : introduce distance arc helpers. 2024-01-19 11:13:09 +01:00
Paddle
772d2940bd Sketcher : arc angle render improvement. 2024-01-19 11:13:09 +01:00
Paddle
edc247cd54 Sketcher : improve single line angle rendering. 2024-01-19 11:13:09 +01:00