Commit Graph

20455 Commits

Author SHA1 Message Date
Roy-043
9a76d28ca7 Update ArchBuildingPart.py
ChildrenShapeolor -> ChildrenShapeColor
2021-10-18 16:26:57 +02:00
Abdullah Tahiri
0926a4148b 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
837de28e9e Mesh: expose trimByPlane to Python 2021-10-15 23:07:59 +02:00
wmayer
346ff3815d Web: handle system exit exceptions 2021-10-14 15:46:37 +02:00
wmayer
39e02ca195 Web: support synchronous TCP/IP communication 2021-10-14 15:07:05 +02:00
Yorik van Havre
0e7314068c 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
f3ccc6d660 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
jack9603301
67df930184 [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
5af1b03285 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
2d10f5cac3 Merge pull request #5111 from chennes/spreadsheetCherryPickRealThunder
[Spreadsheet] Cherry-pick realthunder Round 1
2021-10-13 10:54:04 -05:00
Roy-043
1a94329d8e Draft: improve hatch matrix algo 2021-10-13 17:38:08 +02:00
wmayer
8c03581140 Mesh: [skip ci] add unit test for self-intersection 2021-10-13 17:29:18 +02:00
Abdullah Tahiri
0d16160f4e 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
wmayer
1483cc023f Import: [skip ci] consistent use of curly braces 2021-10-13 14:28:06 +02:00
Yorik van Havre
f598873b38 Merge pull request #5108 from Roy-043/Draft-fix-context-menu
Draft: fix context menu
2021-10-13 11:43:12 +02:00
abdullahtahiriyo
4579b842fd Merge branch 'master' into sketcherMoveColorsToPrefs 2021-10-13 10:01:30 +02:00
Zheng, Lei
ec27c67dc0 Spreadsheet: support displaying of integer 2021-10-12 15:14:31 -05:00
Zheng, Lei
93beb9fabd Spreadsheet: preserve component reference in cell 2021-10-12 14:58:36 -05:00
Zheng, Lei
127e8098e8 Spreadsheet: add a few context menu options 2021-10-12 14:34:58 -05:00
Chris Hennes
8fceac1762 [Spreadsheet] Clean up compilation warnings 2021-10-12 11:53:48 -05:00
Chris Hennes
ccef385e26 Merge pull request #5099 from chennes/spreadsheetAutoReturn
[Spreadsheet] Refactor keyboard handling
2021-10-12 11:01:10 -05:00
Roy-043
482cf61025 Draft: fix context menu
Remove call to get_draft_line_commands.
Update the ContextMenu function. The items are based on the utilities menu now. And the context menu is the same for the Tree view and the 3D view.
2021-10-12 14:35:36 +02:00
Roy-043
f03dfe351e Draft: fix context menu
Remove the get_draft_line_commands function.
Update the def get_draft_context_commands function.
2021-10-12 14:32:36 +02:00
Roy-043
eb0c45ce63 Draft: fix context menu
Remove the 3 gui_lineops items.
2021-10-12 14:30:04 +02:00
Roy-043
d99ad042b1 Draft: fix context menu
Remove gui_lineops.py
2021-10-12 14:28:08 +02:00
Roy-043
fbceff0fdf Delete gui_lineops.py 2021-10-12 14:23:59 +02:00
Yorik van Havre
8f4060a47b Merge pull request #5106 from chennes/transparentFaces
[Part] Allow setting alpha for face colors
2021-10-12 10:57:11 +02:00
Yorik van Havre
4f0fb52707 Merge pull request #5102 from Roy-043/Draft-Update-draft_test_objects.py
Draft: Update draft_test_objects.py
2021-10-12 10:56:06 +02:00
wmayer
29408ee3d7 OCCT: port flatmesh to version 7.6 2021-10-12 10:03:11 +02:00
Abdullah Tahiri
6e4a09f569 Sketcher: Copy and Array tool Snap at 5 degrees using CTRL 2021-10-12 09:41:58 +02:00
Chris Hennes
2a6700deab [Arch] Separate out return of None for clarity 2021-10-11 22:40:20 -05:00
Chris Hennes
e0653f6b06 [Part] Remove redundant 'global' statement 2021-10-11 22:37:05 -05:00
Chris Hennes
df66858d42 [Arch] Remove unnecessary pass 2021-10-11 22:22:59 -05:00
Chris Hennes
17ebbd1662 [Arch] Remove redundant else: from while loop 2021-10-11 22:01:44 -05:00
Chris Hennes
7a5fb042f7 [Draft] Eliminate default value modification 2021-10-11 21:28:55 -05:00
Chris Hennes
6bcda71712 Merge branch 'master' into sketcherMoveColorsToPrefs 2021-10-11 12:31:08 -05:00
wmayer
fbdb4e29d8 TD: [skip ci] fix warning about trunction from double to float 2021-10-11 16:47:27 +02:00
Abdullah Tahiri
9b2de68000 Sketcher: Constraint widget associated constraints filter
=========================================================

A new special filter, that filters the constraint list so as to show the constraints associated with the
currently selected geometries.
2021-10-11 16:40:48 +02:00
Abdullah Tahiri
08542055c4 Sketcher: Redesign of Constraint settings
=========================================

=> The old controltab is substituted by: direct controls (buttons on the constraint widget) and a settings dialog that is independently fired via a button with a settings icon

This makes more space for the list of constraints and generates a lower amount of confussion regarding the old tab names and functions.

Direct control ensures that the most used operations are at hand, while other less changed settings are moved to the settings dialog.

=> Direct controls

One time visibility to match the list selection can be triggered from a new button "Visibility"

This button has drop selections for visibility selections, which are checkable items (currently only one option, but more are envisaged).
The one option currently is the "visibility tracking" functionality. This is a "shortcut" to the option in the settings panel to save unnecessary clicks
in typical operations.

=> Settings dialog

This dialog is live, in that changes to settings are immediatedly propagated to the list control and visibility.
2021-10-11 16:40:48 +02:00
Abdullah Tahiri
ab57037f3e Sketcher: Add preferences icon resource 2021-10-11 16:40:48 +02:00
wmayer
7a7d58548b Test: [skip ci] handle std. and unknown exceptions in unit test dialog 2021-10-11 16:09:23 +02:00
wmayer
910dbcf880 Web: [skip ci] fix warning: unused parameter 'ok' [-Wunused-parameter] 2021-10-11 10:31:48 +02:00
Chris Hennes
b01d0e5181 [Gui] Always hide progress bar on finished load
The loadFinished signal from QtWebEngine includes a boolean indicating
whether the load was "ssuccessful" or not, but no apparent way to
determine what error, if any, occurred. Given that we are never
displaying any error information to the user, hide the progress bar
regardless of the success or failure of the operation.
2021-10-11 10:20:30 +02:00
wmayer
bce8c25421 Start: if a corrupted file is part of the Recent File List then ignore it 2021-10-11 10:13:49 +02:00
Chris Hennes
4c3371bf19 [Part] Allow setting alpha for face colors 2021-10-10 20:23:57 -05:00
Chris Hennes
834831b6c8 Merge pull request #5098 from realthunder/FixStepColor
Fix STEP import/export color problem
2021-10-10 18:46:43 -05:00
wmayer
51e4366085 OCCT: port FreeCAD sources to version 7.6 2021-10-11 00:28:12 +02:00
Zheng, Lei
45d0660727 Part: minor change on transparency setting 2021-10-11 06:02:54 +08:00
luz paz
4adfa1fe38 Added requested revisions 2021-10-10 14:57:39 -04:00
luz paz
277e164657 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-10 14:55:48 -04:00