Commit Graph

32 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
25c3ba7338 All: Reformat according to new standard 2025-11-11 13:49:01 +01:00
Markus Reitböck
c1be416c7f Fem: use CMake to generate precompiled headers on all platforms
"Professional CMake" book suggest the following:

"Targets should build successfully with or without compiler support for precompiled headers. It
 should be considered an optimization, not a requirement. In particular, do not explicitly include a
 precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
 generated precompile header on the compiler command line instead. This is more portable across
 the major compilers and is likely to be easier to maintain. It will also avoid warnings being
 generated from certain code checking tools like iwyu (include what you use)."

Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
2025-09-23 00:51:00 +02:00
bofdahof
998f4e4d45 Console: rename PascalCase named methods to camelCase 2025-05-06 17:50:21 +02:00
Kacper Donat
651cefde4d Gui: Use getObject<T>() helpers in classes
This commit is generated using regex based find and replace:

```
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*getObject\(\s*\)\)/getObject<$1>/
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*([^)]*)\s*->\s*getObject\(\s*\)\)/$2->getObject<$1>()/
```

To regenerate if needed.
2024-12-06 18:29:39 +01:00
marioalexis
464a50d60e Fem: Clean up constraint view providers 2024-06-24 11:15:14 -05:00
marioalexis
b93274ceef Fem: Cleanup ViewProviderFemConstraint class 2024-06-05 13:12:25 -03:00
wmayer
b8b94c249e Fem: Apply clang-format 2023-09-25 14:50:43 +02:00
wmayer
d525e0d308 Fem: modernize C++: use equals default 2023-08-21 13:35:54 +02:00
marioalexis
2143976302 Fem: Remove property name comparison 2023-03-12 18:27:39 +01:00
Uwe
79d17d13bf [FEM] ViewProviderFemConstrain*: remove unused includes - part 1
- also sort includes
- also fix warnings about too long lines
2022-10-03 17:10:36 +02:00
wmayer
e403b9ce55 Fem: [skip ci] Fix several clazy issues:
* Maybe you meant to call base method instead [-Wclazy-skipped-base-method]
* Using copy-ctor but class SbMatrix has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
* Missing emit keyword on signal call FemGui::PointMarker::PointsChanged [-Wclazy-incorrect-emit]
2022-07-25 12:11:47 +02:00
Uwe
48af573746 [FEM] remove more superfluous nullptr checks 2022-07-18 02:34:57 +02:00
Uwe
fc548a4b34 [FEM] remove superfluous nullptr checks 2022-07-18 01:45:19 +02:00
wmayer
7ae9fc0d67 Fem: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
Bernd Hahnebach
8dc95f7568 FEM: rename icon, Constraint Bearing 2020-03-06 08:38:55 +01:00
luz.paz
1baf5da3cf FEM: [skip ci] fix header uniformity
This PR fixes header uniformity across all FEM WB files
2019-12-21 20:00:14 +01:00
Zheng, Lei
c8891be856 Gui: add coinRemoveAllChildren to work around Coin3D bug
See bug description:
https://bitbucket.org/Coin3D/coin/pull-requests/119/fix-sochildlist-auditing/diff

Because of path based rendering (SoFCPathAnnotation) in mouse over
highlight, this bug causes crash more frequently here comparing to
upstream.

All C++ calling of SoGroup::removeAllChildren() is replaced by
Gui::coinRemoveAllChildren(), and python code is fixed by monkey
patching SoGroup.removeAllChildren() in FreeCADGuiInit.py.
2019-08-17 14:52:11 +02:00
Abdullah Tahiri
241c370f5f PCH: Fem Gui 2019-05-16 21:43:08 +02:00
Bernd Hahnebach
b58e37b950 FEM: remove trailing whitespaces 2016-04-24 19:10:33 +02:00
Bernd Hahnebach
14eb6869a9 FEM: convert all windows code files to unix line ending 2016-04-24 19:10:33 +02:00
wmayer
45af17e39c + Code cleanup:
+ do not include header of itself
+ do not include unneeded header files
+ removed unneeded forward declarations
+ do not translate C string to get a QString
+ break too long lines
+ replace tabs with spaces
+ use virtual keyword on destructors
2015-11-13 15:47:03 +01:00
Przemo Firszt
505b4ba8d3 FEM: Rename Fem_ConstraintBearing icon to fem-constraint-bearing
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
wmayer
834c0a642d + include missing header files 2015-07-01 13:02:29 +02:00
wmayer
17b7003ea7 + fixes #0001549: crash with Draft move tool while sketch is in edit mode 2014-05-20 15:25:03 +02:00
wmayer
9af4f7ee73 + Fix compiler warnings 2013-10-11 12:24:49 +02:00
jriegel
664c1d4862 Integrate Werners & Jans double branch
Move from float to double
Further suggestions for float -> double move
Moved Tools2D from float to double
More suggestions for float->double move from Gui subdirectory
Changes to FEM constraint visuals for float->double move
Suggested changes for float -> double move
Suggestions for Part module moving float -> double
2013-09-24 11:00:57 +02:00
jriegel
527a6f5562 Add mesh parameters and Some fixes 2013-04-23 00:16:47 +02:00
jrheinlaender
66ac727d07 Fem Constraint Visuals: Fixed bug that crashed FC when trying to edit a bearing constraint 2013-03-24 16:09:16 +04:30
jrheinlaender
20fdeb3d86 Added icons for FEM constraints, courtesy of jmaustpc 2013-03-21 16:58:39 +04:30
jrheinlaender
f5c6e4eae3 Improvements to FEM constraint objects 2013-03-21 16:58:01 +04:30
jrheinlaender
517443fb59 Fixed problems with loading of FEM constraint objects 2013-03-21 16:56:57 +04:30
jrheinlaender
d48542cf56 Split code into separate files for each constraint type 2013-03-21 16:56:57 +04:30