Commit Graph

22614 Commits

Author SHA1 Message Date
wmayer
d178c2bf91 Part: [skip ci] expose ShapeUpgrade_UnifySameDomain to Python 2020-10-05 16:57:16 +02:00
wmayer
78e1adbcb1 Gui: [skip ci] fix parsing of arguments of ControlPy methods
See https://forum.freecadweb.org/viewtopic.php?f=10&t=50805
2020-10-04 20:04:23 +02:00
wmayer
0cc65089c4 Path: [skip ci] fix memory leak in CommandPy::getParameters()
For some background information see: https://forum.freecadweb.org/viewtopic.php?f=15&t=50583
2020-10-04 19:43:54 +02:00
wmayer
99b5aaf64e Sketcher: [skip ci] fix handling of icon search paths when another workbench uses a sketcher command 2020-10-01 16:28:23 +02:00
wmayer
e75834321b Gui: [skip ci] add an alias for Gui.isCommandActive 2020-10-01 16:03:08 +02:00
Yorik van Havre
2b77f0f915 Arch: Added .tsv export format to Arch schedule 2020-10-01 14:59:55 +02:00
wmayer
abcaef8601 Gui: [skip ci] add method to access the Inventor viewer as QGraphicsView 2020-10-01 13:54:12 +02:00
Yorik van Havre
de1a46f68f Arch: Fixed group support in IFC export 2020-10-01 10:30:26 +02:00
Yorik van Havre
2a06962b83 Arch: Added 'Show Label' view property to section planes 2020-10-01 10:30:09 +02:00
Yorik van Havre
9aae7b5bef Arch: Fixed custom csv bug in ArchProfile 2020-10-01 10:29:33 +02:00
vocx-fc
5001a80d81 Sketcher: new icons for two existing commands
New SVG icons, `Sketcher_DeleteConstraints`, `Sketcher_DeleteGeometry`
for two commands which previously used the very simple icon
`Element_SelectionTypeInvalid` (a single red X).

These icons clarify that the commands are used to delete
the constraints and the geometry, respectively.
2020-10-01 09:59:26 +02:00
vocx-fc
e7c21e453d Sketcher: add further commands to the toolbars
Most tools should be exposed in the toolbars and not kept
"hidden" in the menus.
* `ConstrainInternalAlignment` is added in the "constraints" toolbar.
* `SelectElementsWithDoF` is added in the "tools" toolbar.

Also amend the name of the `Sketcher_BSplineConvertToNURB` command.
2020-10-01 09:59:26 +02:00
vocx-fc
a4b2f56a2a Sketcher: upgrade icons for existing commands
`SelectConstraints`, `SelectElementsAssociatedWithConstraints`,
these include the icon for parallel constraint, which was upgraded
in 4fb193aa.

`SelectRedundantConstraints`, `SelectConflinctingConstraints`,
previosuly were the same with only a small color variation (orange
outline and red outline). Now they have another symbol overlayed
(lightning and exclamation mark) to distinguish them more clearly.
The parallel icon was also upgraded in these icons.

The `Move` icon is also made more clear. The first element
now has a clear outline, instead of being a faded green color
which is hard to see. An arrow is added to imply movement
from the first position to the second position.
2020-10-01 09:59:26 +02:00
vocx-fc
c592e5bf28 Sketcher: small changes to two .ui dialogs 2020-10-01 09:59:26 +02:00
vocx-fc
16c8f55770 Sketcher: move icons to general subdirectory 2020-10-01 09:59:26 +02:00
vocx-fc
86bf3f4b1c Sketcher: move other icons into their subdirectories 2020-10-01 09:59:26 +02:00
vocx-fc
817f2f15aa Sketcher: add two icons reorient and validate 2020-10-01 09:59:26 +02:00
vocx-fc
5c14c8f3fa Sketcher: move icons to tools subdirectory
Add the icon path to the workbench's `InitGui.py`.
2020-10-01 09:59:26 +02:00
vocx-fc
7a1d3a486c Sketcher: move icons to splines subdirectory
Add the icon path to the workbench's `InitGui.py`.
2020-10-01 09:59:26 +02:00
vocx-fc
c63dd6230f Sketcher: move icons to geometry subdirectory
Add the icon path to the workbench's `InitGui.py`.
2020-10-01 09:59:26 +02:00
vocx-fc
b64ed4c72e Sketcher: move icons to elements and pointers subdirectories
Add the icon paths to the workbench's `InitGui.py`.
2020-10-01 09:59:26 +02:00
vocx-fc
e0604d05ef Sketcher: move icons to constraints subdirectory
Add the icon path to the workbench's `InitGui.py`.
2020-10-01 09:59:26 +02:00
vocx-fc
748c387607 Sketcher: move icons to obsolete subdirectory
Icons not used in the source code, but which may be kept for historical
reasons, or in case they are used in the future.
2020-10-01 09:59:26 +02:00
vocx-fc
273e6a30ae Sketcher: small style changes to make the lines shorter 2020-10-01 09:59:26 +02:00
vocx-fc
ec0acf44f1 Sketcher: rename constraint icons to be more consistent with the rest
`Sketcher_ConstrainBlock` to `Constraint_Block`.
`Sketcher_ConstrainLock` to `Constraint_Lock`, and the corresponding
`_Driven` variant.

Adjust the icons in the taskpanel for the sketcher constraints,
elements, and for the action menu for constraints.

Adjust the icon order in the `Sketcher.qrc` resource file.
2020-10-01 09:59:26 +02:00
Matsievskiy S.V
ba69518c36 AddonManager: update python source formatting
Update formatting in compliance with pep8 with the following exceptions:

 * truncate to 120 characters in line

 * prefer double quotes `"` to single quotes `'` in strings
2020-10-01 09:53:34 +02:00
Matsievskiy S.V
07db27d0dd Addon Manager: change lookup mechanism
Switch addon lookup mechanism from parsing html page to extracting info
from .gitmodules file.
This simplifies logic and allows using non-Github repos.

Readme for Github repos are extracted from HTML pages using regex.

Gitlab pages are converted to HTML using Python Markdown lib if present,
falling back to displaying raw markdown.
In this case image links are converted from relative to absolute paths.
2020-10-01 09:53:34 +02:00
wmayer
2b49d60ac5 Sketcher: [skip ci] fix build failure 2020-10-01 08:10:28 +02:00
luz paz
bb2a4050e7 Mesh: fix typos in SVG markup descriptions [skip-ci] 2020-09-30 22:40:55 +02:00
John Yani
2cf6d093d6 Proper check for Qt version 2020-09-30 22:36:22 +02:00
John Yani
893fd13b99 HiDPI: Hot point scaling is only required for X11 2020-09-30 22:31:43 +02:00
sliptonic
e926e12279 Merge pull request #3879 from sliptonic/feature/vcarve
[Path] Feature/vcarve  using new PathVoronoi from mlampert.  Needs testing
2020-09-30 09:47:31 -05:00
Yorik van Havre
c2cec2c38a Merged crowdin translations 2020-09-30 14:37:02 +02:00
Yorik van Havre
545055f65f Updated ts files 2020-09-30 13:06:53 +02:00
vocx-fc
0ff058ca94 Surface: Vertices instead of Vertexes in the task panel 2020-09-30 12:32:36 +02:00
vocx-fc
c6d2d37773 Surface: new Sections icon
The `Surface_Sections` command was recently introduced in v0.19
(9c34952, c6fb8df) so its icon is updated as well.
2020-09-30 12:32:36 +02:00
vocx-fc
6a9c644383 Surface: upgraded Surface icons
The `Surface_Workbench` icon is the same as `Surface_Surface`,
which is now an SVG and not XPM.
The lines are thicker and the colors have been adjusted
with a gradient, instead of being solid and plain looking.

Also the following were updated: `BSplineSurface`,
`BezierSurface`, `Cut`, `Filling`, `Sewing.

The `BezierSurface`, `Cut`, and `Sewing` icons are not currently used
in the workbench, but they were still updated in case
a future command uses them.
2020-09-30 12:32:36 +02:00
vocx-fc
1d486dc669 Surface: new SVG icon for the workbench, rename others
Replace the hard-coded XPM icon in `InitGui.py` for the workbench
with an SVG file, which at this time is identical to the `Surface` icon.
Change `CMakeLists.txt` to properly install this new icon.

Rename all icons, so that all have the `Surface_` prefix.

Use the new icon names in the viewproviders and task panels.
2020-09-30 12:32:36 +02:00
John Yani
d5d5301144 Fix indentation 2020-09-30 12:31:15 +02:00
John Yani
826f6c1bf3 HiDPI cursors: Support Qt < 5
Forum thread: https://forum.freecadweb.org/viewtopic.php?p=433621#p433621
2020-09-30 12:31:15 +02:00
Chrismettal
9d3e1b764d [Stylesheet] Add new "behave" dark stylesheet
Modified stylesheet based on one of the "darker" stylesheets to fit the Behave color theme
2020-09-30 12:29:19 +02:00
vocx-fc
2ce3629443 Draft: importSVG considers Shape-less objects for export
If the object has a `Shape` it uses its bounding box to enlarge
the page size of the SVG. If it does not have a `Shape`
("Draft Text", "Draft Dimension", other `App::FeaturePython`)
it uses `Draft.get_bbox` to calculate one bounding box
from the viewprovider if possible.
2020-09-30 12:06:48 +02:00
vocx-fc
9227330fff Draft: get_bbox function to get the bounding box from RootNode
Normally the bounding box is taken from `Shape.BoundBox`.
Certain objects don't have a `Shape`, like `App::FeaturePythons`,
so the bounding box is calculated from `ViewObject.RootNode`.
2020-09-30 12:06:48 +02:00
Markus Lampert
a71632b914 More integer type cleanup for the voronoi python interface 2020-09-29 19:50:33 -05:00
wmayer
710a565184 Part: [skip ci] expose BRepOffsetAPI_MakeFilling to Python 2020-09-30 01:19:30 +02:00
Markus Lampert
68fecf9a90 Unified voronoi indices for python to be of type long 2020-09-29 14:58:42 -05:00
sliptonic
d29b2dcd3f whitespace 2020-09-29 14:03:37 -05:00
Amritpal Singh
58c20b2567 Adopted vocx-fc comment. 2020-09-29 18:50:30 +02:00
Amritpal Singh
b7b24cbb6c Fixed bug: In exporting IFC with shared clone shapes geometry, clone of clone object displaced because of bug in Draft.get_clone_base function. 2020-09-29 18:50:30 +02:00
sliptonic
8b772b03a5 rename OTHER 2020-09-28 14:58:09 -05:00