Commit Graph

36237 Commits

Author SHA1 Message Date
wmayer
cc8fbf83e7 Gui: Enable SoModelMatrixElement
The element type SoModelMatrixElement must be enabled for the node types SoHighlightElementAction and SoSelectionElementAction.
Otherwise an assert() will fail and causes a crash in debug mode.
2024-03-04 11:24:39 +01:00
Ladislav Michl
0420f72ca0 Gui: PythonWrapper: Consolidate typeName handling
Use typeName consistently for both PySide and Python interface
code paths.
2024-03-03 15:20:48 +01:00
wmayer
866909e2f6 Gui: PythonWrapper: Make qt_getCppType more robust
Handle gracefully possible shiboken's Python API changes.
2024-03-03 15:20:48 +01:00
wmayer
26dedb03ce Gui: PythonWrapper: Fix possible crash in qt_wrapInstance 2024-03-03 15:20:48 +01:00
Ladislav Michl
a11d8710c1 Gui: PythonWrapper: Use getPyTypeObjectForTypeName consistently 2024-03-03 15:20:48 +01:00
Ladislav Michl
769d14a1f1 Gui: PythonWrapper: Raise exception on qt_wrapInstance failure
When qt_wrapInstance fails it returns Py::Object with internal
pointer set to null. Make PythonWrapper::from* methods raise
exception when this happens to be consistent with PySide code path.
2024-03-03 15:20:48 +01:00
Ladislav Michl
da64119797 Gui: Implement PythonWrapper::fromQAction
Wrapping QAction through QObject does not work as QAction class
is a part of QtGui not QtCore, so Py::Object with internal
pointer being null is returned causing a crash later.
Therefore implement fromQAction conversion method.
2024-03-03 15:20:48 +01:00
Max Wilfinger
31b12ae9e2 remove code block quotes from about info 2024-03-03 12:08:12 +01:00
FEA-eng
7eae061bf1 FEM CalculiX 2D mechanical analyses (plane stress, plane strain and axisymmetric) (#12562) 2024-03-02 11:46:18 -06:00
Chris Hennes
6c8ee59645 Part: Add BRepOffsetAPI_MakeFilling.hxx to OpenCascadeAll.h 2024-02-29 22:22:02 -06:00
Chris Hennes
b3b773eb1b Part: Add BRepOffsetAPI_MakeEvolved.hxx to OpenCascadeAll.h 2024-02-29 21:29:07 -06:00
mosfet80
dd518726f1 clean FindNETGEN.cmake
Removed redundant mac netgen setup
2024-02-29 17:36:40 -06:00
Chris Hennes
b6c8f8d460 Update translations 2024-02-29 17:25:46 -06:00
wandererfan
d5116ca99c [TD]fix printAll formats 2024-02-29 18:06:04 -05:00
Vincenzo Calligaro
0e7aa5f7bc Part/Toponaming: Tests for flushElementMap and resetElementMap (#12471)
* Part/Toponaming: tests for flushElementMap and resetElementMap
 * Added test for resetElementMap()
 * Added test for flushElementMap()
 * restored ComplexGeoData::resetElementMap to RT fork
 * modified TopoShape::resetElementMap to match the restored signature of ComplexGeoData::resetElementMap
 * added checks in TopoShape::makeShapeWithElementMap to avoid segfaults
 * added check in TopoShape::setElementComboName to avoid segfaults
 * restored testFindSubShapesForSourceWithTypeAndIndex
 * modified test saveDocFileWithNoElementMap to match the restored signature of ComplexGeoData::resetElementMap
* Part/Toponaming: tests for flushElementMap and resetElementMap
 * Removed comments in ComplexGeoData::resetElementMap()
 * Changed TopoShape::resetElementMap():: from virtual to override
 * Removed comment in TopoShape::resetElementMap()
 * Added comments about differences between main and RT fork
 * Removed comment in test saveDocFileWithNoElementMap
 * Updated expected test result in makeElementCompoundTwoShapesGeneratesMap
 * Updated expected test result in resetElementMapTest
 * Fixed typo in test flushElementMapTest
* Part/Toponaming: tests for flushElementMap and resetElementMap
 * updated expected tests results after previous methods modifications

---------

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-02-29 13:27:27 -06:00
wandererfan
cbc39e989f [TD]fix Projection Group front view position
- also fix checkbox correspondence with view position
2024-02-29 13:06:22 -05:00
Florian Foinant-Willig
677cadee5e PD: Use SuppressibleExtension 2024-02-29 18:24:27 +01:00
bgbsww
68fd2934cf Testing for makeElementEvolve 2024-02-29 09:26:22 -06:00
Zheng, Lei
110f3e000d Toposhape/Part: Transfer in makEEvolve 2024-02-29 09:26:22 -06:00
Chris Hennes
a03ad7f49b Merge pull request #12201 from bgbsww/bgbsww-toponamingGetElementName
Toponaming: transfer in getElementName and dependencies
2024-02-28 21:05:54 -06:00
Chris Hennes
a4efcf0533 Toponaming/Part: Clang-format cleanup 2024-02-28 19:18:45 -06:00
Chris Hennes
2630e259a0 Merge pull request #12610 from bgbsww/bgbsww-toponamingReplaceElementShape
Toponaming/Part:  replace element shape and remove element shape
2024-02-28 18:52:18 -06:00
bgbsww
7d0afaec54 Toposhape/Part: cleanup and test getElementName 2024-02-28 17:07:36 -05:00
Zheng, Lei
59b563ca69 Toponaming/Part: trasnfer in getElementName 2024-02-28 17:06:09 -05:00
bgbsww
698f306c18 Toposhape/Part: Clean and test replacEShape and removEShape 2024-02-28 16:53:29 -05:00
Zheng, Lei
f8cca40b14 Toposhape/Part: Transfer in replacEShape and removEShape 2024-02-28 16:41:07 -05:00
Chris Hennes
566e97e11a Merge pull request #12628 from bgbsww/bgbsww-toponamingFeatureCompound
Toponaming/Part feature compound and revolution
2024-02-28 15:30:11 -06:00
Chris Hennes
d472ed18da Merge pull request #12590 from bgbsww/bgbsww-toponamingMakeElementBSplineFace
Toponaming/Part make element b spline face and filled face
2024-02-28 15:29:13 -06:00
Chris Hennes
a878b81495 Merge pull request #12474 from NomAnor/pd-pattern-tasks
Refactoring and cleanup of PD Pattern task panels
2024-02-28 15:10:37 -06:00
Chris Hennes
dac2fb4d3d PD: Correct typo in pattern parameters 2024-02-28 13:56:16 -06:00
André Althaus
a76aead05e Fix reference selection code
PolarPattern was missing some classes. The code is now more consistent
between the patterns.
2024-02-28 17:29:59 +01:00
André Althaus
0bdd72e7e7 Use the isDerived<>() Template function 2024-02-28 17:29:59 +01:00
André Althaus
b1f9e9f805 Fix linter hints 2024-02-28 17:29:59 +01:00
Chris Hennes
97f9c4e467 App: Remove unneeded forward declaration
Addresses clang-tidy complaint: declaration 'Feature' is never referenced, but a declaration with the same name found in another namespace 'Part' [bugprone-forward-declaration-namespace]
2024-02-28 12:58:46 +01:00
pre-commit-ci[bot]
5829c3a058 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-28 12:58:07 +01:00
Roy-043
dcc41bf80c Sketcher: improve GUI texts for arcs and conics
The descriptions were sometimes not accurate (major/minor radius for ellipses). I have also tried to improve the constistency a little.

Forum topic:
https://forum.freecad.org/viewtopic.php?t=85396
2024-02-28 12:58:07 +01:00
pre-commit-ci[bot]
8f1b8b1f1f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-28 12:55:40 +01:00
Roy-043
5cc566bb98 Sketcher: improve GUI texts for rectangles
The texts for the modes were changed to match those of the line tool.
2024-02-28 12:55:40 +01:00
pre-commit-ci[bot]
6a3c689d40 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-28 12:54:11 +01:00
Roy-043
86726f21b7 Sketcher: Change Sketcher_CreatePointFillet button text to match menu text
The menu text is "Create corner-preserving fillet" it makes sense to use a similar text for the button and not "Constraint-preserving sketch fillet".
2024-02-28 12:54:11 +01:00
Chris Hennes
8e15f24a22 Addon Manager: Fix scroll distance on scrollbar click 2024-02-27 22:36:16 -06:00
PaddleStroke
dfa1b94c83 Sketcher: Line DSH: Harmonize width/length behavior with rectangle. 2024-02-27 21:46:41 -06:00
Ed Williams
f88f48f64f Change the calculation of the b parameter of the hyperbolic arc (#12467)
* Change the calculation of the b parameter of the hyperbolic arc
so that it does not give 0/0 when cos(phi) = 0

This gave problems if the first two points defined in the sketcher had
the same x-coordinate.
2024-02-27 14:38:05 -06:00
bgbsww
e3c4461891 Toposhape/Part: Cleanup and tests for FeatureCompound and FeatureRevolution 2024-02-27 09:58:13 -06:00
Zheng, Lei
99256f23e7 Toposhape/Part: Transfer in FeatureCompound and FeatureRevolution 2024-02-27 09:58:13 -06:00
bgbsww
16c29ceb27 Toponaming/Part: Add tests and clean makeElementBSplineFace and makeElementFilledFace 2024-02-27 09:57:27 -06:00
Zheng, Lei
5aed0c78f5 Toposhape/Part: Transfer in makEFilledFace and makEBSplineFace 2024-02-27 09:57:27 -06:00
wmayer
8173e4474b Tests: use the correct value as reference 2024-02-27 08:47:47 -06:00
mosfet80
36f42cf4d8 Delete src/Tools/update_qt_language_files.py
Empty file
2024-02-27 08:42:56 -06:00
mosfet80
d8598139ce Clean ConfigureChecks.cmake
Clean cmake
2024-02-27 15:09:48 +01:00