donovaly
66354b3c58
add units Gauss, Weber and Oersted
2020-01-07 07:36:22 -03:00
donovaly
ca07b05fab
ExpressionParser.l: fix a typo
2020-01-05 15:00:46 +01:00
donovaly
05dadb4c75
add the units Ohm and Siemens
2020-01-05 15:00:46 +01:00
Zheng, Lei
d5a4996d25
App: fix Expression _moveCells()
...
The problem is caused by not refreshing ObjectIdentifier internal cache
after change.
2019-12-31 15:23:03 +01:00
luz.paz
4f308dc03c
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
72065b0d39
[skip ci] MPH already defined
2019-12-24 13:33:38 +01:00
donovaly
6aeb0910b8
cosmetics to keep the overview
2019-12-24 13:31:00 +01:00
donovaly
cd8b63028c
missing parts from from commit d9d903faea
...
- also add keV and MeV since these are the units used in practice
2019-12-24 13:31:00 +01:00
donovaly
9c707479a6
also add unit THz as requested
2019-12-23 16:49:45 +01:00
donovaly
63bc9c5683
add units Mpsi, cal and kcal
...
- also ass missing parts from commit d7ca604c
2019-12-23 16:49:45 +01:00
wmayer
d969581ff8
Gui: allow to set font family and size and syntax highlighting
2019-12-19 23:17:46 +01:00
donovaly
2949afb55b
add mJ and kW
...
- also some fixes
- add conversions for forces
2019-12-19 13:31:12 +01:00
donovaly
82dc8e88f5
add the following units:
...
- mmol
- ml
- bar
- mbar
- kJ
- kWh
- eV
- C
- T
- F (p, n, u, m)
- H (n, u, m)
2019-12-19 13:31:12 +01:00
luz.paz
a00769bebf
LGTM: remove unnecessary 'pass' statements
...
Issue: A pass statement is only necessary when it is the only statement in a block (the list of statements forming part of a compound statement). This is because the purpose of the pass statement is to allow empty blocks where they would otherwise be syntactically invalid. If the block already contains other statements then the pass statement is unnecessary.
Recommendation: Remove the pass statement.
Relevant links:
1a82a5e136/files/src/Mod/Import/stepZ.py (x78f479c31a062553) :1
1a82a5e136/files/src/Mod/OpenSCAD/OpenSCADCommands.py (xad4868ffcdf82498) :1
1a82a5e136/files/src/App/FreeCADInit.py (x9034ec6815c48e38) :1
2019-12-17 15:15:53 -03:00
luz.paz
06cf1d5b70
Fix various typos [skip ci]
...
Fixed via
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2019-12-17 15:13:48 -03:00
wmayer
13db5b0560
Add GUI command to insert a text document into the active document
2019-12-11 16:01:31 +01:00
wmayer
4a0ddd0a9e
handle possibly set Python error flag in DocumentPy::recompute() to avoid crash in debug mode
2019-12-09 12:29:07 +01:00
wmayer
fd741e4338
check returned value of PyUnicode_AsUTF8() before passing to a std::string to avoid possible segfaults
2019-12-09 12:23:58 +01:00
Zheng, Lei
13fd54a42f
App: fix pyObjectToAny() in Python3
2019-12-09 00:37:34 +00:00
luz.paz
379d041664
Fix typos and some trailing whitespace
...
Found via:
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2019-12-03 12:22:59 +01:00
asapelkin
8bc5b585c8
Used single quotes for single character in string::find algorithm, more efficient
2019-11-21 18:59:43 +01:00
asapelkin
bbbabf99ae
removed useless std::move on const and unmovable objects
2019-11-21 17:49:57 +01:00
asapelkin
e951094af9
use emplace_back instead of push_back where justified
2019-11-21 14:48:09 +01:00
wmayer
71dae0e639
handle some more warnings: -Wkeyword-macro -Wdeprecated-declarations -Wextra-semi
2019-11-18 11:56:08 +01:00
wmayer
7758509bda
fix and suppress some more -Wgnu-zero-variadic-macro-arguments
2019-11-15 23:53:09 +01:00
wmayer
33b0b1351e
[skip ci] suppress -Wgnu-zero-variadic-macro-arguments for some headers
2019-11-13 22:38:09 +01:00
wmayer
e1f85cd091
export typeid system to Python
2019-11-13 00:43:23 +01:00
Zheng, Lei
b0c9325432
App: fix PropertyXLink file path saving
...
Also modified ProeprtyLinkItem to show file path as tooltip.
2019-11-10 11:32:59 +01:00
wmayer
fd9054b3bf
[skip ci] support of style sheet in branding framework
2019-11-09 17:36:49 +01:00
wmayer
bb1aec9e60
fix crash when restoring a corrupted project fails
2019-10-25 20:58:06 +02:00
luz.paz
1c981e8f14
Fix typos and misc. formatting [skip ci]
...
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml`
2019-10-21 16:02:23 -03:00
wmayer
d7ca604c99
Support for Frequency in quantity parser
2019-10-21 11:49:55 +02:00
wmayer
3500451a04
Basic support for Frequency as unit
2019-10-20 18:14:56 +02:00
wmayer
d63b294586
DocumentObjectGroup: do not touch group on child change
2019-10-20 15:53:35 +02:00
wmayer
9ba5d3505c
fix -Winconsistent-missing-override -Wunused-variable
2019-10-13 14:29:52 +02:00
Zheng, Lei
363fe1b635
App: fix wrong python function type in FreeCAD.open()
2019-10-09 13:45:32 +02:00
Zheng, Lei
71c54272a0
Fix various Py::Object leak
2019-10-08 17:53:20 +02:00
Zheng, Lei
2896791376
App: fix getSubObject() in Link
...
Do not include scale in transformation output in
LinkBaseExtension::extensionGetSubObject()
2019-10-08 10:26:29 +02:00
Zheng, Lei
3de3f696e3
App: fix PropertyXLink file path update
2019-10-08 10:26:03 +02:00
Zheng, Lei
4eadbd038d
App/Gui: add ObjectStatus::NoAutoExpand
...
Used by App::Origin to disable selection auto expanding in tree view.
2019-10-08 10:23:57 +02:00
Zheng, Lei
0d181d0dde
App: allow link properties for all App::Link
2019-10-08 10:23:42 +02:00
Zheng, Lei
1833339359
App: add ScaleVector property to Link
...
This is a normally hidden property for non-uniform scaling
2019-10-08 10:23:05 +02:00
Zheng, Lei
472d114c00
App: fix Document::isTransactionEmpty()
2019-10-08 10:22:51 +02:00
Zheng, Lei
998f801d37
App: migrate old SubElements in Link
2019-10-08 10:21:19 +02:00
Zheng, Lei
f57283f598
Link: change sub-element linking mechanism
...
Previous multi-sub-element linking (e.g. Face, Edge) is supported
through SubElements of type PropertyStringList, which does not support
geometry element update tracking. This patch changes it to use
PropertyXLink's new multi-subname capability.
2019-10-08 10:20:50 +02:00
Zheng, Lei
4042d83362
App: allow multiple subname in PropertyXLink
...
PropertyXLink and PropertyXLinkSub now only differ in getPyObject().
This is to allow Link support of multiple sub-element
2019-10-08 10:20:36 +02:00
Zheng, Lei
a03b847507
App: null pointer check in ComplexGeoData::noElementName()
2019-10-08 10:20:18 +02:00
Zheng, Lei
41387fd991
App: fix dynamic property undo/redo
...
Instead of enforce property type match when undo/redo, modify various
property Paste() to make it type safe.
2019-10-07 17:24:31 +02:00
Zheng, Lei
533bbf8a8c
App: add DocumentObjectPy.evalExpression()
...
Allow easy evlauation of expression.
2019-10-07 17:24:31 +02:00
Zheng, Lei
44354b808b
App: add Expression built-in function mscale/minvert/create
...
mscale(matrix,vector|tuple) for scaling matrix
minvert(matrix|placement|rotation) for inverting matrix, placement or
rotation
create(type,arg...) for creating Python object of given type (currently
only support 'matrix', 'placement', 'rotation', 'vector'
2019-10-07 17:24:30 +02:00