Commit Graph

81 Commits

Author SHA1 Message Date
wmayer
81060a8943 code cleanup in App Document 2016-06-17 22:12:23 +02:00
wmayer
efe1d18a57 + issue #0002521: SIGSEGV when trying to revert to saved file. 2016-05-20 13:01:23 +02:00
wmayer
b6892c5424 + add missing license text 2016-04-13 15:20:41 +02:00
DeepSOIC
565a191689 App: circular reference testing routine for new links
DocumentObject::testIfLinkDAGCompatible: return true if link can be
created (no cycles will be made). False if the link will cause a
circular dependency and break recomputes.
2016-04-12 18:12:20 +02:00
Alexander Golubev
305151be34 App/Origin: big refactoring
- Rebase App::Origin on App::DocumentObject
 - Keep all control over the Origin structure inside the Origin and it's
   ViewProvider
 - Add OriginFeature class as common base for App::Plane and App::Line
 - Rebase App::Plane and App::Line on top of newly created class and
   move to the file.
 - Change Origin's ViewProvider API associated with temporary display
 - Lots of associated changes to files
 - Several minor fixes
 - Lots of new bugs
2016-04-12 18:12:18 +02:00
Alexander Golubev
8bad396f16 App: minor fix of spacing 2016-04-12 18:12:17 +02:00
Alexander Golubev
54e572fd4c 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
ade1dec103 Revert "part deletion handling"
This reverts commit 6ab2002021ac1df26ebe77f488f5cd94e1df0b26.
2016-04-12 18:12:17 +02:00
Stefan Tröger
1ebe3e729c 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
Stefan Tröger
b733d38064 better active part and document tip handling 2016-04-12 18:12:10 +02:00
jriegel
847ebdc4fd Tip property in Document and special load save handling 2016-04-12 18:12:02 +02:00
jrheinlaender
449aee2178 Add check in Document.cpp recompute() to check for invalid pointers 2016-04-12 18:11:49 +02:00
jrheinlaender
0e6cdbe397 Added check in Tree.cpp DocumentItem::slotChangeObject to check for invalid pointers returned by claimChildren() 2016-04-12 18:11:48 +02:00
jriegel
944e1c1b86 PropertyMap and new Attributes for the Assembly object and the Document 2016-04-12 18:11:46 +02:00
wmayer
dd06ab9912 + suppress warnings when copying an object 2016-02-09 16:01:23 +01:00
Eivind Kvedalen
495b23209c Document/PropertyExpressionEngine: Added onDocumentRestored function, to update internals of PropertyExpressionEngine after loading a document from disk. 2016-01-08 23:08:55 +01:00
wmayer
e1b8c515c4 + add overloaded addObject() method to Document class to add existing DocumentObject 2015-12-31 15:32:47 +01:00
DeepSOIC
cd7ef29cda API: fix document.copyObject not working when with dependencies
copyObject failed with an error when attempting to copy an object with
dependencies from one document to another.

http://forum.freecadweb.org/viewtopic.php?f=22&t=13533&p=108288#p108288
2015-12-16 20:45:53 +03:00
wmayer
f462c5f91e + fix crash when undoing creation of spreadsheet 2015-12-09 13:18:58 +01:00
Mateusz Skowroński
05f95c0506 Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
Eivind Kvedalen
e21c2eff62 Updated Document::exportGraphviz() to visualize expression dependencies. 2015-09-21 14:51:07 +02:00
Eivind Kvedalen
402705f7c2 Modified Document::recompute() to take expressions into account. 2015-09-21 14:51:06 +02:00
Eivind Kvedalen
e17ece22c1 Added PropertyExpressionEngine to DocumentObject class. 2015-09-21 14:51:05 +02:00
wmayer
eb05da7cd7 + fixes #0001237: the project file is not saved when the /tmp directory is full, but the user is not aware of it 2015-09-19 18:59:22 +02:00
wmayer
ef203bc260 + fixes #0001238: Preferences: set temp files directory 2015-09-19 16:07:33 +02:00
wmayer
0bb008bb09 + fix inconsistencies between license note and url 2015-09-08 19:17:36 +02:00
Yorik van Havre
e122ea8bf7 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
4ec5710d56 Added zoom and automatic refresh of dependency graph view. 2015-06-15 11:32:24 +02:00
wmayer
79aa9574b5 + always keep digits at end when using copyObject, remove deprecated third parameter 2015-04-29 16:33:20 +02:00
wmayer
d03daf3773 + fix build failure for zipios++ from Fedora 2015-04-29 10:31:10 +02:00
Sebastian Hoogen
63f1dc0e5e set FileName property to transient
in order no to leak information in the FCStd file
2015-03-21 13:29:29 +01:00
Eivind Kvedalen
264c28b96e Added tracking of external documents to dependency tracking code. 2015-02-13 21:53:57 +01:00
wmayer
85bc04f0a0 + fix problems on unit tests, open transaction when creating distance object, layout warning, ... 2015-01-25 14:04:33 +01:00
wmayer
69605efc46 + fixes #0001776: Illegal character when opening project 2015-01-25 12:36:24 +01:00
Yorik van Havre
c77df01c8f Added preference setting to set default Author & License - fixes #1883
* added fields in Prefereces->Default->Document
* new documents take the values of those fields
2015-01-20 20:01:14 -02:00
wmayer
7ecb04e15a + reimplement copyObject based on merge document 2014-12-13 21:43:20 +01:00
wmayer
4ee432d70d + get full dependency when copying an object 2014-12-13 19:35:28 +01:00
Sebastian Hoogen
5c9e911a12 use ISO 8601 timestamps including timezone
for creation and last changed properties
2014-12-10 12:52:06 +01:00
wmayer
6242e8352d + make sure to use valid compression level 2014-12-02 23:02:04 +01:00
wmayer
9fb670ae16 + fixes #0001794: new defined as a macro sometimes conflicts with boost 2014-10-22 12:39:43 +02:00
wmayer
5096be5a26 + fixes #0001501: Add Ability to Export Dependency Graph as SVG and PNG 2014-04-07 14:26:43 +02:00
wmayer
ded1996a73 + Fix crash when editing the linear pattern feature, suppress some warnings in release mode 2014-03-31 14:42:55 +02:00
wmayer
31ad938360 + Fix segmentation fault 2014-02-15 14:08:33 +01:00
wmayer
668f337963 + Fix typo 2013-12-30 12:57:08 +01:00
wmayer
5aa1f90dbd + Keep trailing digits when loading project file 2013-12-30 12:54:45 +01:00
wmayer
e0bb1428e4 + Avoid too lenthy object names in document 2013-12-29 11:38:12 +01:00
wmayer
854d15f44f + Remove unused method 2013-09-26 18:47:25 +02:00
jriegel
ec0a5ccb0c Merge branch 'refs/heads/double-precision-werner'
Conflicts:
	src/App/Document.cpp
	src/App/PropertyGeo.cpp
	src/App/PropertyStandard.cpp
	src/Base/Reader.cpp
	src/Base/Reader.h
	src/Gui/propertyeditor/PropertyItem.cpp
	src/Mod/Fem/Gui/ViewProviderFemMesh.cpp
	src/Mod/Inspection/Gui/ViewProviderInspection.cpp
	src/Mod/Mesh/App/MeshProperties.cpp
	src/Mod/Part/App/TopoShapeFacePyImp.cpp
	src/Mod/PartDesign/App/FeatureRevolution.cpp
2013-09-26 00:05:05 +02:00
jriegel
718972e48a small fixes 2013-09-24 11:01:06 +02:00
Yorik van Havre
4005b199e0 0001102: Updated all links to old freecad homepage and wiki to the new ones 2013-09-15 17:04:42 -03:00