Commit Graph

453 Commits

Author SHA1 Message Date
wmayer
2059d47e2c move encodeAttribute from Property to Persitence to avoid code duplication 2017-11-26 18:38:45 +01:00
luzpaz
56af703746 Fix Techdraw UI typo found via crowdin + misc. typos
Ref: https://crowdin.com/translate/freecad/27911/en-eu#6503377
2017-11-26 15:48:20 +01:00
luzpaz
b24a9c9ad4 Misc. typos
- Tooltip uniformity 
- source comment typo fixes
- remove double whitespaces
2017-11-24 09:45:08 -02:00
wmayer
8c7bb0cd55 fix warning 2017-11-14 21:47:56 +01:00
wmayer
25fb77a5a0 fixes #0002419: Matrix rotation and Units compatibility 2017-10-25 13:50:06 +02:00
wmayer
16e6d887e7 implement FileInfo::completeExtension 2017-10-24 19:38:01 +02:00
wmayer
9aab910981 add derived unit electric potential 2017-10-16 21:56:13 +02:00
wmayer
fb1fcf3885 extend InventorBuilder 2017-10-16 11:03:21 +02:00
Unknown
15c0d38536 Capitalize beginning of tooltips + Typos
Capitalized all remaining uncapitalized tooltips. 
+ Fixed typo in instantiate() function. Shouldn't have any repercussions on the code, AFAICT. 
+ other typos
2017-10-13 00:26:53 +02:00
Harald Geyer
ed7630503c Fix rendering of Unit::ThermalConductivity
The old behaviour was:
>>> Quantity('0.9 W/m/K').UserString
u'0.00 W/mm/K'
>>> Quantity('1.1 W/m/K').UserString
u'1.10 W/m/K'
>>> Quantity('1100 W/m/K').UserString
u'1100.00 W/m/K'

The new behaviour is:
>>> Quantity('0.9 W/m/K').UserString
u'0.90 W/m/K'
>>> Quantity('1.1 W/m/K').UserString
u'1.10 W/m/K'
>>> Quantity('1100 W/m/K').UserString
u'1.10 W/mm/K'
2017-10-10 20:35:33 +02:00
Unknown
ad457ba96b Misc. Typos 2017-10-09 19:59:33 +02:00
wmayer
74b7373e48 fixes #0002323: Workbench Start recent list of 3 files is - after a crash - not sync with recent list in File Menu Recent list of 4 files 2017-10-05 10:38:42 +02:00
wmayer
9d977b90a4 check for null string 2017-10-04 20:03:59 +02:00
wmayer
6df1ace5d5 include missing header 2017-10-04 18:58:40 +02:00
luzpaz
ab8f8919b6 Misc. typos
+ some are doxy others are just comment code.  
+ some minor whitespace and grammatical tweaks. 
+ app/SCL/* typos have also been submitted upstream (https://github.com/stepcode/stepcode/pull/366). So it's ok to merge them in to master.
2017-10-04 17:59:11 +02:00
wmayer
cea54396e7 expose Attach/Detach of parameter group class to Python 2017-10-04 17:16:22 +02:00
wmayer
13da3cd226 remove deprecated Type attribute 2017-09-18 19:01:25 +02:00
wmayer
770c9ce095 fix various coverity issues 2017-09-15 11:48:38 +02:00
wmayer
eaf04d5bfd set invalid bounding box if no arguments passed 2017-09-12 17:23:39 +02:00
DeepSOIC
96f3f0fa26 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
94fcefd207 direct support of Volt in units framework 2017-09-04 12:08:29 +02:00
wmayer
012cffefe8 implement slicing for VectorPy class 2017-08-21 15:16:03 +02:00
wmayer
c4c1034e4e 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
533a78026a add method toFormat to get number format from character 2017-08-20 18:50:13 +02:00
Oliver Oxtoby
858df142e2 Base: Make Quantity parser accept 1/[unit] as [unit]^-1 2017-08-20 16:53:57 +02:00
Oliver Oxtoby
1165d3c6e0 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
38fa712032 Base: Add DynamicViscosity and SpecificEnergy units 2017-08-20 16:50:11 +02:00
wmayer
7a95962037 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
572bd0ae01 Exception extension to only report once 2017-08-17 22:45:40 +02:00
Abdullah Tahiri
3c630dc319 Exceptions: translation support 2017-08-17 22:44:11 +02:00
wmayer
49d75f88be fix warning 2017-08-13 16:58:06 +02:00
wmayer
892e78d445 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
a51b2f6ce7 fix Py3 issue 2017-07-25 01:07:09 +02:00
wmayer
e20975c2ef add attribute to control format of a quantity via Python 2017-07-24 22:47:10 +02:00
wmayer
7ab8a9996d fixes #0003137: Unit UserString wrong 2017-07-24 16:52:03 +02:00
Itai Nahshon
a8faef009b Do not use C++11 utf8 strings - not supported by VC2013. 2017-07-18 17:43:09 +02:00
Itai Nahshon
29ff650f65 Spelling 2017-07-18 17:41:51 +02:00
Itai Nahshon
a91c5bbae7 Add UnitsSchemaMmMin - izes are only in mm, speed in mm/munute. 2017-07-18 17:41:36 +02:00
luzpaz
a36c90cee4 Added missing apostrophe 2017-07-16 11:40:32 -03:00
luzpaz
960b7c175d fix typo 2017-07-10 19:29:55 -03:00
luzpaz
d5d45e2661 fix typos 2017-07-10 19:29:55 -03:00
wmayer
6a14bb7451 fix for mixing up SchemeVersion and FileVersion 2017-07-06 17:59:01 +02:00
wmayer
e7c7c07cda implement object serialization for Vector class 2017-06-22 21:52:53 +02:00
Markus Lampert
03c5168d89 Proper taskk panel cleanup on escape. 2017-06-21 11:41:35 -07:00
wmayer
654276c49d fix issues in CoordinateSystem class and expose to Python 2017-06-20 21:22:59 +02:00
wmayer
63f9e6c528 quantities must be expressed in units m,g,s for MKS and internal scheme 2017-06-18 23:43:42 +02:00
Itai Nahshon
634cbf1566 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
6415b4699b fix build failure on FreeBSD, support colored output to terminal 2017-06-18 12:26:05 +02:00
wmayer
9513792292 py3: support of Python 3.4 2017-06-06 23:49:42 +02:00
wmayer
8ce343291b py3: fox compiler warnings
issue 0000995
2017-06-04 00:17:57 +02:00