Commit Graph

761 Commits

Author SHA1 Message Date
luz.paz
051d910db9 Misc. comment typos
[skip ci]
2018-01-20 14:04:22 +01:00
wmayer
305a567819 raise exception in PropertyLinkSubList::setPyObject for wrong type 2018-01-18 15:53:51 +01:00
wmayer
e404cadee6 fix automatic update of dependency graph 2018-01-15 22:19:05 +01:00
luz.paz
bbfbb0e7d3 Misc. comment typos 2018-01-14 12:11:35 -02:00
wmayer
4b781d75b4 fix crash when querying information about an object that is not part of a document 2018-01-11 16:13:07 +01:00
wmayer
6a15a2f31e verify iterators in partialTopologicalSort to be on the safe side
currently this can cause a crash because issue 3214 is not fixed yet
See also: https://forum.freecadweb.org/viewtopic.php?f=19&t=26295
2018-01-10 22:16:39 +01:00
Markus Lampert
d13d0bddff Expose getUserMacroDir to python and use in preferences. 2018-01-07 20:16:49 -08:00
luz.paz
8690d870a5 Misc. typos
+ stepcode typo submitted upsream https://github.com/stepcode/stepcode/pull/372
2018-01-07 18:41:29 -02:00
luzpaz
128239b54a Typos: Various workbenches and misc.
[skip ci]
2017-12-25 10:58:10 +01:00
Unknown
a8ecffb652 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
wmayer
aa201cba9c improve whitespaces 2017-12-13 17:00:38 +01:00
plgarcia
31c0230659 Improvement of rotations
Rotation:
-	Add a private attribute Vector to store the direction of the rotation, and manage not to erase this direction when the angle id 0.
-	Add a private attribute to store the angle as defined (no modulo etc)
-	Keep the quaternion for calculations

PropertyGeo
-	Saves the rotation with angle and direction instead of saving the quaternion.
-	Attribute name chosen: Ox, Oy and Oz for the coordinates of the axis and A for the angle in radians. This has to be validated.
-	Backward compatibility with the saved files with quaternion (test presence of A to determine which of  the Quaternion (old way) or the direction and angle is stored (new way). New files can be opened by old FreeCAD and vice-versa.

The only side effect I can imagine is that it was possible to set a vector to 0, 0, 0 if the angle was not 0, what is somehow non sense. Now when setting to 0, 0 0 the last not null vector is kept. The vector can not be null any longer.
2017-12-13 17:00:38 +01:00
DeepSOIC
f919eb6a64 fix object.getGlobalPlacement
was confused by expressions in Placement of containers.
Fixes #3217 Sketcher not drawing at mouse position.
2017-12-11 12:48:07 +01:00
wmayer
91bb7ed0c5 fixes #0003185: Recompute should work if only subgraph is cyclic 2017-12-10 17:47:09 +01:00
wmayer
c6f89e6e5d move implementation of topologicalSort to private class DocumentP and add a parameter 2017-12-10 11:04:25 +01:00
wmayer
42aa80bb74 move global function to private class DocumentP 2017-12-10 10:53:34 +01:00
Unknown
c8c9b76f43 Misc. typos 2017-12-06 20:59:55 +01:00
wmayer
1cfae464b4 issue #0002973: Path to FreeCAD.app can't contain unicode 2017-12-02 19:37:05 +01:00
luzpaz
56111a0810 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
3b82ffff02 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
2ae1313975 Moved ObjectStatusLocker template class to Base/Tools.h 2017-11-30 16:28:41 +01:00
luzpaz
5a0019e9ec App/Range.cpp: mInor doxygen refinements 2017-11-29 21:40:44 +01:00
wmayer
2059d47e2c move encodeAttribute from Property to Persitence to avoid code duplication 2017-11-26 18:38:45 +01:00
luzpaz
56af703746 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
b24a9c9ad4 Misc. typos
- Tooltip uniformity 
- source comment typo fixes
- remove double whitespaces
2017-11-24 09:45:08 -02:00
wmayer
3b957a12b5 various minor changes:
+ whitespace improvement
+ code cleanup
2017-11-21 17:51:22 +01:00
wmayer
532d9b230b fix coverity issue 2017-11-18 16:30:27 +01:00
luzpaz
987b8db0b5 More typos, grammar fixes, uniformity 2017-11-15 10:46:43 -05: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
ec1bcccb82 fix crashes in dependency walker 2017-11-08 12:12:46 +01:00
wmayer
7d3af3647d add virtual method onExtendedDocumentRestored DocumentObjectExtension 2017-10-25 22:51:50 +02:00
wmayer
0ad9436eab fixes #0002632: Improvements to Prefs for Python 2017-10-25 12:39:06 +02:00
wmayer
725a5b6545 method to get paths between two objects 2017-10-20 18:26:18 +02:00
wmayer
e06ae2cfde when resetting expression on angle convert value back to radian 2017-10-19 23:47:51 +02:00
wmayer
9aab910981 add derived unit electric potential 2017-10-16 21:56:13 +02:00
wmayer
92ec59df06 fix possible dangling pointers in function to create dependency graph 2017-10-11 13:24:32 +02:00
wmayer
3b479e00c2 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
04ac31cba0 make _getOutListRecursive much more efficient by avoiding to process objects multiple times 2017-10-10 00:51:25 +02:00
wmayer
88962a8c45 update expressions when relabelling a document object 2017-10-08 01:45:39 +02:00
wmayer
5373f7e2f4 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
1cf3667f62 Fix for issue #3200: Convert angle to degrees when used in an expression. 2017-10-07 11:28:02 +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
22ac03a5b5 property editor for PropertyLinkList 2017-09-23 18:03:03 +02:00
wmayer
00d6df17e3 don't exit FreeCAD when Ext directory doesn't exist 2017-09-22 10:37:11 +02:00
Stefan Tröger
00e7c0f2cb Maintain backlinks on dynamic property removal. fixes #0003189 2017-09-21 13:29:20 +02:00
Stefan Tröger
e64813827d Expose global placement calculation to python API 2017-09-21 12:58:01 +02:00
Stefan Tröger
957b23e610 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
ec796329bf Expressions: Prevent backlink creation to same objects. fixes #0003192 2017-09-21 12:11:13 +02:00
Stefan Tröger
1248ba3bf9 Fix wrong detection of multiple GeoFeatureGroups 2017-09-21 11:14:21 +02:00
looooo
2ff47374f2 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