wmayer
4a343ab31e
Base/App: fix warnings from code analysers:
...
* convert old-style-casts to explicit C++ casts where possible
* make some implicit conversions explicit
2022-03-06 23:49:30 +01:00
Uwe
4d0a5c045c
[Base] Units and Uui: remove unused includes
2022-02-24 11:08:56 +01:00
Preslav
354987b45d
Ammending stiffness units
2021-09-17 11:08:08 +02:00
Preslav
5030d8bb6d
Added stiffness units to FreeCAD [mN/m, N/m, kN/m, MN/m]
2021-08-16 12:27:41 +01:00
luz paz
01b21e0d06
Base: Fix header uniformity, whitespace, and doxygen
...
[skip ci]
2020-11-22 18:12:16 +01:00
wandererfan
4c233cd9e9
[Base]use degree symbol in Imperial schemes
2020-08-29 11:13:35 -04:00
wmayer
e14e5b845e
[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
011e5aedfa
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
bab14b5895
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
2484cd56ef
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
6f1249d989
PVS: The 'then' statement is equivalent to the 'else' statement.
2019-02-17 19:52:35 +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
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
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
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
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
8e0a6cb832
fix conversion factors for psi and ksi
2018-03-31 15:43:16 +02:00
Yorik van Havre
4671f82b97
Units: Fixed Building Imperial schema - closes #2792
2018-03-08 12:45:59 -03: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
61b62ee314
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
787cfc660d
use const reference in schemaTranslate to avoid tmp. copy
2016-08-05 10:33:41 +02:00
wmayer
1783528282
improve whitespaces, fix typos
2016-08-05 10:00:12 +02:00
WandererFan
de7b7e50ab
Use Units Decimals pref in Quantity::getUserString
2016-07-21 12:55:39 -04:00
Yorik van Havre
cb92f2b3ec
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
4efe02c3cc
Draft: Fixed buggy units display in Draft widgets
2016-07-03 18:41:33 -03:00
Yorik van Havre
26d25807fb
Fixed buggy Building-US units schema
2016-05-29 12:15:35 -03:00
Yorik van Havre
71dd688d56
Added new units schema: US building (feet + inches + fraction)
2016-05-26 20:37:53 -03:00
jriegel
105732fe40
New Unit-Schema ImperialDecimal
2014-04-15 18:25:00 +02:00
jriegel
bb8fcd2bf3
Using Locale delimiter
2014-02-10 21:25:53 +01:00
jriegel
0470ad002b
Try to fix std::abs() error...
2013-12-16 00:20:47 +01:00
jriegel
491643ab60
fix negative value cascading in unti schemas
2013-12-16 00:02:58 +01:00
jriegel
16c6fe2470
Add unti support to Sketcher
2013-12-15 22:47:47 +01:00
jriegel
21c517eff0
Some fixes in unit system
2013-12-08 19:48:13 +01:00
jriegel
69a4bbc46a
Implement the three major unit system schemas
2013-12-05 18:16:31 +01:00
jriegel
6ff12d9a4b
new userString methode
2013-12-03 19:03:12 +01:00
jriegel
87c8d5b022
Switching the UnitsApi to the new Quantity system
2013-12-03 19:03:08 +01:00
jriegel
c8cc4a179a
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