Commit Graph

12175 Commits

Author SHA1 Message Date
Stefan Tröger
84667e46f0 Expose global placement calculation to python API 2017-09-21 12:58:01 +02:00
Stefan Tröger
ca74544959 Don't check for multiple groups when performing a transaction. fixes #0003150
During undo/redo the order in which objects are removed from a group and added to annother is arbitrary, hence it cannot comply to the single Group rule. Not echking for it in this case is unproblematic, as undo/redo only recrete former states, and those states have been checked in normal operation.
2017-09-21 12:48:39 +02:00
Stefan Tröger
892301367a Expressions: Prevent backlink creation to same objects. fixes #0003192 2017-09-21 12:11:13 +02:00
Stefan Tröger
6ae8b6482e PartDesign: Make Base Feature compatible with GeoFeatureGroup. fixes #0003080
The Original BaseFeature implementation had some serious issues with scoped links. It failed completely for e.g. sketches on the BaseFeature as it made a local link to refere to a out of body object. The only solution to make this work correctly is to add a proxy object into the body which is alloed to exactly that, to link outside oof the body. Something like shapebinder.
2017-09-21 11:40:14 +02:00
Stefan Tröger
3da647a7e0 PartDesign: Allow boolean Fuse/Common without base feature 2017-09-21 11:26:47 +02:00
Stefan Tröger
59684cfa4c Fix wrong detection of multiple GeoFeatureGroups 2017-09-21 11:14:21 +02:00
Stefan Tröger
903a71c8d4 PartDesign: Boolean must show the operation result, not the children. fixes #0003184 2017-09-21 10:48:38 +02:00
Markus Lampert
78a6d004f1 Changed path tool library manager to use different preference for json library than for xml in order to not break old installations. 2017-09-21 10:29:35 +02:00
Markus Lampert
f5a2442662 Added version support to all JSON exports. 2017-09-21 10:29:35 +02:00
Markus Lampert
a6fc367064 Deal with temporary invalid data for stock extents and ensure minimum size. 2017-09-21 10:29:35 +02:00
Markus Lampert
c40e737492 Changed PathJob to deal with JSON template files instead of XML. 2017-09-21 10:29:35 +02:00
Markus Lampert
1263aecdaf Fixed up ToolController template arguments and loading for the switch to JSON. 2017-09-21 10:29:35 +02:00
Markus Lampert
ce43e688fa Added full JSON file format support to ToolLibraryManager. 2017-09-21 10:29:35 +02:00
Markus Lampert
837b07ced8 Changed default tooltable to be stored in json format - automatically converted on first access. 2017-09-21 10:29:35 +02:00
Markus Lampert
4110fdbb5b Added template attrs and setFrom support to Tooltable. 2017-09-21 10:29:35 +02:00
Markus Lampert
1d1636d1cf Creation of Tool from a templateAttrs dictionary. 2017-09-21 10:29:35 +02:00
Markus Lampert
ddec11cf24 Renamed fromTemplate to setFromTemplate. 2017-09-21 10:29:35 +02:00
Markus Lampert
b70086feaa Added restore from dictionary to Tool and templateAttrs for their retreival. 2017-09-21 10:29:35 +02:00
looooo
0ff658b3ce new-style-modules: fix wrong statement in comment 2017-09-20 23:25:26 +02:00
looooo
c7a4541722 new-style-modules: adding the possebility to import from "freecad"
(this mostly aims at new modules and extension modules which want to use pip)
- any module having problems with nameclashes can use this syntax (from freecad import module)
- current imports still work (backward cobatibility)
- python extension moduels can be installed (pip) to python std path (eg.: site-packages)

- adding app, gui to the new freecad package:
```
from freecad import app
from freecad import gui
```

- syntax for importing c++ extension will not change
```
import FreeCAD as App
import FreeCADGui as Gui
```
2017-09-20 23:25:12 +02:00
wmayer
ddfa62282a do some code clean-up and corrections in Selection class 2017-09-20 23:22:19 +02:00
wmayer
85619bff50 fixes #0003153: Preselect: Show object label in status bar 2017-09-20 22:52:09 +02:00
Peter Lama
9187919bb8 Attacher UX enhancements
- New editor for MapMode with button to open attacher dialog
- Hide attachment properties when they are not applicable
- Disable super placement ui in attacher dialog when object is not attached
- Always select used mode in mode list
2017-09-20 19:24:35 +02:00
luzpaz
8550967f92 Misc. typos
Misc typos
2017-09-20 12:55:37 -04:00
Yorik van Havre
74ee138915 Draft: Add support for App::Part in Draft Clones 2017-09-20 11:12:11 -03:00
wmayer
4737b2bcbc fix build failure on Windows due to conflicting define with Win32 API 2017-09-20 15:58:09 +02:00
Mateusz Skowroński
2e32324007 Fix some more Quarter High DPI Display issues. Partially fixes #3130 (the offset issue).
Related to issue #2968.

Ported from code by Randall O'Reilly.
https://grey.colorado.edu/svn/coin3d/quarter/trunk/
2017-09-20 14:37:22 +02:00
wmayer
33baa4a9f2 add convenience methods to directly set/get a placement to/from a shape 2017-09-19 15:43:28 +02:00
wmayer
c9fb691afe fixes #0003161: Shape Binder not at expected place 2017-09-19 15:01:13 +02:00
Bernd Hahnebach
f2e45423eb FEM: unit tests, use for all objects creations the fem objects module 2017-09-19 11:33:20 +02:00
Bernd Hahnebach
f84079e5fb FEM: objects module, add doc parameter to creation tools 2017-09-19 11:33:08 +02:00
sliptonic
996adcacd4 Add test for imperial linuxcnc 2017-09-19 11:12:31 +02:00
sliptonic
259f643c7e added --inches flag to linuxcnc and smoothie post 2017-09-19 11:12:31 +02:00
sliptonic
a13b75cf5a Path: refactor Surface 2017-09-19 11:12:31 +02:00
wmayer
907095293c support of keywords in Mesh.read and Mesh.write 2017-09-19 10:31:07 +02:00
wmayer
b90e24eb5e for boolean ops also support to pass single shape and tolerance 2017-09-18 22:16:15 +02:00
wmayer
8d420127b7 remove deprecated Type attribute 2017-09-18 19:01:25 +02:00
wmayer
20b08561ad set default value of thrid parameter to None in SeletionGatePython 2017-09-18 12:37:41 +02:00
wmayer
eb87a20f8b use constraint to limit minimum and maximum degree 2017-09-18 12:07:00 +02:00
tomate44
f335d1f10d add MaxDegree setting to Part.Loft 2017-09-18 12:07:00 +02:00
Yorik van Havre
2db155a0c2 Draft: temporary fix for regression introduced by previous commit 2017-09-17 14:42:31 -03:00
Yorik van Havre
851e0bfd89 Draft: Fixed translate bug in non-GUI mode 2017-09-17 14:06:22 -03:00
WandererFan
45cd1ecf38 Change 5d6b03eff to use isRemoving
- DocumentObject::isDeleting was renamed to
  DocumentObject::isRemoving
2017-09-17 18:50:07 +02:00
WandererFan
89b29504dd Fix Symbol fail to paint
- calls ViewProviderDocumentObject, but should call
  ViewProviderViewPart in order to receive repaint
  signals.
2017-09-17 18:50:07 +02:00
WandererFan
e61d2b5d13 Fix crash due to QGraphicsScene update while View.isDeleting() 2017-09-17 18:50:07 +02:00
WandererFan
9ca4b72f1d Make View backgrounds transparent
- makes it easier to stack views
2017-09-17 18:50:07 +02:00
WandererFan
00edf63be8 Fix Symbol based View positioning 2017-09-17 18:50:07 +02:00
WandererFan
8431ec0fc1 Add debug utils for QRectF/QPointF 2017-09-17 18:50:07 +02:00
Markus Lampert
c6fb629d15 Reduced log level. 2017-09-17 18:46:00 +02:00
Markus Lampert
7febd40788 Fixed pocket final depth calculation and hide it from user modifications. 2017-09-17 18:46:00 +02:00