Commit Graph

138 Commits

Author SHA1 Message Date
wmayer
9d83392a4f mark document objects with Destroy flag before deleting them and handle this in the link properties 2017-09-13 16:14:19 +02:00
wmayer
4b400fd986 rename status bit 'Delete' to 'Remove' as it fits better for its purpose, add new bit 'Destroy' 2017-09-13 15:47:48 +02:00
wmayer
82537ca863 fix access of dangling pointer (in case undo/redo is off)
use unique_ptr to delete object before leaving remoObject
2017-09-13 15:11:29 +02:00
wmayer
f92ea66903 copy check for disabled or nested recomputes from old implementation of recompute() 2017-09-09 19:11:28 +02:00
wmayer
e260f9dabd improve whitespaces 2017-09-09 18:07:46 +02:00
Stefan Tröger
283ab961b5 Ensure touched features, which override mustExecute(), are recomputed. 2017-09-09 16:55:55 +02:00
Stefan Tröger
71b7811495 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
0439656133 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
0584c56777 Fix deleting a Part 2017-09-09 16:55:55 +02:00
Stefan Tröger
79bb7b7f50 DependencyGraph: show invalid links in red 2017-09-09 16:47:07 +02:00
Stefan Tröger
d0954e6e42 Allow interchangable use of link properties and their derivatives 2017-09-09 16:47:07 +02:00
Stefan Tröger
51005bb81e Fix _inList tracking in case of link removal 2017-09-09 16:47:07 +02:00
Stefan Tröger
f96c69deed Prevent cross GeoFeatureGroup links on recompute 2017-09-09 16:47:07 +02:00
Stefan Tröger
ab85c6e784 Make InList hadling and topological sort more robust. fixes #0002871 2017-09-09 16:47:07 +02:00
wmayer
a5bc70cca0 remove properties from transactions when being deleted 2017-08-28 21:20:17 +02:00
Zheng, Lei
fdce472b21 App::Document: fix breakDependency
Fixed breakDependency to handle repetitive entries inside
PropertyLinkList
2017-08-19 18:56:24 +02:00
Markus Lampert
842ea49a64 Prevent segfault if vertex map isn't set. 2017-07-29 11:58:43 +02:00
wmayer
033242ead8 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
wmayer
989fe4028e various fixes:
+ fix typos
+ fix const correctness
+ whitespace improvements
2017-06-19 17:18:16 +02:00
Stefan Tröger
39bf43202e Add missing header for random numbers 2017-06-19 15:37:09 +02:00
Stefan Tröger
78cb881431 DependencyGraph: Ensure OriginFeatures get in the correct subgraph 2017-06-19 15:37:09 +02:00
Stefan Tröger
eb601df236 Fix undo/redo while checking link integrity 2017-06-19 15:37:09 +02:00
Stefan Tröger
bdf981e770 Unify and fix group handling in geofeaturegroups 2017-06-19 15:37:09 +02:00
Stefan Tröger
bbabe833e9 DependencyGraph: grouping & unflatten is optional
Property group "User parameter:BaseApp/Preferences/DependencyGraph" has two booleans to enable subgraphing and unflatten (by default on): "Unflatten", "GeoFeatureSubgraphs"
2017-06-19 15:37:09 +02:00
Stefan Tröger
25df3c549d DependencyGraph: Fix colors and unflatten 2017-06-19 15:37:09 +02:00
Stefan Tröger
aaea43603e DependencyGraph: Add colors to coordinate systems 2017-06-19 15:37:09 +02:00
Stefan Tröger
e192f32bcc DependencyGraph: Subgraphs are identified by label 2017-06-19 15:37:09 +02:00
Stefan Tröger
e20aae688e DependencyGraph: Show origins correctly 2017-06-19 15:37:09 +02:00
Stefan Tröger
f08ab52724 DependencyGraph: Show GeoFeatureGroups as subgraph. fixes #0002142 2017-06-19 15:37:09 +02:00
wmayer
749d666099 fixes #0002156: Sketcher Visualization fails to represent sketch properly 2017-06-01 12:43:41 +02:00
wmayer
8032a7a492 replace hard-coded values with enum values 2017-05-30 15:21:23 +02:00
wmayer
455b646854 set Restore flag also for copy&paste operation 2017-05-30 14:16:29 +02:00
Abdullah Tahiri
548a79af16 App:Document new status bit to mark Restoring 2017-05-30 13:01:45 +02:00
wmayer
1be8c73dca handle possible exceptions from onDocumentRestored() 2017-05-16 23:48:55 +02:00
wmayer
3e862bd557 Add addObjects to add multiple objects in one step 2017-05-07 16:06:39 +02:00
wmayer
1673ab801e use specialized exception classes 2017-04-28 18:49:11 +02:00
wmayer
004324bbc5 fix scan coverity issues: uncaught exception 2017-04-11 14:03:08 +02:00
Kunda
3017173c9a source typo fixes pt6 2017-03-07 13:43:46 -03:00
wmayer
72c7a8ab00 change old DAG implementation to pass unit tests 2017-01-22 17:03:59 +01:00
wmayer
f3f7b01202 improve whitespaces 2017-01-21 19:15:36 +01:00
Stefan Tröger
4f8e046f7f DAG: Fix preprocessor definition inconsistencies 2017-01-21 19:15:36 +01:00
Stefan Tröger
665eb63d4c DAG: Change object graph handling to be bidirectional 2017-01-21 19:15:36 +01:00
Eivind Kvedalen
57850b5947 fix crash in graphviz export due to invalidated iterators 2017-01-11 10:06:19 +01:00
Eivind Kvedalen
5e10505f40 Added color to edges contained in a cycle in the dependency graph. 2016-12-30 09:22:03 +01:00
Eivind Kvedalen
52623a60d8 Document: Added label to duplicate edges in dependency graph output. 2016-12-13 17:54:02 +01:00
Stefan Tröger
cd1c753fa2 Extensions: Implement persistence 2016-12-11 19:27:35 +01:00
wmayer
bbf5548899 break dependency to deleted object on rollback 2016-11-06 15:09:42 +01:00
wmayer
01996d8f13 introduce flag to skip recomputes of a document when needed 2016-10-21 22:23:34 +02:00
Stefan Tröger
3a51404dd5 Extenions: Drop virtual inheritance
Due to problems onthe windows platform the virtual inheritance approach must be dropped. NExt to the already reimplemented proeprty interface the Type interface is reimplemented too. This change allows to revert some earlier changes.
2016-10-08 12:48:34 +02:00
Stefan Tröger
258be36aad Extensions: Handle new dynamic_cast's 2016-10-08 12:48:34 +02:00