Commit Graph

997 Commits

Author SHA1 Message Date
wmayer
b0bbbe9421 move implementation of topologicalSort to private class DocumentP and add a parameter 2017-12-10 11:04:25 +01:00
wmayer
4e74ef0cf7 move global function to private class DocumentP 2017-12-10 10:53:34 +01:00
Unknown
f5146508bb Misc. typos 2017-12-06 20:59:55 +01:00
wmayer
6ed21609e4 issue #0002973: Path to FreeCAD.app can't contain unicode 2017-12-02 19:37:05 +01:00
luzpaz
985980648c Typos: user-facing and trivial
Several typos and uniformity fixes.
Note: 
*SCL/SimpleDataTypes.py is a upstream stepcode file whose fiz has been submitted upstream and accepted.
*the header of Tools/generateBase/generateMetaModel_Module.xsd  had redundant data. It has been removed. Please double check it.
2017-12-02 14:00:57 +01:00
Eivind Kvedalen
76d3d96071 When we are restoring, don't set the Label on object creation as it will be restored later.
This is to avoid potential duplicate label conflicts.

This fixes issue #3280.
2017-11-30 16:28:41 +01:00
Eivind Kvedalen
8b4adfa513 Moved ObjectStatusLocker template class to Base/Tools.h 2017-11-30 16:28:41 +01:00
luzpaz
aea66610d9 App/Range.cpp: mInor doxygen refinements 2017-11-29 21:40:44 +01:00
wmayer
1a6e5db7f6 move encodeAttribute from Property to Persitence to avoid code duplication 2017-11-26 18:38:45 +01:00
luzpaz
8200c97ed2 Fix Techdraw UI typo found via crowdin + misc. typos
Ref: https://crowdin.com/translate/freecad/27911/en-eu#6503377
2017-11-26 15:48:20 +01:00
luzpaz
a225b13bef Misc. typos
- Tooltip uniformity 
- source comment typo fixes
- remove double whitespaces
2017-11-24 09:45:08 -02:00
wmayer
4d63e9a4c4 various minor changes:
+ whitespace improvement
+ code cleanup
2017-11-21 17:51:22 +01:00
wmayer
01a13e9a95 fix coverity issue 2017-11-18 16:30:27 +01:00
luzpaz
35ec477426 More typos, grammar fixes, uniformity 2017-11-15 10:46:43 -05:00
Eivind Kvedalen
dd6757bbb8 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
d7caea2cba fix crashes in dependency walker 2017-11-08 12:12:46 +01:00
wmayer
b94917fe51 add virtual method onExtendedDocumentRestored DocumentObjectExtension 2017-10-25 22:51:50 +02:00
wmayer
9ed3b11d4f fixes #0002632: Improvements to Prefs for Python 2017-10-25 12:39:06 +02:00
wmayer
bed779a530 method to get paths between two objects 2017-10-20 18:26:18 +02:00
wmayer
6c0fe8a947 when resetting expression on angle convert value back to radian 2017-10-19 23:47:51 +02:00
wmayer
b1bfb62583 add derived unit electric potential 2017-10-16 21:56:13 +02:00
wmayer
f4a25522a7 fix possible dangling pointers in function to create dependency graph 2017-10-11 13:24:32 +02:00
wmayer
0b7ce87340 allow to set console and unit test option without overriding each other
start unit tests in command line mode because the python pivy package is missing
2017-10-10 20:40:09 +02:00
wmayer
73d089ea9e make _getOutListRecursive much more efficient by avoiding to process objects multiple times 2017-10-10 00:51:25 +02:00
wmayer
3abfbb7fb2 update expressions when relabelling a document object 2017-10-08 01:45:39 +02:00
wmayer
440f2e8f56 when overriding an expression remove dependencies from old expression to avoid recompute failures due to invalid DAG 2017-10-07 20:39:16 +02:00
Eivind Kvedalen
c7afdbc391 Fix for issue #3200: Convert angle to degrees when used in an expression. 2017-10-07 11:28:02 +02:00
luzpaz
f3bf8fe919 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
6a063778c1 property editor for PropertyLinkList 2017-09-23 18:03:03 +02:00
wmayer
d7aabc1a80 don't exit FreeCAD when Ext directory doesn't exist 2017-09-22 10:37:11 +02:00
Stefan Tröger
e6c2bfd205 Maintain backlinks on dynamic property removal. fixes #0003189 2017-09-21 13:29:20 +02:00
Stefan Tröger
84667e46f0 Expose global placement calculation to python API 2017-09-21 12:58:01 +02:00
Stefan Tröger
ca74544959 Don't check for multiple groups when performing a transaction. fixes #0003150
During undo/redo the order in which objects are removed from a group and added to annother is arbitrary, hence it cannot comply to the single Group rule. Not echking for it in this case is unproblematic, as undo/redo only recrete former states, and those states have been checked in normal operation.
2017-09-21 12:48:39 +02:00
Stefan Tröger
892301367a Expressions: Prevent backlink creation to same objects. fixes #0003192 2017-09-21 12:11:13 +02:00
Stefan Tröger
59684cfa4c Fix wrong detection of multiple GeoFeatureGroups 2017-09-21 11:14:21 +02:00
looooo
c7a4541722 new-style-modules: adding the possebility to import from "freecad"
(this mostly aims at new modules and extension modules which want to use pip)
- any module having problems with nameclashes can use this syntax (from freecad import module)
- current imports still work (backward cobatibility)
- python extension moduels can be installed (pip) to python std path (eg.: site-packages)

- adding app, gui to the new freecad package:
```
from freecad import app
from freecad import gui
```

- syntax for importing c++ extension will not change
```
import FreeCAD as App
import FreeCADGui as Gui
```
2017-09-20 23:25:12 +02:00
Peter Lama
9187919bb8 Attacher UX enhancements
- New editor for MapMode with button to open attacher dialog
- Hide attachment properties when they are not applicable
- Disable super placement ui in attacher dialog when object is not attached
- Always select used mode in mode list
2017-09-20 19:24:35 +02:00
wmayer
fde42545ba fix various coverity issues 2017-09-15 11:48:38 +02:00
luzpaz
a3953e95df misc typos
misc-typos
2017-09-15 09:54:14 +02:00
wmayer
506ce6b5f5 fix override warnings 2017-09-15 01:49:12 +02:00
wmayer
c68112977e fix override warnings 2017-09-15 00:58:21 +02:00
wmayer
712966ff50 rename method from remObject to removeObject to be more readable 2017-09-13 18:57:38 +02:00
wmayer
9d83bf8c12 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
ca77c54d10 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
071763d464 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
f52b54e4f3 add method to remove elements from PropertyLinkSubList 2017-09-13 12:19:09 +02:00
wmayer
72c2ea5e6a add missing return 2017-09-12 16:42:46 +02:00
wmayer
f59db97ac2 when accessing view provider of object make sure the object hasn't been removed from the document, raise an exception otherwise 2017-09-12 16:28:31 +02:00
wmayer
8e21d98a9a do some security checks to avoid accessing invalid data 2017-09-12 15:21:07 +02:00
Zheng, Lei
15994d7287 OriginGroupExtension: fix wrong static_cast 2017-09-12 13:51:47 +02:00