Commit Graph

8086 Commits

Author SHA1 Message Date
DeepSOIC
dcc8926236 Attacher: Py: implement Attacher attribute of AttachableObject 2016-05-13 19:54:44 +03:00
DeepSOIC
7000d551b7 Attacher: Py: create AttachEnginePy
Not very useful at the moment, just created the interface.
2016-05-13 19:54:44 +03:00
DeepSOIC
d4f1ef2f7a Attacher: Py: add interface for changing attacher type
Plus a mechanism to remember attacher type of AttachableObject through
save-restore cycle.
2016-05-13 19:54:44 +03:00
DeepSOIC
fe295b701b Attacher: Py: introduce Py interface of AttachableObject
Small - just the introduction.
Support for Py features based on AttachableObject.
Redirect Part2DObjectPython's father to be AttachableObjectPython.
2016-05-13 19:54:44 +03:00
DeepSOIC
897a66cbb7 Attacher: Py: withdraw positionBySupport from Part2DObject
to be reintroduced later in AttachableObjet Py interface
2016-05-13 19:54:44 +03:00
DeepSOIC
162378220d Attacher: preparations for Py interface of shape type system
+ add getModeByName to AttachEngine
2016-05-13 19:54:44 +03:00
DeepSOIC
53bd9b674b Attacher: fix wrong inertial calculation on solids
was using surface calculation instead of volume...
2016-05-13 19:54:44 +03:00
DeepSOIC
6ffa0c9b37 Attacher: initialize member variables
They got garbage values on creation, as was revealed when testing Py
interface.
2016-05-13 19:54:44 +03:00
DeepSOIC
d21995323e Attacher: change Part2DObject to use Plane attacher by default 2016-05-13 19:54:44 +03:00
DeepSOIC
a41c79cd55 Attacher: AttachableObject should have virtual destructor 2016-05-13 19:54:44 +03:00
DeepSOIC
00d8537b66 Part: duplicate include cleanup
no functional changes
2016-05-13 19:54:44 +03:00
blobfish
81ee548f7f use bitset to_string for column retrieval 2016-05-13 18:02:53 +02:00
wmayer
dd3f85d1a1 + handle also std::exception when application unexpectedly leaves event loop 2016-05-13 12:12:17 +02:00
Yorik van Havre
4ba04178ff Extended About dialog with credits and license tabs - fixes #2539 2016-05-13 00:38:03 -03:00
Yorik van Havre
0e4132a7d5 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2016-05-12 23:16:59 -03:00
wmayer
c21888af6c + issue #0002542: Part.Wire.makeoffset() doesn't handle circles correctly. 2016-05-12 19:03:23 +02:00
Yorik van Havre
3632129e5d Merge branch 'master' of github.com:FreeCAD/FreeCAD 2016-05-11 10:19:13 -03:00
wmayer
d7d347b2d6 + if getcwd fails then use '.' 2016-05-11 09:24:29 +02:00
wmayer
f3a5deec5e + on Windows use the unicode version to get cwd
+ on other platforms use getcwd in a platform independent way
2016-05-10 22:47:14 +02:00
Wolfgang E. Sanyer
4ebb62be79 Fixed bug ID0002513, where Mesh.export failed.
The failure occered when Mesh.export was passed just a filename, such as 'out.stl'. If
'/some/path/out.stl' was passed it succeeded.
2016-05-10 22:29:40 +02:00
wmayer
59980c33d1 + methods to highlight points, edges or faces of a shape 2016-05-09 23:48:30 +02:00
wmayer
f5b707e9a2 + implement PropertyMaterialListItem 2016-05-08 19:28:02 +02:00
wmayer
e2d780a14d + property editor for material 2016-05-08 17:51:21 +02:00
wmayer
ec54c092d5 + restore old behaviour of PropertyLinkSubList::getPyObject to fix failure in ccxInpWriter.py 2016-05-08 14:50:50 +02:00
wmayer
1ccab846e2 + apply f3nix:fix-gcc-warnings-1 2016-05-08 12:00:26 +02:00
wmayer
fbf72553f3 + fix warnings 2016-05-08 06:19:32 +02:00
wmayer
a034fc58b3 + fix build failures & warnings 2016-05-07 23:18:59 +02:00
blobfish
d9b58620c6 Core: Gui: SoFCSysDragger: using SoFCSysDragger in ViewProviderGeometryObject 2016-05-07 23:07:08 +02:00
blobfish
729c116081 Core: Gui: SoFCSysDragger: adding SoFCSysDragger. 2016-05-07 23:06:53 +02:00
blobfish
381a59bb36 Core: Gui: SoFCSysDragger: changes to SoFCDB to store dragger. 2016-05-07 23:06:36 +02:00
Mateusz Skowroński
56e5837fd3 Fix Tab order in TaskDatumParameters dialog. 2016-05-07 23:02:04 +02:00
Mateusz Skowroński
58daa046f1 Fix layout in TaskDatumParameters dialog. 2016-05-07 23:01:47 +02:00
wmayer
77f667fcde + fix possible crash in some property editors 2016-05-07 22:59:19 +02:00
wmayer
8bbc642115 + editor for PropertyMaterial 2016-05-07 22:11:37 +02:00
wmayer
a175c4884d + simplify initialization of some Python types 2016-05-07 21:18:47 +02:00
wmayer
7179280138 + expose Material class to Python 2016-05-07 21:15:01 +02:00
wmayer
317b447f88 + implement PropertyMaterialList 2016-05-07 14:41:24 +02:00
wmayer
d8ad50d11d + move global function to namespace 2016-05-07 12:21:21 +02:00
DeepSOIC
c1f22cbd8d Attacher: fix wrong superPlacement read-onlyness
It reacted to changes to unrelated properties. Fixed.
2016-05-07 11:24:41 +02:00
DeepSOIC
abf4ddf9f7 Attacher: UI: another fix of status label
When no references were filled in, and modes were switched, it falsely
claimed 'Attached'. This has been fixed.
2016-05-07 11:24:41 +02:00
DeepSOIC
651be3dcd1 Attacher: make positionBySupport return if attached or not
Needed as reliable way of testing if attachment is working or not.
2016-05-07 11:24:41 +02:00
DeepSOIC
2f6aaf3742 Attacher: add superPlacement to UI
Expose superPlacement as X,Y,Z,yaw,pitch,roll quantity boxes. With partial expression support.
2016-05-07 11:24:41 +02:00
DeepSOIC
472af4bf59 App: fix ObjectIdentifier causing link errors
Add missing AppExport to hash_value().
2016-05-07 11:24:41 +02:00
DeepSOIC
b3e9c6b9a9 Attacher: make Placement read-only when attached
Read-onlyness of Placement and superPlacement properties is now
dynamically controlled by MapMode property value.
2016-05-07 11:24:41 +02:00
DeepSOIC
ebd5414a61 Attacher: UI improve status message display
Before, message used to display 'Selection accepted', when attachment
actually failed. Shouldn't happen anymore.
2016-05-07 11:24:41 +02:00
DeepSOIC
a392927750 Attacher: rework UI
* Remove hint system on buttons. Buttons show currently selected
reference type, instead.
* Change button's caption to "Selecting..." when selecting.
* internal logic rearrangements
2016-05-07 11:24:41 +02:00
DeepSOIC
f947101938 Attacher: use getModeName() instead of eMapModeStrings[]
getModeName() does range checking. eMapModeStrings[] will crash if out
of range.
2016-05-07 11:24:41 +02:00
DeepSOIC
505ec6a26d Attacher: change suggestion routine interface
When another bit of information was needed to be extracted from mode
suggestion routine, it felt like listMapModes had too many arguments.
So, the arguments have been collapsed into a struct. This triggered a
few namespace-related changes, which lead to massive search-and-replace
changes all over FreeCAD.

So the only functional change carried out is the addition of reference
types readout to info returned by suggestor.
2016-05-07 11:24:41 +02:00
DeepSOIC
9d19bf023a Attacher: new modes: Inertia CS, Inertia axes
Modes added:
3D and plane attachment: Inertia CS
Line attachment: Inertia axes
This commit may serve a good example of how to add new attachment modes.
2016-05-07 11:24:41 +02:00
DeepSOIC
d12141d1fb Attacher: new mode: center of mass (point attacment) 2016-05-07 11:24:41 +02:00