Commit Graph

22549 Commits

Author SHA1 Message Date
Yorik van Havre
089ed768cc Merged crowdin translations 2020-09-30 14:37:02 +02:00
Yorik van Havre
2a92a7b5a7 Updated ts files 2020-09-30 13:06:53 +02:00
vocx-fc
cf5f7d4224 Surface: Vertices instead of Vertexes in the task panel 2020-09-30 12:32:36 +02:00
vocx-fc
9c1e23c7c0 Surface: new Sections icon
The `Surface_Sections` command was recently introduced in v0.19
(3a8a6aa, a4176fa) so its icon is updated as well.
2020-09-30 12:32:36 +02:00
vocx-fc
1093187c06 Surface: upgraded Surface icons
The `Surface_Workbench` icon is the same as `Surface_Surface`,
which is now an SVG and not XPM.
The lines are thicker and the colors have been adjusted
with a gradient, instead of being solid and plain looking.

Also the following were updated: `BSplineSurface`,
`BezierSurface`, `Cut`, `Filling`, `Sewing.

The `BezierSurface`, `Cut`, and `Sewing` icons are not currently used
in the workbench, but they were still updated in case
a future command uses them.
2020-09-30 12:32:36 +02:00
vocx-fc
7bf6f72259 Surface: new SVG icon for the workbench, rename others
Replace the hard-coded XPM icon in `InitGui.py` for the workbench
with an SVG file, which at this time is identical to the `Surface` icon.
Change `CMakeLists.txt` to properly install this new icon.

Rename all icons, so that all have the `Surface_` prefix.

Use the new icon names in the viewproviders and task panels.
2020-09-30 12:32:36 +02:00
John Yani
7208e757b9 Fix indentation 2020-09-30 12:31:15 +02:00
John Yani
a76bdab449 HiDPI cursors: Support Qt < 5
Forum thread: https://forum.freecadweb.org/viewtopic.php?p=433621#p433621
2020-09-30 12:31:15 +02:00
Chrismettal
f686ed16e5 [Stylesheet] Add new "behave" dark stylesheet
Modified stylesheet based on one of the "darker" stylesheets to fit the Behave color theme
2020-09-30 12:29:19 +02:00
vocx-fc
f23bb43004 Draft: importSVG considers Shape-less objects for export
If the object has a `Shape` it uses its bounding box to enlarge
the page size of the SVG. If it does not have a `Shape`
("Draft Text", "Draft Dimension", other `App::FeaturePython`)
it uses `Draft.get_bbox` to calculate one bounding box
from the viewprovider if possible.
2020-09-30 12:06:48 +02:00
vocx-fc
49e1ff1bcf Draft: get_bbox function to get the bounding box from RootNode
Normally the bounding box is taken from `Shape.BoundBox`.
Certain objects don't have a `Shape`, like `App::FeaturePythons`,
so the bounding box is calculated from `ViewObject.RootNode`.
2020-09-30 12:06:48 +02:00
wmayer
312a4652f6 Part: [skip ci] expose BRepOffsetAPI_MakeFilling to Python 2020-09-30 01:19:30 +02:00
Amritpal Singh
21e1dff25c Adopted vocx-fc comment. 2020-09-29 18:50:30 +02:00
Amritpal Singh
c64d0bf991 Fixed bug: In exporting IFC with shared clone shapes geometry, clone of clone object displaced because of bug in Draft.get_clone_base function. 2020-09-29 18:50:30 +02:00
wmayer
39cd29c0d7 Part: [skip ci] include OCC hesder to PCHs, fix compiler warning when trying to delete void pointer 2020-09-28 20:23:33 +02:00
wmayer
00e0e7745c Part: expose GeomPlate algorithm to Python 2020-09-28 18:46:35 +02:00
wmayer
14fa8dafb3 Part: [skip ci] add functions makeFromTrimmedCurve2d and makeFromCurveAdaptor2d 2020-09-28 17:24:48 +02:00
wmayer
218d61768a Part: converter from Adaptor3d_Curve to GeomCurve 2020-09-28 14:53:42 +02:00
wmayer
af8ff5c491 Part: [skip ci] add missing methods to RectangularTrimmedSurface 2020-09-28 13:18:47 +02:00
wmayer
afd6f39197 Base: [skip ci] allow to replace twin object of PyObjectBase 2020-09-28 11:21:20 +02:00
wmayer
2a510a23b4 Gui: [skip ci] suppress debug messages when older SpaceMouse/Joystick is connected 2020-09-28 08:06:41 +02:00
wmayer
a4176fa15f Surface: [skip ci] add icon for sections command 2020-09-28 07:57:00 +02:00
wmayer
a6c55acdb1 Part: improve Python interface
+ rename getCurve2dFromGeom2d to makeFromCurve2d
+ add function makeFromCurve and makeFromTrimmedCurve like makeFromSurface
+ implement OffsetCurve.BasisCurve
+ fix memory leak in BRepOffsetAPI_MakePipeShellPy
2020-09-27 23:34:45 +02:00
Clayton McCray
1ef31842c9 Conda doesn't export functions to subshells
build_unix_dev_conda.sh fails to activate the freecad_dev
environment. This is issue #7980 on the conda github. This has
one of the suggested work arounds added.
2020-09-27 13:02:40 +02:00
vocx-fc
53e2d35ee9 Part: change command name Part_MakeTube to Part_Tube
This follows the style of the other Part commands which don't
have the word `Make` just the name of the noun, `Box`, `Cylinder`,
`Sphere`, etc.
2020-09-27 13:01:16 +02:00
Zheng, Lei
f9aed763e4 App: fix recursive App::getLinksTo() 2020-09-27 12:59:38 +02:00
wmayer
25fbb95a9a Sketcher: [skip ci] fix computing of hotspot of XPM icons on Windows/macOS
Add a cross to copy and array icons.
2020-09-27 12:06:26 +02:00
Bernd Hahnebach
d8e476ef42 FEM: object unit tests, improve some comments 2020-09-26 23:29:38 +02:00
Bernd Hahnebach
331fd91e7c FEM: z88 solver, use same object type schema as for all other solver objects 2020-09-26 23:17:36 +02:00
Bernd Hahnebach
1ad4417b03 FEM: python code formating 2020-09-26 23:17:27 +02:00
wmayer
6d03265729 Gui: [skip ci] fix initialization of Python-based view providers in FreeCADGui.subgraphFromObject 2020-09-26 22:39:18 +02:00
wmayer
3a8a6aae1b Surface: add command to create surface from sections 2020-09-26 16:32:42 +02:00
wmayer
7616153b3c Part: add method to add a wire (e.g. to create a hole) to a face 2020-09-25 16:00:01 +02:00
wmayer
da6cdb94a1 Part: add method to return a reversed shape 2020-09-25 15:59:08 +02:00
wmayer
92fe662d65 Part: implement BSplineSurface.buildFromNSections based on GeomFill_NSections 2020-09-25 15:07:47 +02:00
wmayer
b44d20dbd8 Part: [skip ci] fix shape builder to create filled face from vertexes 2020-09-25 13:42:39 +02:00
wmayer
bf262b4188 Gui: [skip -ci] fix Document::toggleInSceneGraph() to avoid to add a node twice 2020-09-25 13:05:45 +02:00
Bernd Hahnebach
82a2c1b753 Arch: ifc export, workaround for draft array export and some small improvements 2020-09-24 17:50:42 +02:00
wmayer
3c7ae4f3e3 0004441: Changing Placement of a App::Part that contains a Part::FeaturePython causes drawing of a ghost object at original Placement [skip ci] 2020-09-24 17:39:17 +02:00
wmayer
a3cd010c82 Start: [skip ci] replace QTextStream and its manipulators with stringstream to avoid deprecation warnings with Qt 5.15 2020-09-24 13:46:15 +02:00
vejmarie
3e3006d015 Revert Qt::endl which is not defined in Qt << 5.15 version
Signed-off-by: vejmarie <jmverdun3@gmail.com>
2020-09-24 12:56:43 +02:00
vejmarie
339d994302 Revert a patch which shouldn't had been into this commit as it
is specific to Qt 5.15 and need a #define

Signed-off-by: vejmarie <jmverdun3@gmail.com>
2020-09-24 12:56:43 +02:00
vejmarie
81af54e410 Big update to remove deprecation warning from Qt 5.15.0
That is need on MacOS build as travis log is bigger than 50k lines
which breaks travis rules
And by the way deprecations are real
All file contains the same modification replace 0 to Qt::WindowFlags() when needed
as the class needs to be instantiated

Signed-off-by: vejmarie <jmverdun3@gmail.com>
2020-09-24 12:56:43 +02:00
wmayer
0306c237ed Sketcher: [skip ci] fix inconsistent indentations in SketchObject::rebuildExternalGeometry 2020-09-24 11:32:22 +02:00
shermelin
923607b46b Projections of arcs of circle, orthogonal case
Implementation when circle plane orthogonal to projection plane.
2020-09-24 11:22:58 +02:00
wmayer
3e7e2a9bc4 Sketcher: [skip ci] fix undo bug when directly changing a datum constraint in the property editor 2020-09-23 16:59:23 +02:00
wmayer
50284e1ef2 Sketcher: [skip ci] fix computing of hotspot of sketcher icons on macOS 2020-09-23 11:31:17 +02:00
wmayer
fe3f1b51b7 PartDesign: [skip ci] fixes #0004371: Changing Hole profile from ISO to nothing is not possible: "Hole: Cannot get value from invalid enumeration" 2020-09-23 11:11:27 +02:00
donovaly
4a1f81395e [PD] fix 2 hole dialog bugs
- 1. reported here: https://forum.freecadweb.org/viewtopic.php?p=432936#p432851
also unthreaded holes can have a close or standard fit

- 2. reported here: https://forum.freecadweb.org/viewtopic.php?p=432936#p432944
the thread direction is always left. The reason is that this property is an enum but the dialog returns a bool.

- also fix an UI issue with the spin boxes (automatically found and repaired by Qt's designer, thus the many changes in the UI file)
2020-09-23 09:58:53 +02:00
Vanuan
8ea1a38849 HiDPI: Change Sketcher crosshair hot spot xy
See https://forum.freecadweb.org/viewtopic.php?p=432021#p432021
2020-09-23 09:55:41 +02:00