Commit Graph

34454 Commits

Author SHA1 Message Date
sliptonic
575f282f45 Merge pull request #12665 from Ondsel-Development/pathrename
Rename the Path Workbench to CAM
2024-03-11 11:01:59 -06:00
Yorik van Havre
b2f1add784 Draft: Introduce mouse delay (#12624)
* Draft: Introduce mouse delay - fixes #11807

* Draft: set default mouse delay to 1
2024-03-11 11:54:07 -05:00
wmayer
7b7a806bdf App: Change output stream from std::stringstream to std::ostream 2024-03-11 16:05:30 +01:00
wmayer
1775991b50 Base: Implement FileInfo::size() 2024-03-11 16:05:30 +01:00
wmayer
2cdc94e15c Gui: Fix using context-menu of ExpressionLineEdit
If for the DlgExpressionInput the user config parameter 'NoSystemBsckground' is set to True it's not used as a normal dialog but as a pop-up window.
In this mode the context-menu of the ExpressionLineEdit isn't working. A previous commit (a3036d16f1) fixed a crash but not this issue.

For Qt4 DlgExpressionInput has overridden the eventFilter() to handle using the context-menu but this is not working any more for Qt5 or Qt6.
Luckily, it has appeared that with Qt5 and Qt6 it works out-of-the box now and the event filter is not needed any more.
2024-03-11 16:04:00 +01:00
wmayer
2ce903a46c Fix build failure for MinGW
MinGW needs to know about the COIN_DLL export macro
2024-03-11 16:02:48 +01:00
xtemp09
9961f2949a Fix segmentation fault in Sketcher
Closes #11954.
2024-03-11 16:02:15 +01:00
wmayer
053d0fa047 Mesh: replace QtConcurrent::run with std::async 2024-03-11 16:00:25 +01:00
wmayer
33cacc3fb0 Mesh: make sure in VisitNeighbourFacets() and VisitNeighbourFacetsOverCorners() that start index is within the valid range 2024-03-11 16:00:25 +01:00
wmayer
5b5be480a3 Increment year in copyright notice 2024-03-09 16:18:57 +01:00
wmayer
d42518c214 App: fix some linter issues 2024-03-09 16:18:14 +01:00
xtemp09
a3036d16f1 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
7212cccae5 [TechDraw] Reimplement Weld Symbol parent linking 2024-03-09 08:32:24 -05:00
wmayer
87716e1102 App: Add class ProjectFile to access metadata and data files of a project 2024-03-08 22:25:59 -06:00
wmayer
eb5a1b3339 Fix MinGW build
The commit 028739df 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
wmayer
0d37ea2629 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
da36c0c1f3 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
bdf46e7337 TD: Add missing translation strings to menu 2024-03-05 12:54:54 -05:00
Chris Hennes
f3378bc113 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
b257870c16 TD: Clean up translations of HoleShaftFit 2024-03-05 12:52:19 -05:00
WandererFan
2e8473b659 Merge pull request #12749 from pavltom/techdraw_leaderline_linking
[TechDraw] Reimplement Leader Line parent linking
2024-03-05 12:50:09 -05:00
WandererFan
42d1bda60a Merge pull request #12775 from WandererFan/fixSSUnit
[TD]correct s/s cell format
2024-03-05 12:44:19 -05:00
wmayer
5d1564fec5 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
1e164f24c0 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
08fe694bd7 Addon Manager: Switch to using QtTranslate's %n for updates 2024-03-05 08:35:26 -06:00
Chris Hennes
988391fe22 Sketcher: Fix missing translation of 'Sketcher visual' 2024-03-05 08:35:26 -06:00
wmayer
c4e1495d81 Gui: fix -Wlogical-op-parentheses 2024-03-05 08:34:19 -06:00
Chris Hennes
412a654b5d Merge pull request #12750 from bgbsww/bgbsww-toponamingElementCacheExtras
Toponaming/Part element cache extras
2024-03-05 08:32:32 -06:00
wandererfan
b36abb146c [TD]correct s/s cell format 2024-03-05 07:29:29 -05:00
Ladislav Michl
1677e3d105 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
e4d304f934 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
159fe5c21f 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
de1305413e 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
16016e2d2b Part: Correct context for selection filter 2024-03-05 10:39:25 +01:00
Chris Hennes
672d879653 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
8743f5e82a Sketch: fix compiler warning
Fix warning: add explicit braces to avoid dangling else [-Wdangling-else]
2024-03-04 23:15:42 -06:00
bgbsww
609cd12b4b Merge branch 'main' into bgbsww-toponamingElementCacheExtras 2024-03-04 21:19:42 -05:00
WandererFan
d8037eda36 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
84e0cc7293 Apply suggestions from code review 2024-03-04 19:01:18 -06:00
sliptonic
cc72c73f64 addon manager list of wbs 2024-03-04 16:59:30 -06:00
bgbsww
834bbff6b0 Toposhape/Part:: fix, relocate and test element methods in ComplexGeoData and TopoShape 2024-03-04 17:16:59 -05:00
Zheng, Lei
5e532494ca Toposhape/Part: element methods in ComplexGeoData and TopoShape 2024-03-04 17:16:59 -05:00
Chris Hennes
11a9305be5 Addon Manager: Fix score pref path 2024-03-04 16:04:22 -06:00
Chris Hennes
cd0d58cfe9 Merge pull request #12683 from bgbsww/bgbsww-toponamingPropertyTopoShape
Toponaming/Part: property topo shape
2024-03-04 15:05:16 -06:00
bgbsww
7945bf686e Toponaming/Part: Cleanups, problem fixes, and tests 2024-03-04 16:04:01 -05:00
WandererFan
ce90c89b54 Merge branch 'main' into techdraw_leaderline_linking 2024-03-04 15:34:48 -05:00
marioalexis
11ac84f373 Fem: Use mixed cell types in pipeline unstructured grid - fixes #12581 2024-03-04 13:01:35 -06:00
mosfet80
9e1903d461 [tools] cleanVisual studio
removed visual studio project files
2024-03-04 18:28:00 +01:00
wmayer
5ef6045fea Part: fixes #12274: Incorrect calls in ConePyImp 2024-03-04 11:24:03 -06:00
wmayer
4732cbf3b9 Gui: fix -Wlogical-op-parentheses 2024-03-04 11:23:09 -06:00