Commit Graph

31959 Commits

Author SHA1 Message Date
Uwe
bcd157f3eb [FEM] improve pvtu file filtering
- only filter when necessary
- avoid unnecessary function calls
- fix bug that objects were not made visible but invisible
2023-02-19 17:37:11 +01:00
Uwe
e1e65e5b3a [Material] fix card selection bug
- fixes bug number 7 of this list: https://forum.freecad.org/viewtopic.php?style=5&p=489666#p489666

- also fix warning about too short variable name
2023-02-19 07:46:52 +01:00
Uwe
734a0134d6 [FEM] fix material dialog logic
- when the option "use this task panel" is not checked the edit fields must be disabled.
  This also fixes the often hard to understand issue that while scrolling to the end of the dialog the material suddenly changes to "_transient" because the scroll wheel can trigger to change the edit fields.
2023-02-19 04:44:07 +01:00
Uwe
51a3428276 [FEM] fix material handling of fluids
- the material editor failed for Fluid materials because this info was not passed to it. Instead always solid materials were loaded.

- also fix warning about too long variable name and remove unnecessary debug code
2023-02-19 02:57:12 +01:00
Uwe
c19efe0842 [Material] fix bugs with missing icons
- at the moment you get several warnings about missing icons when starting the Material editor
  The reason is that they are not registered in CMake

- also remove icon from Material icon editor. As it is a child of FreeCAD it should have the same FreeCAD icon as all other FreeCAD widgets.

- also fix warning about too short variable name
2023-02-19 00:47:44 +01:00
Uwe
c46809c4c2 [FEM] update Elmer examples
- active already the analysis
- generate the mesh preferably directly, also if this fails, load the rough meshes
- use value for Air is they are in our Air material card
- apply material to the body (not necessary but good practice, the examples are there to teach people and for more complex models setting the material to a body is important)
2023-02-19 00:45:57 +01:00
Uwe
698f4916da [Gui] second hotfix for NotificationBox.cpp
- #include "PreCompiled.h" is missing, see https://github.com/FreeCAD/FreeCAD/pull/8536#issuecomment-1435782841

- also remove unused headers
2023-02-19 00:43:52 +01:00
Pesc0
0cd35f733b Cleanup root directory 2023-02-18 16:09:56 -06:00
Uwe
94fe5e7f95 [FEM] fix analysis activation issue
- after activating an analysis the FEM toolbar buttons did not become active
2023-02-18 22:28:35 +01:00
Uwe
2f057e91fa [Gui] hotfix for NotificationBox.cpp
- master in uncompilable on Windows, see https://github.com/FreeCAD/FreeCAD/pull/8352#issuecomment-1435769625
 and we already got reports about this. Thus a hotfix for the meantime.

- (the formatting change was automatically done by MSVC according to our clang file)
2023-02-18 22:18:46 +01:00
Chris Hennes
674be12e96 Core: FetchContent zip download instead of git 2023-02-18 12:43:48 -06:00
Chris Hennes
58061500f9 Core: Add libfmt via FetchContent 2023-02-18 12:43:48 -06:00
Abdullah Tahiri
d7f4f060fb Gui: NotificationBox - review changes
=====================================

Changes consquence of the review by OpenBrain:
- Use smart pointer for NotificationLabel (QT deleteLater compatible)
- Consistent use of measurement units in parameter naming.
- Consistent wording of code documentation.
- Improvements in branching of QTootTip based code.
- Remove redundant stop on singleshot qtimer.
- Improved filtering of click events.
2023-02-18 16:58:43 +01:00
Abdullah Tahiri
8925399dbb Gui: NotificationBox - New non-intrusive auto-closing notification box
======================================================================

In short, a "tooltip" alike notification, where the user can continue working without having
to interact with the notification. If the user is interested in the notification, he or she can
stop to read it. If not interested, the user can ignore it and continue working. The notification
will automatically disappear when the timer lapses or before that time, as described below.

A new widget similar to QToolTip, to have a similar look and feel
and interface, while avoiding early closing on user action.

QToolTip is not intended for notifications, but to provide contextual help. While
QToolTip could have been used for part of the functionality (by filtering out events),
other parts required additional changes to the interface

Gui::NotificationBox is a reimplementation intended to provide user notifications. It
relies on the proven code of QToolTip for the wanted behaviour.

Additional functionality:
- A notification box has a minimum time for which it won't close, unless popped out (click inside
the notification).
- After the minimum time, if left mouse button is clicked (anywhere) it auto-closes, as it is
understood the user has continued working.
- After a maximum time, it will automatically close (even in nothing is clicked).
2023-02-18 16:58:43 +01:00
Uwe
6d4a90c605 [App] sort includes in PreCompiled.h
- also remove a superfluous private: statement
- also remove an unnecessary include
2023-02-18 14:53:11 +01:00
Uwe
d52acd540e [FEM] connect CCX solver to results pipeline
- it was often criticized that our default solver CCX is not connected to the results pipeline system. One had to connect it manually, the create the different filter etc. but as soon as one changed a constraint and re-run the solver the whole work was gone and one had to recreate the pipeline.
This PR solves this by creating a pipeline and by reloading new results to it on a solver re-run.
The CCX results dialog feature is not touched, since the pipeline is hidden when the dialog is active.
2023-02-18 04:05:05 +01:00
berniev
5b3c5dc422 AlwaysBreakTemplateDeclarations
Previous setting was not keeping the template<...> on a line by itself which get hard to read.

Changing to Yes.
2023-02-18 03:02:47 +01:00
Przemo Firszt
3c7eaa3c28 [COPR] tighten grep to avoid catching some random stuff
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2023-02-17 15:41:08 +01:00
luzpaz
a3e41c07e8 Fix source comment and documentation typos
[skip ci]
2023-02-17 08:32:03 -06:00
0penBrain
ceb45a9a1b CI: improve tests reporting (extract failed tests + uncaught tracebacks) 2023-02-17 08:08:40 -06:00
0penBrain
27b5c17cf3 CI: add crash dumps to log artifacts for Linux builds 2023-02-17 08:08:40 -06:00
0penBrain
e6a23b2251 CI: uniformize sed usage 2023-02-17 08:08:40 -06:00
0penBrain
f3c06c3a55 CI: improve reporting for line endings check 2023-02-17 08:08:40 -06:00
0penBrain
33bf8f2f02 CI: fix a bug in getting codespell problem count 2023-02-17 08:08:40 -06:00
0penBrain
e9233d29c8 CI: improve Prepare reporting by using 'continue-on-error' for silent failing 2023-02-17 08:08:40 -06:00
0penBrain
5da1446704 CI: improve Lint reporting by using 'continue-on-error' for silent failing 2023-02-17 08:08:40 -06:00
0penBrain
9d50f4496b CI: Improve Cmake build reporting, print built targets (and only this) 2023-02-17 08:08:40 -06:00
0penBrain
4e0004fb67 CI: Improve Cmake configure reporting, print full config (and only this) 2023-02-17 08:08:40 -06:00
0penBrain
e68b47f501 CI: print Cmake configure error log only in case it failed 2023-02-17 08:08:40 -06:00
0penBrain
5a2f7970c2 CI: add specific timeouts to test actions 2023-02-17 08:08:40 -06:00
Bernd Hahnebach
9855774fee Arch: IFC, export, improve debug messages if axis object has not been exported 2023-02-17 15:02:18 +01:00
Bernd Hahnebach
ba525db278 Arch: IFC, import, fix import break because of a missing variable 2023-02-17 13:18:32 +01:00
Bernd Hahnebach
b5c9ba93f4 Arch: IFC export, fix because one malformed geometry can break the whole export 2023-02-17 10:51:58 +01:00
Roy-043
7d200fe120 [Arch] Arch_Site did not handle movable children (#8510) 2023-02-17 10:09:53 +01:00
Uwe
824f2cdc9a [FEM] fix possible crash on changing the VectorMode
- if pvtu file filtering is on, there is by design not on every call of WriteColorData() data
  (on other occasions of GetArray(array) the result is checked, for two calls is was forgotten)

- also some automatic code formatting according to our current clang file
2023-02-17 02:32:54 +01:00
Roy-043
2c191f74c7 [Arch] Arch_Stairs fix for #8444 (#8518)
- Recompute should not be called from onDocumentRestored. It causes issues when updating complex stairs.
2023-02-16 21:09:06 +01:00
Roy-043
14da2ac92b [Arch] Allow Arch_stairs with 2 steps (#8515)
- Fixes #7050
2023-02-16 20:56:22 +01:00
luzpaz
a134129868 Fix various trailing whitespace issues 2023-02-16 09:30:22 -05:00
berniev
fb2bfe3a08 clang-format enable reflow comments 2023-02-16 09:29:51 -05:00
Uwe
9aa61bf49a [Gui] font setting fixes for NaviCube
- it turned out that the current check for default font failed because of wrong check for the hinting
- fix bug that when the FontSize is not yet stored in the parameters, the dialog shows a wrong size value
2023-02-16 14:11:54 +01:00
Yorik van Havre
c2a8bd5eb9 Merge pull request #8506 from Roy-043/Arch-children-of-Component-did-not-rotate-with-Host
[Arch] children of Component did not rotate with Host
2023-02-16 09:28:32 +01:00
Uwe
6c6e0ae9bb [FEM] make pvtu file filtering optional
- it is sensible to filter by default, however, it turned out that on some complex models Elmer fails to compute if the mesh volume regions are too small (in most cases) or at a certain mesh region. By disabling the filtering, one gets at least for the latter case a visual feedback where the mesh volume of the different CPU are (by also setting a transparency to the result pipeline).
2023-02-16 02:32:40 +01:00
Roy-043
efdae63ef1 [Arch] children of Component did not rotate with Host 2023-02-16 00:07:07 +01:00
wmayer
498e774e68 Gui: fix removing item from recent files list 2023-02-16 00:06:33 +01:00
wmayer
ca946aabcb Gui: [skip ci] set object name to tabbar of MDI area 2023-02-15 19:12:37 +01:00
Abdullah Tahiri
194fbf1efe Sketcher: Correct font sizes and updates
========================================

Fonts:
- SoDatumLabel internally uses QFont and thus points. It was being fed pixels, for which the configured size in preferences did not match the actual on screen size. This is corrected.
- Font sizes fed directly from parameters to the coin nodes skeleton were not being updated, as the parameter observer is initialised after the nodes are created, and the parameter
observer was not configured to update this nodes. This is corrected.

Colors:
- Some color parameters were not being being updated by the parameter observer. This is corrected.
2023-02-15 17:29:46 +01:00
Yorik van Havre
db64b1b462 Merge pull request #8495 from luzpaz/fem-trailing-newlines
FEM: fix trailing newlines
2023-02-15 17:02:16 +01:00
Yorik van Havre
54607120a1 Merge pull request #8491 from luzpaz/draft-typos
Draft: fix typos
2023-02-15 17:01:30 +01:00
wmayer
8f32631d34 Fem: fixes #8485: transparency of pipeline objects is visually lost 2023-02-15 14:52:44 +01:00
luzpaz
61e96bd763 FEM: fix trailing newlines 2023-02-15 13:41:38 +00:00