Commit Graph

19189 Commits

Author SHA1 Message Date
howetuft
17ed2b196a [Cmake] Update FindPySide2Tools for PySide2 5.14 - issue #4229
Since PySide2 5.14, 'pyside2-rcc' and 'pyside2-uic' have been renamed into plain 'rcc' and 'uic'.
This leads FindPySide2Tools.cmake to no longer find rcc/uic, as reported in bug #4229 (https://www.freecadweb.org/tracker/view.php?id=4229) and prevents compilation.
FindPySide2Tools has been updated accordingly.
2020-01-08 15:19:27 +01:00
vocx-fc
692fa7e702 Draft: new module for utility functions
Many auxiliary tools used by `Draft.py` can be defined
in another module. Many functions are moved to this module
so that `Draft.py` isn't as big and hard to maintain.

The following is a list of functions and attributes that were moved:
`stringencodecoin`, `arrowtypes`, `typecheck`,
`getParamType`, `getParam`, `setParam`, `precision`,
`tolerance`, `epsilon`, `getRealName`, `getType`,
`getObjectsOfType`, `isClone`, `getGroupNames`,
`ungroup`, `shapify`, `getGroupContents`,
`printShape`, `compareObjects`, `loadSvgPatterns`,
`svgpatterns`, `getMovableChildren`, `getWindows`,
`utf8_decode`.

Moreover, many of these functions were renamed
to comply better with PEP8 guidelines, particularly
the use of `snake_case`. For example, `getGroupNames`
is now `get_group_names`; `getMovableChildren`
is now `get_movable_children`.

Aliases are provided for the old names so that
other functions and classes that depend on these
won't break. The new names should be the official
programming interface, while the old names
should be deprecated at some point in the future.
2020-01-08 15:16:55 +01:00
vocx-fc
5143369fc9 Draft: add new command for Draft CircularArray
Added object, viewprovider, icon; gui command definition, task panel,
add command to InitGui; add callbacks, and delay system.
2020-01-08 15:16:07 +01:00
wmayer
b1189aef6e Gui: override QOpenGLWidget::paintGL() in sub-class [skip ci] 2020-01-08 13:28:50 +01:00
wmayer
8e5151002b Gui: set image creation method in settings dialog 2020-01-08 12:49:56 +01:00
vocx-fc
31e2bbe3a9 Fem: variable name 'children', not 'childs' 2020-01-08 11:54:34 +01:00
Bernd Hahnebach
8004fc8b61 FEM: small code improvements (got forgotten on parent commit) 2020-01-07 23:10:33 +01:00
Bernd Hahnebach
1ac9099e79 FEM and Part: check if catched exception has an error message 2020-01-07 23:01:47 +01:00
Bernd Hahnebach
2504247d65 Arch: import IFC, fix possible devision by zero 2020-01-07 16:38:28 +01:00
Bernd Hahnebach
6f52e8425e Part: compound filter, fix gui object delete if obj has no Base anymore 2020-01-07 14:56:52 +01:00
donovaly
cec0339cd0 sort angles in the attacher dialog
- now the angles are sorted x-y-z
- added tooltips to clarify what e.g. the rotation axis of the yaw angle means (not only important for non-native speakers)
2020-01-07 07:40:11 -03:00
donovaly
65acf2371e QuantitySpinBox: add function to set/change tooltip at runtime 2020-01-07 07:39:28 -03:00
donovaly
8af503e330 Placement.ui: avoid unnecessary vertical white space 2020-01-07 07:38:46 -03:00
donovaly
3d1f5ffec9 Placement improvements:
- sort the angles x-y-z
- add tooltips to make clear for non-native speakers what axis e.g. the yaw rotates around
- add existing icon to menu entry
2020-01-07 07:38:46 -03:00
Zheng, Lei
35ba5aa2af Gui: improve ViewProviderLink transform editing 2020-01-07 07:37:28 -03:00
donovaly
66354b3c58 add units Gauss, Weber and Oersted 2020-01-07 07:36:22 -03:00
lorenz
dfea8535b6 importDWG: remove comments 2020-01-07 07:35:14 -03:00
looooo
e2e7659efc importDWG: use subprocess.Popen instead of .call 2020-01-07 07:35:14 -03:00
looooo
e8109204a9 importDWG: use libredwg's dwgtodxf converter if available 2020-01-07 07:35:14 -03:00
0penBrain
7498ba1574 Add event catching so Status Bar action button (View menu) keeps sync with real status bar visibility 2020-01-07 07:33:49 -03:00
looooo
b630772afc python: add option INSTALL_TO_SITEPACKAGES
If INSTALL_TO_SITEPACKAGES is enabled, the freecad-namespace package (freecad/__init__.py) is installed in the python-sitepackage-dir. Further, the library install path (CMAKE_INSTALL_LIBDIR)
is used to find the FreeCAD shared library. If, for some reason, one wants to import another installed FreeCAD version it's possible to set the environment variable "PATH_TO_FREECAD_LIBDIR" to
point to the wanted FreeCAD-library (FreeCAD.so / FreeCAD.dll)
2020-01-07 07:28:25 -03:00
vocx-fc
fa44c7ae2f Draft: new command for Draft PolarArray
Added object, viewprovider, icon; gui command definition, task panel,
add command to InitGui; add callbacks, and delay system.
2020-01-07 07:18:39 -03:00
paullee0
cb1fb09d26 [DraftGeomUtils] isReallyClosed(): Add back support to test if wire is Circle / Ellipse 2020-01-07 07:16:41 -03:00
Bernd Hahnebach
a53b237602 FEM: writer base, log improvements 2020-01-07 10:40:11 +01:00
Bernd Hahnebach
f190884bd5 FEM: writer base, sort imports 2020-01-07 10:40:06 +01:00
Bernd Hahnebach
220d45c1dc FEM: writer base, add missing prints for force 2020-01-07 10:39:44 +01:00
Bernd Hahnebach
1b2a9a9680 FEM: mesh tools, fix not found vertex for reference shape point search 2020-01-07 10:39:40 +01:00
Bernd Hahnebach
c075380674 FEM: result task panel, use same names as vtk results 2020-01-06 23:03:04 +01:00
Bernd Hahnebach
a8af7ad187 FEM: improve logs 2020-01-06 07:59:31 +01:00
Bernd Hahnebach
4f56a64ace FEM: result task panel, reset result mesh on task panel init 2020-01-06 02:43:20 +01:00
Bernd Hahnebach
beb34b7062 FEM: result task panel, really reset result mesh 2020-01-06 01:07:50 +01:00
Bernd Hahnebach
018d5d8d6f FEM: mesh view provider, expose some C++ methods to Python 2020-01-06 01:07:47 +01:00
Bernd Hahnebach
c1adfa76f8 FEM: result mesh task panel, add comment 2020-01-06 00:23:49 +01:00
Bernd Hahnebach
eab5a6aa66 FEM: result task panel, reset mesh color on exit 2020-01-06 00:02:33 +01:00
Bernd Hahnebach
58017f02a6 FEM: gmsh tools, code formating 2020-01-06 00:02:26 +01:00
Bernd Hahnebach
50c76181af Material: code formating, spaces 2020-01-06 00:02:20 +01:00
Bernd Hahnebach
dee8a4075b Draft: workaround for error on document loading 2020-01-05 22:16:15 +01:00
Bernd Hahnebach
ed922537b0 FEM: material task panels, add some newlines on logs 2020-01-05 19:26:10 +01:00
0penBrain
1276920fea [Sketcher] Better ToggleActiveConstraint icon by @bitacovir 2020-01-05 15:32:55 +01:00
0penBrain
e88eecc754 [Sketcher] Improve ToggleActiveConstraint icon (mainly increase disambiguation with ToggleConstraint icon) 2020-01-05 15:32:55 +01:00
Joshua Call
61c88918bc Rename Sketcher icons
Renamed Sketcher_AlterConstruction.svg to
Sketcher_ToggleConstruction.svg, and renamed the original
Sketcher_ToggleConstruction.svg to Sketcher_ToggleConstruction_old.svg
as per the directions of vocx in this forum post:
https://forum.freecadweb.org/viewtopic.php?f=21&t=42131&p=357725#p357725
2020-01-05 15:29:47 +01:00
donovaly
ca07b05fab ExpressionParser.l: fix a typo 2020-01-05 15:00:46 +01:00
donovaly
b4f9e3c88b Quantity.cpp: fix spacing 2020-01-05 15:00:46 +01:00
donovaly
05dadb4c75 add the units Ohm and Siemens 2020-01-05 15:00:46 +01:00
sliptonic
c43315728c Merge pull request #2861 from mlampert/bugfix/various
Path: various bugfixes
2020-01-04 14:32:02 -06:00
WandererFan
0ef89a9e57 [TD]fix Section label 2020-01-04 08:19:11 -05:00
Markus Lampert
81f809cfcf Removed dead code for debugging shortcut warnings. 2020-01-03 23:13:55 -08:00
Markus Lampert
487cfd1a68 Fixed removal of 2d objects from engrave ops 2020-01-03 23:03:43 -08:00
Markus Lampert
80e57ebcc7 Added support for BaseShapes back into Engrave op 2020-01-03 20:00:44 -08:00
Markus Lampert
af45192916 Added support for flipping a BezierCurve edge 2020-01-03 19:00:15 -08:00