Commit Graph

1661 Commits

Author SHA1 Message Date
Chris Hennes
dfa8bbc8e0 Merge pull request #5128 from luzpaz/freecad-translation-6
PD: Expose missing commands to translation in Measure dropdown menu
2021-11-01 00:22:28 -05:00
wmayer
ad458c423a PD: [skip ci] if no active body exists then by default pre-select the first option to create a new body 2021-10-31 12:33:48 +01:00
0penBrain
ffa6b3ce5e [PartDesign] Remove useless function overriding
Double-click is already handled by PartDesign::ViewProvider::doubleClicked()
 Overridings in Loft & Pipe brings no specific behavior
 By removing overridings, behavioral consistency is improved both in ...
 ... undo commands & body activation management when PartDesign items ...
 ... are double-clicked
2021-10-29 17:30:06 +02:00
luz paz
d917e65c99 PD: Expose missing commands to translation in Measure dropdown menu
Fixes https://github.com/FreeCAD/FreeCAD-translations/issues/6
2021-10-26 10:35:21 -04:00
wmayer
c1910e644f PD: [skip ci] when creating a datum object allow user to create a body if needed 2021-10-22 20:23:16 +02:00
wmayer
50be9655e8 PD: open transaction when calling item of context-menu of sketch based features 2021-10-22 20:01:43 +02:00
wmayer
16e797362a PD: [skip ci] code cleanup 2021-10-22 19:06:57 +02:00
wmayer
f4e4ed0c25 PD: simplify code to display add/sub shape 2021-10-09 11:38:25 +02:00
wmayer
f0aa77c96d PD: simplify code to display rejected shape and move it to its own function 2021-10-08 22:32:26 +02:00
wmayer
9aa287ba7b Part: remove ViewProviderPartExt::getNormals 2021-10-08 19:34:48 +02:00
wmayer
27d65eca51 PD: do not enforce a reference axis when no profile is used to pad a face 2021-10-08 18:21:42 +02:00
wmayer
12ef275264 PD: do not set ReferenceAxis when no profile is used to pad a face 2021-10-08 17:45:59 +02:00
bartus
6766932b35 Fix linux build: undefined std:string_view
Pop 'mesh' library c++ stranderd to c++17
Add required <string_view> header
2021-10-03 14:36:16 +02:00
Chris Hennes
9ce6b0df94 Merge pull request #5071 from donovaly/PD-pad_along_fixes
[PD] fixes for padding along edge
2021-09-29 13:25:13 -05:00
Yorik van Havre
140e03301e Updated ts files 2021-09-29 14:32:12 +02:00
donovaly
7921c3f5fa [PD] fixes for padding along edge
- handle custom direction like all other directions
- allow to view the direction vector for all directions, but only to edit for custom
- fix enabling of the length alongNormal option
- also fix a translation issue
2021-09-29 01:11:50 +02:00
wmayer
4a47b98b16 PD: [skip ci] fix minor issues:
* don't need to clear an empty vector
* remove two code blocks that effectively do nothing (except of producing a warning :) )
2021-09-28 15:43:25 +02:00
Chris Hennes
7580a8364a Merge pull request #4685 from donovaly/PD-pad-direction-selection
[PD] add feature to select pad direction via an edge
2021-09-27 13:11:40 -05:00
Yorik van Havre
6ad3530981 Merged crowdin translations 2021-09-23 17:14:48 +02:00
donovaly
6c3661d3d9 rebase to master 2021-09-20 01:37:47 +02:00
donovaly
b868dbbe7f small fixes as suggested by @chennes
therefore also in the helix code
2021-09-20 00:59:17 +02:00
donovaly
7bfede97b7 [PD] add feature to select pad direction via an edge
This was requested by users in the forum and is indeed very valuable for the usability.
2021-09-20 00:59:16 +02:00
Chris Hennes
ccaa439d1a PD: LGTM - don't catch BaseException 2021-09-19 14:37:23 -05:00
Chris Hennes
6c532c2fda PD: Silence LGTM warning about empty block 2021-09-19 13:39:49 -05:00
troyp76
b3dbcd9ff8 Improved chamfer behavior when faces are selected
Improved chamfer behavior when faces are selected and non equal chamfer types are used
2021-09-18 22:03:28 +10:00
Ajinkya Dahale
28d8d808a8 PartDesign: Add new need active body dialog with option to choose body (#4949)
* [PD] Add new need active body dialog

Intended for use wherever an active body is needed but none exists. The dialog
contains a list with the bodies present in the document, with an extra option to
make a new body. Custom text can be provided if needed.

This commit also replaces the warnings used by "new sketch" and "primitive"
command with this new dialog.

Addresses issue #4288.
2021-09-16 12:27:46 -05:00
luz paz
909030859d PD: Fix typo in function getContiniusEdges->getContinuousEdges
Related to PR #5029
2021-09-15 10:11:37 -04:00
wmayer
fff27ee78b PD: fix ProfileBased::Restore to not affect sub-classes that need to handle changed property types/names 2021-09-15 15:45:24 +02:00
wmayer
2af9c5038e PD: move handling of changed properties of Transformed to handleChangedPropertyType 2021-09-15 15:20:40 +02:00
wmayer
ba2ad05983 PD: move handling of changed properties of the Chamfer/Fillet to handleChangedPropertyType 2021-09-15 15:14:14 +02:00
wmayer
fa86b0216e Mod: make sure to call the base class' handleChangedPropertyType 2021-09-15 14:07:32 +02:00
Yorik van Havre
a9717a1e17 Merged crowdin translations 2021-09-07 11:26:48 +02:00
Yorik van Havre
26e1fd3710 Merge pull request #4914 from donovaly/PD-property-fixes
[PD] fix property issues
2021-08-30 13:30:30 +02:00
Yorik van Havre
ff4209a759 Removed redundant namespace
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2021-08-30 13:30:06 +02:00
Yorik van Havre
199e8a8d6e Merged crowdin translations 2021-08-26 14:51:36 +02:00
Yorik van Havre
8acd9f8734 Updated ts files 2021-08-26 14:50:54 +02:00
Yorik van Havre
f76abee290 Merge pull request #4872 from berberic2/PD_pad_ui_change
PartDesign: Hide the custom direction fields in Pad if no custom direction is used
2021-08-23 14:28:03 +02:00
0penBrain
9fe6b11d57 [PartDesign] Enable reverse ability for Pocket/UpToFace mode as it makes sense for curved faces 2021-08-17 12:07:02 +02:00
0penBrain
519dc3ac0a [PartDesign] Add reverse ability for Pad/UpToFace mode as it makes sense for curved faces
And does not hurt/break in case face is reachable in only one direction
2021-08-17 12:07:02 +02:00
0penBrain
781867b9c2 [PartDesign] Restore 'Reversed' ability into Pocket/2dims mode 2021-08-17 12:07:02 +02:00
0penBrain
7459bbb14d [PartDesign] Fix 'Reversed' no more available in Pad 'toFirst/toLast'
While useless 'Midplane' was still visible
 Bug introduced in commit #695abed1, not fixed by commmit #7d9fd5e4
 Also fixing some typos
2021-08-17 12:07:02 +02:00
M G Berberich
5ae0ab80c8 PartDesign Pad UI-fix
hide the custom direction fields if no custom direction is used, to
unclutter the UI.
2021-08-16 19:38:05 +02:00
Yorik van Havre
d1ca1f19aa Merge pull request #4967 from Syres916/patch-30
[Base/Gui] Bugfix Property Item formatting
2021-08-16 14:34:41 +02:00
luzpaz
a5fcb3b225 [PartDesign] Expose WizardShaft/ strings to translation (#4964)
* [PartDesign] Expose WizardShaft/ strings to translation

* Correct use of double quotes

* [PD] Suggested changes in `Crowdin/pd-wizard-shaft` (#4)

* [PartDesign] Use correct method name in `WizardShaft`

Use `QtCore.QT_TRANSLATE_NOOP` instead of `QT_TRANSLATE_NOOP` because latter is
not what is imported.

* [PartDesign] Remove undesired translations in `WizardShaftTable.py`

See comments by @chennes on PR#4964.

Co-authored-by: Ajinkya Dahale <AjinkyaDahale@users.noreply.github.com>
2021-08-13 18:16:42 -05:00
Syres916
cf2b2fd8bf [PD] Gui - Primitives change Base Quantity Format 2021-08-12 10:48:36 +01:00
luzpaz
68e06cc313 [PartDesign] Linting and cleaning superfluous whitespace (#4851)
* [PartDesign] Linted Mod/PartDesign/Scripts for pep8 compliance

* [PartDesign] Fix superfluous whitespace in WizardShaft/

* Added spaces per @chennes's feedback
2021-08-11 15:02:58 -05:00
luz paz
4d21ffa904 Fix various typos 2021-07-31 09:46:50 +02:00
donovaly
8e3ebc07ed [PD] fix property issues
- Helix: the property Turns has the App::PropertyFloatConstraint thus also the pointer to it must have the same property

- LinearPattern and Helix: make constraints static class member (forgot this in commit 114bdf6b)

- Draft: make the constraint const

- PolarPattern and LinearPattern assure that the header file is loaded at last to avoid potential troubles
2021-07-11 01:43:38 +02:00
Yorik van Havre
834933866e Merged crowdin translations 2021-07-08 16:06:38 +02:00
Yorik van Havre
da508e30b0 Merged crowdin translations 2021-07-01 13:56:25 +02:00