Commit Graph

19024 Commits

Author SHA1 Message Date
Zheng, Lei
df548bf82e Gui: fix Document::signalInEdit
Make it sure it is signaled with the correct document
2019-12-21 15:26:02 +01:00
Zheng, Lei
1cbec1a60d Gui: fix Std_Transform tool
The problem is caused by tracking of editing object placement
introduced in 719c11e714.

After this commit, any editing object can disable placement tracking by
calling Gui::Document::setEditingTransform() inside either
ViewProvider::startEditing() or setEditingViewProvider().
2019-12-21 15:17:48 +01:00
wmayer
b795162660 allow to choose a custom units schema in calculator 2019-12-21 13:36:25 +01:00
wmayer
98dfe7c387 add posibility to use a unit schema other then the system schema to represent a quantity 2019-12-21 13:35:14 +01:00
wmayer
04b54cd6a5 Base: [skip ci] replace raw pointers of UnitsSchema with unique_ptr 2019-12-21 10:45:22 +01:00
wmayer
4bcb43ebd2 Base: [skip ci] make UnitSystem an enum class 2019-12-21 10:10:19 +01:00
wmayer
702ae025c7 Gui: [skip ci] reduce confusion m vs. mm in units calculator 2019-12-20 16:54:56 +01:00
wmayer
43e5933e3d Base: [skip ci] handle acceleration and force m/s^2 2019-12-20 16:53:26 +01:00
wmayer
492af81db1 extend units calculator 2019-12-20 14:45:05 +01:00
wmayer
b6ae122351 Gui: set/get number of decimals of a quantity spin box 2019-12-20 14:44:40 +01:00
donovaly
07549653cd UnitsCalculator fixes
- missing initial value
- missing check for invalid units starting with 'e'
2019-12-20 13:49:01 +01:00
wmayer
af011dabd9 Gui: [skip ci] use defined font when creating text editor 2019-12-20 12:41:24 +01:00
wmayer
d969581ff8 Gui: allow to set font family and size and syntax highlighting 2019-12-19 23:17:46 +01:00
Bernd Hahnebach
99e5bededb Mod: gitattributes, add some more comments 2019-12-19 22:40:05 +01:00
Bernd Hahnebach
5be60cf1cb Merge pull request #2796 from berndhahnebach/lineendings
Lineendings
2019-12-19 22:30:49 +01:00
Bernd Hahnebach
6f68bf627e Mod: some comments in gitattributes 2019-12-19 22:26:24 +01:00
Bernd Hahnebach
50036da5ed Complete: file endings, normalize them and let git manage them 2019-12-19 22:26:24 +01:00
Bernd Hahnebach
210d3cffb6 Idf: file endings, normalize them and let git manage them 2019-12-19 22:26:24 +01:00
Bernd Hahnebach
75b7cab2d1 OpenSCAD: file endings, normalize them and let git manage them 2019-12-19 22:26:24 +01:00
Bernd Hahnebach
0032353035 Show: file endings, normalize them and let git manage them 2019-12-19 22:26:24 +01:00
Bernd Hahnebach
fa25f974f1 Tux: file endings, normalize them and let git manage them 2019-12-19 22:26:24 +01:00
Bernd Hahnebach
7a652357fc line endings, better handling in module directory 2019-12-19 22:26:15 +01:00
wmayer
228f89638d Python: change generation of callback functions for class or static methods 2019-12-19 17:55:12 +01:00
wmayer
df25aed148 Base: [skip ci] fix block comment in lexer file 2019-12-19 17:08:11 +01:00
donovaly
2949afb55b add mJ and kW
- also some fixes
- add conversions for forces
2019-12-19 13:31:12 +01:00
wmayer
f1cd9c05f8 Test: [skip ci] add new tests for quantities 2019-12-19 13:31:12 +01:00
donovaly
317dd26a7d correct Unit::Work conversions
- also add conversions for Unit::Mass and Unit::Power
2019-12-19 13:31:12 +01:00
donovaly
f5f0728a9f take care of the UnitsCalculator
- also fix uF and uH
- add conversion routine for C and T
2019-12-19 13:31:12 +01:00
donovaly
1ffaaf100a generate QuantityLexer.c
- also set proper unit conversions
- fix MilliWatt and MilliMole
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
Bernd Hahnebach
ba688b05f5 Arch: IFC export, add building parts with undefined ifc type to building structure 2019-12-19 09:02:06 +01:00
Bernd Hahnebach
d98e958166 Arch: add gitattributes file to let git manage file endings and normalize them 2019-12-19 07:51:09 +01:00
Bernd Hahnebach
8f7220da51 Draft: add gitattributes file to let git manage file endings and normalize them 2019-12-19 07:51:09 +01:00
Bernd Hahnebach
3db86602e5 AddonManager: add gitattributes file to let git manage file endings and normalize them 2019-12-19 07:51:09 +01:00
wandererfan
e499f38424 [TD]fix SectionFace hatch on SVG Export 2019-12-18 15:03:22 -05:00
wandererfan
c05ad5c875 [TD]add Tolerance size factor to preferences 2019-12-18 07:01:46 -05:00
wandererfan
92e714726f [TD]remove duplicate line 2019-12-18 07:01:46 -05:00
wandererfan
6a31795600 [TD]improve presentation of tolerance text 2019-12-18 07:01:46 -05:00
Bernd Hahnebach
537620aa32 Arch: export IFC, add missing debug prints 2019-12-18 09:49:29 +01:00
Bernd Hahnebach
2315cc5f78 Arch: export IFC, fix building parts export with ifc type set to Undefined 2019-12-18 09:35:14 +01:00
Bernd Hahnebach
c251caa934 FEM: gmsh, small changes in comments and update of comments in unit test file 2019-12-17 22:41:42 +01:00
Bernd Hahnebach
97b6c3eb04 FEM: gmsh, new interpolation parameter, fix unit test 2019-12-17 22:41:33 +01:00
Yorik van Havre
597de362c3 Draft: Fixed regression in Rotate tool 2019-12-17 15:30:31 -03: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
d49edcc982 Revised per feedback from review 2019-12-17 15:13:48 -03:00
luz.paz
fc52c2e59b Follow-up typo and whitespace fixes 2019-12-17 15:13:48 -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
Syres916
2ff80fa47b [AddonManager] Improve Non GitPython Error..
...Handling. Previous output when clicking Macros tab caused errors in Report View with no Macros loaded at all.
2019-12-17 15:12:41 -03:00
vocx-fc
ed8ba392c2 Sketcher: Constraint_Parallel, new icon, with the parallel lines of different lenghts, so that the constraint isn't mistaken for the equal lengths constraint. 2019-12-17 15:10:13 -03:00
vocx-fc
92fa38152e Gui: better icon for the Origin object
During the LinkMerge, a new icon
`Std_CoordinateSystem.svg` was used
for the `App::Origin` object that appears in
`PartDesign::Body`. However, this icon
doesn't look as good as the original `CoordinateSystem.svg`.

This commit renames the old icon to the new name. The newer icon
is kept as an alternate version `Std_CoordinateSystem_alt.svg`.

In addition, a new icon `Std_Placement.svg`
is provided for the `App::Placement` object, which previously
was also using `CoordinateSystem.svg`.
In this way, `App::Placement` and `App::Origin`
use different icons and there is no confusion
in the tree view.
2019-12-17 15:08:30 -03:00