Commit Graph

7530 Commits

Author SHA1 Message Date
DeepSOIC
2ee73babcf Attacher: fix wrong inertial calculation on solids
was using surface calculation instead of volume...
2016-05-13 19:54:44 +03:00
DeepSOIC
a4b31297d4 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
3b030a08b2 Attacher: change Part2DObject to use Plane attacher by default 2016-05-13 19:54:44 +03:00
DeepSOIC
add1382d03 Attacher: AttachableObject should have virtual destructor 2016-05-13 19:54:44 +03:00
DeepSOIC
4dbbb1a7ed Part: duplicate include cleanup
no functional changes
2016-05-13 19:54:44 +03:00
blobfish
2729eb3b20 use bitset to_string for column retrieval 2016-05-13 18:02:53 +02:00
wmayer
4885250a68 + handle also std::exception when application unexpectedly leaves event loop 2016-05-13 12:12:17 +02:00
Yorik van Havre
a0583aa690 Extended About dialog with credits and license tabs - fixes #2539 2016-05-13 00:38:03 -03:00
Yorik van Havre
5177d7a38c Merge branch 'master' of github.com:FreeCAD/FreeCAD 2016-05-12 23:16:59 -03:00
wmayer
858b9bf3b9 + issue #0002542: Part.Wire.makeoffset() doesn't handle circles correctly. 2016-05-12 19:03:23 +02:00
Yorik van Havre
77409edcec Merge branch 'master' of github.com:FreeCAD/FreeCAD 2016-05-11 10:19:13 -03:00
wmayer
a399368684 + if getcwd fails then use '.' 2016-05-11 09:24:29 +02:00
wmayer
2f3a793faf + 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
5540dd81c2 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
dc12e8b72b + methods to highlight points, edges or faces of a shape 2016-05-09 23:48:30 +02:00
wmayer
61aa0fcafe + implement PropertyMaterialListItem 2016-05-08 19:28:02 +02:00
wmayer
b80df1db40 + property editor for material 2016-05-08 17:51:21 +02:00
wmayer
9d7b3c87be + restore old behaviour of PropertyLinkSubList::getPyObject to fix failure in ccxInpWriter.py 2016-05-08 14:50:50 +02:00
wmayer
5a2d26ac1b + apply f3nix:fix-gcc-warnings-1 2016-05-08 12:00:26 +02:00
wmayer
9b4793788a + fix warnings 2016-05-08 06:19:32 +02:00
wmayer
fb7a22036e + fix build failures & warnings 2016-05-07 23:18:59 +02:00
blobfish
ae5224d342 Core: Gui: SoFCSysDragger: using SoFCSysDragger in ViewProviderGeometryObject 2016-05-07 23:07:08 +02:00
blobfish
a17b762f10 Core: Gui: SoFCSysDragger: adding SoFCSysDragger. 2016-05-07 23:06:53 +02:00
blobfish
bba9523b87 Core: Gui: SoFCSysDragger: changes to SoFCDB to store dragger. 2016-05-07 23:06:36 +02:00
Mateusz Skowroński
ef795a6ad4 Fix Tab order in TaskDatumParameters dialog. 2016-05-07 23:02:04 +02:00
Mateusz Skowroński
0aaa3c19c3 Fix layout in TaskDatumParameters dialog. 2016-05-07 23:01:47 +02:00
wmayer
6a8805829c + fix possible crash in some property editors 2016-05-07 22:59:19 +02:00
wmayer
926e5e127d + editor for PropertyMaterial 2016-05-07 22:11:37 +02:00
wmayer
3c5e2ea401 + simplify initialization of some Python types 2016-05-07 21:18:47 +02:00
wmayer
4d94fbc15f + expose Material class to Python 2016-05-07 21:15:01 +02:00
wmayer
e9a46f658e + implement PropertyMaterialList 2016-05-07 14:41:24 +02:00
wmayer
2868bbd8c5 + move global function to namespace 2016-05-07 12:21:21 +02:00
DeepSOIC
754a56e61b Attacher: fix wrong superPlacement read-onlyness
It reacted to changes to unrelated properties. Fixed.
2016-05-07 11:24:41 +02:00
DeepSOIC
b84850cfed 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
78bed4bb78 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
03b974246c 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
97f0e15175 App: fix ObjectIdentifier causing link errors
Add missing AppExport to hash_value().
2016-05-07 11:24:41 +02:00
DeepSOIC
4d7f802a13 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
ac20612f6b 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
dd3675d9ae 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
92ccefa1d2 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
39249581eb 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
22480effeb 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
701eba37be Attacher: new mode: center of mass (point attacment) 2016-05-07 11:24:41 +02:00
DeepSOIC
d1d8746518 Attacher: fix typo in tooltip 2016-05-07 11:24:41 +02:00
DeepSOIC
2c5fccaf5f Attacher: for reachable modes, display what's to add
For grayed out modes in list, show what's needed to get to the mode.
Like so:
"Normal to edge (add Vertex)"
2016-05-07 11:24:41 +02:00
DeepSOIC
a0e99c425e Attacher: display modes that can be reached
Attachment mode list used to display only the modes that fit current
references. Now, modes that can be reached by adding more references are
listed too, but grayed out.
2016-05-07 11:24:41 +02:00
wmayer
176cc9f241 + add headers needed for pending pull request 2016-05-07 11:22:42 +02:00
blobfish
78b0d83189 Core: Gui: DAGView: adding surface specific property link to model recognizition. See following note.
this alters the dagview specific to the surface workbench,
    but it isn't dependent on the surface workbench.
2016-05-07 10:29:19 +02:00
blobfish
85348e48cc Core: Gui: DAGView: delay retrieval for python features. see following note.
This doesn't work on document restore!
2016-05-07 10:29:03 +02:00