Commit Graph

43 Commits

Author SHA1 Message Date
Uwe
208b017253 [FEM] TaskFemConstrain*: remove unused includes
- also sort includes
2022-10-03 05:20:52 +02:00
berniev
53ba98d636 Mod: use empty 2022-08-06 19:30:13 +02:00
Uwe
5e634c5995 [FEM] remove superfluous nullptr checks 2022-07-18 01:45:19 +02:00
wmayer
bde17e1b9f Fem: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
Ajinkya Dahale
e0f96afb35 [FEM] Refactor TaskFemConstraintOnBoundary (#6615)
* Now the behavior is consistent with behavior of PD fillets, for example.
See https://forum.freecadweb.org/viewtopic.php?f=18&t=67135#p580192. In the
future it may be possible to reuse some code from there.

* When the last selected item is removed we need to reset the existing
highlighting separately.

* Use `Gui::ButtonGroup` in `TaskFemConstraintOnBoundary`
2022-03-21 01:02:10 +01:00
Uwe
4f0fd30371 [FEM] remove some unused includes for some dialogs
- also some style fixes made by MSVC
2022-03-17 19:53:12 +01:00
Uwe
23fa6ebaa9 [FEM] Bearing and FluidBoundary: code improvements
- get rid of UI-coded limits
- fix layout issues
- code simplifications
- remove unused headers
2022-03-17 03:45:38 +01:00
wmayer
d419b325fb Fem: Fix several coverity issues:
* make SelectionChangeModes an enum class
* CID 350596: Uninitialized scalar field
* CID 350572: Uncaught exception
* CID 350647: Uncaught exception
2022-03-13 14:09:04 +01:00
wmayer
8f786ea6ef Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00
Ajinkya Dahale
e92cc10819 [FEM] Use modal add/remove for more constraints (8/??)
Use the previously added superclass `TaskConstraintOnBoundary` for more
constraints where it's usable.

Currently done:
TaskFemConstraintDisplacement
TaskFemConstraintForce
TaskFemConstraintSpring
TaskFemConstraintFluidBoundary
TaskFemConstraintHeatflux
TaskFemConstraintFixed
TaskFemConstraintTemperature
TaskFemConstraintPressure

Too different:
TaskFemConstraintTransform (single selection)
TaskFemConstraintContact (single selection, two fields)
TaskFemConstraintPlaneRotation (single selection)
(Other constraint tasks, which do not use `addToSelection`)
2022-01-07 05:33:42 +01:00
luz paz
ace0d32647 FEM: Fix variable pHeatTransfering -> pHeatTransferring
Found via `codespell`
2021-10-20 06:25:34 +02:00
luz paz
36d9f82671 FEM: remote superfluous double semicolons [skip ci] 2021-02-14 22:13:16 +01:00
luz paz
3830b562d5 FEM: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the FEM Wb.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
2020-12-01 14:53:35 +01:00
Bernd Hahnebach
c0fa72929a FEM: fluid task panel, use log for a log 2020-06-04 00:29:21 +02:00
Bernd Hahnebach
7034467911 FEM: rename icon, Constraint Fluid Boundary 2020-03-06 08:39:11 +01:00
donovaly
10cfdceb7a [FEM] spread the fixes from commit ef370e6d to the other dialogs 2020-03-01 14:37:28 +01:00
wmayer
7558b6e7cc Fem: [skip ci] fix several coding flaws:
* improve implementation of TaskFemConstraintForce::onButtonDirection
* use QSignalBlocker to tmp. suppress signals instead of dis- and re-connecting
* directly access object from SelectionObject
* don't do type checks by class name but by typeid
2020-02-26 14:15:12 +01:00
donovaly
d813e5abf1 FEM: constraint dialogs: sort out commonly used function
additionally remove double code from TaskFemConstraintForce.cpp
2020-02-24 20:12:10 +01:00
donovaly
8a25be1fba remove doubled code
(is there already a few lines up)
2020-02-23 16:45:35 +01:00
donovaly
9ad52812a0 TaskFemConstraintFluidBoundary.cpp: squash GCC compiler warning 2020-02-23 16:45:35 +01:00
donovaly
ec213a4d98 [FEM] make the Fluid Boundary dialog behave like the other dialogs
- allows highlighting and multiple selection
2020-02-23 16:45:35 +01:00
donovaly
d71cdc061c [FEM] add shortcut to delete constraints from list in dialog
see https://forum.freecadweb.org/viewtopic.php?f=18&t=43402
2020-02-19 10:15:10 +01:00
luz.paz
73b8ee91ee FEM: [skip ci] fix header uniformity
This PR fixes header uniformity across all FEM WB files
2019-12-21 20:00:14 +01:00
Abdullah Tahiri
0382e2dd75 PCH: Fem Gui 2019-05-16 21:43:08 +02:00
wmayer
56b9d509a1 PVS: V519 Variable is assigned values twice successively 2019-03-13 12:55:31 +01:00
luz.paz
cb4a0adf71 Misc. typos
Found via `codespell`
2019-02-08 11:01:24 -02:00
qingfengxia
9a99bfc622 FEM: constraint fluid boundary, fix bug of the delayed redrawing for BoundaryType changed 2019-01-24 14:19:49 +01:00
luz.paz
1d8aaad976 FEM: typo fixes 2018-04-29 20:40:15 +02:00
sL1pKn07
6674467254 [For v018] Fix build with Qt5 beta
Seems need add some headers for build with incoming Qt 5.11 (Tested with 5.11.0beta2)
2018-04-10 12:59:41 +02:00
luzpaz
c1f77477df Misc. typo fixes
Remove double whitespaces between source comments
2017-11-25 16:54:02 -02:00
wmayer
18c8a15cb5 inherit FemAnalysis from DocumentObjectGroup and remove Member property 2017-10-24 20:07:05 +02:00
wmayer
fde42545ba fix various coverity issues 2017-09-15 11:48:38 +02:00
luzpaz
a3953e95df misc typos
misc-typos
2017-09-15 09:54:14 +02:00
wmayer
6dba95c7f0 add security check for data validation in FEM fluid boundary panel 2017-09-10 17:52:11 +02:00
qingfengxia
bfa78670d2 FEM: bugfix for Console print std::string which needs c_str() conversion 2017-09-10 17:09:44 +02:00
qingfengxia
5dd6073715 FEM: enable thermal and turbulence boundary setting UI 2017-09-10 17:09:19 +02:00
qingfengxia
d03f09d7ae FEM: enable edge selection for FemConstraintFluidBoundary of 2D case 2017-09-10 17:09:00 +02:00
Kunda
f4b84e8963 FEM: source code typos, issue 0002914 2017-02-28 17:35:26 +01:00
Bernd Hahnebach
9a27373321 FEM: code formating, white spaces 2017-02-17 22:07:56 +01:00
qingfengxia
5b52c6a708 add help text for thermal fluid boundary for CFD 2016-09-16 23:01:09 +01:00
wmayer
aee9dbd8d4 fix wrong error text, fix activation of sub-widgets 2016-08-12 13:26:52 +02:00
qingfengxia
aa59b39690 bugfix: Taskview ui, typo, coding format for FluidBoundary 2016-08-12 11:05:55 +02:00
qingfengxia
79e3ec0f01 Add ViewProvider and TaskPanel FemConstraintFluidBoundary for CFD analysis 2016-08-12 11:05:55 +02:00