Commit Graph

31 Commits

Author SHA1 Message Date
luz.paz
019f73852c src/App: [skip ci] fix header uniformity
This PR fixes header uniformity across all `src/App` files
2019-12-25 11:38:43 +01:00
wmayer
4d831ea442 Basic support for Frequency as unit 2019-10-20 18:14:56 +02:00
wmayer
9fa56345cf core system
force strict ISO C++ (-Wpedantic)
TODO: still a lot of variadic macros are not valid ISO C++
2019-09-18 01:01:14 +02:00
Zheng, Lei
ced27a69c6 PropertyExpressionEngine: convert to link type property
PropertyExpressionEngine is changed to derived from a new class
PropertyExpressionContainer, which is in turn derives from
PropertyXLinkContainer. This makes PropertyExpressionEngine a link type
property that is capable of external linking. It now uses the unified
link property APIs for dependency management and tracking of object
life time, re-labeling, etc.

ObjectIdentifier is modified to support sub-object reference, but is
not exposed to end-user, because expression syntax is kept mostly
unchanged, which will be submitted in future PR. There is, however,
one small change in expression syntax (ExpressionParser.y) to introduce
local property reference to avoid ambiguity mentioned in
FreeCAD/FreeCAD#1619

Modified Expression/ExpressionModifier interface to support various link
property API for link modification.
2019-08-17 14:52:09 +02:00
Oliver Oxtoby
62d33fc0d5 Base: Make units of PropertyQuantity settable from Python code
The previous implementation did not allow the unit to be set after it
is initialised by the default constructor - this fix makes it possible
to set the unit by explicitly assigning a Unit object.
2018-08-11 16:12:17 +02:00
wmayer
e9975ee814 support to assign long to Quantity with Py2 2017-06-28 23:12:00 +02:00
looooo
e6202f46e9 py3: App: files D-Z ported to python3
issue 0000995
diff to py3-branch will remain in the following files in src/App:
- ExtensionContainer.cpp
- FeaturePythonPyImp.h +.inl
most likely these files depend on Tools and Base
2017-05-11 19:19:17 +02:00
wmayer
fb7094bf31 use specialized exception classes 2017-04-28 18:49:11 +02:00
Yorik van Havre
fe40bad92d Added new property type App::PropertyVolume 2016-10-04 16:02:30 -03:00
wmayer
c636974ec8 fix -Wextra in FreeCADApp 2016-09-21 16:05:36 +02:00
Yorik van Havre
8af437a35a Added App::PropertyArea (same as PropertyLength but uses Area units) 2016-08-29 19:26:11 -03:00
wmayer
2acb38daa7 + fix clang warning: -Woverloaded-virtual 2015-10-02 20:42:16 +02:00
Mateusz Skowroński
05f95c0506 Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
Eivind Kvedalen
a45a663655 Added setValue/getValue/canonicalPath/getPaths/verifyPath methods to various Property classes. 2015-09-21 14:51:03 +02:00
wmayer
49a521be62 + set DBL_MAX as maximum for units 2014-11-24 14:30:50 +01:00
wmayer
9fb670ae16 + fixes #0001794: new defined as a macro sometimes conflicts with boost 2014-10-22 12:39:43 +02:00
wmayer
ec4af5b22c + give more information when assigning wrong type to quantity property 2014-07-07 13:56:23 +02:00
wmayer
3444b885c4 + fix whitespaces and a few minor things 2014-05-12 14:14:23 +02:00
Stefan Tröger
e0bf5c25e3 add inputfield to property editor for PropertyQuantity and PropertyQuantityConstraint 2014-05-12 09:40:14 +02:00
jriegel
e1fca95d56 PropertyUnits takes Unicode python strings 2014-02-16 22:19:58 +01:00
jriegel
aca751daf4 switch the physical Properties to Quantity and add Pressure and Force 2014-02-16 22:19:56 +01:00
wmayer
67c72af58a + remove unneeded methods from PropertyLength 2014-02-13 17:24:03 +01:00
wmayer
e0edec90f5 + PropertyLength inherits PropertyQuantity 2014-02-13 17:03:48 +01:00
wmayer
e8eb0bd828 + support loading projects with old pad features, fix critical bug where the unit gets replaced 2014-02-12 15:14:02 +01:00
jriegel
f265f551c2 Switching Quantity parser to UTF8 2013-12-09 23:50:52 +01:00
jriegel
84601cc346 Objects for Results of FEM analysis 2013-11-27 20:14:58 +01:00
jriegel
c8cc4a179a integrate Quantities into PropertyView and activate preferences again 2013-09-25 21:59:24 +02:00
jriegel
00ea24e07e Integrate Werners & Jans double branch
Move from float to double
Further suggestions for float -> double move
Moved Tools2D from float to double
More suggestions for float->double move from Gui subdirectory
Changes to FEM constraint visuals for float->double move
Suggested changes for float -> double move
Suggestions for Part module moving float -> double
2013-09-24 11:00:57 +02:00
jriegel
78ba09a490 start PropertyQuantity and InputField 2013-09-24 11:00:54 +02:00
wmayer
609072f140 + in setPyObject() only use classes derived from Base::Exception 2013-07-05 15:29:04 +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