Commit Graph

37443 Commits

Author SHA1 Message Date
wmayer
145f203c2f Mesh: replace QtConcurrent::run with std::async 2024-03-11 16:00:25 +01:00
wmayer
8ae8ba5668 Mesh: make sure in VisitNeighbourFacets() and VisitNeighbourFacetsOverCorners() that start index is within the valid range 2024-03-11 16:00:25 +01:00
Max Wilfinger
fe9760d2fd Merge pull request #12863 from furgo16/title-removed
Remove placeholder title from PROBLEM_REPORT.yml issue report template
2024-03-11 13:49:28 +01:00
furgo16
013212ff00 Remove title from PROBLEM_REPORT.yml 2024-03-11 08:13:17 +01:00
Chris Hennes
8cb1f3dfb3 Material: Linter cleanup 2024-03-10 17:44:47 -05:00
Max Wilfinger
5fc907d797 Update PROBLEM_REPORT.yml
change title of issue report
2024-03-10 16:39:44 -05:00
Max Wilfinger
96ca591e69 Update PROBLEM_REPORT.yml
remove "[Problem]" in the title.
2024-03-10 14:40:03 -05:00
wmayer
445fa5c758 Increment year in copyright notice 2024-03-09 16:18:57 +01:00
wmayer
2b7994459f Test: change license of test file 2024-03-09 16:18:14 +01:00
wmayer
91d46a249a App: fix some linter issues 2024-03-09 16:18:14 +01:00
xtemp09
4d0c607c07 Fix the crash described in #12785
Closes #12785. The cause of the segmentation fault is access to the
already deleted _QMenu_. Simple setting attribute `Qt::WA_DeleteOnClose`
and removal of `delete menu` prevented it. To reproduce the crash, one
needs to mess up the `user.cfg` file in the way described in the issue.

Here is the fragment from the issue to mess up the `user.cfg` file:

```xml
<FCParamGroup Name="Expression">
<FCText Name="EditorTrigger">=</FCText>
<FCBool Name="AntoHideEditorIcon" Value="1"/>
<FCBool Name="NoSystemBackground" Value="1"/>
<FCInt Name="EditDialogBGAlpha" Value="1"/>
<FCInt Name="EditDialogWidth" Value="300"/>
<FCInt Name="EditDialogHeight" Value="214"/>
<FCInt Name="EditDialogTextHeight" Value="35"/>
</FCParamGroup>
```

---

This commit changes also unconnected things:

- usage of `QObject::connect` instead of if statements
- relocation of a separator and an action inside the if statement (I saw
no reason to have a separator and an action for _ExpressionCompleter_ if
there is no expression completer)
- usage of asynchronous `QMenu::popup()` instead of synchronous
`QMenu::exec()`. This way is used within [the source code of Qt]
(https://github.com/qt/qtbase/blob/5.15/src/widgets/widgets/
qlineedit.cpp#L2191-L2197).
2024-03-09 16:12:47 +01:00
pavltom
6dd2a1d1ec [TechDraw] Reimplement Weld Symbol parent linking 2024-03-09 08:32:24 -05:00
wmayer
915de5b4db Tests: add tests for ProjectFile 2024-03-08 22:25:59 -06:00
wmayer
0d85616644 App: Add class ProjectFile to access metadata and data files of a project 2024-03-08 22:25:59 -06:00
wmayer
bc671b5d7d Fix MinGW build
The commit c4859975 caused a regression by breaking MinGW builds because the line
'#if defined(__MINGW32__)' has been removed.
As a result the 'if defined (FC_OS_WIN64) || defined (FC_OS_WIN32)' has become active
where the types '__int64' or 'unsigned __int64' that are not defined for MinGW
2024-03-08 10:24:49 +01:00
bgbsww
16eecee812 Toposhape/Part:: Fix, relocate and test element methods in ComplexGeoData and TopoShape 2024-03-07 23:00:48 -05:00
Zheng, Lei
a21d7bbaf3 Toposhape/Part: Bring in element methods in FeaturePart, TopoShapePy::Init and TopoShape::GetPyObject 2024-03-07 13:15:40 -05:00
wmayer
12389fc549 Tests: fix compiler warning about unused parameters 2024-03-06 15:22:21 +01:00
wmayer
a782d6f1bc Part: Add class BRepMesh
This refactors the code of TopoShape::getFacesFromDomains and the the private class BrepMesh of the MeshPart module
to reduce code duplication.
2024-03-06 07:20:39 +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
Chris Hennes
0076935cfb TD: Add missing translation strings to menu 2024-03-05 12:54:54 -05:00
Chris Hennes
6b2d7ac333 TD: Fix translation of pending updates string
Switch to %n form so translators can adjust based on the number. Also allows English adaptation to plural/singular, if desired.
2024-03-05 12:53:59 -05:00
Chris Hennes
cd1c697765 TD: Clean up translations of HoleShaftFit 2024-03-05 12:52:19 -05:00
WandererFan
3048bd1f09 Merge pull request #12749 from pavltom/techdraw_leaderline_linking
[TechDraw] Reimplement Leader Line parent linking
2024-03-05 12:50:09 -05:00
WandererFan
244b354ffd Merge pull request #12775 from WandererFan/fixSSUnit
[TD]correct s/s cell format
2024-03-05 12:44:19 -05: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
1f9657dc94 Addon Manager: Switch to using QtTranslate's %n for updates 2024-03-05 08:35:26 -06:00
Chris Hennes
2b667131ef Sketcher: Fix missing translation of 'Sketcher visual' 2024-03-05 08:35:26 -06:00
wmayer
5f0ccced5b Gui: fix -Wlogical-op-parentheses 2024-03-05 08:34:19 -06:00
Chris Hennes
b6c070aabf Merge pull request #12750 from bgbsww/bgbsww-toponamingElementCacheExtras
Toponaming/Part element cache extras
2024-03-05 08:32:32 -06:00
wandererfan
4d7f9f00f4 [TD]correct s/s cell format 2024-03-05 07:29:29 -05:00
Ladislav Michl
57ffa2427e Base: Remove StopWatch
StopWatch is now used on single place only, remove it in favour of TimeElapsed
2024-03-05 12:30:56 +01: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
Ladislav Michl
a691d6fcdc Base: Use std::chrono for time handling
Replace platform specific implementations with standard C++ std::chrono.
As time_t is now 64-bit on all supported systems, use it to set the clock.
2024-03-05 12:22:40 +01:00
Ladislav Michl
7b70d3fc6f Base: Move currentDateTimeString out of TimeInfo
currentDateTimeString does not have anything in common
with TimeInfo class, move it into Tools.
2024-03-05 12:22:40 +01:00
Chris Hennes
d60e7b9eae Part: Correct context for selection filter 2024-03-05 10:39:25 +01:00
Chris Hennes
796240392a Gui: Fix translation strings for Part, Group, and Link
Extra HTML tags were added outside the translation NOOP. They were unnecessary, and broke translation.
2024-03-05 10:38:51 +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
bgbsww
ec25690af3 Merge branch 'main' into bgbsww-toponamingElementCacheExtras 2024-03-04 21:19:42 -05:00
WandererFan
bc4890aa05 Merge pull request #12736 from HowThatWorks/main
A set of ISO 7200/ISO 5457 templates for TechDraw
2024-03-04 20:25:53 -05:00
Chris Hennes
d153359b16 Apply suggestions from code review 2024-03-04 19:01:18 -06:00
Chris Hennes
71aee9e73e Merge pull request #12726 from bgbsww/bgbsww-toponamingTestHelperfix
Toponaming/Part: Correct elementsMatch to test all entries
2024-03-04 18:32:53 -06:00
sliptonic
c4c535c6ba addon manager list of wbs 2024-03-04 16:59:30 -06:00
bgbsww
5c582b7b2d Toposhape/Part:: fix, relocate and test element methods in ComplexGeoData and TopoShape 2024-03-04 17:16:59 -05:00
Zheng, Lei
e5ef0b5833 Toposhape/Part: element methods in ComplexGeoData and TopoShape 2024-03-04 17:16:59 -05:00
Chris Hennes
ce76cecfee Addon Manager: Fix score pref path 2024-03-04 16:04:22 -06:00
bgbsww
b3677cf0b0 Toponaming/Part: Correct tests that show platform variations when all elements tested 2024-03-04 16:23:40 -05:00
Chris Hennes
722ef69ad9 Merge pull request #12683 from bgbsww/bgbsww-toponamingPropertyTopoShape
Toponaming/Part: property topo shape
2024-03-04 15:05:16 -06:00
bgbsww
5892a8339e Toponaming/Part: Cleanups, problem fixes, and tests 2024-03-04 16:04:01 -05:00