Commit Graph

25914 Commits

Author SHA1 Message Date
wmayer
6f20e3e4d8 Gui: remove QT_TR_NOOP from command group names and use "CommandGroup" as context string 2021-09-29 16:31:55 +02:00
wmayer
3edea9891f Sketcher: [skip ci] remove superfluous QT_TRANSLATE_NOOP from Sketcher commands 2021-09-29 15:46:06 +02:00
wmayer
f1431f06c9 Gui: [skip ci] support different context in Command::translatedGroupName 2021-09-29 15:44:44 +02:00
wmayer
76da77f80e Gui: add convenience function Command::translatedGroupName() 2021-09-29 15:25:46 +02:00
Chris Hennes
4ba39762cd Merge pull request #5069 from chennes/lgtmArchMiscFixes
[Arch] Fix LGTM warnings
2021-09-29 07:41:34 -05:00
Yorik van Havre
140e03301e Updated ts files 2021-09-29 14:32:12 +02:00
Yorik van Havre
9958072aa5 Merge pull request #5037 from chennes/fixMixedLanguageTranslationExtraction
[Tools] Refactor updatets to support two-lang mods
2021-09-29 14:24:09 +02:00
wmayer
5cff5654ca Gui: [skip ci] handle exception text as UTF-8 encoded string when saving failed 2021-09-29 14:03:51 +02:00
wmayer
7df49abba9 Base: [skip ci] pass the full file path to the FileException 2021-09-29 14:02:46 +02:00
wmayer
77b09a97f8 App: correctly handle UTF-8 encoded path names under Windows 2021-09-29 13:47:29 +02:00
Ajinkya Dahale
92b3a5430a [App] Fix regression introduced by PR #4996
Files opened by running `freecad xxxx.FCStd` or similar relative paths could not
be saved because of new code introduced to create parent directories. See
https://github.com/FreeCAD/FreeCAD/pull/4996#issuecomment-922370077 and
https://forum.freecadweb.org/viewtopic.php?f=13&t=62319&p=534156#p534156.

This commit resolves the issue by ensuring the parent path is absolute while
saving. We would probably like to make sure the file name is itself stored with
absolute path, but there's a few problems
1. There may be other occurences where files are loaded with relative paths. So
having a check here is a good idea.
2. Files opened by `freecad xxxx.FCStd` somehow don't have the issue where
renaming parent directory throws an exception on save. Instead the file is saved
in the new location.
2021-09-29 13:35:02 +02:00
wmayer
2b12fe5c1a Mesh: [skip ci] when points lie exactly on a plane it can happen that a plane fit creates U,V vectors with NaN while W is valid 2021-09-29 12:35:28 +02:00
Chris Hennes
1878898ad5 Merge pull request #5073 from mwganson/spreadsheet2
[Spreadsheet] add preference page and 3 import/export parameters
2021-09-28 16:14:45 -05:00
wmayer
3922a6ac73 Mesh: detect points on edges 2021-09-28 22:30:21 +02:00
Abdullah Tahiri
086b1d2aac Sketcher: Improve the performance of showing/hiding constraints
===============================================================

Forum test and comments:
https://forum.freecadweb.org/viewtopic.php?p=536445#p536390

What?

Showing/hidding a large amount of constraints is very time consuming

Why?

Because SketchObject Constraints property was being set for each individual constraint

Solution is to use the new setVirtualSpace overload taking a list or a tuple, so that all the
constraints are set in a single operation.

In a Debug system with the test of the forum the time taken by the operation is reduced
from 7 minutes to around 2-3 seconds.
2021-09-28 20:08:46 +02:00
Abdullah Tahiri
b9dcac559c Sketcher: Python - enable using the setVirtualSpace command individually or by group 2021-09-28 20:07:41 +02:00
Abdullah Tahiri
7872d0b3bc Sketcher: Overload setVirtualSpace to allow setting a group of constraints 2021-09-28 20:06:52 +02:00
Chris Hennes
6391bebeb8 [Arch] Fix LGTM warnings 2021-09-28 10:29:45 -05: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
wmayer
1f6d3cb03b TD: [skip ci] fixes #issue 4755: Copying a section view segfaults 2021-09-28 13:37:43 +02:00
Yorik van Havre
c804cbbda7 Merge pull request #5062 from chennes/meshImproveNastranUnitTests
[Mesh] Improve Nastran unit tests
2021-09-28 11:45:16 +02:00
Yorik van Havre
3640088a13 Merge pull request #5064 from chennes/lgtmAddonManagerFixes
[Addon Manager] Silence LGTM warnings about urls
2021-09-28 11:37:09 +02:00
Yorik van Havre
2e5bc4a7a9 Merge pull request #5068 from FreeCAD-Tools/master
Request for remove more than 100 duplicate translations from Sketcher.ts
2021-09-28 11:35:30 +02:00
FreeCAD-Tools
07bb855bdb Merge branch 'master' into master 2021-09-28 10:26:41 +03:00
mwganson
2e021e5880 [Spreadsheet] add preference page and 3 import/export parameters 2021-09-27 22:05:36 -05:00
sliptonic
3bb37bd471 Merge pull request #5009 from Russ4262/fix/ramp_dressup
[Path] Fix for inactive ramp dressup base operation
2021-09-27 15:34:43 -05:00
sliptonic
0613f8a142 Merge pull request #5050 from jimzim111/PathArray_Z
Path: PathArray translate copies along Z axis as it does along X/Y
2021-09-27 15:19:43 -05:00
sliptonic
382053d069 Merge pull request #4975 from Russ4262/cleanup/pathprofile
[Path] LGTM cleanup of PathProfile module
2021-09-27 15:16:20 -05:00
sliptonic
b65df63eeb Merge pull request #4973 from Russ4262/fix/millface
[Path] Fix `Face Region` boundary shape usage and LGTM cleanup
2021-09-27 15:13:21 -05:00
FreeCAD-Tools
c4e15e8939 Merge branch 'master' into master 2021-09-27 21:23:47 +03: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
Chris Hennes
8064b6bf01 Merge pull request #5051 from 0penBrain/rotation
[Core] Rotation : improve gimbal lock handling
2021-09-27 10:23:12 -05:00
0penBrain
419612d63e [Core] Rotation : improve gimbal lock handling
Tolerance copied from OCC "gp_Quaternion.cxx"
2021-09-27 16:52:21 +02:00
Chris Hennes
a6a3426ea8 Merge pull request #3256 from 0penBrain/spinBoxDecPoint
[Gui] Allow dot as decimal separator for locales not using it as thousand separator
2021-09-27 09:41:15 -05:00
FreeCAD-Tools
cb2fce651d Merge branch 'master' into master 2021-09-27 16:31:32 +03:00
Chris Hennes
df35042a34 Merge pull request #5067 from Roy-043/Draft-avoid-word-hatch-when-dealing-with-svg
Draft: avoid word "hatch" in preferences when dealing with SVG patterns
2021-09-27 08:30:56 -05:00
FreeCAD-Tools
5971640e11 Update CommandSketcherVirtualSpace.cpp 2021-09-27 16:09:54 +03:00
Roy-043
9003bfae99 Draft: avoid word "hatch" in preferences when dealing with SVG patterns 2021-09-27 15:07:33 +02:00
0penBrain
f6f5182bc3 Gui : susbtitute dot with local decimal separator for spin boxes
Main goal is to improve user-friendlyness for several locales
 Substitution of dot is performed :
 * Always if dot is neither decimal nor group/thousand separator of current locale
 * Only on NUMPAD dot if dot is not decimal but is group separator of current locale
2021-09-27 15:06:36 +02:00
FreeCAD-Tools
4669160060 Merge branch 'FreeCAD:master' into master 2021-09-27 16:05:13 +03:00
FreeCAD-Tools
1d1c126407 Update CommandSketcherTools.cpp 2021-09-27 15:59:31 +03:00
FreeCAD-Tools
b9590a7260 Update CommandSketcherBSpline.cpp 2021-09-27 15:57:12 +03:00
FreeCAD-Tools
d884273eb4 Update CommandCreateGeo.cpp 2021-09-27 15:55:48 +03:00
FreeCAD-Tools
aa4918fa71 Update CommandConstraints.cpp 2021-09-27 15:47:23 +03:00
FreeCAD-Tools
0efabc3861 Update CommandConstraints.cpp 2021-09-27 15:44:55 +03:00
FreeCAD-Tools
bbd39a4e57 Update CommandAlterGeometry.cpp 2021-09-27 15:39:17 +03:00
FreeCAD-Tools
e22335ec2e Update Command.cpp 2021-09-27 15:38:41 +03:00
Chris Hennes
4319fc9d50 Merge pull request #5066 from Roy-043/TechDraw-typo-in-menu-extension-pack
TechDraw: typo in menu extension pack
2021-09-27 07:38:06 -05:00
Chris Hennes
4ff3299975 Merge pull request #5065 from Roy-043/Draft-move-Draft_AddNamedGroup-in-menu
Draft: move Draft_AddNamedGroup in menu
2021-09-27 07:37:22 -05:00
Roy-043
be24cbbcc0 TechDraw: typo in menu extension pack
Typo: "center line(s)" should be "centerline(s)". Same as in the name of the submenu: "Extensions: centerlines and threading".
2021-09-27 14:25:24 +02:00