Commit Graph

666 Commits

Author SHA1 Message Date
Eivind Kvedalen
a2cdd52019 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
f8a76066da Added PropertyPosition and PropertyDirection classes. Basically PropertyVector classes with units. 2017-07-23 22:14:05 +02:00
Eivind Kvedalen
b6d733d37b Added PropertyVectorDistance::getPathValue() to return vector elements with correct unit. 2017-07-23 22:14:05 +02:00
Eivind Kvedalen
dbce627cc8 Added getPaths(...) to PropertyVector class. 2017-07-23 22:14:05 +02:00
Eivind Kvedalen
2e96d9bf95 Fixed issue #2877: Added hypot() and catet() functions to expression framework. 2017-07-20 18:57:31 +02:00
Eivind Kvedalen
72dd6dfd9a Expressions: Fixed issue #3128; mod(x;y) should support arbitrary units for both arguments. 2017-07-13 12:20:31 +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
luzpaz
3d33c309d4 GeoFeatureGroupExtension.h typo 2017-07-16 11:41:37 -03:00
wmayer
c4ca27ec8a allow to set constraints via Python 2017-07-16 11:09:48 +02:00
luzpaz
17b637beb3 typo fix 2017-07-10 19:29:55 -03:00
Markus Hovorka
fc36dfed0d 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
51c6ca053a support to assign long to Quantity with Py2 2017-06-28 23:12:00 +02:00
wmayer
654276c49d fix issues in CoordinateSystem class and expose to Python 2017-06-20 21:22:59 +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
fa4d67735f 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
4ecd831bfd GeoFeatureGroup: Make link collection non-DAG save 2017-06-19 15:37:09 +02:00
Stefan Tröger
da866e5b4d Allow add/remove multiple objects in a group 2017-06-19 15:37:09 +02:00
Stefan Tröger
f9200f4502 Extend python interface for groups and fix test cases 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
9fbf118cdd Group tests and fixes 2017-06-19 15:37:09 +02:00
Stefan Tröger
0487b66738 Links ensure uncyclic graph and correct groups 2017-06-19 15:37:09 +02:00
Stefan Tröger
f0f7125a11 Group: ensure single group only 2017-06-19 15:37:09 +02:00
Stefan Tröger
26200f95f5 Parent groups are irelevant, not only parent geofeaturegroups 2017-06-19 15:37:09 +02:00
Stefan Tröger
81f91387c8 Fix collecting of cs relevant links 2017-06-19 15:37:09 +02:00
Stefan Tröger
183a4b4ef3 GeoFeatureGroup: Handle drag into document 2017-06-19 15:37:09 +02:00
Stefan Tröger
aa0d25f54f Groups: Handle add and remove object correctly 2017-06-19 15:37:09 +02:00
Stefan Tröger
53ff196c2e GeoFeatureGroup: add object adds relevant links 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
Stefan Tröger
35c4c5e56a Consistently name origins 2017-06-19 15:37:09 +02:00
Stefan Tröger
80e74aec06 Introduce global placement calculations 2017-06-19 15:37:09 +02:00
Stefan Tröger
f3358ad77a Fix drag&drop of geofeature groups. fixes #0002835 fixes #0002796 2017-06-19 15:37:09 +02:00
wmayer
619fb173df fix crash when argument list of openTransaction() is empty 2017-06-18 16:20:12 +02:00
wmayer
8ce343291b py3: fox compiler warnings
issue 0000995
2017-06-04 00:17:57 +02:00
wmayer
69d0e8bd7f py3: partially revert of getattr -> getattro because getattro is only needed for the static callback function
issue 0000995
2017-06-03 10:51:05 +02:00
looooo
f2e1b0df72 py3: PyFindMethod -> GnericGetAttr
issue 0000995
2017-06-03 10:51:05 +02:00
looooo
bc696e5ab5 py3: change of getattr -> getattro
issue 0000995
2017-06-03 10:51:05 +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
b7067c0237 minimal improvement of Document documentation 2017-05-30 13:01:45 +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