wmayer
36b9a1c45c
Add unit tests to check the new Prop_NoRecompute value
2018-11-08 10:24:14 +01:00
wmayer
6186a310d7
Add a new PropertyType enum Prop_NoRecompute to reduce possible inconsistencies between touched and recomputed features.
...
At the moment many feature classes lack of the mustExecute() method and thus can cause a touched feature not to be recomputed and causes the feature to be in a broken state.
Now this new enum value virtually makes the mustExecute() superfluous and thus guarantees to recompute a feature if a modified property has not set the Prop_NoRecompute flag.
On the other hand there are properties that should only touch a feature but not enforce a recompute. This guarantees a better performance and avoids unnecessary recomputes.
For example this is useful for placements where a change can be applied on-the-fly and the feature is up-to-date. Other features that depend on the touched feature will still be recomputed.
2018-11-08 10:20:50 +01:00
wmayer
dedf42102e
remove leftover of boost.signals headers
2018-11-05 00:03:36 +01:00
wmayer
40cec5f72a
add/extend helper classes to savely access document, document objects or view providers
2018-10-31 11:24:45 +01:00
wmayer
f898eafd64
move from deprecated boost.signals to boost.signals2 library
2018-10-30 19:09:03 +01:00
wmayer
1538a14eca
leave license field and url of a Part container empty to avoid possible confusion with imported 3rd-party STEP/IGES models
2018-10-29 15:24:12 +01:00
wmayer
17c783051b
extend FreeCAD.getUserMacroDir to accept boolean to either return actual or default macro directory
2018-10-28 17:10:10 +01:00
wmayer
907cdb8fa0
add module for Qt translation stuff
2018-10-28 12:58:14 +01:00
wmayer
b6712e264a
fix crash with Py3 when releasing memory buffer
2018-10-27 19:58:54 +02:00
wmayer
3b1e1f8859
remove trailing whitespaces
2018-10-27 18:12:36 +02:00
ickby
b262cf6e9f
Persistence: Incorporate review feedback
2018-10-27 16:15:39 +02:00
ickby
c60364772a
Persistence: Test cases for content dump
...
It turned our that the document could not be dumped as the xml specifier was used as first element. As the dumping added the <content> element around it was invalid. However, content is required to read properties. Hence the xml element generation was moved.
2018-10-27 16:15:30 +02:00
ickby
4a7d49f8b6
Persistence: Enable binary dumps of properties
2018-10-27 16:15:09 +02:00
luz.paz
b78a6b57fa
Another typo fix
2018-10-25 11:06:28 -03:00
luz.paz
f976a4f734
Misc. typos and whitespace fixes
...
Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm" -I ../fc-word-whitelist.txt` and `grep`
2018-10-25 11:06:28 -03:00
wmayer
be586d089e
improve whitespaces
2018-10-24 19:41:21 +02:00
wmayer
a53027342e
rework error handling mechanism
2018-10-24 19:38:43 +02:00
wmayer
27615abce1
implement a direct way to set single or double precision when writing/reading properties using floating point numbers
2018-10-23 19:38:03 +02:00
wmayer
9bb360bb75
fix bug in PropertyPlacementList::RestoreDocFile
2018-10-22 12:06:54 +02:00
wmayer
1243b2543e
put USE_OLD_DAG around use of backlinks
2018-10-22 12:06:22 +02:00
wmayer
c950d1f093
improve whitespaces
2018-10-19 22:25:55 +02:00
wmayer
3a6afac8b2
improve whitespaces
2018-10-18 23:31:55 +02:00
wmayer
9d3ad415aa
add option to save document directly to target file
2018-10-15 20:09:43 +02:00
luz.paz
125f41e3e8
Misc. typo fix
...
Found via `codespell`
2018-10-11 16:21:28 -04:00
wmayer
22ddbe0f8d
fixes 0003632: Drawing lines on top of an image will not save the work (Reason: ' &' in the file name)
2018-10-11 21:50:32 +02:00
wmayer
dc023afc84
emit signal when starting and finishing to save a document
2018-10-08 14:03:00 +02:00
wmayer
4ac34d06a8
minor fixes
2018-10-08 12:27:03 +02:00
luz.paz
1f3905810c
typo/grammar fixes
2018-10-08 11:06:41 +02:00
ickby
a0de8c9a62
Add python document observer for GUI documents
2018-10-08 11:04:56 +02:00
ickby
fb95e3247d
Expose dynamic property signals to python observer
2018-10-08 11:02:31 +02:00
ickby
f68e36de41
Expose document property changes to python document observer
2018-10-08 11:01:07 +02:00
ickby
e91de65df0
Fix and test the new signals
2018-10-08 10:58:39 +02:00
ickby
238c8a8567
Expose onBeforeChange to python document observer
2018-10-08 10:52:52 +02:00
Stefan Tröger
0edf6892b3
Expose transaction events to document observer
2018-10-08 10:49:39 +02:00
Stefan Tröger
2a15d8fc3a
Add signals for recomputed objects
2018-10-08 10:43:32 +02:00
wmayer
84280330aa
print warning also in release mode if an object is still touched after recompute
2018-10-07 22:09:44 +02:00
wmayer
93d9f16588
in topologicalSort check for valid iterator
2018-10-04 00:33:19 +02:00
wmayer
93f06f8256
fixes 0003410: 0.17 Regression: recompute will make parts lose color and take a longer delay compared to FC0.16
2018-10-02 19:04:44 +02:00
wmayer
dfe734f3f1
fix infinite recursion when creating dependency graph with loops
2018-09-30 14:56:47 +02:00
wmayer
3d2d4bdfcb
store Python attributes of all extension types in one dict
2018-09-27 21:48:30 +02:00
wmayer
7fc487ae6f
fixes 0003465: Groups breaking dependency graph
2018-09-26 22:21:52 +02:00
wmayer
dd492d7484
fixes 0003373: 'Save a copy' of a document with a spreadsheet mark the document as touched
2018-09-26 15:22:21 +02:00
wmayer
b112ac0ec1
fixes 0003513: Can't open file - some exceptions are shown in the log
2018-09-25 13:21:53 +02:00
luz.paz
b214f606c4
Misc. typo and whitespace fixes
...
ref: https://forum.freecadweb.org/viewtopic.php?f=3&t=30988#p256964
along with other misc. fixes
2018-09-19 17:26:03 +02:00
wmayer
189a729027
extend QuantityFormat to set denominator independent of user settings
2018-09-17 12:38:46 +02:00
hokieengr
77060a75a6
Added support for fractional inch user setting.
2018-09-17 10:32:04 +02:00
wmayer
62910898dd
fixes #0003588 : The path to the Addons does not allow special characters
2018-09-14 00:00:22 +02:00
wmayer
3386567d99
issue #0003588 : The path to the Addons does not allow special characters
2018-09-13 21:40:30 +02:00
wmayer
fbcecfb139
add missing header files
2018-09-07 11:46:32 +02:00
looooo
599e59059b
reduce line-length to 80 characters
2018-09-05 11:06:26 +02:00