Commit Graph

22796 Commits

Author SHA1 Message Date
donovaly
a442dbdfa2 [PD] keep hole size when changing type
as mentioned in https://forum.freecadweb.org/viewtopic.php?f=13&t=47584&start=10#p433116
a typical use case is that one changes the hole type from e.g. ISO normal to ISO fine. The size should however be the same.

This PR enables this and also takes care for the thread class and cut type, see the attached screencast.
2020-10-19 14:44:08 +02:00
wmayer
eb9985500b PartDesign: [skip ci] make the hole feature more forgiving in case of inconsistent configuration 2020-10-19 14:42:32 +02:00
vocx-fc
2d00e2ded6 Draft: split svg.get_svg into subfunctions (2)
Define a subfunction to process Draft "Dimension" (v0.18)
or "LinearDimension" (v0.19) objects.
2020-10-19 13:23:04 +02:00
vocx-fc
772466ea4b Draft: split svg.get_svg into subfunctions
Define a subfunction to process `Part.Shape` objects.
2020-10-19 13:23:04 +02:00
vocx-fc
73db0999c0 Draft: move svg subfunctions to svgshapes.py module 2020-10-19 13:23:04 +02:00
vocx-fc
084d63a563 Draft: move svg subfunctions to svgtext.py module 2020-10-19 13:23:04 +02:00
Zheng, Lei
1127321320 Draft: support object without shape in DraftLink 2020-10-19 13:22:20 +02:00
Chrismettal
a0acbae1c1 [Stylesheet] Add border to tiled subwindows to allow resizing 2020-10-19 13:21:26 +02:00
vocx-fc
36f103d74c Surface, MeshPart: update CurveOnMesh command tooltip and task panel
* Add new icon `MeshPart_CurveOnMesh`, which is the same as
the `Surface_CurveOnMesh` icon but in green color.
The surface icon is used in the Surface Workbench, while the MeshPart
version is currently not used.
* Make the tooltip of the command shorter; the longer instructions
are added in the `TaskCurveOnMesh` task panel.
2020-10-19 13:18:12 +02:00
vocx-fc
0f5d6ea096 Surface: updated task panel for Surface_Filling
`Fill Surface` becomes `Boundaries`. A label is added
explaining that it is possible to reorder the items
in the list of boundary edges.
2020-10-19 13:18:12 +02:00
vocx-fc
6834a41a60 Surface: update tooltip of Filling 2020-10-19 13:18:12 +02:00
marioalexis
1ad7b9788b Improve make_sketch and geometric related functions 2020-10-19 13:15:14 +02:00
wmayer
bec4195642 travis: disable TechDraw for macOS build
The travis builds for macOS always stop at around 82% and this is a test to see if the build runs out of memory
2020-10-19 10:47:13 +02:00
sliptonic
01cbaab30d Merge pull request #3976 from sliptonic/master
fix build problem with path
2020-10-18 16:37:43 -05:00
sliptonic
da6152991a fix build problem with path 2020-10-18 16:36:47 -05:00
sliptonic
5b84f6a768 Merge pull request #3966 from sliptonic/feature/RtoIJarcs
[PATH] Add RtoIJ function to PathUtils.  fixes #2606
2020-10-18 14:28:12 -05:00
sliptonic
06fc3959fd Merge pull request #3939 from plaes/minor-build-nitpicks
[build / PATH]: Minor build nitpicks
2020-10-18 14:26:47 -05:00
sliptonic
4c98567338 Merge pull request #3962 from sliptonic/feature/boundaryenforcecontrol
PATH: add boundary enforcement to the task panel
2020-10-18 14:26:17 -05:00
sliptonic
49c5c4481c Merge pull request #3956 from sliptonic/bug/pathsanity
Path: handle missing target directory in Path-Sanity
2020-10-18 14:25:45 -05:00
wmayer
730994945b Revert "PartDesign: [skip ci] fixes #0004371: Changing Hole profile from ISO to nothing is not possible: "Hole: Cannot get value from invalid enumeration""
This reverts commit afefc4ede20f04a37ac6cf0808e9eaf55b7d5775.
2020-10-18 17:08:18 +02:00
Priit Laes
4151ec279b Part: Enable test for issue 4456
Now that issue 4456 is fixed, we don't need to skip this test anymore.
2020-10-18 16:26:18 +02:00
wmayer
b945573ec8 macOS: suppress some warnings 2020-10-18 16:18:34 +02:00
wmayer
4f219342a7 Qt5: fix build failure with Qt 5.15 2020-10-18 16:17:48 +02:00
wmayer
38819925a5 Fem: Python header must be included before vtk headers to avoid re-definition of macro _LARGEFILE_SOURCE 2020-10-18 14:45:31 +02:00
wmayer
5c35325cc0 Py3: suppress warnings about un-initialized/deprecated tp_print slot 2020-10-18 14:45:31 +02:00
wmayer
09eca18e99 Part: remove deprecated type LinePyOld 2020-10-18 14:45:31 +02:00
wmayer
99451511ed Qt5: make StatusWidget derive from QDialog instead of QWidget to avoid code duplication and using deprecated API functions 2020-10-18 14:45:31 +02:00
wmayer
67e80c7d6a Qt5: fix deprecation warnings for Qt 5.15
+ QByteArray::append is deprecated
+ QPixmap* QLabel::pixmap() is deprecated
+ overloaded version of QString::split is deprecated
+ QSysInfo::windowsVersion()/QSysInfo::MacVersion() is deprecated
2020-10-18 14:45:31 +02:00
wmayer
2647987157 Qt5: fix deprecation warnings of QWheelEvent in Qt 5.15 2020-10-18 14:45:31 +02:00
sgrogan
a8ca6ada87 fix import, OpenSCAD isn't namespace workbench 2020-10-17 23:54:26 +02:00
wmayer
409ceb6ec5 macOS: [skip ci] suppress some more Py3.8 warnings, suppress warnings about deprecated OpenGL API 2020-10-17 23:53:47 +02:00
wmayer
0f007c1370 Gui: [skip ci] workaround for Qt5.12.9 that causes a crash in the parameter editor for right clicks in an empty area 2020-10-17 20:06:53 +02:00
wmayer
633fa6e3ac fixes #0004456: Regression : Part.Plane.Intersect do not accept plane as argument [skip ci] 2020-10-17 10:12:01 +02:00
wmayer
dcfbc1bf3b Part: [skip ci] replace some old C-style casts with static_cast 2020-10-17 10:10:44 +02:00
Priit Laes
aeb82223ea Part: Add regression test for issue #4456 (skipped for now) 2020-10-17 09:37:59 +02:00
sliptonic
eb5c26c664 more pythonic params (thanks plaes) 2020-10-16 13:49:47 -05:00
sliptonic
5c48763cd5 Merge branch 'master' into bug/pathsanity 2020-10-16 13:03:01 -05:00
sliptonic
6c2101760f Merge branch 'master' into feature/boundaryenforcecontrol 2020-10-16 13:02:29 -05:00
sliptonic
04b54c4f6d add RtoIJ function to PathUtils. fixes #2606
function is unused at this time.  It should be used by preprocessor scripts like gcode_pre to
convert radius mode arcs to IJ mode.
2020-10-16 11:02:29 -05:00
wmayer
12577acc40 Part: [skip ci] allow to create empty shapes of each type 2020-10-16 17:08:49 +02:00
wmayer
d61a06e3b3 Part: [skip ci] fix bugs in MakePrismPy 2020-10-16 16:00:36 +02:00
wmayer
852b06cae7 Qt4: fix Qt4 build failure 2020-10-16 13:56:27 +02:00
wmayer
2473417a23 Part: expose BRepFeat_MakePrism to Python 2020-10-16 13:50:29 +02:00
wmayer
8dfce38041 Part: [skip ci] implement getPyObject/setPyObject of TopoShape class 2020-10-16 13:46:44 +02:00
Yorik van Havre
822943b1aa Arch: Fixed backwards compatibility issues 2020-10-16 12:40:09 +02:00
wmayer
587362af98 C++11: [skip ci] replace deprecated function std::mem_fun_ref with lambda functions 2020-10-15 18:55:29 +02:00
wmayer
2f7e432051 Py3: suppress warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
If the tp_print slot is not set the warning -Wmissing-field-initializers is raised. If it's set then -Wdeprecated-declarations is raised.
So, the only way is to suppress it.
2020-10-15 17:07:39 +02:00
wmayer
4a10f0c381 Qt5: fix deprecation warnings for Qt 5.15
+ replace QDirModel with QFileSystemModel
+ QProcess::start(QString, OpenMode) is deprecated
+ QByteArray::append is deprecated
+ QPixmap* QLabel::pixmap() is deprecated
2020-10-15 16:50:11 +02:00
wmayer
1d289252c4 Py3: [skip ci] fix warning: missing field 'tp_print' initializer [-Wmissing-field-initializers]
This warning is only specific to Py3.8. See https://docs.python.org/3/c-api/typeobj.html
2020-10-15 15:25:42 +02:00
wmayer
961d9145e2 Qt5: 'endl' manipulator is deprecated with 5.15. Replace it with newlines. 2020-10-15 15:22:28 +02:00