Commit Graph

563 Commits

Author SHA1 Message Date
wmayer
28b195d6e2 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
337c9c936f fix various flaws detected by PVS 2019-03-01 22:52:41 +01:00
wmayer
bd89326d06 avoid using hard-code precision when writing double to streams 2019-02-23 14:58:41 +01:00
wmayer
a6a9c15c4c disable commit e3793e6c 2019-02-19 22:28:46 +01:00
wmayer
e3793e6c88 use format options when using repr() on a quantity 2019-02-19 13:46:22 +01:00
wmayer
90c80f83fd PVS: V522 There might be dereferencing of a potential null pointer 'Py::Vector2d().getCxxObject()' 2019-02-18 00:00:10 +01:00
wmayer
239c20b71f PVS: V705 It is possible that 'else' block was forgotten or commented out, thus altering the program's operation logics. 2019-02-17 19:54:24 +01:00
wmayer
493a144080 PVS: The 'then' statement is equivalent to the 'else' statement. 2019-02-17 19:52:35 +01:00
wmayer
f581d5c8cb PVS: V560 A part of conditional expression is always true 2019-02-17 13:56:48 +01:00
Bernd Hahnebach
57a0acffc0 Units: add various Material stress properties 2019-02-14 21:11:22 +01:00
wmayer
1a68b75a4b fix possible infinite loop when transcoding from/to UTF-8 2019-02-14 11:06:30 +01:00
wmayer
1081403d21 Expose some standard units and quantities to Python 2019-02-12 15:12:19 +01:00
Mateusz Skowroński
317bcd59c9 Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy! 2019-02-11 15:39:14 +01:00
luz.paz
adae9071ed Crowdin: Base/Exception.h uniformity fix 2019-01-30 11:08:03 -02:00
wmayer
dedaa80762 fixes 0003771: Memory leak in Part.Face.Surface 2019-01-23 22:38:51 +01:00
wmayer
ba14668e1a add method multVec to MatrixPy class for better consistency 2019-01-22 15:57:10 +01:00
wmayer
be5796b2d0 add method restoreFinished and reimplement it in SketchObject 2018-12-29 15:27:32 +01:00
wandererfan
376a70bffc Remove u8 literals for Win compatibility 2018-12-23 11:03:02 -02:00
wandererfan
60b9936a35 Use correct unicode symbols for DMS units 2018-12-23 11:03:02 -02:00
wandererfan
b5a3b7d3df Use same symbol for display and edit.
- UnitsSchemaImperialCivil was sometimes displaying
  degree symbol as "deg" and sometimes as "°"
2018-12-18 22:17:38 +01:00
wandererfan
bde252895f Handle negative angles in UnitsSchemaImperialCivil 2018-12-18 22:17:38 +01:00
Yorik van Havre
91bb88fe18 add App.Units.setSchema() python method 2018-12-18 11:01:35 -02:00
wandererfan
00e6e376c9 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
wmayer
7ceac311b3 add specialized exception type for bad graphs 2018-11-26 14:15:19 +01:00
wmayer
608d42d3cd fix ViewProjMatrix::getProjectionMatrix 2018-11-20 19:21:15 +01:00
wmayer
ddb20468ad 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
9a34a93db1 Extension of XMLReader to facilitate partial restores 2018-11-19 11:31:10 +01:00
Abdullah Tahiri
714604e58f ZipStream: Change precision from 12 to 16 decimals
==================================================

Fixes:
https://forum.freecadweb.org/viewtopic.php?f=3&t=32212&start=10#p269080
2018-11-19 11:31:08 +01:00
Abdullah Tahiri
a459ee3f22 New Base::Exception type RestoreError 2018-11-19 11:31:07 +01:00
wmayer
7dc13bd2d6 Replace Base::Exception with appropriate subclass 2018-11-14 23:17:42 +01:00
wmayer
4f02b209fc fixes 0003689: Snap to grid checkbox in edit control widget does not update 2018-11-14 12:40:39 +01:00
luz.paz
4c2f2cd210 Misc. typos and whitespace
Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm,./ChangeLog.txt" -I ../fc-word-whitelist.txt` and `grep`. Excess whitespace auto-removed by Atom editor.
2018-11-03 16:13:06 -03:00
wmayer
f898eafd64 move from deprecated boost.signals to boost.signals2 library 2018-10-30 19:09:03 +01:00
wmayer
53ba33a805 fix -Wunused-private-field 2018-10-28 18:58:38 +01:00
wmayer
907cdb8fa0 add module for Qt translation stuff 2018-10-28 12:58:14 +01:00
wmayer
3b1e1f8859 remove trailing whitespaces 2018-10-27 18:12:36 +02:00
ickby
b262cf6e9f Persistence: Incorporate review feedback 2018-10-27 16:15:39 +02:00
ickby
f5fc291ecd Persistence: Avoid copy of data on binary restore 2018-10-27 16:15:20 +02:00
ickby
4a7d49f8b6 Persistence: Enable binary dumps of properties 2018-10-27 16:15:09 +02:00
ickby
fd378bbc8d Persistence: Implement dumping of binary content 2018-10-27 16:14:59 +02:00
wmayer
83f61b4372 implement true divide handler of the number protocol for Quantity 2018-10-27 15:27:27 +02:00
luz.paz
0500bcbda3 Requested revision 2018-10-25 11:06:28 -03:00
luz.paz
2a53eb0432 Please review these and then I'll squash all in to one commit 2018-10-25 11:06:28 -03:00
wmayer
04faa8f497 + fix cutting or selecting mesh in perspective projection mode 2018-10-11 10:48:27 +02:00
wmayer
be8b1b52c1 fix ObjectStatusLocker and StateLocker to support nested calls 2018-10-07 22:04:27 +02:00
wmayer
1d1abb6d29 fixes 0003311: SketchObjectPython - no addGeometry addConstraints setDriving...? 2018-09-27 21:47:03 +02:00
luz.paz
b214f606c4 Misc. typo and whitespace fixes
ref: https://forum.freecadweb.org/viewtopic.php?f=3&t=30988#p256964
along with other misc. fixes
2018-09-19 17:26:03 +02:00
wmayer
189a729027 extend QuantityFormat to set denominator independent of user settings 2018-09-17 12:38:46 +02:00
hokieengr
77060a75a6 Added support for fractional inch user setting. 2018-09-17 10:32:04 +02:00
wmayer
476a07ae24 expose some more methods of ParameterGrp to Python 2018-09-16 19:36:46 +02:00