Commit Graph

997 Commits

Author SHA1 Message Date
wmayer
cebe4d17ab in repr() of DocumentObjectPy return the full class name 2017-09-10 12:41:14 +02:00
wmayer
4ca7224312 support of loading old projects with shape binder or PartDesign boolean 2017-09-09 22:47:28 +02:00
wmayer
7c93459ec2 copy check for disabled or nested recomputes from old implementation of recompute() 2017-09-09 19:11:28 +02:00
wmayer
3a0c3499e5 improve whitespaces 2017-09-09 18:07:46 +02:00
Stefan Tröger
a03000cc68 Ensure touched features, which override mustExecute(), are recomputed. 2017-09-09 16:55:55 +02:00
Stefan Tröger
c14e508c74 Fix GeoFeatureGroup claimChildren in case some out-of-group item links to a child 2017-09-09 16:55:55 +02:00
Stefan Tröger
a65856c022 Ensure that GeoFeatureGroup claims children when a parent of it is deleted. fixes #0003150 2017-09-09 16:55:55 +02:00
Stefan Tröger
f293cf2b3b Ensure finding the correct parent GeoFeatureGroup 2017-09-09 16:55:55 +02:00
Stefan Tröger
efe33757ee Make sure all relevant links are found for object in GeoFeatureGroup. issue0003150 2017-09-09 16:55:55 +02:00
Stefan Tröger
b2874ec0dc Keep backlink consitent during undo/redo. issue 0003150 2017-09-09 16:55:55 +02:00
Stefan Tröger
7829849104 Fix deleting a Part 2017-09-09 16:55:55 +02:00
Stefan Tröger
700741471f Make Origins work well with scoped links 2017-09-09 16:55:55 +02:00
Stefan Tröger
8841fb0805 Make PartDesign::Boolean work with new Link structure
This is the first feature that used GeoFeatureGroupExtension and required links to the groups inside as well as to things on the same level. Hence a few modifications to link scopes have been nesseccary.
2017-09-09 16:55:55 +02:00
Stefan Tröger
4fa3005343 Make Group searching robust for cyclic dependencies. fixes #0002567 2017-09-09 16:55:55 +02:00
Stefan Tröger
b80e0b6191 DependencyGraph: show invalid links in red 2017-09-09 16:47:07 +02:00
Stefan Tröger
9cda1b53bc Allow interchangable use of link properties and their derivatives 2017-09-09 16:47:07 +02:00
Stefan Tröger
d5633c37bf Create special scope properties 2017-09-09 16:47:07 +02:00
Stefan Tröger
7d1560443c Introduce Scoped links to prevent cross cs links 2017-09-09 16:47:07 +02:00
Stefan Tröger
7b72973ba6 Fix _inList tracking in case of link removal 2017-09-09 16:47:07 +02:00
Stefan Tröger
7f34cbe733 Ensure objects to be in a single GeoFeatureGroup only 2017-09-09 16:47:07 +02:00
Stefan Tröger
2b7e0dc327 Prevent cross GeoFeatureGroup links on recompute 2017-09-09 16:47:07 +02:00
Stefan Tröger
85125f2a49 Make InList hadling and topological sort more robust. fixes #0002871 2017-09-09 16:47:07 +02:00
wmayer
13b3abef35 direct support of Volt in units framework 2017-09-04 12:08:29 +02:00
wmayer
5242f47473 Port to occ7.2:
+ replace use of StlMesh classes as they have been removed
2017-09-02 00:26:04 +02:00
wmayer
a5bf15b55d remove properties from transactions when being deleted 2017-08-28 21:20:17 +02:00
wmayer
88304ebfd0 Fix crash in enum property due to index out of range 2017-08-28 12:55:19 +02:00
Zheng, Lei
8ffcb3215a App::Document: fix breakDependency
Fixed breakDependency to handle repetitive entries inside
PropertyLinkList
2017-08-19 18:56:24 +02:00
wmayer
afb0934143 in PropertyLinkList replace assert with C++ exception to avoid a crash 2017-08-13 11:04:18 +02:00
Markus Lampert
01bedc2415 Prevent segfault if vertex map isn't set. 2017-07-29 11:58:43 +02:00
luzpaz
3b3c1032c1 App: typo fix
doxy and code comment fix
2017-07-25 10:53:25 -03:00
wmayer
bf3a1660a5 rename handleMissingProperty to handleChangedPropertyName 2017-07-23 22:14:05 +02:00
Eivind Kvedalen
b6f8343202 Added PropertyContainer::handleMissingProperty(...) and PropertyContainer::handleChangedPropertyType(...).
These are helper functions to simplify migrating older files.
2017-07-23 22:14:05 +02:00
Eivind Kvedalen
03c39f3a13 Added PropertyPosition and PropertyDirection classes. Basically PropertyVector classes with units. 2017-07-23 22:14:05 +02:00
Eivind Kvedalen
3a8ceb2929 Added PropertyVectorDistance::getPathValue() to return vector elements with correct unit. 2017-07-23 22:14:05 +02:00
Eivind Kvedalen
705bb1c56e Added getPaths(...) to PropertyVector class. 2017-07-23 22:14:05 +02:00
Eivind Kvedalen
653da7efb7 Fixed issue #2877: Added hypot() and catet() functions to expression framework. 2017-07-20 18:57:31 +02:00
Eivind Kvedalen
3a33273fce Expressions: Fixed issue #3128; mod(x;y) should support arbitrary units for both arguments. 2017-07-13 12:20:31 +02:00
wmayer
e4770ffa9e protect document against nested recomputes
+ convert ObjectStatusLocker into a template class to make its usage more flexible
+ add status flag 'Recomputing' and set in Document::recompute to detect and avoid nested calls of recompute
2017-07-17 18:24:10 +02:00
luzpaz
e3744981e4 GeoFeatureGroupExtension.h typo 2017-07-16 11:41:37 -03:00
wmayer
a1ca7309fb allow to set constraints via Python 2017-07-16 11:09:48 +02:00
luzpaz
5be4fb5cdc typo fix 2017-07-10 19:29:55 -03:00
Markus Hovorka
f9f2d8c31b Add TextDocument with full size editor
A new document object App::TextDocument. It has a property Text which
holds the text of the document as a string. This commit also contains a
full size editor based on QPlainTextEdit. It can only be used by the
TextDocument and has a read only mode invoked for read only documents
(ReadOnly property set to true). The editor is invoked by a double
click on the TextDocument.
2017-07-04 19:36:10 +02:00
wmayer
e9975ee814 support to assign long to Quantity with Py2 2017-06-28 23:12:00 +02:00
wmayer
19d55fa227 fix issues in CoordinateSystem class and expose to Python 2017-06-20 21:22:59 +02:00
wmayer
90653787a6 various fixes:
+ fix typos
+ fix const correctness
+ whitespace improvements
2017-06-19 17:18:16 +02:00
Stefan Tröger
fe8e69f122 Add missing header for random numbers 2017-06-19 15:37:09 +02:00
Stefan Tröger
1ee7f94d3f DependencyGraph: Ensure OriginFeatures get in the correct subgraph 2017-06-19 15:37:09 +02:00
Stefan Tröger
fd0d3f1a39 Revert link integrity checks in properties
The DAG test is not needed anymore as the relevant functions are non-DAG save now, and the other check will be moved to the recompute as it is not efficient or save to do it in the links itself.
2017-06-19 15:37:09 +02:00
Stefan Tröger
4b3fb99bf0 GeoFeatureGroup: Make link collection non-DAG save 2017-06-19 15:37:09 +02:00
Stefan Tröger
b4c43df312 Allow add/remove multiple objects in a group 2017-06-19 15:37:09 +02:00