Commit Graph

544 Commits

Author SHA1 Message Date
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
ickby
59283c40b8 Persistence: Enable binary dumps of properties 2018-10-27 16:15:09 +02:00
ickby
9820fca6a5 Persistence: Implement dumping of binary content 2018-10-27 16:14:59 +02:00
wmayer
1106404b1e implement true divide handler of the number protocol for Quantity 2018-10-27 15:27:27 +02:00
luz.paz
3342f88358 Requested revision 2018-10-25 11:06:28 -03:00
luz.paz
2535665ee8 Please review these and then I'll squash all in to one commit 2018-10-25 11:06:28 -03:00
wmayer
4768028827 + fix cutting or selecting mesh in perspective projection mode 2018-10-11 10:48:27 +02:00
wmayer
ec15e76006 fix ObjectStatusLocker and StateLocker to support nested calls 2018-10-07 22:04:27 +02:00
wmayer
ba40216791 fixes 0003311: SketchObjectPython - no addGeometry addConstraints setDriving...? 2018-09-27 21:47:03 +02:00
luz.paz
360e581672 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
9e8be1aa23 extend QuantityFormat to set denominator independent of user settings 2018-09-17 12:38:46 +02:00
hokieengr
f8dcd64fa2 Added support for fractional inch user setting. 2018-09-17 10:32:04 +02:00
wmayer
2e7bcde56b expose some more methods of ParameterGrp to Python 2018-09-16 19:36:46 +02:00
wmayer
0155cbb5d4 improve whitespaces 2018-09-11 14:26:38 +02:00
hokieengr
e3452ecb5f Reformatted variable spacing. 2018-09-11 14:12:15 +02:00
hokieengr
fddd3004df Parameterized previously hardcoded fractional inch code
To make way for an eventual upcoming feature whereby the user can select
the minimum fractional inch value (1/8", 1/16", 1/32", etc) to be
displayed, the function responsible for rendering this string was
rewritten. Previous functionality used hardcoded values for 1/8" and
therefore did not allow this to be changed. New code will work with any
integer denominator.

Also, a minor bug in the previous implementation has been fixed by the
new code. Prior to this fix, if an inch value rounded up to a foot, it
would still be rendered in inches. For example: 23.99" would be rendered
as 1'+12". The new code will render this as 2'.

Default fractional value set to 8 (1/8") for now such that there is no
change in the existing behavior. GUI option will be added at some point
in the future.
2018-09-11 14:12:05 +02:00
wmayer
5c984be41f replace epsilon to check for null vector 2018-09-11 11:33:38 +02:00
Mark Ganson TheMarkster
e21f64caf9 fix bug in draft path array
put lnodes.normalize() inside try/except block
replace hard-coded 1e-6 with Vector3d::epsilon() in VectorPy::normalize()
2018-09-11 11:11:39 +02:00
wmayer
b5b1e96f40 make copy constructor of Handle class private 2018-09-05 22:55:33 +02:00
wmayer
79938b119f add method Placement::isIdentity 2018-09-05 21:19:16 +02:00
Michal Ulianko
2e2b8cba6a py3.7 fix
PyUnicode_AsUTF8() returns const char* in py3.7 instead of char*. Making
changes to reflect that which should also be safe in
other Python versions.
2018-09-01 22:44:39 +02:00
Zheng, Lei
00312a39f9 Selection: handle exception in observer callback
Selection callback are sometimes called while traversing Coin node tree.
If any unhandled exception is thrown while traversing the tree, FC 3D
rendering will become unstable and non-usable thereafter.
2018-08-26 17:29:14 +02:00
wmayer
5572f55312 clear dict when invalidating Py object to fix possible cyclic references 2018-08-25 21:49:57 +02:00
wmayer
0b3db26b24 reduce compile time after each time cmake configure is executed 2018-08-21 13:53:33 +02:00
wmayer
826b437940 reduce compile time after each time cmake configure is executed (swig) 2018-08-21 13:20:58 +02:00
wmayer
1cd894bacc fix -Wcast-function-type 2018-08-19 13:11:08 +02:00
wmayer
3c2f7833d4 fix warning C4244: conversion from 'const double' to 'float', possible loss of data 2018-08-19 10:43:25 +02:00
luz.paz
60bd74aaad Trailing whitespace fixes 2018-08-18 21:48:42 +02:00
luz.paz
fab9cad50f Misc. typos
Found via `codespell`
Trivial typos

Found via `codespell`
2018-08-18 21:48:42 +02:00
hgutsche
1b00876014 Add library for concurremcy in >= VS2015
revert conditional in Points.cpp (i.e. reactivate parallel handling)
2018-08-11 11:55:51 +02:00
wmayer
e6b5a5fb14 suppress -Wcast-function-type for swig code 2018-08-08 18:18:53 +02:00
wmayer
ddfa3c8843 remove kwd argument for functions only with flag METH_VARARGS 2018-08-08 17:39:32 +02:00