bofdahof
847e2f5c85
Base: Units: refactor
...
Refactor Units making it constexpr, immutable, with repetition reduced.
Separate data from code.
Constexpr constructed units allow constructing predefined Quantities
from predefined unit types.
2025-06-03 09:31:38 +02:00
Ladislav Michl
47c1565edf
Base: remove explicit namespace-name qualifier from *PyImp.cpp
...
Explicit Base namespace-name is used randomly across PyImp sources.
Remove it.
2025-04-27 00:05:32 +02:00
Ladislav Michl
24d55dc616
Base: cleanup includes in *PyImp.cpp
...
Sort includes and implicitely add missing ones. While there
consistently explain where generated files some from.
2025-04-27 00:05:32 +02:00
Ladislav Michl
986a3b4f7a
Base, Gui: remove lefovers from xml -> pyi conversion
2025-04-25 11:57:24 +02:00
Ladislav Michl
2ea8a633ac
Base: Quantity: return std::string
2024-12-23 17:48:42 +01:00
Ladislav Michl
0907c7bfda
Base: Units: return std::string
2024-12-23 17:48:42 +01:00
Ladislav Michl
2d0ce24496
Base: Units: hide internals
2024-12-23 17:48:42 +01:00
Ladislav Michl
95b37fa806
Base: Do not use else before return
2024-01-21 16:14:12 +01:00
wmayer
5c306f6e2a
fix readability-*:
...
* readability-uppercase-literal-suffix
* readability-named-parameter
2023-11-16 01:22:08 +01:00
wmayer
e85c383bff
Base: apply clang format
2023-11-13 12:01:26 -05:00
wmayer
010dca8303
Base: C++ core guidelines: init variables
2023-08-24 18:48:52 +02:00
wmayer
2bc90e6090
Base: modernize C++: return braced init list
2023-08-18 00:36:24 +02:00
wmayer
cbc0bfc24d
Base: cosmetic changes
2022-05-12 17:49:55 +02:00
wmayer
88ded38ca1
Base: only handle Base::ParserError exceptions for quantity expressions
2022-01-22 01:15:12 +01:00
wmayer
af16ab02a0
Base: remove some more deprecated Py2 code
...
and remove deprecated void from function signature and replace 0 or NULL with nullptr
2021-04-26 10:29:48 +02:00
luz paz
142c2c2c4d
Base: remove Py2 code
2021-04-26 09:23:58 +02:00
luz paz
d5f6c096b8
Base: Fix header uniformity, whitespace, and doxygen
...
[skip ci]
2020-11-22 18:12:16 +01:00
wmayer
24bb210a0c
Python: [skip ci] change order of supported arguments in UnitPy::PyInit
2020-05-27 22:03:05 +02:00
wmayer
ff3cdfaf74
Python: [skip ci] exception handling in PyInit to avoid to close application
2020-05-26 22:55:07 +02:00
luz.paz
d36c3ebe57
Trivial code formatting for some {.cpp,.h} files
2020-04-06 12:55:27 +02:00
wmayer
34a083b159
handle possible exceptions for FreeCAD.Units.Unit(input string)
2019-11-03 19:01:27 +01:00
wmayer
1081403d21
Expose some standard units and quantities to Python
2019-02-12 15:12:19 +01:00
wmayer
83f61b4372
implement true divide handler of the number protocol for Quantity
2018-10-27 15:27:27 +02:00
wmayer
7480544967
fix typo
2018-03-11 18:34:18 +01:00
Yorik van Havre
0e9e49cbcc
py3: Base: files R-Z ported to python3
...
issue 0000995
2017-05-21 12:35:41 +02:00
wmayer
f408f3180b
fix -Wextra in FreeCADBase
2016-09-21 15:02:02 +02:00
wmayer
09e1483f10
improve whitespaces
2016-07-17 12:46:46 +02:00
Sebastian Hoogen
f2367c6c19
bugfix in unit parser
...
partly revert to 810fadab23
and change python string handling to "et" method
2014-10-05 14:44:04 -03:00
Sebastian Hoogen
6ad50db01b
fixes #1744 Use unicode in Unit system
2014-09-20 08:58:06 +02:00
wmayer
89b5d7e6f1
+ extend number protocol
2014-02-14 13:53:47 +01:00
wmayer
e916d65a5c
+ extend number protocol
2014-02-14 13:45:56 +01:00
wmayer
98bab1ebbe
+ extend number protocol
2014-02-14 12:46:30 +01:00
jriegel
112a672fec
Fix another one....
2013-12-16 00:26:47 +01:00
jriegel
d5d9ea9c30
Add unti support to Sketcher
2013-12-15 22:47:47 +01:00
jriegel
401cb13035
Switching Quantity parser to UTF8
2013-12-09 23:50:52 +01:00
jriegel
272e60671b
some fixes and comparison interface for Unit and Quantity python objects
2013-12-06 00:06:58 +01:00
jriegel
168ca35851
implementing Quantity further
2013-09-10 18:27:24 +02:00
jriegel
e23febcf32
Start new Unit and Quantity system
2013-08-11 23:03:34 +02:00