Commit Graph

36394 Commits

Author SHA1 Message Date
Chris Mayo
c2df0bb75e Gui: Remove ".desktop" suffix from QGuiApplication::setDesktopFileName()
"QGuiApplication::setDesktopFileName: the specified desktop file name
ends with .desktop. For compatibility reasons, the .desktop suffix will
be removed. Please specify a desktop file name without .desktop suffix"
2024-03-12 08:45:50 -05:00
edi271
6897d306a4 [TD] Solve scale issue in AxoLengthDimension 2024-03-12 08:38:36 -04:00
wmayer
a7ae00237d Mesh: fix many linter warnings 2024-03-12 00:36:28 +01:00
Chris Hennes
230c7aa14e Merge pull request #12804 from bgbsww/bgbsww-toponamingPartFeature
Toponaming/Part: methods in part feature and dependencies for correct elementMaps
2024-03-11 13:35:59 -05:00
Max
23c402ee11 Relable Path to CAM in GH template and lable action 2024-03-11 12:39:50 -05:00
Chris Hennes
f241e79f78 Addon Manager: Python package installer wait for thread 2024-03-11 18:36:42 +01:00
Chris Hennes
767e492420 Addon Manager: Fix README fetch for macros
When no macro metadata is downloaded, the macro has no URL yet.
2024-03-11 18:35:48 +01:00
Chris Hennes
fe27939e13 Addon Manager: Strip some HTML tags from Markdown 2024-03-11 18:35:29 +01:00
Yorik van Havre
0f0c9fe44d Draft: Allow to prevent layers to claim children 2024-03-11 12:29:13 -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
wmayer
522e55768b Part: fixes #12744: mesh export creates open edges
For the concatenated domains check if points are duplicate and if yes remove them
2024-03-11 12:25:57 -05:00
Florian Foinant-Willig
54fdeb4ba9 Core: Fix unselectable area in SoDatumLabel 2024-03-11 12:24:00 -05:00
André Althaus
570c2b121f Fix #12780: An additional visibility icon is shown for features in groups
The icons in the testStatus() function are taken by reference and modified
inside. This seems to be used for caching when the same item occurs
multiple times in the tree. This can be the case for groups.

The visibility icon was added without taking the cached icon into
consideration and so it was added a second time.
The code is now moved into the if statement checking for this case.
2024-03-11 12:23:04 -05:00
FEA-eng
835d23d09f Elmer FEM 2D flow examples fix (#12777)
* Update equation_flow_elmer_2D.py

* Update equation_flow_initial_elmer_2D.py

* Update equation_flow_turbulent_elmer_2D.py
2024-03-11 12:21:46 -05:00
FEA-eng
8ce8376271 Update meshtools.py (#12774) 2024-03-11 12:21:14 -05:00
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