Commit Graph

3068 Commits

Author SHA1 Message Date
sliptonic
d82ee98d46 Merge pull request #12602 from FlachyJoe/arc-distance
Sketcher : ArcLength Constraint
2024-04-01 10:43:35 -05:00
Roy-043
9aa0fca3e4 Sketcher: Rename Sketcher_BSplineApproximate.svg
For consistency: rename the icon to match the command name.
2024-03-31 17:40:40 +02:00
pre-commit-ci[bot]
15d7980173 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-31 10:47:32 +02:00
ppphp
041ed30055 fix: some unuse argument warning 2024-03-31 10:47:32 +02:00
ppphp
8863b9ac4c fix: c++20 deprecate [=] 2024-03-31 10:47:32 +02:00
Max Wilfinger
e38b8d9bd4 update hardcoded XPMs to .svg files. Updated .svg icons for clarity. 2024-03-30 11:25:13 +01:00
Chris Hennes
c37c32edc9 Merge pull request #13154 from chennes/translations20240325
Update translations and fix script
2024-03-28 13:51:39 -05:00
Roy-043
f54723fc73 Sketcher: Improve menu text of Sketcher_MapSketch
The old menu text of Sketcher_MapSketch did not describe the tool very well. Not just a face can be selected.

"Map sketch to face..." -> "Attach sketch..."

Forum topic:
https://forum.freecad.org/viewtopic.php?t=86112
2024-03-28 12:05:08 +01:00
bgbsww
51a311e6fb Toponaming/Part: Bug fix for #13169 while we sort this out 2024-03-27 21:33:57 -05:00
wmayer
cb0f92dbde Sketcher: fix typo in function name -> areCollinear
The same function exists in the Draft module but don't fix it there to avoid to possibly break add-ons
2024-03-26 10:34:01 +01:00
Roy-043
bc7833cfab Sketcher: Spelling colinear -> collinear
I have not changed the name of the `areColinear` function.
2024-03-26 07:40:14 +01:00
bgbsww
8d5385fcd2 Clean, enable disabled element map code in sketcher, add tests 2024-03-25 21:51:41 -04:00
Zheng, Lei
8dd6863414 Toponaming/Part: Move sketcher override of getElementName over 2024-03-25 21:51:41 -04:00
Chris Hennes
1a51c0cb57 Update translations 2024-03-25 18:08:22 -05:00
Chris Hennes
32a957bd07 Translation update: move Path to CAM 2024-03-25 17:32:59 -05:00
Florian Foinant-Willig
311137c958 fix undeclared M_PI 2024-03-25 22:32:20 +01:00
Florian Foinant-Willig
e2086ce1c7 Sketcher: ArcLength GUI 2024-03-25 22:32:20 +01:00
Florian Foinant-Willig
ef35ec195d Sketcher : ArcLength Constraint 2024-03-25 22:32:20 +01:00
PaddleStroke
a8adc573f8 Sketcher: Symmetry tool rework. 2024-03-25 17:48:01 +01:00
Chris Hennes
f24071a1e7 Merge pull request #12641 from Ondsel-Development/toolsettings_fix_focus_issue
[Sketcher] Toolsettings fix focus issue
2024-03-22 10:40:10 -05:00
wmayer
6151abaac1 Fixes #12186: Two new Sketcher preferences should show "Restart required" popup 2024-03-22 09:41:31 +01:00
luzpaz
65cdbe3e89 Fix various typos throughout the codebase (#13029)
* Fix various typos throughout the codebase

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-18 16:54:30 -05:00
Max Wilfinger
3d5d58c418 add constraint perpendicular to the context menu if a conic and line is selected. 2024-03-18 13:24:16 -04:00
PaddleStroke
58975135f4 Sketcher: Chamfer tool (and fillet refactor) 2024-03-18 13:23:54 -04:00
PaddleStroke
e6802b049c Sketcher : fix error in className of CmdSketcherCompHorizontalVertical 2024-03-18 13:23:54 -04:00
PaddleStroke
3c87ff59ee Sketcher: Rename 'FocusOut' signal to 'TabOrEnterPressed' 2024-03-18 10:02:00 +01:00
PaddleStroke
4ced18c419 DrawSketchController: Fix crazy focus behavior in tool widget (see in the translate tool). 2024-03-17 08:15:54 +01:00
wmayer
87e0d10d33 Sketch: fixes #12480: Sketcher_CreateBSplineByInterpolation Unhandled unknown C++ exception
The interpolation of a BSpline can fail and then OCC throws an exception. Because this OCC exception isn't handled by the DrawSketchHandler the core system handles it as unknwon C++ exception
2024-03-17 00:47:43 +01:00
Chris Hennes
73417470f5 Sketcher: Remove trailing spaces from translations 2024-03-12 22:42:19 -05:00
Roy-043
ad667811a5 Sketcher: correct position of ConstrainLock and ConstrainRadiam in GUI
Sketcher_ConstrainLock after Sketcher_ConstrainAngle.
Sketcher_ConstrainRadiam before Sketcher_ConstrainRadius.

This was not always correct.

See also #12667.
2024-03-11 12:28:28 -05:00
Chris Hennes
9df1472e43 Sketcher: Translate QWidgetAction items
Explicitly set the context used by tr() to fix missing context without it.
2024-03-11 18:17:32 +01:00
Chris Hennes
5bd6304548 Sketcher: Fix missing translations in DSH tools 2024-03-11 18:07:42 +01:00
Chris Hennes
ff92c76569 Sketcher: Translate menu entries for rectangle spec 2024-03-11 18:06:09 +01:00
xtemp09
f037a1ae25 Fix segmentation fault in Sketcher
Closes #11954.
2024-03-11 16:02:15 +01:00
Chris Hennes
441d674545 Merge pull request #12066 from 3x380V/time_cleanup
Base: Use std::chrono for time manipulation
2024-03-05 15:47:33 -06:00
wmayer
62dee011ef Sketcher: fix crash when trying to edit malformed sketch
For more details see: https://forum.freecad.org/viewtopic.php?p=745031#p745031
2024-03-05 10:34:01 -06:00
Yorik van Havre
262a858be5 Translations (#12748)
* Updated ts files

* Merged crowdin translations

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-05 08:54:36 -06:00
Chris Hennes
2b667131ef Sketcher: Fix missing translation of 'Sketcher visual' 2024-03-05 08:35:26 -06:00
Ladislav Michl
d95b56137b Base: Implement TimeElapsed
Some instances of TimeInfo serve the sole purpose of measuring time
duration. Using system time is unfortunate as it returns wall clock,
which is not guaranteed to be monotonic. Replace such a usage with
the new TimeElapsed class based on steady clock.
2024-03-05 12:29:24 +01:00
wmayer
63eb83c8f3 Sketch: fix compiler warning
Fix warning: add explicit braces to avoid dangling else [-Wdangling-else]
2024-03-04 23:15:42 -06:00
Josh Coalson
fbd8767242 Part: Rename AttachExtension::Support property to AttachmentSupport, to avoid name conflict with base features. Fixes #7052 2024-03-04 18:22:43 +01:00
Max
2643902b6b add description of colinear function to Sketcher_ConstrainTangent 2024-03-04 18:20:18 +01:00
Roy-043
94120db2a9 Sketcher: Sketcher_ConstrainHorizontal before Sketcher_ConstrainVertical in GUI
Changes to TaskSketcherElements.cpp are not required, but were done for consistency. The order in the file follows the GUI.
2024-03-04 11:12:38 -06:00
Chris Hennes
587f26530e Merge pull request #12607 from AjinkyaDahale/sketcher-join-curves-2
Sketcher: Improve Join Curves
2024-03-04 10:57:41 -06:00
Chris Hennes
c4b54a94a2 Update translations 2024-02-29 17:25:46 -06:00
pre-commit-ci[bot]
b2d42e778d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-28 12:58:07 +01:00
Roy-043
ce706604e8 Sketcher: improve GUI texts for arcs and conics
The descriptions were sometimes not accurate (major/minor radius for ellipses). I have also tried to improve the constistency a little.

Forum topic:
https://forum.freecad.org/viewtopic.php?t=85396
2024-02-28 12:58:07 +01:00
pre-commit-ci[bot]
212d5cf4a3 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-28 12:55:40 +01:00
Roy-043
499539168e Sketcher: improve GUI texts for rectangles
The texts for the modes were changed to match those of the line tool.
2024-02-28 12:55:40 +01:00
pre-commit-ci[bot]
8923419440 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-28 12:54:11 +01:00