wmayer
8d420127b7
remove deprecated Type attribute
2017-09-18 19:01:25 +02:00
wmayer
fde42545ba
fix various coverity issues
2017-09-15 11:48:38 +02:00
wmayer
6eb26c06e0
set invalid bounding box if no arguments passed
2017-09-12 17:23:39 +02:00
DeepSOIC
62b0d35270
Base: new Rotation constructor - on vectors
...
The new constructor accepts wanted directions of x,y,z axes of rotated
frame, and a priority string that affects how the vectors are made
perpendicular to each other.
Example - construct placement for sketch on XZ plane:
v = App.Vector
App.Rotation(v(1,0,0),v(0,0,1),v())
2017-09-10 18:31:40 +02:00
wmayer
13b3abef35
direct support of Volt in units framework
2017-09-04 12:08:29 +02:00
wmayer
23863af612
implement slicing for VectorPy class
2017-08-21 15:16:03 +02:00
wmayer
f300614729
Py3: replace sq_slice and sq_ass_slice with mp_subscript and mp_ass_subscript because they are not used any more in Py3
2017-08-21 13:33:07 +02:00
wmayer
dd66a9c9fc
add method toFormat to get number format from character
2017-08-20 18:50:13 +02:00
Oliver Oxtoby
59cc63faea
Base: Make Quantity parser accept 1/[unit] as [unit]^-1
2017-08-20 16:53:57 +02:00
Oliver Oxtoby
890a7bf814
Base: Fixes in MKS units schema
...
- Change default unit for Length, if out of range of scaling, to m
- Add density scaling as in Internal schema (avoids density always displaying in kg/mm^3)
- Change velocity to m/s rather than mm/s
2017-08-20 16:50:26 +02:00
Oliver Oxtoby
f93bdfb927
Base: Add DynamicViscosity and SpecificEnergy units
2017-08-20 16:50:11 +02:00
wmayer
ffac6242fd
fixes of PR 765
...
remove QT_TRANSLATE_NOOP because of compiler warnings
mark _isReported as mutable to avoid removing const keyword from ReportException()
improve whitespaces
2017-08-17 22:50:01 +02:00
Abdullah Tahiri
806e06a35e
Exception extension to only report once
2017-08-17 22:45:40 +02:00
Abdullah Tahiri
fa3a4f1f4c
Exceptions: translation support
2017-08-17 22:44:11 +02:00
wmayer
cf8c1f6956
fix warning
2017-08-13 16:58:06 +02:00
wmayer
35ddd3926b
extend Python api of units:
...
+ get list of all available schemas
+ get currently set schema
+ translate a quantity to a given schema
2017-08-13 16:55:00 +02:00
wmayer
07261b161d
fix Py3 issue
2017-07-25 01:07:09 +02:00
wmayer
e32c37598b
add attribute to control format of a quantity via Python
2017-07-24 22:47:10 +02:00
wmayer
6ae540b053
fixes #0003137 : Unit UserString wrong
2017-07-24 16:52:03 +02:00
Itai Nahshon
4bd0766c72
Do not use C++11 utf8 strings - not supported by VC2013.
2017-07-18 17:43:09 +02:00
Itai Nahshon
bdd656ed98
Spelling
2017-07-18 17:41:51 +02:00
Itai Nahshon
258ca0723d
Add UnitsSchemaMmMin - izes are only in mm, speed in mm/munute.
2017-07-18 17:41:36 +02:00
luzpaz
937445c973
Added missing apostrophe
2017-07-16 11:40:32 -03:00
luzpaz
9bc7518046
fix typo
2017-07-10 19:29:55 -03:00
luzpaz
73ea82f9dd
fix typos
2017-07-10 19:29:55 -03:00
wmayer
2f5ff3186c
fix for mixing up SchemeVersion and FileVersion
2017-07-06 17:59:01 +02:00
wmayer
4caf59fd8b
implement object serialization for Vector class
2017-06-22 21:52:53 +02:00
Markus Lampert
a0d3d020eb
Proper taskk panel cleanup on escape.
2017-06-21 11:41:35 -07:00
wmayer
19d55fa227
fix issues in CoordinateSystem class and expose to Python
2017-06-20 21:22:59 +02:00
wmayer
c8084ac5c5
quantities must be expressed in units m,g,s for MKS and internal scheme
2017-06-18 23:43:42 +02:00
Itai Nahshon
a42391fa3b
Add Units schemaTranslate for Unit::Velocity.
...
Independent of scale, use only mm/min or in/min because it is compatible
with GCODE feed rate units.
(My use case is definition os feed-rates in PathLoadTool.py).
2017-06-18 17:11:49 +02:00
wmayer
13b0bdb6a6
fix build failure on FreeBSD, support colored output to terminal
2017-06-18 12:26:05 +02:00
wmayer
4cda387e61
py3: support of Python 3.4
2017-06-06 23:49:42 +02:00
wmayer
729cfd8155
py3: fox compiler warnings
...
issue 0000995
2017-06-04 00:17:57 +02:00
wmayer
34db2e4c55
Py3: in Py2 use string instead of unicode for identifier
2017-06-03 10:51:05 +02:00
wmayer
bf162ebde9
py3: partially revert of getattr -> getattro because getattro is only needed for the static callback function
...
issue 0000995
2017-06-03 10:51:05 +02:00
looooo
6ad7dc1217
py3: change of getattr -> getattro
...
issue 0000995
2017-06-03 10:51:05 +02:00
looooo
2f467da92a
py3: base: repair compile-fail
2017-05-21 12:35:41 +02:00
Yorik van Havre
d4b7100bb2
py3: Base: files R-Z ported to python3
...
issue 0000995
2017-05-21 12:35:41 +02:00
wmayer
1902adf710
fix crash caused by PR761
2017-05-18 19:44:10 +02:00
Yorik van Havre
0bc16d353b
py3: Base: files I-R ported to python3
...
PyObjectBase.cpp and PyObjectBase.h not included
issue 0000995
2017-05-18 16:00:05 +02:00
looooo
1355495f07
vs 2013 has already version info grater 18
2017-05-17 16:39:28 +02:00
Yorik van Havre
ccebc7d16b
py3: Base: files A-I ported to python3
...
issue 0000995
2017-05-17 16:39:28 +02:00
wmayer
64d7cab373
fix build failure and make Py2/Py3 specific change
2017-05-15 22:36:21 +02:00
wmayer
1d8206acbf
Fix various issues:
...
+ fix dangling pointers when fetching Python error text
+ initialize members in overloaded constructors of Exception class
+ implement assignment operator in sub-class
+ move to PyCXX API to simplify handling with reference counting and reading values from the dict
2017-05-15 18:49:09 +02:00
Zheng, Lei
f14ef7058d
Console: added tag based log support
2017-05-13 17:46:38 +02:00
wmayer
f46e89a1ae
fix -Woverloaded-virtual
2017-05-13 16:46:49 +02:00
wmayer
55173f6b15
remove commented code
2017-05-13 16:09:30 +02:00
wmayer
dc03118b4b
improve whitespaces and reduce code duplication
2017-05-13 16:00:32 +02:00
wmayer
edbc56f48a
remove export macro from template class to fix linker errors on Windows
2017-05-13 15:48:17 +02:00