Commit Graph

14781 Commits

Author SHA1 Message Date
vocx-fc
b52ac5fc6a Draft: move translate function to translate module
The translate mechanism in Draft depends on the `QtCore`
`translate` function. This is defined in its own module
so that `DraftGui.py` is not as big and hard to manage.

Other modules in Draft can import the translate function
without needing to import the entire interface, which
often causes errors and circular dependencies.

We can import `QtCore.QT_TRANSLATE_NOOP` at the top level
in `Draft.py` because it does not depend on the graphical
interface.
2020-01-15 10:05:52 +01:00
wmayer
25b3cfc170 issue #0004188: Editing a subtractive box in PartDesign doesn't show the shaded box 2020-01-15 10:00:47 +01:00
wmayer
bff7369e54 fixes #0004188: Editing a subtractive box in PartDesign doesn't show the shaded box 2020-01-15 01:33:28 +01:00
Zheng, Lei
5afd6a9641 Gui: fix screentshot 2020-01-14 15:59:38 +01:00
Bernd Hahnebach
1f05c8fa65 FEM: make sure results are loaded into the correct document 2020-01-14 13:44:53 +01:00
wandererfan
1da11e4e5c [TD]fix #4170 Unicode in Svg export on Win 2020-01-14 07:36:36 -05:00
Yorik van Havre
61daa6e2ba Fixed openscad 2020-01-14 13:14:22 +01:00
KeithSloan
6d2742c07c Update Ply to 3.11 2020-01-14 13:01:11 +01:00
donovaly
59d3a277b6 make clear that is is the local coordinate system 2020-01-14 12:56:46 +01:00
donovaly
af0485b75d [proposal] rename rotation angles
proposal for this discussion: https://forum.freecadweb.org/viewtopic.php?p=359619#p359482
2020-01-14 12:56:46 +01:00
Rene 'Renne' Bartsch
3844c4cf87 Refactor comments
Refactor comments.
2020-01-14 12:52:59 +01:00
Rene 'Renne' Bartsch
42b6fafd5a Refactor if statement
Refactor if statement
2020-01-14 12:52:59 +01:00
Rene 'Renne' Bartsch
36c831509e Add comment about M01 gCode.
Add comment about M01 gCode.
2020-01-14 12:52:59 +01:00
Rene 'Renne' Bartsch
539a9f23a5 Add basic Max Computer GmbH nccad9 postprocessor
This is a postprocessor file for the Path workbench. It is used to take a pseudo-gcode fragment outputted by a Path object and output real GCode suitable for the Max Computer GmbH nccad9 Computer Numeric Control used in german (vocational) schools.

Supported features:
- 3-axis milling
- manual tool change with tool number as comment
- spindle speed as comment

gCode files must use the suffix .knc !!!
2020-01-14 12:52:59 +01:00
vocx-fc
2ab75d7f23 Draft: move todo static class to the todo module
The todo class in `DraftGui.py` can be placed in its
own module so that `DraftGui.py` isn't as big
and hard to maintain.
2020-01-14 12:49:29 +01:00
wandererfan
d64d6a7c65 [TD]fix leader line display attributes 2020-01-14 06:41:35 -05:00
wmayer
127ae92e61 TechDraw: [skip ci] fix -Winconsistent-missing-override 2020-01-13 01:59:01 +01:00
wandererfan
00c69a9c64 [TD]fix LeaderLine noshow on doc load 2020-01-12 18:38:59 -05:00
Zheng, Lei
20c85d9cc4 Gui: fix screenshot 2020-01-12 18:50:37 +01:00
wandererfan
43115aced9 [TD]fix inconsistent override warnings. 2020-01-12 11:38:53 -05:00
wandererfan
513f3b55c5 [TD]embed geom hatch file in document 2020-01-12 11:38:53 -05:00
wandererfan
8d117827b8 [TD]embed Svg hatch file in Document 2020-01-12 11:38:53 -05:00
wandererfan
e81171147a [TD]use new PropertyFileIncluded.isEmpty() 2020-01-12 11:38:53 -05:00
wandererfan
d823952795 [TD]embed section hatch file(s) in Document 2020-01-12 11:38:53 -05:00
wandererfan
e4cd11e4e8 [TD]correct PropertyFileIncluded handling in Welding 2020-01-12 11:38:53 -05:00
wmayer
5673d299f9 implementation classes don't inherit from UI classes 2020-01-12 10:32:34 +01:00
wmayer
f97eb7026d fixes #0004182: Segfault when clicking constraints from a different viewport [skip ci] 2020-01-11 17:32:54 +01:00
WandererFan
49e4e45ff3 [TD]fix compile error on Win re M_PI 2020-01-10 18:04:41 -05:00
wmayer
8d1e1e4072 Gui: [skip ci] rename Location classes 2020-01-10 21:19:36 +01:00
Bernd Hahnebach
fa6513d7c7 Arch: import IFC, add commen to True North calculation 2020-01-10 17:01:58 +01:00
wmayer
9270322d25 Mod: [skip ci] implementation classes don't inherit from UI classes any more 2020-01-10 16:19:35 +01:00
wmayer
19c37012dd Mesh: [skip ci] refactor MeshTexture class to avoid code duplication 2020-01-10 14:05:42 +01:00
Bernd Hahnebach
7dd808ac6e Draft: SVG import, encode fix 2020-01-10 12:39:33 +01:00
vocx-fc
4b5f91f4c3 Draft: test_offset, test wire and closed shape (rectangle) 2020-01-10 10:09:22 +01:00
paullee0
885046b1c6 [DraftGeomUtils] OffsetWire() to accept input as Face as previously did.
Forum Discussion -
https://forum.freecadweb.org/viewtopic.php?f=23&t=42282&p=359233#p359233
2020-01-10 10:08:00 +01:00
hlg
feaf9b24dc [Arch] fix true north handling on IFC import and export 2020-01-10 10:07:08 +01:00
vocx-fc
ce2441c0b2 Draft: new module for GUI utility functions
Many auxiliary tools used by `Draft.py` can be defined
in another module. Many functions are moved to this module
so that `Draft.py` isn't as big and hard to maintain.

The following is a list o functions that were moved:
`get3DView`, `autogroup`, `dimSymbol`, `dimDash`,
`removeHidden`, `formatObject`, `getSelection`,
`getSelectionEx`, `select`, `loadTexture`.

Moreover, many of these functions were renamed
to comply better with PEP8 guidelines,
particularly the use of `snake_case`. For example,
`get3DView` is now `get_3d_view`.

Aliases are provided for the old names so that
other functions and classes that depend on these
won't break. The new names should be the official
programming interface, while the old names
should be deprecated at some point in the future.
2020-01-10 10:04:07 +01:00
zacl
cd764c6ddb Remove trailing whitespace 2020-01-10 10:01:56 +01:00
Zackles
d7d88da291 Add Proxy to Addon Manager with UI
Correct crash when Macro description is not reachable

Python crashed when under proxy - Macro list is charged - Proxy is undone ( internet connection lost) - Try to load macro description (u=None)

Add Proxy setting in Addon Manager Option UI

Correction of SSL context

Replace ssl.Purpose.CLIENT_AUTH by ssl.Purpose.SERVER_AUTH as context for a client

Add configuration of proxy setting UI

Add proxy management by urllib
2020-01-10 10:01:56 +01:00
Bernd Hahnebach
683fbffe4a FEM: frd result reading, improve error handling 2020-01-10 09:02:15 +01:00
wmayer
379018cde4 [skip ci] fix superfluous workarounds 2020-01-09 23:36:28 +01:00
wmayer
4df8233ec9 Gui: [skip ci] avoid weird acronyms in function names 2020-01-09 17:28:31 +01:00
wmayer
1f92535883 PartDesign: [skip ci] set explicit encoding of Python files for backward compatibility 2020-01-09 17:07:04 +01:00
Bernd Hahnebach
c00af06846 FEM: console messages line break improvements 2020-01-09 08:10:07 +01:00
wandererfan
b7190a8b50 [TD]refix Dim select area problem 2020-01-08 15:07:28 -05:00
paullee0
b9fc008e22 [ArchWall] Remove remarks about Werner's earlier commit 2020-01-08 15:22:54 +01:00
paullee0
5ea31c6b3e [ DraftGeomUtils ] - Fix Indent as commented on Github 2020-01-08 15:22:54 +01:00
paullee0
1ca234177c [ArchWall] Write back Werner's code in commit 58fdbdc - check tex.image is not None 2020-01-08 15:22:54 +01:00
paullee0
145f44377b [DraftGeomUtils] - Add per edge Align support
Per edge align feature
- OffsetWire() function is per-edge-aware of aligns information (alignList) for offsettg individual edge
- Instead of using dvec which universally offseting all edge consistently, it calculate vector per edge for offseting
- 2 modes of 'offsetting' to get 2 'offseted' wires from a basewire taking into per-each align info

It accept a normal info to make e.g. all wires in a Sketch gain consistent direction, instead of calculating from indiviual wires
2020-01-08 15:22:54 +01:00
paullee0
d0ac80e9ef [ArchWall] - Add per edge Align feature, and other complementary enabling codes
Per Edge Align Feature
- add OverrideAlign attribute to wall
- to know exactly which Sketch edge sorted into final Wires, so as to know each edge's width / align / etc.
  > sort Sketch edges by sorting Sketch.Geometry instead of Sketch.Shape Edge
  > this ensure consistency in sorting result
- pass widths, align, normal info to revised DraftGeomUtils.py and revised routine to get 2 wires from a basewires

Enabling works
- enable base objects to provide width and align per edge information by getWdiths() and getAligns() methods
- this enable base objects e.g. Sketch, DWire (functions being added) to store per edge info e.g. align, widths etc
  (already can do in SketchObjectPython)
2020-01-08 15:22:54 +01:00