Commit Graph

575 Commits

Author SHA1 Message Date
wmayer
31b5614fbd add define to inactivate some code blocks if needed 2019-06-03 18:40:45 +02:00
lo
1922c84ca0 cmake: add option to disable linking of python extension modules to python-libraries 2019-05-24 14:37:33 +02:00
wmayer
c7cf339ac6 replace raw string with normal C string to fix build failure 2019-05-23 23:28:33 +02:00
ezzieyguywuf
327d509bc9 Added python virtual environment initialization, if present. 2019-05-22 13:53:47 +02:00
luz.paz
92bf2228d9 Misc. typo 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*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller -L pard,wallthickness,commen,byteorder,alocation`
2019-05-17 13:19:36 +02:00
Bernd Hahnebach
3650b3e59d Units: add AngleOfFriction as another parameter with Angle unit 2019-04-30 07:41:56 +02:00
Abdullah Tahiri
b406677cc0 MSVC2013 constexpr to const 2019-04-24 17:56:37 +02:00
Abdullah Tahiri
2eb5c70147 Base::Console avoid magic numbers and enable external string size checks 2019-04-24 17:56:37 +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
9b351e8551 fix crash when checking an empty error message of an exception 2019-04-01 11:22:55 +02:00
wmayer
64f4d453b5 fix VS2917 warnings: C4091, C4477, C4302, C4311 2019-03-23 16:35:40 +01:00
wmayer
6f59c842c8 when saving parameters make sure document exists 2019-03-12 01:05:50 +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
5ae635ac64 fix various flaws detected by PVS 2019-03-01 22:52:41 +01:00
wmayer
ce975cef2a avoid using hard-code precision when writing double to streams 2019-02-23 14:58:41 +01:00
wmayer
9a5a7a8866 disable commit 34264408 2019-02-19 22:28:46 +01:00
wmayer
d1ff2b7dce use format options when using repr() on a quantity 2019-02-19 13:46:22 +01:00
wmayer
5d8cd9dba4 PVS: V522 There might be dereferencing of a potential null pointer 'Py::Vector2d().getCxxObject()' 2019-02-18 00:00:10 +01:00
wmayer
6cb0b79e4b 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
6f1249d989 PVS: The 'then' statement is equivalent to the 'else' statement. 2019-02-17 19:52:35 +01:00
wmayer
b2a5f47e44 PVS: V560 A part of conditional expression is always true 2019-02-17 13:56:48 +01:00
Bernd Hahnebach
f1edabd09b Units: add various Material stress properties 2019-02-14 21:11:22 +01:00
wmayer
87f4106b24 fix possible infinite loop when transcoding from/to UTF-8 2019-02-14 11:06:30 +01:00
wmayer
fb27265934 Expose some standard units and quantities to Python 2019-02-12 15:12:19 +01:00
Mateusz Skowroński
ac508516da 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
105a9d5ee6 Crowdin: Base/Exception.h uniformity fix 2019-01-30 11:08:03 -02:00
wmayer
2aee1e8368 fixes 0003771: Memory leak in Part.Face.Surface 2019-01-23 22:38:51 +01:00
wmayer
8345b0c1c3 add method multVec to MatrixPy class for better consistency 2019-01-22 15:57:10 +01:00
wmayer
65c06fce5c add method restoreFinished and reimplement it in SketchObject 2018-12-29 15:27:32 +01:00
wandererfan
42820cc179 Remove u8 literals for Win compatibility 2018-12-23 11:03:02 -02:00
wandererfan
9c88743d1d Use correct unicode symbols for DMS units 2018-12-23 11:03:02 -02:00
wandererfan
d28f82eb8d 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
6ee1d9ee38 Handle negative angles in UnitsSchemaImperialCivil 2018-12-18 22:17:38 +01:00
Yorik van Havre
67b286ebb9 add App.Units.setSchema() python method 2018-12-18 11:01:35 -02: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
wmayer
1647eee92c add specialized exception type for bad graphs 2018-11-26 14:15:19 +01:00
wmayer
f7c8f9c808 fix ViewProjMatrix::getProjectionMatrix 2018-11-20 19:21:15 +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
7cfae563c3 Extension of XMLReader to facilitate partial restores 2018-11-19 11:31:10 +01:00
Abdullah Tahiri
ff0b5a288f 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
83bee99cde New Base::Exception type RestoreError 2018-11-19 11:31:07 +01:00
wmayer
9b41132580 Replace Base::Exception with appropriate subclass 2018-11-14 23:17:42 +01:00
wmayer
66b889044b fixes 0003689: Snap to grid checkbox in edit control widget does not update 2018-11-14 12:40:39 +01:00
luz.paz
c7785267a7 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
36271b4052 move from deprecated boost.signals to boost.signals2 library 2018-10-30 19:09:03 +01:00
wmayer
4520aeb5ea fix -Wunused-private-field 2018-10-28 18:58:38 +01:00
wmayer
193c253289 add module for Qt translation stuff 2018-10-28 12:58:14 +01:00
wmayer
0048778f80 remove trailing whitespaces 2018-10-27 18:12:36 +02:00
ickby
64d9f38d95 Persistence: Incorporate review feedback 2018-10-27 16:15:39 +02:00
ickby
13bcf5fae4 Persistence: Avoid copy of data on binary restore 2018-10-27 16:15:20 +02:00