Commit Graph

31950 Commits

Author SHA1 Message Date
Uwe
043b8cf2d6 [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
1900613b6f Core: FetchContent zip download instead of git 2023-02-18 12:43:48 -06:00
Chris Hennes
59c95496b4 Core: Add libfmt via FetchContent 2023-02-18 12:43:48 -06:00
Abdullah Tahiri
c98022e7fd 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
6532098308 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
2690118711 [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
de95a22eae [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
124a03f508 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
5d8c247c2a [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
c48b426182 Fix source comment and documentation typos
[skip ci]
2023-02-17 08:32:03 -06:00
0penBrain
a69f656c61 CI: improve tests reporting (extract failed tests + uncaught tracebacks) 2023-02-17 08:08:40 -06:00
0penBrain
3a6c9ffc69 CI: add crash dumps to log artifacts for Linux builds 2023-02-17 08:08:40 -06:00
0penBrain
6316fed5d9 CI: uniformize sed usage 2023-02-17 08:08:40 -06:00
0penBrain
551e70f3bb CI: improve reporting for line endings check 2023-02-17 08:08:40 -06:00
0penBrain
c1631e0d03 CI: fix a bug in getting codespell problem count 2023-02-17 08:08:40 -06:00
0penBrain
cd9280cd08 CI: improve Prepare reporting by using 'continue-on-error' for silent failing 2023-02-17 08:08:40 -06:00
0penBrain
2a1422e453 CI: improve Lint reporting by using 'continue-on-error' for silent failing 2023-02-17 08:08:40 -06:00
0penBrain
fb818a81cf CI: Improve Cmake build reporting, print built targets (and only this) 2023-02-17 08:08:40 -06:00
0penBrain
6cb194e461 CI: Improve Cmake configure reporting, print full config (and only this) 2023-02-17 08:08:40 -06:00
0penBrain
72de402e46 CI: print Cmake configure error log only in case it failed 2023-02-17 08:08:40 -06:00
0penBrain
7b2428a1f1 CI: add specific timeouts to test actions 2023-02-17 08:08:40 -06:00
Bernd Hahnebach
5888edef05 Arch: IFC, export, improve debug messages if axis object has not been exported 2023-02-17 15:02:18 +01:00
Bernd Hahnebach
dc580dd6b5 Arch: IFC, import, fix import break because of a missing variable 2023-02-17 13:18:32 +01:00
Bernd Hahnebach
acb78e8e88 Arch: IFC export, fix because one malformed geometry can break the whole export 2023-02-17 10:51:58 +01:00
Roy-043
b8a7ba0c2e [Arch] Arch_Site did not handle movable children (#8510) 2023-02-17 10:09:53 +01:00
Uwe
7534c6748c [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
29cebe45c0 [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
dfc57aa80e [Arch] Allow Arch_stairs with 2 steps (#8515)
- Fixes #7050
2023-02-16 20:56:22 +01:00
luzpaz
08b3bf4462 Fix various trailing whitespace issues 2023-02-16 09:30:22 -05:00
berniev
08214d9ec3 clang-format enable reflow comments 2023-02-16 09:29:51 -05:00
Uwe
ef29cc7657 [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
b88fb1bcfd 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
4639283b45 [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
1474f36b74 [Arch] children of Component did not rotate with Host 2023-02-16 00:07:07 +01:00
wmayer
684e9fd425 Gui: fix removing item from recent files list 2023-02-16 00:06:33 +01:00
wmayer
ffd9ca6e69 Gui: [skip ci] set object name to tabbar of MDI area 2023-02-15 19:12:37 +01:00
Abdullah Tahiri
e566daa1af 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
39f4b8c091 Merge pull request #8495 from luzpaz/fem-trailing-newlines
FEM: fix trailing newlines
2023-02-15 17:02:16 +01:00
Yorik van Havre
2bcde04bfe Merge pull request #8491 from luzpaz/draft-typos
Draft: fix typos
2023-02-15 17:01:30 +01:00
wmayer
a2928cf0f6 Fem: fixes #8485: transparency of pipeline objects is visually lost 2023-02-15 14:52:44 +01:00
luzpaz
d4796dd1d4 FEM: fix trailing newlines 2023-02-15 13:41:38 +00:00
Uwe
b0e50b8eb2 [FEM] Contours: disable keyboard tracking
- otherwise the contour creating algorithm would be invoked on every keystroke
- also improve a code comment
2023-02-15 14:31:10 +01:00
Uwe
a84d6d19e6 [FEM] improve visualization of pvtu files
- To speed up analyses one calculates on several CPU cores. The result is a partial VTU file.
Unfortunately when applying a transparency the boundaries of the volumes computed by each CPU core are always visible. This makes it often unusable for visualizations.
The solution is to filter the results the same way a clip filter does.
2023-02-15 14:22:45 +01:00
luzpaz
e033dd6ba5 Draft: fix typos 2023-02-15 13:13:29 +00:00
Uwe
99a7262e60 [FEM] improve checks for datasets
- check if datasets exists before we access them
- speed up the check for the datatype by testing after the downcast
2023-02-15 10:54:45 +01:00
luzpaz
3b67713b24 FEM: fix trailing whitespace
Fix trailing whitespace in `Fem/App/FemPostFilter.cpp`
2023-02-15 10:45:00 +01:00
Uwe
ee59d2ce58 [FEM] [skip ci] add missing header for precompiled headers 2023-02-15 00:42:54 +01:00
wmayer
61d24dedf7 Part: add integration tests 2023-02-14 22:56:42 +01:00
wmayer
3f72e247ff Part: creating a NURBS of a circle or ellipse doesn't respect any transformation
Example:

mat = App.Matrix()
mat.rotateX(1)
mat.rotateY(1)
mat.rotateZ(1)

circle = Part.Circle()
circle.Radius = 5
circle.transform(mat)

circle.transform(mat)
Part.show(circle.toShape())

nurbs = circle.toNurbs()
Part.show(nurbs.toShape())

arc = circle.trim(0, 2)
nurbs = arc.toNurbs()
Part.show(nurbs.toShape())

spline = circle.toBSpline()
Part.show(spline.toShape())

#-------------------------

ellipse = Part.Ellipse()
ellipse.MajorRadius = 5
ellipse.MinorRadius = 3
ellipse.transform(mat)

ellipse.transform(mat)
Part.show(ellipse.toShape())

nurbs = ellipse.toNurbs()
Part.show(nurbs.toShape())

arc = ellipse.trim(0, 2)
nurbs = arc.toNurbs()
Part.show(nurbs.toShape())

spline = ellipse.toBSpline()
Part.show(spline.toShape())
2023-02-14 22:56:42 +01:00
Roy-043
f34cce97a0 [Draft] typo: object name should be capitalized (#8484) 2023-02-14 15:44:26 +01:00