Commit Graph

28672 Commits

Author SHA1 Message Date
marioalexis
0d6e8eed5a Part: Enable reversed method in Python TopoShape class 2022-04-10 11:59:03 +02:00
wmayer
c84c2fb6eb Gui: clean-up Selection API
Replace the int of the SubType of SelectionChanges with an enum class.
The meaning of it is nowhere documented and some magic numbers like 0,1,2 are used in several places in the code.
2022-04-09 23:07:02 +02:00
Chris Hennes
27196375b4 Addon Manager: Improve bad icon handling 2022-04-09 15:15:13 -05:00
wmayer
6f2167e0f2 Gui: add enum class to Selection Python API 2022-04-09 18:03:45 +02:00
Uwe
6a48e68e76 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2022-04-09 17:04:26 +02:00
Uwe
821d071d02 [Part] ExtrusionHelper: polish code after today's fixes 2022-04-09 17:03:58 +02:00
wmayer
0b2c73cf32 Gui: clean-up Selection API
Replace the int of the 'resolve' argument of several functions with a proper enum class.
* This avoids the inconsistencies in client code where often true/false is passed when an int is expected
* This avoids the use of magic numbers like 0, 1, 2 or the undocumented 3
2022-04-09 17:03:43 +02:00
wmayer
2d266a75cd Part: make sure that new wire has same orientation as old wire as otherwise the offset will be negative 2022-04-09 12:46:27 +02:00
wmayer
19144a25dd Part: [skip ci] fix warning: unused parameter 'numEdges' [-Wunused-parameter] 2022-04-09 12:25:51 +02:00
Uwe
ead05ae30e [Part] extend BRepOffsetAPI_MakeOffsetFix and use it for padding
BRepOffsetAPI_MakeOffsetFix provides already a workaround for an OCC bug. To use it for Pad/pocket, only the Init feature has to be added
we take the same implementation like it if for BRepOffsetAPI_MakeOffset
2022-04-09 06:43:46 +02:00
Uwe
2cea4dc1b8 [skip CI] [App] PropertyLinks: fix line endings 2022-04-09 06:36:43 +02:00
marioalexis84
aa2ebb9601 Draft: Make ShapeString editable by double-click - fixes #5885
* Draft: Make ShapeString editable - fixes #5885
2022-04-08 17:47:41 +02:00
mwganson
929c89f700 Part:Improve support for Links 2022-04-08 17:42:42 +02:00
wmayer
db2236fe22 Gui: [skip ci] improve readability of SoFCColorGradient::setRange 2022-04-08 15:17:41 +02:00
wmayer
33cdb8c640 Part: implement persistence methods of all geometry classes and raise exception if needed (but no assert(0)) 2022-04-08 11:48:10 +02:00
wmayer
3696d89592 Part: [skip ci] use Py::None() 2022-04-08 10:58:10 +02:00
0penBrain
b7860d20e6 [Core] Persistence: improve NotImplemented exception presentation to user 2022-04-08 10:55:31 +02:00
0penBrain
5cb11cb562 Fix typo 2022-04-08 10:55:31 +02:00
0penBrain
3c6d6dfea5 [CrashFix] Core: fix crash when dumping content of a Surface 2022-04-08 10:55:31 +02:00
0penBrain
f75f4aaa9c [CrashFix] Core: fix crash when Surface is null 2022-04-08 10:55:31 +02:00
Ed Williams
daaf81e346 Replace Line with LineSegment
It doesn't run with Line
2022-04-08 10:45:19 +02:00
Wanderer Fan
3ba8359d33 [TD]fix artifact in PDF export 2022-04-07 08:46:11 -04:00
wmayer
98eb81d0ba Fem: remove the forced document recompute from ViewProviderFemPostSphereFunction::updateData
This is already handled in ViewProviderFemPostFunction::dragFinishCallback and can be switched on or off.

See also: https://forum.freecadweb.org/viewtopic.php?p=584481#p584481
2022-04-07 13:29:34 +02:00
wmayer
5907a7261e Fem: move handling of PostAutoRecompute to a central class and by default set its value to true 2022-04-07 13:22:13 +02:00
0penBrain
7a16a2fff1 Sketcher: restore constraint filter if Multiple dialog is canceled 2022-04-07 12:30:36 +02:00
Chris Hennes
aa1523dcd6 Addon Manager: Black reformat 2022-04-06 14:30:22 -05:00
Chris Hennes
13f5b876a5 Addon Manager: Allow overriding install with missing deps 2022-04-06 14:28:34 -05:00
wmayer
5a93f68d6f Gui: [skip ci] avoid that mouse is stuck after opening Help page with What's This 2022-04-06 18:32:55 +02:00
Yorik van Havre
d2d787c7c3 Arch: Added object type to IFC export of 2D annotations 2022-04-06 14:19:03 +02:00
wmayer
8671016c5a Tools: [skip ci] allow to build plugin as a top-level project 2022-04-06 13:48:33 +02:00
0penBrain
80f692ca9c Gui: if expression is emptied, pressing Enter discards expression 2022-04-06 13:42:18 +02:00
wmayer
2dde41c054 Tools: [skip ci] fix linking errors of designer plugin with MSVC 2022-04-06 12:47:28 +02:00
Yorik van Havre
9442668f7a Arch: Fixed IFC import/export of dimensions 2022-04-06 11:35:18 +02:00
mwganson
483da808a7 Part: CheckGeometry handle non-ascii characters in object names when generating advanced shape content 2022-04-06 05:08:39 +02:00
wmayer
568fbc3e35 Base: add method isEqual() to Base::Flags<> to simplify comparison 2022-04-05 19:09:14 +02:00
wmayer
61ec7268a4 FEM: work around a crash with vtk9 on export of a vtkUnstructuredGrid 2022-04-05 16:27:16 +02:00
sliptonic
602a1c2de7 Merge pull request #6712 from mlampert/bugfix/remove-debugging-globals
[PATH] - bugfix/Removed debugging globals
2022-04-05 09:07:42 -05:00
Yorik van Havre
197ae3bc0a Arch: Fixed IFC import of Rebars 2022-04-05 16:06:22 +02:00
Yorik van Havre
df21082e50 Arch: fixed flipped import of IFC texts 2022-04-05 16:06:00 +02:00
Yorik van Havre
c845270a61 Arch: Fixed text justify in IFC export 2022-04-05 16:03:46 +02:00
Yorik van Havre
ffbe0d1b96 Arch: workaround race condition in building part creation 2022-04-05 16:02:44 +02:00
Bernd Waibel
0e8b87bf51 Add option to build and install the designer plugin
The patch adds a cmake option BUILD_DESIGNER_PLUGIN, targeted
mainly at package maintainers to allow an easy build and installation
of the FreeCAD designer plugin.

It has been discussed in
https://forum.freecadweb.org/viewtopic.php?f=10&t=67706

Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
2022-04-05 08:08:12 +02:00
Markus Lampert
e44c402268 Removed debugging globals 2022-04-04 21:12:45 -07:00
Uwe
bc017a7c03 [Gui] Color Gradient: handle case of min = 0
When the minimum is zero, we don't want scientific notation, for example for a range [0, 12.57]
2022-04-05 03:40:10 +02:00
Uwe
e34ecb0c5e [Gui] fix color gradient label format
- large numbers like e.g. stress outputs were not displayed in scientific notation

- also some code style improvements and a fixed typo
2022-04-05 02:42:53 +02:00
wmayer
5917601666 Ext:[skip ci] drop prefix argument from Python code to make sure the absolute path to dist-packages is used.
This allows to set CMAKE_INSTALL_PREFIX to something else than /usr and freecad as Python package is still installed into the correct directory.

For more details see: https://forum.freecadweb.org/viewtopic.php?f=4&t=67750
2022-04-04 18:46:25 +02:00
wmayer
f2f131f391 Tools: [skip ci] replace QtDesigner with QtUiPlugin header to make moc happy on macOS 2022-04-04 17:06:59 +02:00
wmayer
7f66a6e170 Gui: handle number of labels and decimals in the immediate update 2022-04-04 15:27:13 +02:00
wmayer
b9dee98063 Gui: more fixes of DlgSettingsColorGradientImp:
* make sure that DlgSettingsColorGradientImp::setRange() generates a valid string according to the validator settings
* change back to QLineEdit::editingFinished because for huge models an immediate update considerably slows down editing
2022-04-04 11:43:43 +02:00
Zheng, Lei
ed582bbecd Gui: put private class to anonymous namespace 2022-04-04 04:53:52 +02:00