wmayer
8e4494c5c2
App: add methods to change import/export module of a registered filetype
2020-01-18 15:29:44 +01:00
wmayer
0b9626cf61
Py2: [skip ci] provide time._process_time
2020-01-18 12:21:00 +01:00
wmayer
482723851e
fix const correctness
2020-01-13 02:30:39 +01:00
wandererfan
58db711ff5
[App]add isEmpty method to PropertyFileIncluded
...
- for consistency with PropertyFile
2020-01-12 11:38:53 -05:00
donovaly
d1b354fc6b
add units Gauss, Weber and Oersted
2020-01-07 07:36:22 -03:00
donovaly
fcffd48dd4
ExpressionParser.l: fix a typo
2020-01-05 15:00:46 +01:00
donovaly
68ea38cc8d
add the units Ohm and Siemens
2020-01-05 15:00:46 +01:00
Zheng, Lei
9d66dbbbbf
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
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
95e852051e
[skip ci] MPH already defined
2019-12-24 13:33:38 +01:00
donovaly
3da00267cf
cosmetics to keep the overview
2019-12-24 13:31:00 +01:00
donovaly
b255475d7c
missing parts from from commit 33b8054228
...
- also add keV and MeV since these are the units used in practice
2019-12-24 13:31:00 +01:00
donovaly
a6a043a6f2
also add unit THz as requested
2019-12-23 16:49:45 +01:00
donovaly
edd97de6a2
add units Mpsi, cal and kcal
...
- also ass missing parts from commit 0021efbf
2019-12-23 16:49:45 +01:00
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