Commit Graph

16539 Commits

Author SHA1 Message Date
wmayer
397902c205 split question text from warning text 2019-02-11 17:03:51 +01:00
luz.paz
604811596f Crowdin: cont... 2019-02-11 16:22:13 +01:00
luz.paz
112f3de671 Crowdin: Continuing to refine translation strings 2019-02-11 16:22:12 +01:00
wmayer
110f6f74a4 Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] 2019-02-11 16:12:50 +01:00
Mateusz Skowroński
92614e5688 Use QHash<K,T> instead of QMap<K,T> when K is a pointer. [-Wclazy-qmap-with-pointer-key] Thanks Clazy! 2019-02-11 15:39:15 +01:00
Mateusz Skowroński
fbdfe16462 Use faster form of QFileInfo(filename).exists(). [-Wclazy-qfileinfo-exists] Thanks Clazy! 2019-02-11 15:39:15 +01:00
Mateusz Skowroński
082647b2d1 Remove unused non-trivial variables. [-Wclazy-unused-non-trivial-variable] Thanks Clazy! 2019-02-11 15:39:15 +01:00
Mateusz Skowroński
317bcd59c9 Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy! 2019-02-11 15:39:14 +01:00
Bernd Hahnebach
216106e407 Material: Py3 fixes in mat card writer 2019-02-11 15:18:24 +01:00
wmayer
0c37c7f5a5 simplify creation of strings 2019-02-11 13:46:58 +01:00
wmayer
9067d6a738 simplify creation of string 2019-02-11 13:03:51 +01:00
wmayer
b1d086463d Fix theoretically possible format string vulnerability 2019-02-11 11:49:12 +01:00
carlopav
8aa1cee1f9 Update DraftTools.py 2019-02-10 22:44:09 +01:00
carlopav
0091f2513e Update DraftGui.py
added value to store last edit toolbar mode
2019-02-10 12:03:26 +01:00
carlopav
3b4aaab869 Edit tool Arc 3 points editing
Updated the edit tool to edit arc by 3 points. Just a dubt: i did a bit of a workaround using Part.ArcOfCircle to compute the values of the new arc.
2019-02-10 11:55:26 +01:00
Yorik van Havre
2ac0851d4c Draft: Small bugfix 2019-02-09 20:37:36 -02:00
donovaly
ae3b57be3b export Flattened SVG fixes for python 3
To be able to export as flattened SVG with the Conda build of FC one needs these fixes.
2019-02-09 20:01:44 -02:00
carlopav
1401c00d60 Update DraftTools.py
Updated first part of file from FreeCAD/FreeCAD
2019-02-09 20:00:38 -02:00
carlopav
a23a9499bc Update DraftTools.py
Refined last commit code
2019-02-09 20:00:38 -02:00
carlopav
4f7804dc10 Update DraftTools.py
Modified arc editing:
- middle editpoint control radius
- end editpoint control first and last angle;
2019-02-09 20:00:38 -02:00
carlopav
e3ab6a1e1b Update DraftTools.py
Update Edit tool to edit wall base objects.
2019-02-09 20:00:38 -02:00
furti
27a467a44b Fix missing DWG imports in ArchSectionPlane.getSVG
When a DWG file is imported into FreeCAD it gets imported as a Part
object with a compound shape. One would imagine, that such an object
should be rendered like a symbol inside a TechDraw View. But when the
imported shape is inside a SectionPlane that also contains solids, the
shape is not included in the SVG.

The problem is, that getCutShapes only uses solid shapes, when a volume
was cut before. But the imported DWG is a flat 2D object and has no solids
inside.

To fix it, the getSVG method will check if an object looks like a draft
object, meaning:
 - It has a shape
 - It has no solids
 - It has no volume

When it finds such a shape, it will treat it like a draft object. So
it is displayed like a symbol in the resulting SVG.

https://forum.freecadweb.org/viewtopic.php?f=3&t=34079
2019-02-09 19:53:54 -02:00
carlopav
4059ecf62e Merge remote-tracking branch 'upstream/master' 2019-02-09 00:28:30 +01:00
carlopav
c88fadde54 Update DraftTools.py
Updated first part of file from FreeCAD/FreeCAD
2019-02-08 23:27:21 +01:00
carlopav
ef7552955a Update DraftTools.py
Refined last commit code
2019-02-08 23:13:15 +01:00
carlopav
85604f22f6 Update DraftTools.py
Modified arc editing:
- middle editpoint control radius
- end editpoint control first and last angle;
2019-02-08 23:06:35 +01:00
Yorik van Havre
7ee0e4d439 Updated master translation files 2019-02-08 19:16:21 -02:00
Yorik van Havre
4a5cf9c52f Tools: Updated translation scripts to handle only the master (untranslated) ts files 2019-02-08 19:15:56 -02:00
Yorik van Havre
f14633d182 Added untranslated 'master' .ts files where missing 2019-02-08 18:50:13 -02:00
Yorik van Havre
b2619e7eb7 Tools: Discard obsolete strings in translation files 2019-02-08 18:32:10 -02:00
GeneGH
09da55e90f Repair pythonopen in line 126 for Python3
Python 3 is fussy about match of data type for a file open or write. Python 2 does not seem to care if a string is written with a 'wb' indicating a binary type, but Python 3 flags it as an error.
2019-02-08 11:06:05 -02:00
furti
cce889b21c Fix missing door symbols in getSVG
The ArchSectionPlane has a built in SVG Cache. But the door symbols and
a few other things are not inside the cache. This things not inside the
cache rely on the presence of a cutface. But this cutface was only built
when the cache is not available.

So the First invocation after the cache was cleared added the symbols.
The next invocations of the method, with a cached SVG did not calculate
the symbols again, because the cutfaces where missing.

This commit fixes it by calculating the cutfaces independent from the
cache.

Reported in https://forum.freecadweb.org/viewtopic.php?f=3&t=33987
2019-02-08 11:05:17 -02:00
luz.paz
d040a656b4 Typos cont. + whitespace 2019-02-08 11:01:24 -02:00
luz.paz
4cfda0c3a5 Misc. typos
Found via `codespell`
2019-02-08 11:01:24 -02:00
Dion Moult
140d085517 Move hardcoded tab shortcut for cycling elsewhere in prep for refactor 2019-02-08 10:59:26 -02:00
Dion Moult
334a2a31d0 Allow tabbing to cycle through objects to snap
To do this, the object snapping code has been refactored into a snapToObject function. This allows it to be called on different objects easily. A new base class which handles the tab event has been added.
2019-02-08 10:59:26 -02:00
Yorik van Havre
18b5f238ae Arch: Fixed py3/encoding bug 2019-02-07 21:05:09 -02:00
carlopav
0b4d69ea18 Merge pull request #1 from carlopav/carlopav-patch-3
Update DraftTools.py
2019-02-06 21:45:51 +01:00
carlopav
636708c90d Update DraftTools.py
Update Edit tool to edit wall base objects.
2019-02-06 21:44:58 +01:00
paullee
f431226bb8 Fix Right Align Railing Offset Bug 2019-02-06 10:13:37 -02:00
rokuster
59f39e2a33 file uri instead of relative path for images
Windows conda build needs a file uri to the image. This fix needs also changes in StartPage.py
2019-02-06 10:13:11 -02:00
rokuster
ddc27357f5 Fix Images Display Issues
- Replace relative Add-On Image Path with full file uri in StartPage.js file
- Fix a missing absolute file path
- Fix a duplicated data folder entry in the Resourcepath
2019-02-06 10:13:11 -02:00
Bernd Hahnebach
c0e8a4f310 FEM: mechanical result object, add comment in regard of read only 2019-02-06 10:10:46 -02:00
Bernd Hahnebach
38675fb0f5 FEM: result tools, small code improvements 2019-02-06 10:10:46 -02:00
Bernd Hahnebach
8c1c221f25 Data: update FEM 3D example 2019-02-06 10:10:46 -02:00
Bernd Hahnebach
d8d185fe19 Data: update FEM 2D example 2019-02-06 10:10:46 -02:00
Bernd Hahnebach
62264e69f1 FEM: import tools, code improvements 2019-02-06 10:10:46 -02:00
Bernd Hahnebach
2c0ed3c041 FEM: import tools, some comments 2019-02-06 10:10:46 -02:00
Yorik van Havre
50895db6c1 Arch: Small bugfix in spaces 2019-02-04 22:35:16 -02:00
Markus Lampert
07910613dd Restrict removal of g0 to clearance height to the engraving of the last base model. 2019-02-04 22:21:28 -02:00