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
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
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
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
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
WandererFan
68f4a9624c
Merge branch 'main' into techdraw_leaderline_linking
2024-03-04 15:34:48 -05:00
marioalexis
451a98383c
Fem: Use mixed cell types in pipeline unstructured grid - fixes #12581
2024-03-04 13:01:35 -06:00
mosfet80
2ba1e5277c
[tools] cleanVisual studio
...
removed visual studio project files
2024-03-04 18:28:00 +01:00
wmayer
3343bf2419
Part: fixes #12274 : Incorrect calls in ConePyImp
2024-03-04 11:24:03 -06:00
wmayer
26ba1c3f9b
Gui: fix -Wlogical-op-parentheses
2024-03-04 11:23:09 -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
FEA-eng
a4612bd636
Remove the need to include geometrical nonlinearity when nonlinear material is used in CalculiX FEM ( #12703 )
...
* Update commands.py
* Update checksanalysis.py
2024-03-04 11:16:54 -06:00
Chris Hennes
0f68957817
Merge pull request #12694 from CalligaroV/toponaming-PartFeature-FeatureCreate
...
Part/Toponaming: Transfer Part::Feature::create()
2024-03-04 11:14:41 -06: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
FEA-eng
8056b2dec1
FEM CalculiX isotropic and kinematic hardening ( #12666 )
...
* Update material_mechanicalnonlinear.py
* Update write_femelement_material.py
* Update material_mechanicalnonlinear.py
2024-03-04 11:11:48 -06:00
sliptonic
32d9776f59
Merge pull request #12661 from djmdjm/adaptive-glitch-fix
...
PATH: Fix adaptive glitch by removing coincident points
2024-03-04 10:09:21 -07:00
Bas Ruigrok
b99cd239aa
Gui: Set rotation center when entering dragging in TinkerCAD style
2024-03-04 11:09:04 -06:00
sliptonic
551626ada3
Merge pull request #12652 from djmdjm/centroid-g43
...
Add G43 tool height compensation to centroid post
2024-03-04 10:08:31 -07:00
FEA-eng
20e57f7196
Elmer FEM 2D electromagnetic examples fix ( #12646 )
...
* Update equation_magnetodynamics_2D_elmer.py
* Update equation_magnetostatics_2D_elmer.py
2024-03-04 11:08:07 -06:00
bdieterm
b552ea7dbf
Base: add missing axis and angle update for Rotation::setEulerAngles
2024-03-04 11:07:21 -06:00