Commit Graph

909 Commits

Author SHA1 Message Date
luz.paz
b7b433e461 Misc. typo and whitespace fixes
Found via `codespell`
2019-04-30 10:15:59 -03:00
Bernd Hahnebach
3650b3e59d Units: add AngleOfFriction as another parameter with Angle unit 2019-04-30 07:41:56 +02:00
wmayer
0521860740 rename BUILD_uSE_PCH to FREECAD_USE_PCH to be consistent with other build options 2019-04-15 13:31:31 +02:00
wmayer
d46f86fb53 Py3 fix: correctly convert a Python str to const char* 2019-04-14 13:00:13 +02:00
wmayer
4c04933fd7 fix bug when checking for str type in PropertyEnumeration::setPyObject 2019-04-07 12:16:18 +02:00
wmayer
bef0ba2277 add methods to convert colors between rgb and hex values 2019-04-05 13:32:23 +02:00
luz.paz
06d583b425 Misc typos and whitespace fixes
Found via `codespell -q 3 -I ../fc-word-whitelist.txt -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*`
2019-03-31 11:42:36 +02:00
joha2
0d8f3127ee FreeCAD: Application: removed banner in Cmd RunMode 2019-03-31 11:27:14 +02:00
luz.paz
ad0ee86589 Misc. source comment typos 2019-03-22 10:44:14 -03:00
wmayer
7cdef5dcd9 reset expressions of a property when removing it 2019-03-16 00:01:33 +01:00
wmayer
0dde354716 Document::breakDependency should handle exceptions to avoid to leave document in an inconsistent state 2019-03-15 14:41:43 +01:00
wmayer
9bdd92989e PVS: V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected. 2019-03-08 18:56:16 +01:00
wmayer
6b37fdc1a8 PVS issues:
consistently define copy constructor and assignment operator
remove superfluous casts
initialize member variables in constructor
avoid double assignment
2019-03-04 11:53:49 +01:00
wmayer
f0a1c43dbf fix -Winconsistent-missing-override 2019-02-28 22:55:46 +01:00
wmayer
55781c5ee8 Fix precision of NumberExpression when writing to a string (reverts 4d3329edd8)
See also: https://forum.freecadweb.org/viewtopic.php?f=3&t=34392
2019-02-23 14:34:14 +01:00
wmayer
27e038608c fix inheritance of PartPy 2019-02-19 23:21:35 +01:00
wmayer
58bcee0e04 PVS: V595 The pointer was utilized before it was verified against nullptr 2019-02-17 20:55:52 +01:00
wmayer
2f31efe4c3 PVS: V779 Unreachable code detected. It is possible that an error is present. 2019-02-17 20:12:56 +01:00
wmayer
e23db2e313 PVS: V773 A memory leak is possible 2019-02-17 18:40:06 +01:00
wmayer
98e13aa048 PVS: V730 Not all members of a class are initialized inside the constructor 2019-02-17 11:49:51 +01:00
Bernd Hahnebach
f1edabd09b Units: add various Material stress properties 2019-02-14 21:11:22 +01:00
wmayer
7778f25584 copyObject should return the clone of the passed object for recursive copies, not an arbitrary object 2019-02-12 19:40:29 +01:00
wmayer
fb27265934 Expose some standard units and quantities to Python 2019-02-12 15:12:19 +01:00
luz.paz
cb4a0adf71 Misc. typos
Found via `codespell`
2019-02-08 11:01:24 -02:00
wmayer
590b820459 fix possible double destruction when removing a group and its content from document 2019-01-16 00:35:34 +01:00
wmayer
667c4c18b2 fix crash when removing from document and accessing Python based feature 2019-01-13 17:50:48 +01:00
cclauss
c8a2b21904 Missing import FreeCAD and/or FreeCADGui (again) 2019-01-07 12:25:27 -02:00
wandererfan
64e7f47eee Add support for DMS angles to Expressions 2018-12-23 11:03:02 -02:00
Abdullah Tahiri
c1fdc42fd6 Improve debug info 2018-12-19 10:27:30 -02:00
wandererfan
ea4ac8ff68 Revert Erroneous Change to parser
- ExpressionParser.y changed in error by commit
  00e6376c.  Regen ExpressionParser.tab.c and
  lex.ExpressionParser.c
2018-12-14 19:30:49 +01:00
wandererfan
c3e7a8c55e Improve "links go out of scope" message 2018-12-08 11:29:45 -03:00
wandererfan
fefe83ecbb Add ImperialCivil Units Schema
- units for civil engineering - ft, ft2, ft3, mph,
  and angles as degrees/minutes/seconds
2018-12-06 08:57:17 -03:00
Abdullah Tahiri
92b216f7e5 Missing ExceptionProducer init for RestoreError 2018-11-27 13:23:44 -03:00
wmayer
1647eee92c add specialized exception type for bad graphs 2018-11-26 14:15:19 +01:00
wmayer
b7bfb06cea fix crash if origin feature doesn't exist when trying to create dependency graph 2018-11-26 13:09:11 +01:00
wmayer
a41a130704 some additions to pR 1794:
add a special XMLAttributeError class to indicate an error when accessing a missing attribute
in PropertyContainer::Restore make error handling more flexible
2018-11-19 19:07:56 +01:00
Abdullah Tahiri
6bffbf801c remove forgoten exception 2018-11-19 11:31:10 +01:00
Abdullah Tahiri
36d748c29e Example implementation 2018-11-19 11:31:10 +01:00
Abdullah Tahiri
bf6f2b855d Property: dropping isorderrelevant boolean member in favour of bit in the status of the properties 2018-11-19 11:31:09 +01:00
Abdullah Tahiri
a7e0b93dd1 Example code of propagating the result of the partial restore 2018-11-19 11:31:08 +01:00
Abdullah Tahiri
36cdcf270d make App::Property aware of whether the order on the list is relevant or not 2018-11-19 11:31:07 +01:00
wmayer
62533a22b5 fix DocumentObject::isInInListRecursive and DocumentObject::isInOutListRecursive 2018-11-16 01:14:33 +01:00
wmayer
5997bac049 make _getInListRecursive much more efficient by avoiding to process objects multiple times 2018-11-15 23:17:04 +01:00
wmayer
6e9b2d1bfe remove superfluous error messages in In/Out list methods 2018-11-15 22:16:29 +01:00
wmayer
d5a41cdecf fix exception message 2018-11-14 23:18:27 +01:00
wmayer
9b41132580 Replace Base::Exception with appropriate subclass 2018-11-14 23:17:42 +01:00
wmayer
31963f16c1 Fix scan coverity issues:
CID 184294: Uncaught exception
CID 183597: Unchecked return value
CID 175809: Dereference before null check
CID 175810: Logically dead code
CID 133000: Uninitialized scalar variable
CID 133001: Uninitialized scalar variable
CID 183591: Explicit null dereferenced
2018-11-13 16:47:58 +01:00
wmayer
8eb3600a2d fixes 0003518: Expressions (fx) not updated 2018-11-11 10:58:48 +01:00
wmayer
06fa64a00d 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
ccbf7a6c3a fixes 0003627: Hole fails to restore from file 2018-11-10 01:13:42 +01:00