Roy-043
093368a6ad
Draft+Arch: Fix crash related to SoBrepEdgeSet
2022-09-28 17:32:12 +02:00
Yorik van Havre
028517323c
Merge pull request #7462 from Roy-043/Draft-Improve-drag-and-drop-behavior-for-Layers
...
Draft: Improve drag-and-drop behavior for Layers
2022-09-09 11:25:25 +02:00
Roy-043
333fc6448c
Draft: Improve drag-and-drop behavior for Layers
2022-09-08 11:38:45 +02:00
Roy-043
a71a06291b
Update view_dimension.py
...
The FlipArrows property for angular dimensions is handled differently.
2022-09-07 19:20:49 +02:00
Roy-043
c5a79d3909
Draft: Fix alignment of angular dimension arrows
2022-09-06 15:37:15 +02:00
Roy-043
39c2ff4e45
Draft: Fix flatten wire
2022-09-04 09:45:39 +02:00
Yorik van Havre
4555878c10
Merge pull request #7173 from Roy-043/Draft_Fix_setEdit_in_view_text.py
...
Draft: Fix setEdit in view_text.py
2022-07-18 10:44:31 +02:00
Roy-043
d0c5345998
Update view_hatch.py
...
There is no need for `Gui.Control.closeDialog()` in `setEdit`
`Set colors` removed from the context menu.
2022-07-14 09:20:25 +02:00
Roy-043
081cf4c783
Update view_facebinder.py
...
There is no need for `Gui.Control.closeDialog()` in `setEdit`
2022-07-14 09:17:08 +02:00
Roy-043
16ec7d02c0
Update view_text.py
...
Oops: import DraftGui instead of import Draft
2022-07-12 21:58:34 +02:00
Roy-043
202f4fdc7f
Draft: Fix EditMode for hatch, facebinder and shapestring
2022-07-12 13:30:01 +02:00
Roy-043
2f9c0713b2
Draft: Fix setEdit in view_text.py
...
The setEdit function should import the Draft module to make sure draftToolBar is available.
2022-07-12 13:14:37 +02:00
marioalexis84
44a989f3b9
Draft: Make ShapeString editable by double-click - fixes #5885
...
* Draft: Make ShapeString editable - fixes #5885
2022-04-08 17:47:41 +02:00
Yorik van Havre
002ba58bad
Arch: Fixed IFC import/export of dimensions
2022-04-06 11:35:18 +02:00
marioalexis
659e84e57f
Draft: Remove Python 2 type support
2022-03-28 18:02:23 -03:00
Matthijs Kooijman
f49b38a595
Draft: Fix incorrect use of in operator
...
Looking at the surrounding code, this should be `==` rather than `in`.
The code does work as intended, because a string is always a substring
of itself, but better to fix it anyway.
Seems this was broken since this code was first introduced in commit
94b0fe1599 (Draft: clean up ViewProviderLabel class)
2022-03-20 14:45:52 +01:00
Roy
d5615fc6a6
Draft: Fix several translation issues
2022-01-28 14:01:42 -06:00
Roy-043
f24a5d1fc7
Draft: fix Draft_Label viewprovider
2021-12-17 11:35:44 +01:00
Roy-043
5e0f8bf604
Draft: fix layer handling of PointColor and PointSize
...
Draft_Layer did not handle PointColor and PointSize.
2021-11-28 11:52:07 +01:00
Roy-043
8b7718f823
Draft: Fix merge layers
...
The "Merge layer duplicates" Tree view context menu option for LayerContainers did not work.
Additionally:
- Using `openTransaction` and `commitTransaction` is required for the `merge_by_name` function but also for the `add_layer` function. Otherwise undo-redo does not work properly.
- Have replaced `translate("Draft", ...)` with `_tr(...)`.
2021-10-27 08:32:10 +02:00
Yorik van Havre
f3ccc6d660
Merge pull request #5023 from marioalexis84/gui-encoding
...
Gui: Harmonize encoding/decoding between view, property editor and command line.
2021-10-14 12:24:49 +02:00
Roy-043
b6ec36fc3f
Draft_Hatch_ViewProvider -> ViewProviderDraftHatch
2021-10-07 15:08:53 +02:00
Chris Hennes
e94d7c32b5
Merge pull request #5060 from Roy-043/Draft-fix-2-svg-pattern-issues
...
Draft: fix 2 SVG pattern issues
2021-09-24 10:34:31 -05:00
Roy-043
744ed7be52
Draft-fix-2-svg-pattern-issues
...
List of patterns is now sorted A-Z.
2021-09-24 10:54:51 +02:00
marioalexis
00e95ba55d
Draft: Fix Unicode and UTF-8 encoding character behavior
2021-09-23 21:21:24 -03:00
Roy-043
6babbda88d
Update view_base.py
2021-09-23 20:24:35 +02:00
Roy-043
0c92514464
Draft: fix 2 edit mode issues
2021-09-23 20:16:53 +02:00
Yorik van Havre
129ad3b0bd
Merge pull request #5055 from Roy-043/Draft_fix_wpproxy_view_prop_group
...
Draft: fix wpproxy view properties group
2021-09-23 16:41:14 +02:00
Roy-043
edd4da121e
Draft: fix wrong type for layer transparency
...
Also fixed a typo.
2021-09-23 16:25:40 +02:00
Roy-043
612356edfe
Draft: fix wpproxy view properties group
...
View properties of a WP proxy should not appear in the Arch group.
2021-09-23 12:44:17 +02:00
Yorik van Havre
1c8b803f9e
Draft: Introduced Hatch command + object
2021-09-06 15:27:52 +02:00
Yorik van Havre
4869e040f8
Draft: Use different icon if object has AutoUpdate turned off
2021-07-16 12:24:26 +02:00
Yorik van Havre
c1643887fa
Merge pull request #4867 from marioalexis84/draft-label
...
Draft: Fix rotations and Circle marker in ViewProviderLabel - fixes #0003987
2021-06-30 10:53:07 +02:00
Yorik van Havre
257cdd8f42
Draft: Implemented edit mode for Draft texts
2021-06-28 15:47:42 +02:00
marioalexis
3383f43008
Draft: Fix rotations and Circle marker in ViewProviderLabel - fixes #0003987
2021-06-16 04:42:07 -03:00
Roy-043
cb07846ca8
Draft: Fix wrong tree icon for Draft_PointArray
2021-06-08 14:29:03 +02:00
Yorik van Havre
e2e380655b
Draft: Allow to set 'arch' unit override on dimensions
2021-04-29 19:51:34 +02:00
Yorik van Havre
aba520180e
Merge pull request #4548 from chennes/lgtmDraftColorArrayCreation
...
[Draft] Eliminate unused loop iteration variables
2021-03-30 13:00:45 +02:00
Chris Hennes
ffcd0f5c65
[Draft] Enable Transform context menu item
...
The "Transform" and "Set Colors..." context menu items did not work on
most Draft objects because the View Provider has a setEdit() function,
which overrides any edit action provided at a higher level (e.g. by
Part). This commit checks the mode of the edit, and if it is not zero,
behaves as though the setEdit() function does not exist, allowing Part
to provide the required context menu behavior.
2021-03-23 09:12:56 -05:00
Chris Hennes
91f8b6c11e
[Draft] Eliminate unused loop iteration variables
...
When creating arrays of colors, the color information is often created
to be the same length as some array of objects. In three instances this
was achieved with a loop over that list of objects, even though the
objects themselves are never used. This commit eliminates those loops
and creates the required number of color instances directly.
Identified by LGTM.
2021-03-01 09:19:20 -06:00
Yorik van Havre
e672aa26b4
Draft: Small layer improvements
...
- Added 'Print Line Color' property
- Added 'Add new layer' context menu action to layers group
2020-12-15 16:43:33 +01:00
marioalexis
2b2524451e
Draft: Fixes #0004293 : Vertical dimensions can't be created in XZ and YZ working plane
2020-11-13 10:58:34 +01:00
vocx-fc
bc0cfdfda2
Draft: use new name of the icon Part_3D_object
...
It is defined in the Part Workbench. Before, it was called `Tree_Part`.
2020-10-22 15:11:45 +02:00
Yorik van Havre
71cd301ca7
Draft: Added pref option to set default dimension unit
2020-10-14 17:21:27 +02:00
Yorik van Havre
7f95da95c1
Draft: Compatibility fix
2020-10-14 17:17:56 +02:00
Yorik van Havre
5609b38e9a
Draft: Fixed patterns + added default pattern size pref option
2020-10-12 15:12:50 +02:00
Zheng, Lei
607c14b512
Draft: add support for point link array
2020-09-21 14:01:39 +02:00
vocx-fc
e477283ffc
Draft: new PathTwistedArray object
...
It takes a `Shape` and replicates it around a path, while at the
same time adding a rotation to each copy. This can be used to create
a twisted "ribcage" from a frame-like object, which can be used
in a more complicated `Shape`, for example, a tunnel or bridge
object.
2020-09-03 12:34:16 +02:00
wmayer
1a16cde1f5
Coverity: Structurally/Logically dead code
2020-07-20 17:34:28 +02:00
vocx-fc
831e517717
Draft: migrate Layer object and function to the new structure
...
Move `make_layer` to `draftmake`; `Layer` and `LayerContainer`
to `draftobjects`; `ViewProviderLayer` and `ViewProviderLayerContainer`
to `draftviewproviders`.
The make function and the classes are imported in `Draft.py`
to support the usage of the older `VisGroup`.
2020-07-20 14:21:15 +02:00