Commit Graph

63 Commits

Author SHA1 Message Date
luz.paz
50c82c2b91 Misc. source comment typos 2019-03-22 10:44:14 -03:00
Abdullah Tahiri
1b152ee689 Example code of propagating the result of the partial restore 2018-11-19 11:31:08 +01:00
wmayer
442e2dd381 add method to check if an open transaction is empty
This is needed to avoid to incorrectly abort a transaction if a recompute was done between opening and closing an editor in the property view
2018-11-10 14:50:58 +01:00
wmayer
f898eafd64 move from deprecated boost.signals to boost.signals2 library 2018-10-30 19:09:03 +01: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
c950d1f093 improve whitespaces 2018-10-19 22:25:55 +02:00
wmayer
dc023afc84 emit signal when starting and finishing to save a document 2018-10-08 14:03:00 +02:00
ickby
f68e36de41 Expose document property changes to python document observer 2018-10-08 11:01:07 +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
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
luz.paz
b45bc4889d Misc. typos: Please merge right before 0.17 release
I'm still finding typos in the source code. I propose that you keep this PR open prior ro relaese and then merge  so that if I find other typos in the meantime they will be part this release.
2018-03-18 15:15:16 +01:00
Unknown
a8ecffb652 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
Eivind Kvedalen
5fe7a9af71 Spreadsheet: Fix for issue #3225.
Done by adding a selector function to Document::renameObjectIdentifiers(...) to ensure
that the Spreadsheet document object is not rewritten twice.
2017-11-08 23:15:16 +01:00
wmayer
725a5b6545 method to get paths between two objects 2017-10-20 18:26:18 +02:00
luzpaz
ab8f8919b6 Misc. typos
+ some are doxy others are just comment code.  
+ some minor whitespace and grammatical tweaks. 
+ app/SCL/* typos have also been submitted upstream (https://github.com/stepcode/stepcode/pull/366). So it's ok to merge them in to master.
2017-10-04 17:59:11 +02:00
wmayer
09737f2db3 rename method from remObject to removeObject to be more readable 2017-09-13 18:57:38 +02:00
wmayer
a5bc70cca0 remove properties from transactions when being deleted 2017-08-28 21:20:17 +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
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
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
3e862bd557 Add addObjects to add multiple objects in one step 2017-05-07 16:06:39 +02:00
Kunda
3017173c9a source typo fixes pt6 2017-03-07 13:43:46 -03: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
wmayer
01996d8f13 introduce flag to skip recomputes of a document when needed 2016-10-21 22:23:34 +02:00
Stefan Tröger
c5a2419e14 Extensions: Introduce classes and port App groups 2016-10-08 12:48:34 +02:00
wmayer
71df967fdf fix -Wextra in FreeCADApp 2016-09-21 16:05:36 +02:00
wmayer
9ec06b47c6 prepare view provider for undo/redo 2016-07-23 11:45:38 +02:00
wmayer
f0e00311cd prepare view provider for undo/redo 2016-07-23 11:45:21 +02:00
Alexander Golubev
ecbb576330 App: minor fix of spacing 2016-04-12 18:12:17 +02:00
Alexander Golubev
26bb702ff6 App: add two callback to DocumentObject to perform initialization/uninitialization inside an object
Added two callbacks to App::DocumentObject
 - setupObject()
 - unsetupObject()

All associated code was added to App::Document
Also was added a specific flag ObjectFlag::Deleted wich is set when performing the deletion.
2016-04-12 18:12:17 +02:00
Alexander Golubev
c6797b6c29 Revert "part deletion handling"
This reverts commit 6ab2002021ac1df26ebe77f488f5cd94e1df0b26.
2016-04-12 18:12:17 +02:00
Stefan Tröger
07b7d9ff08 part deletion handling
-remove everxthing that belongs to a part on deletion
-disallow to delete the origin by the user and only remove it when Part is being deleted
2016-04-12 18:12:13 +02:00
jriegel
396f188f30 Tip property in Document and special load save handling 2016-04-12 18:12:02 +02:00
jrheinlaender
efd33c8465 Added check in Tree.cpp DocumentItem::slotChangeObject to check for invalid pointers returned by claimChildren() 2016-04-12 18:11:48 +02:00
wmayer
b3bfdaafcf + add overloaded addObject() method to Document class to add existing DocumentObject 2015-12-31 15:32:47 +01:00
wmayer
b33be62bb6 + rename signal to signalRelabelObject and remove unused code 2015-09-22 17:13:03 +02:00
Mateusz Skowroński
43a4a5938c Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
Eivind Kvedalen
fb2b1a6ec0 Added PropertyExpressionEngine to DocumentObject class. 2015-09-21 14:51:05 +02:00
Yorik van Havre
da2c497671 Added SaveCopy command
This command saves a copy of the current document under a new name,
without modifying the document itself.

Available in menu File -> Save a Copy or from python with
FreeCAD.ActiveDocument.saveCopy(filename)
2015-09-02 13:38:14 -03:00
Eivind Kvedalen
f99fd100e6 Added zoom and automatic refresh of dependency graph view. 2015-06-15 11:32:24 +02:00
wmayer
11239b034c + always keep digits at end when using copyObject, remove deprecated third parameter 2015-04-29 16:33:20 +02:00
wmayer
ff7e33b95d + reimplement copyObject based on merge document 2014-12-13 21:43:20 +01:00
wmayer
69edf4b6c9 + merge project on app level 2014-12-13 16:15:21 +01:00
wmayer
0900025e2d + better check for opening a transaction when removing an object from document 2013-08-15 16:47:56 +02:00