Commit Graph

31999 Commits

Author SHA1 Message Date
Uwe
c00a2d19ec [Material] fix major bug of wrong decimals
This PR fixes the long-standing major bug that for languages using ',' as decimal separator the material editor was useless. (bug no. 10 in https://forum.freecad.org/viewtopic.php?t=56912)
  the issue was that the value was handled as text. This PR:
- using a spinbox instead if a text edit to modify numbers (has also the advantage to be able to change values by spinning)
- sets min/max properly for all number data types

- also avoid rounding artifacts when changing Float values
2023-02-23 03:06:44 +01:00
luzpaz
57b365f18f Fix misc. typos and whitespace 2023-02-22 23:46:18 +01:00
Uwe
c0369770bc [Material] [skip ci] fix card for Graphite
- decimal sign was mixed ',' and '.' causing problems
2023-02-22 21:16:05 +01:00
wmayer
3545c55a35 Part: don't restrict width of group boxes in section cutting dialog 2023-02-22 21:06:12 +01:00
Bernd Hahnebach
b2ee277a94 Arch: IFC, import, add missing debug print new lines and skip information for 2D objects 2023-02-22 15:25:27 +01:00
Syres916
668ff4baf6 [Part] Fix Geometric Primitives task panel bug
See discussion https://forum.freecad.org/viewtopic.php?t=76218
2023-02-22 14:27:58 +01:00
Yorik van Havre
86cabf595a Merge pull request #8497 from yorikvanhavre/arch-nativeifc
Arch: Placeholder modules to handle files containing NativeIFC objects
2023-02-22 10:33:29 +01:00
Yorik van Havre
c8848a7c95 Merge pull request #8496 from yorikvanhavre/Start-default
Start: Allow to change the default import module for a filetype
2023-02-22 10:27:34 +01:00
Jonas Bähr
3c0d63f8b3 PD: Make InvoluteGear's property docs translatable
As the property descriptions are translated at a central place in the
GUI, we have to use the generic "App::Property" category.
For details see https://tracker.freecadweb.org/view.php?id=0002524

As the property docs are also used as tool tips in the InvoluteGear's
task panel, this is also needed to achive a fully translatable GUI.
2023-02-21 23:21:56 -06:00
Jonas Bähr
c804549cfe PD: Enhance InvoluteGear's Task Panel with Tool Tips
In order to not maintain the same information in two places, the property
docs are reused as tool tips for their input fields. And for user
convenience, the same tool tip is assigned to the respective label as
well.
2023-02-21 23:21:56 -06:00
Chris Hennes
31799d5f13 OpenSCAD: Make clearing field undoable
Also renames the clear button for clarity. Fixes #8576.
2023-02-21 22:55:04 -06:00
Uwe
9e380a5bf6 [FEM] fix material initialization
- on creating a new material object, don't pollute the console wit wrong error messages (if no material is yet selected, of course nothing can be found)
- fix that for anew fluid materials the material editor was started with solid materials
2023-02-22 05:43:57 +01:00
Uwe
c85ed0dee3 [Material] fix bugs for external material files
- handle case that material cards are chosen from folders outside of the standard material folders

- also reduce singleStep size for spin edits for more convenience
2023-02-22 05:25:06 +01:00
Uwe
35725769d9 [FEM] add example for magnetodynamic equation
- also fix description of other recently added examples
2023-02-22 03:51:28 +01:00
Chris Hennes
a79b397e85 OpenSCAD: Correct QFileDialog usage
Fixes #8577
2023-02-21 20:50:29 -06:00
Bernd Waibel
8fde3e3cd0 properly report Shiboken and PySide if found
The patch fixes a small issue, with the PrintFinalReport macro, where
Shiboken and PySide where not properly reported.

Closes: https://github.com/FreeCAD/FreeCAD/issues/8573
Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
2023-02-21 14:57:01 -06:00
Chris Hennes
eeb481207f Addon Manager: Fix bug in dependency installer 2023-02-21 13:33:20 -06:00
Chris Hennes
3826042529 Addon Manager: pylint cleanup of devmode 2023-02-21 12:11:35 -06:00
Uwe
d13926baa8 [FEM] add example for flux equation
- also fine-tune flow example
2023-02-21 13:01:14 +01:00
Chris Hennes
381f534c47 Core: Update Mac Spacemouse calls
The old call was deprecated by 3DConnexion.
2023-02-20 23:48:39 -06:00
Chris Hennes
40e3cc57bf Merge pull request #8568 from chennes/cmakeFixFmt
cMake: Add manual find_package() for fmt
2023-02-20 23:39:56 -06:00
Chris Hennes
b3766e5c42 cMake: Add manual find_package() for fmt 2023-02-20 21:42:55 -06:00
Chris Hennes
43cc8b12c1 Addon Manager: Cleanup package_details.py 2023-02-20 21:09:51 -06:00
Chris Hennes
4d6e7cd3a4 Addon Manager: pylint cleanup of package_list.py 2023-02-20 21:09:51 -06:00
Chris Hennes
892c0a95f6 Addon Manager: Remove direct FreeCAD import in tests 2023-02-20 21:09:51 -06:00
Chris Hennes
2e2153813f Addon Manager: Silence linter test setup complaints 2023-02-20 21:09:51 -06:00
Chris Hennes
b4ac20b50b Addon Manager: HTML standard compliance 2023-02-20 21:09:51 -06:00
marioalexis
976b0b8d3f Fem: Implement getNodeElements function 2023-02-21 03:13:13 +01:00
Chris Hennes
9c6164bc07 Addon Manager: Add SPDX license ID to all files 2023-02-20 15:39:47 -06:00
Uwe
b6d186ef73 [FEM] [skip ci] Command.cpp: fix loo long line 2023-02-20 03:13:19 +01:00
Uwe
60e089d52a [FEM] fix typo in command
- to be uniform as all other commands begin with "CmdFem..."
2023-02-20 02:45:14 +01:00
Uwe
2bf7ccab68 [FEM] fix reported typos and inconsistencies 2023-02-20 02:07:33 +01:00
Uwe
1f8f2bf6cb [FEM] add new example file for flow and heat
- also extend examples libraries for (more to come) examples with multiphysics (multiple equations)
2023-02-20 02:06:48 +01:00
Uwe
cd88d3888c [App] License.h: fix compiler warning
- as discussed here: https://forum.freecad.org/viewtopic.php?t=76184
2023-02-20 00:57:19 +01:00
Chris Hennes
b00572548f Addon Manager: Refactor macro
Reduce coupling with FreeCAD core.
2023-02-19 15:49:24 -06:00
Chris Hennes
7b590eace0 Addon Manager: Refactor interface to FreeCAD 2023-02-19 15:49:24 -06:00
wmayer
519d26e13c CMake: fix linking error in test function when linking Python statically 2023-02-19 20:51:44 +01:00
luzpaz
c14f58d6f3 Fix various trailing whitespace issues and typos 2023-02-19 10:59:14 -06:00
Uwe
902566c6ce [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
14de59ec35 [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
8a16e01e39 [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
b31d9d1e34 [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
4b99ce1aac [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
65195d99b0 [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
585de7c8a0 [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
9d7c8b1326 Cleanup root directory 2023-02-18 16:09:56 -06:00
Uwe
a7c5fde0e3 [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
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