Commit Graph

19231 Commits

Author SHA1 Message Date
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
d700744052 fixes 0004059: Tooltips for Gui::QuantitySpinBox not showing [skip ci] 2020-01-09 22:39:47 +01:00
wmayer
a03244fa1e Gui: [skip ci] when changing expression of a widget then set tooltip only for the label child but not for the widget itself
this allows that a custom tooltip can be set
2020-01-09 21:35:13 +01:00
wmayer
4df8233ec9 Gui: [skip ci] avoid weird acronyms in function names 2020-01-09 17:28:31 +01:00
wmayer
222a84423d Gui: [skip ci] avoid weird acronyms in function names 2020-01-09 17:23:12 +01:00
wmayer
1f92535883 PartDesign: [skip ci] set explicit encoding of Python files for backward compatibility 2020-01-09 17:07:04 +01:00
wmayer
4d6f531aaf Gui: [skip ci] reduce size of image settings dialog 2020-01-09 16:03:28 +01:00
wmayer
67f84faa07 fix Qt4 build failure 2020-01-09 14:35:17 +01:00
wmayer
625d252cb1 Gui: implementation classes don't inherit from UI classes any more 2020-01-09 14:30:45 +01:00
wmayer
97fef55d66 fixes #0004244: Std_SetAppearance always appears on a corner of the secondary monitor 2020-01-09 11:26:30 +01:00
wmayer
36026f0eec Gui: [skip ci] DlgDisplayPropertiesImp doesn't inherit from its UI class any more 2020-01-09 11:00:16 +01:00
wmayer
8cd289c370 Gui: [skip ci] restore bottom margin of group box in placement dialog 2020-01-09 09:51:04 +01:00
Bernd Hahnebach
c00af06846 FEM: console messages line break improvements 2020-01-09 08:10:07 +01:00
wmayer
004fda205e Gui: [skip ci] fix Qt4 build failure 2020-01-09 02:40:10 +01:00
wmayer
2fcfa48274 Gui: [skip ci] reduce height of Placement dialog 2020-01-09 02:26:17 +01:00
wmayer
c0aedf29da Gui: [skip ci] adjust content to size after hiding bottom button row 2020-01-08 23:38:20 +01:00
wmayer
2e31417aa4 Gui: [skip ci] fix regression of placement dialog 2020-01-08 21:42:57 +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
donovaly
d1c983a0d0 Attachment dialog improvements
- explicitly set the tooltips since the one in the .ui file were not taken for QuantitySpinBoxes (workaround for bug https://freecadweb.org/tracker/view.php?id=4059)
- uniform the height of all LineEdits in the TaskAttachmentEditor.ui (the 3 angles were higher than the 3 movements)
2020-01-08 15:21:37 +01:00
vocx-fc
1a15ae6b9a Arch: add missing Arch_CutLine icon 2020-01-08 15:21:16 +01:00
vocx-fc
111822bfee Arch: add missing Arch_CutLine tool from 43c5f27 2020-01-08 15:21:16 +01:00
carlopav
9478fe0403 [Draft] Edit cleanup
[Draft] Edit further cleanup
2020-01-08 15:20:36 +01:00
carlopav
c87bc0a8ef [Draft] Edit: add support for arc editing in App::Part 2020-01-08 15:20:36 +01:00
carlopav
18350dbf9d [Draft] Edit: improved context menu and fix for arc editing
[Draft] Edit small bugfix
2020-01-08 15:20:36 +01:00
carlopav
796a3259de [Draft] Edit bugfix
Fixed contemporary editing of Draft and Part objects.
Implemented better showTrackers and hideTrackers functions.
2020-01-08 15:20:36 +01:00
carlopav
bee0784188 [Draft] Edit cleanup
Cleaned up imports a suggested by @vocx.
Also cleaned up various things inside the tool.
[Draft] Edit small change in imports


[Draft] Edit updated documentation
2020-01-08 15:20:36 +01:00
carlopav
89d843d639 [Draft] Edit: set shortcut to D,E
Changed subelement highlight to S,E
[Draft] Edit bugfix


bugfix
2020-01-08 15:20:36 +01:00
carlopav
717fc06856 [Draft] Edit: context menu for Bezcurve editing 2020-01-08 15:20:36 +01:00
carlopav
c687d43bab [Draft] Edit bugfix
traker was not updated if endEditing function was called by numericInput
2020-01-08 15:20:36 +01:00
carlopav
e5b700942a [Draft] Context menu for EditTrackers
Initial support for context menu.
Menu is triggered by Alt+Click or by pressin E Key.
Menu is customized on the clicked object.
Supported functions ATM: addPoint, deletePoint.
2020-01-08 15:20:36 +01:00
howetuft
1666b28836 Change IF(...LESS...) into IF(...VERSION_LESS...) 2020-01-08 15:19:27 +01:00
howetuft
17ed2b196a [Cmake] Update FindPySide2Tools for PySide2 5.14 - issue #4229
Since PySide2 5.14, 'pyside2-rcc' and 'pyside2-uic' have been renamed into plain 'rcc' and 'uic'.
This leads FindPySide2Tools.cmake to no longer find rcc/uic, as reported in bug #4229 (https://www.freecadweb.org/tracker/view.php?id=4229) and prevents compilation.
FindPySide2Tools has been updated accordingly.
2020-01-08 15:19:27 +01:00
vocx-fc
692fa7e702 Draft: new module for 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 of functions and attributes that were moved:
`stringencodecoin`, `arrowtypes`, `typecheck`,
`getParamType`, `getParam`, `setParam`, `precision`,
`tolerance`, `epsilon`, `getRealName`, `getType`,
`getObjectsOfType`, `isClone`, `getGroupNames`,
`ungroup`, `shapify`, `getGroupContents`,
`printShape`, `compareObjects`, `loadSvgPatterns`,
`svgpatterns`, `getMovableChildren`, `getWindows`,
`utf8_decode`.

Moreover, many of these functions were renamed
to comply better with PEP8 guidelines, particularly
the use of `snake_case`. For example, `getGroupNames`
is now `get_group_names`; `getMovableChildren`
is now `get_movable_children`.

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-08 15:16:55 +01:00
vocx-fc
5143369fc9 Draft: add new command for Draft CircularArray
Added object, viewprovider, icon; gui command definition, task panel,
add command to InitGui; add callbacks, and delay system.
2020-01-08 15:16:07 +01:00
wmayer
b1189aef6e Gui: override QOpenGLWidget::paintGL() in sub-class [skip ci] 2020-01-08 13:28:50 +01:00
wmayer
8e5151002b Gui: set image creation method in settings dialog 2020-01-08 12:49:56 +01:00
vocx-fc
31e2bbe3a9 Fem: variable name 'children', not 'childs' 2020-01-08 11:54:34 +01:00
Bernd Hahnebach
8004fc8b61 FEM: small code improvements (got forgotten on parent commit) 2020-01-07 23:10:33 +01:00
Bernd Hahnebach
1ac9099e79 FEM and Part: check if catched exception has an error message 2020-01-07 23:01:47 +01:00