Commit Graph

36377 Commits

Author SHA1 Message Date
mosfet80
e9ec2422e1 [Mod] Removed unnecessary function (#12772)
* Removed unnecessary function

the "renamedDocumentObjet" function does nothing

* [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-11 12:20:32 -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
19a6d76a00 Tests: Migrate Google Test to a submodule
Pin Google Test submodule to v1.14.0
2024-03-11 12:16:09 -05:00
mosfet80
7713a33d9b [MOD] clean SMESH (#12754)
removed old smesh CODE <7
2024-03-11 12:13:00 -05:00
Chris Hennes
0603e94559 Merge pull request #12753 from davesrocketshop/20240301_FEM_Models
Material: New data models to support elasticity
2024-03-11 12:11:05 -05:00
Chris Hennes
bf6a209c22 Fix missing translations in task panel (#12738)
* Draft: Add missing translation to task panel

* PD: Add missing translation to task panel
2024-03-11 18:10:42 +01:00
Chris Hennes
703f7b563e PD: Translate attachment task title
Eliminate default title, which is untranslatable.
2024-03-11 18:08:22 +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
Chris Hennes
cd43bf60ee PD: Translate shaft end types
Adds support for menu items having 'user data' that is the untranslated string. It would be better if these were enumerations, but that's a much larger refactoring process.
2024-03-11 18:05:29 +01:00
marioalexis
d8012f74ba Fem: Add partial support for hexahedral elements - fixes #12526 2024-03-11 12:03:15 -05:00
FEA-eng
0aa2f283fa FEM CalculiX output frequency setting (#12672)
* Update solver.py

* Update write_step_output.py

* Update box_frequency.inp

* Update box_static.inp

* Update ccx_buckling_flexuralbuckling.inp

* Update ccx_cantilever_beam_circle.inp

* Update ccx_cantilever_beam_pipe.inp

* Update ccx_cantilever_beam_rect.inp

* Update ccx_cantilever_ele_hexa20.inp

* Update ccx_cantilever_ele_quad4.inp

* Update ccx_cantilever_ele_quad8.inp

* Update ccx_cantilever_ele_seg2.inp

* Update ccx_cantilever_ele_seg3.inp

* Update ccx_cantilever_ele_tria3.inp

* Update ccx_cantilever_ele_tria6.inp

* Update ccx_cantilever_faceload.inp

* Update ccx_cantilever_nodeload.inp

* Update ccx_cantilever_prescribeddisplacement.inp

* Update constraint_contact_shell_shell.inp

* Update constraint_sectionprint.inp

* Update constraint_selfweight_cantilever.inp

* Update constraint_tie.inp

* Update constraint_transform_beam_hinged.inp

* Update constraint_transform_torque.inp

* Update frequency_beamsimple.inp

* Update material_multiple_bendingbeam_fiveboxes.inp

* Update material_multiple_bendingbeam_fivefaces.inp

* Update material_multiple_tensionrod_twoboxes.inp

* Update material_nonlinear.inp

* Update square_pipe_end_twisted_edgeforces.inp

* Update square_pipe_end_twisted_nodeforces.inp

* Update thermomech_bimetall.inp

* Update box_frequency.inp
2024-03-11 12:02:41 -05:00
sliptonic
cfb464de84 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
9d7682c01f 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
4e0ee0bd80 Tests: add test function to write to file stream 2024-03-11 16:05:30 +01:00
wmayer
6d9a1794e7 App: Change output stream from std::stringstream to std::ostream 2024-03-11 16:05:30 +01:00
wmayer
dfc252666e Base: Implement FileInfo::size() 2024-03-11 16:05:30 +01:00
wmayer
aa58cef2f9 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 (2f4cec5e8a5d) 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
dc8e5bb924 Fix build failure for MinGW
MinGW needs to know about the COIN_DLL export macro
2024-03-11 16:02:48 +01:00
xtemp09
f037a1ae25 Fix segmentation fault in Sketcher
Closes #11954.
2024-03-11 16:02:15 +01:00
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
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