wmayer
9746106740
Gui: allow to set font family and size and syntax highlighting
2019-12-19 23:17:46 +01:00
donovaly
26196ae612
add mJ and kW
...
- also some fixes
- add conversions for forces
2019-12-19 13:31:12 +01:00
donovaly
94bae36cee
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
d10ca28c88
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
cc97145e9d
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
696719f3a1
Add GUI command to insert a text document into the active document
2019-12-11 16:01:31 +01:00
wmayer
097d5ab64d
handle possibly set Python error flag in DocumentPy::recompute() to avoid crash in debug mode
2019-12-09 12:29:07 +01:00
wmayer
1e33567a99
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
227a6d3e93
App: fix pyObjectToAny() in Python3
2019-12-09 00:37:34 +00:00
luz.paz
ea0868a433
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
875a463923
Used single quotes for single character in string::find algorithm, more efficient
2019-11-21 18:59:43 +01:00
asapelkin
5a75d2ff45
removed useless std::move on const and unmovable objects
2019-11-21 17:49:57 +01:00
asapelkin
ced8100ab9
use emplace_back instead of push_back where justified
2019-11-21 14:48:09 +01:00
wmayer
6300e09dd8
handle some more warnings: -Wkeyword-macro -Wdeprecated-declarations -Wextra-semi
2019-11-18 11:56:08 +01:00
wmayer
dc7c48c230
fix and suppress some more -Wgnu-zero-variadic-macro-arguments
2019-11-15 23:53:09 +01:00
wmayer
aa472d8460
[skip ci] suppress -Wgnu-zero-variadic-macro-arguments for some headers
2019-11-13 22:38:09 +01:00
wmayer
79ef4be9de
export typeid system to Python
2019-11-13 00:43:23 +01:00
Zheng, Lei
e3a6556878
App: fix PropertyXLink file path saving
...
Also modified ProeprtyLinkItem to show file path as tooltip.
2019-11-10 11:32:59 +01:00
wmayer
116c868d9e
[skip ci] support of style sheet in branding framework
2019-11-09 17:36:49 +01:00
wmayer
f00cb89201
fix crash when restoring a corrupted project fails
2019-10-25 20:58:06 +02:00
luz.paz
30a717beac
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
617a8d7598
Support for Frequency in quantity parser
2019-10-21 11:49:55 +02:00
wmayer
4d831ea442
Basic support for Frequency as unit
2019-10-20 18:14:56 +02:00
wmayer
d7a659f7d6
DocumentObjectGroup: do not touch group on child change
2019-10-20 15:53:35 +02:00
wmayer
ea824a6d7f
fix -Winconsistent-missing-override -Wunused-variable
2019-10-13 14:29:52 +02:00
Zheng, Lei
b19f82255c
App: fix wrong python function type in FreeCAD.open()
2019-10-09 13:45:32 +02:00
Zheng, Lei
8426ebe2ba
Fix various Py::Object leak
2019-10-08 17:53:20 +02:00
Zheng, Lei
c7a0e7a2f5
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
c6bad2e487
App: fix PropertyXLink file path update
2019-10-08 10:26:03 +02:00
Zheng, Lei
8d7287b8a6
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
5f0e060082
App: allow link properties for all App::Link
2019-10-08 10:23:42 +02:00
Zheng, Lei
c765ff8fa2
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
c26081f7dc
App: fix Document::isTransactionEmpty()
2019-10-08 10:22:51 +02:00
Zheng, Lei
092e79a9ce
App: migrate old SubElements in Link
2019-10-08 10:21:19 +02:00
Zheng, Lei
0b42b0b596
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
661da78141
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
df9e950f38
App: null pointer check in ComplexGeoData::noElementName()
2019-10-08 10:20:18 +02:00
Zheng, Lei
f6ad70195f
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
4bf4444d81
App: add DocumentObjectPy.evalExpression()
...
Allow easy evlauation of expression.
2019-10-07 17:24:31 +02:00
Zheng, Lei
2df4fb754b
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
Zheng, Lei
7d7bb650f7
App: add argument 'hidden' to FreeCAD.new/openDocument()
...
The keyword argument 'hidden' allows create/open document without 3D
view.
2019-10-07 14:25:27 +02:00
Zheng, Lei
2df3052ecf
Gui: add new API ViewProviderDocumentObject::allowOverride()
...
This API is used to delcare if a view provider can be used as an
override for a give object.
Conflicts:
src/App/DocumentObject.h
2019-10-06 17:22:57 +02:00
luz.paz
044213d6ad
Source typo fix (includes file rename)
2019-10-05 13:19:32 -04:00
luz.paz
d4e381d846
Crowdin: Fix creative common license name
...
Source: https://crowdin.com/translate/freecad/549/en-sv#6498160
2019-10-05 17:27:48 +02:00
luz.paz
fb32601746
Fix various (doxy) typos and whitespace issues
...
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-03 07:57:13 +02:00
wmayer
37287cf9d9
fix further file names vulnerabilities in core system and Image module
2019-10-02 15:07:13 +02:00
Zheng, Lei
36f7098257
App: extend Expression syntax
...
* Support sub-object reference syntax using the following syntax,
Part.<<Box.>>.Placement
or, with sub-object label referencing
Part.<<$Cube.>>.Placement
* Extend indexing support, including range based indexing, e.g.
A1[B2+1][C3][D4:-1]
* Add new constants, None, True, true, False, false.
2019-09-28 15:31:24 +02:00
Zheng, Lei
c3db1e02ec
App: add list/tuple() function to Expression
...
For easy creation of Python list/tuple using expression. Range
expression can now be expanded into list or tuple.
2019-09-28 15:30:55 +02:00
Zheng, Lei
38c47d6e95
Expression: split Expression.h to ExpressionParser.h
...
Split Expression details into a separate header to reduce recompilation
time on changes.
2019-09-28 15:30:41 +02:00
Zheng, Lei
8cbdc3ad5d
App: use Python number protocol in Expression
...
This adds support to do mul/div with matrix and vector, as well as
Python formated string with operator %.
2019-09-28 15:30:34 +02:00