Commit Graph

40 Commits

Author SHA1 Message Date
luz paz
d5f6c096b8 Base: Fix header uniformity, whitespace, and doxygen
[skip ci]
2020-11-22 18:12:16 +01:00
wandererfan
e989b5f7a4 [Base]use degree symbol in Imperial schemes 2020-08-29 11:13:35 -04:00
wmayer
ec8b1bc072 [skip ci] use QLocale class consistently to make it possible to change it application-wide 2020-03-26 16:37:45 +01:00
luz.paz
6f11ed298a src/Base: [skip ci] fix header uniformity
This PR fixes header uniformity across all `src/Base` files
2019-12-25 11:38:58 +01:00
donovaly
ce56205ed0 more fixes for the UnitsCalculator
- we must read out the unit system description UTF8 to get the characters ² and ³
- update unit system description according to today's unit "cft" addition
- don't hardcode the unit system descriptions in the .ui file
- add acceleration to imperial schema
2019-12-24 13:31:13 +01:00
wmayer
d9d903faea Units: extend parser to accept mph, sqft and cft. Fix a bug in imperial civil schema 2019-12-23 19:55:21 +01:00
wmayer
493a144080 PVS: The 'then' statement is equivalent to the 'else' statement. 2019-02-17 19:52:35 +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
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
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
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
a6a29467a3 improve whitespaces 2018-09-11 14:26:38 +02:00
hokieengr
77e40f32f0 Reformatted variable spacing. 2018-09-11 14:12:15 +02:00
hokieengr
10281ccc1f 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
1cbc20b0b1 fix conversion factors for psi and ksi 2018-03-31 15:43:16 +02:00
Yorik van Havre
46acd2f6a2 Units: Fixed Building Imperial schema - closes #2792 2018-03-08 12:45:59 -03: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
f39b89a54d add class QuantityFormat to control user string of Quantity
do some code refactoration to reduce duplicate code
2016-08-06 19:06:29 +02:00
wmayer
6176756b28 use const reference in schemaTranslate to avoid tmp. copy 2016-08-05 10:33:41 +02:00
wmayer
5cb8873794 improve whitespaces, fix typos 2016-08-05 10:00:12 +02:00
WandererFan
eabc483c6c Use Units Decimals pref in Quantity::getUserString 2016-07-21 12:55:39 -04:00
Yorik van Havre
223725ca82 Temporary workaround for the fractions issue in new imperial unit schema (using + between inches and fractions) 2016-07-09 14:01:07 -03:00
Yorik van Havre
1e333f4ef3 Draft: Fixed buggy units display in Draft widgets 2016-07-03 18:41:33 -03:00
Yorik van Havre
d6f31d5c4b Fixed buggy Building-US units schema 2016-05-29 12:15:35 -03:00
Yorik van Havre
ad92a2df25 Added new units schema: US building (feet + inches + fraction) 2016-05-26 20:37:53 -03:00
jriegel
aa5a2e1b3f New Unit-Schema ImperialDecimal 2014-04-15 18:25:00 +02:00
jriegel
9af9283d19 Using Locale delimiter 2014-02-10 21:25:53 +01:00
jriegel
e7e0bbfbe5 Try to fix std::abs() error... 2013-12-16 00:20:47 +01:00
jriegel
73684a9fdb fix negative value cascading in unti schemas 2013-12-16 00:02:58 +01:00
jriegel
d5d9ea9c30 Add unti support to Sketcher 2013-12-15 22:47:47 +01:00
jriegel
cfa7045408 Some fixes in unit system 2013-12-08 19:48:13 +01:00
jriegel
eb5cc8ed6c Implement the three major unit system schemas 2013-12-05 18:16:31 +01:00
jriegel
87c4741fac new userString methode 2013-12-03 19:03:12 +01:00
jriegel
3a3afa0783 Switching the UnitsApi to the new Quantity system 2013-12-03 19:03:08 +01:00
jriegel
44c07da571 integrate Quantities into PropertyView and activate preferences again 2013-09-25 21:59:24 +02:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00