Commit Graph

26183 Commits

Author SHA1 Message Date
Roy-043
c8a9ec2e8b Draft: Fix Draft_Edit sketch issue
Draft_Edit did not work on wall sketch after reopening file
2021-10-21 21:40:55 +02:00
wmayer
167e11596a Surface: [skip ci] only try to build surface if at least two boundary curves are used 2021-10-21 18:23:03 +02:00
wmayer
d0a75e0a84 Sketcher: fix segmentation fault when using sketch validation dialog after document has been closed
Therefore replace the raw pointer of SketchObject with the template class WeakPtrT. This class will be notified as soon as its handled object will be deleted.
2021-10-21 16:22:11 +02:00
wmayer
c906775ade Gui: [skip ci] add get() method to WeakPtrT class 2021-10-21 15:50:18 +02:00
wmayer
cd1bd71141 App: [skip ci] add get() method to WeakPtrT class 2021-10-21 15:50:07 +02:00
Chris Hennes
0b7b168385 Merge pull request #5121 from luzpaz/typos
Fix various typos
2021-10-20 18:09:22 -05:00
luz paz
397729e33e Fix various typos
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,ontop,orgin,orginx,orginy,ot,pard,parms,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml,./build/doc/SourceDocu`
2021-10-20 18:18:33 -04:00
wmayer
503a2ff6cd Gui: [skip ci] improve whitespaces 2021-10-20 22:33:50 +02:00
wmayer
370a120f75 Gui: [skip ci] improve whitespaces 2021-10-20 22:21:52 +02:00
wmayer
cac50da55b Gui: move handling of failed document saving to a function to reduce code duplication 2021-10-20 21:57:51 +02:00
wmayer
508d113e21 Mesh: improve MeshGeomFacet::IntersectWithFacet 2021-10-20 19:42:39 +02:00
Chris Hennes
0086896279 Merge pull request #5115 from Syres916/patch-33
[Sketcher] Angle Constraint Name displayed...
2021-10-20 08:39:46 -05:00
Chris Hennes
bd4dd70f03 Merge pull request #5120 from Roy-043/Draft-Fix-TeighaFileConverter-tooltip
Draft: Fix TeighaFileConverter tooltip
2021-10-20 08:26:36 -05:00
Chris Hennes
4031e85120 [Sketcher] Workaround for Elements theme issue
After merging the change to the Constraint status label in 1acb74072,
the TaskSketcherElements would sometimes be reduced in size to just a
line or two, if multiple task views were expanded and a stylesheet was
enabled. This commit introduces a minimum size to the TSE to prevent
that from occurring.
2021-10-20 08:06:05 -05:00
Roy-043
54ea572596 Draft: Fix TeighaFileConverter tooltip
The TeighaFileConverter preference is now used for 3 DWG converters. The tooltip needs to reflect that.
2021-10-20 13:25:18 +02:00
wmayer
124d06b7f7 Mesh: extend API to access edges of a facet via Python 2021-10-20 13:01:11 +02:00
luz paz
ace0d32647 FEM: Fix variable pHeatTransfering -> pHeatTransferring
Found via `codespell`
2021-10-20 06:25:34 +02:00
wmayer
5c59b8e050 Mesh: [skip ci] add unit tests for coplanar and intersecting triangles 2021-10-19 20:31:39 +02:00
wmayer
fe070903d3 Mesh: add method to get intersection of edges 2021-10-19 19:22:21 +02:00
wmayer
057cce2538 Base: [skip ci] add method to check for null vector 2021-10-19 19:19:31 +02:00
wmayer
277c5ef9e9 Mesh: [skip ci] update tri-tri-intersection 2021-10-19 15:14:36 +02:00
Yorik van Havre
0e2c402c20 Draft: Allow to use QCAD pro as a converter to import/export DWG files 2021-10-19 13:55:24 +02:00
Chris Hennes
156eec918c Merge pull request #5114 from Roy-043/Daft-fix-cleanProjection
Daft: fix cleanProjection (used by Draft_Shape2DView and DXF export)
2021-10-18 23:48:06 -05:00
Chris Hennes
cff3e9732b Merge pull request #5116 from Roy-043/Arch-Fix-BuildingPart-typo
Arch: Fix BuildingPart typo
2021-10-18 23:47:28 -05:00
Roy-043
af789a17ee Update ArchBuildingPart.py
ChildrenShapeolor -> ChildrenShapeColor
2021-10-18 16:26:57 +02:00
Syres916
cf31a3afdb [Sketcher] Minor bugfix to display angle...
...constraint names as per recommendation, see discussion https://forum.freecadweb.org/viewtopic.php?f=3&t=62953
2021-10-16 12:20:55 +01:00
Abdullah Tahiri
9f15372d86 Sketcher: Default Shortcuts
===========================

Following:
https://forum.freecadweb.org/viewtopic.php?p=539914#p539914

Following requests from OpenBrain and ChrisB:
https://forum.freecadweb.org/viewtopic.php?p=540015#p540015

Following request from M4X:

Recomendation to use "L" and "I" for vertical and horizontal distance constraints and "R" for radius.

https://forum.freecadweb.org/viewtopic.php?p=540049#p540049

https://forum.freecadweb.org/viewtopic.php?p=540011#p540011
2021-10-16 09:23:22 +02:00
wmayer
bbe2865059 Mesh: expose trimByPlane to Python 2021-10-15 23:07:59 +02:00
Roy-043
39a67d7cbf Update wires.py
typo
2021-10-15 22:18:17 +02:00
Roy-043
1535abecc4 Daft: fix cleanProjection (used by Draft_Shape2DView and DXF export) 2021-10-15 22:11:40 +02:00
wmayer
539bd3ceb1 Web: handle system exit exceptions 2021-10-14 15:46:37 +02:00
wmayer
cea1216ea2 Web: support synchronous TCP/IP communication 2021-10-14 15:07:05 +02:00
Yorik van Havre
a6485ad191 Arch: BuildingParts autogrouping
Arch BuildingParts now gained a new set of View properties that allows
to define a "capture box". Subsequent Draft and Arch objects, or anything
else that uses Draft.autogroup(), will be automatically added to that
BuildingPart if they are inside the capture box.
2021-10-14 14:42:46 +02:00
Yorik van Havre
13b8b05a9a Merge pull request #4787 from chennes/addThemeSupport
[GUI] Add Preference Pack support
2021-10-14 12:41:06 +02:00
Yorik van Havre
24d1a3f054 Merge pull request #5023 from marioalexis84/gui-encoding
Gui:  Harmonize encoding/decoding between view, property editor and command line.
2021-10-14 12:24:49 +02:00
Chris Hennes
9afd281099 Merge pull request #5113 from jack9603301/master
[Part] Fix null pointer error in sweep operation - Fixes #0004764
2021-10-13 15:26:45 -05:00
jack9603301
9a36d01fcc [Part] Fix null pointer error in sweep operation
When the spine line of the sweep operation of the part workbench depends
on the Sketcher document, if the dependent spine line drawn by this document
is deleted afterwards, the path variable will get a null pointer.
Due to programming errors, the standard judgment of this pointer is ignored, resulting in a crash.
Call IsNull() of the OCC document to determine the legitimacy of the shape.
If it is empty, an error is reported.

Fixes #0004764
2021-10-14 03:54:44 +08:00
Chris Hennes
d7dfe5cd7d Merge pull request #5112 from Roy-043/Draft-improve-hatch-matrix-algo
Draft: improved hatch matrix algo
2021-10-13 13:03:42 -05:00
Chris Hennes
facac9fc12 Merge pull request #5110 from 0penBrain/UserEditMode
[Gui] UserEditMode : new icons + naming + used mode memorization
2021-10-13 12:48:02 -05:00
Chris Hennes
a15ca9d189 Merge pull request #5111 from chennes/spreadsheetCherryPickRealThunder
[Spreadsheet] Cherry-pick realthunder Round 1
2021-10-13 10:54:04 -05:00
Roy-043
844597c08e Draft: improve hatch matrix algo 2021-10-13 17:38:08 +02:00
wmayer
c0445e5094 Mesh: [skip ci] add unit test for self-intersection 2021-10-13 17:29:18 +02:00
Abdullah Tahiri
925e115c93 Sketcher: Code improvements for Constraint Widget
=================================================

This PR does not have added functionality. It contains only code improvements requiring at least c++17.

- It uses for the filters scoped enums (enum classes) instead of unscoped enums to avoid implicit conversion (c++11).
- It includes tools to deal with the necessary explicit conversions including type_t traits (c++14).
- It uses a couple of generic lambdas (c++17)
- It uses folding expressions to expand parameter packs (c++17)
- Refactoring of code
2021-10-13 15:28:30 +02:00
0penBrain
ecc8505636 [Gui] UserEditMode : last used mode is remembered between sessions 2021-10-13 14:58:05 +02:00
wmayer
90c97a3166 Import: [skip ci] consistent use of curly braces 2021-10-13 14:28:06 +02:00
0penBrain
6c0a2dd4e6 [Gui] UserEditMode : new (better) icons for modes + SVG file naming improvement
Icons are provided by @bitacovir
2021-10-13 14:23:29 +02:00
Yorik van Havre
9fd4cac803 Merge pull request #5108 from Roy-043/Draft-fix-context-menu
Draft: fix context menu
2021-10-13 11:43:12 +02:00
abdullahtahiriyo
8977220904 Merge pull request #5091 from chennes/sketcherMoveColorsToPrefs
[Sketcher] Make constraint label smaller and styleable
2021-10-13 11:34:11 +02:00
abdullahtahiriyo
08531bfec5 Merge branch 'master' into sketcherMoveColorsToPrefs 2021-10-13 10:01:30 +02:00
Zheng, Lei
9933d4fbce App: add signalChanged to Property
For more efficient tracking of single property changes
2021-10-12 15:47:50 -05:00