Commit Graph

119 Commits

Author SHA1 Message Date
Roy-043
9c44d85161 [Draft] fix diffuse color issue when creating arrays (#8436) 2023-02-11 18:57:28 +01:00
Roy-043
4337885383 [Draft] update of Draft_Clone related to gui_utils.get_diffuse_color (#8430) 2023-02-11 16:21:18 +01:00
Roy-043
99ad01cda9 [Draft] fix ang dim arrows alignment issue related to asin (#8368) 2023-02-06 14:01:08 +01:00
Roy-043
633a89debf Draft: V0.18 VisGroups were not handled (#8234) 2023-01-23 11:27:52 +01:00
Roy-043
96e62f07eb Draft: improve color handling in gui_setstyle.py (#8219)
Alhpa values of colors were not correct.
2023-01-22 11:18:17 +01:00
Roy-043
f7a072b7c7 Draft: Fix and improve Draft_AnnotationStyleEditor (#8207)
* Draft: Fix and improve Draft_AnnotationStyleEditor

* Draft: Fix and improve Draft_AnnotationStyleEditor 2
2023-01-21 10:28:47 +01:00
Yorik van Havre
cee14a6dd7 Merge pull request #8122 from Roy-043/Arch-improve-context-menus
Arch: improve context menus
2023-01-13 11:48:57 +01:00
Roy-043
172f6c17a7 Arch: improve context menus (rebase) 2023-01-12 22:54:09 +01:00
Roy-043
d3955711c5 Draft: Fix inconsistent properties of Draft annotations 2022-12-23 16:49:56 +01:00
Roy-043
daf6cc5012 Draft: improve context menus 2022-12-07 11:21:06 +01:00
Roy-043
0d0d2e87aa Draft: fix clone DiffuseColor 2022-11-27 11:11:24 +01:00
Roy-043
8a91607778 Draft+Arch: Fix crash related to SoBrepEdgeSet 2022-09-28 17:32:12 +02:00
Yorik van Havre
a913f90daa 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
645efb6678 Draft: Improve drag-and-drop behavior for Layers 2022-09-08 11:38:45 +02:00
Roy-043
9d8ee7b1b0 Update view_dimension.py
The FlipArrows property for angular dimensions is handled differently.
2022-09-07 19:20:49 +02:00
Roy-043
83f109402a Draft: Fix alignment of angular dimension arrows 2022-09-06 15:37:15 +02:00
Roy-043
59bd8847d1 Draft: Fix flatten wire 2022-09-04 09:45:39 +02:00
Yorik van Havre
4653077fce 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
c6c67b1943 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
40d952dccc Update view_facebinder.py
There is no need for `Gui.Control.closeDialog()` in `setEdit`
2022-07-14 09:17:08 +02:00
Roy-043
57699b1c25 Update view_text.py
Oops: import DraftGui instead of import Draft
2022-07-12 21:58:34 +02:00
Roy-043
e9761691ae Draft: Fix EditMode for hatch, facebinder and shapestring 2022-07-12 13:30:01 +02:00
Roy-043
7ce23ccb02 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
aa2ebb9601 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
9442668f7a Arch: Fixed IFC import/export of dimensions 2022-04-06 11:35:18 +02:00
marioalexis
79b7bfd5d0 Draft: Remove Python 2 type support 2022-03-28 18:02:23 -03:00
Matthijs Kooijman
2f05f86f6c 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
193339991f (Draft: clean up ViewProviderLabel class)
2022-03-20 14:45:52 +01:00
Roy
359f9d7886 Draft: Fix several translation issues 2022-01-28 14:01:42 -06:00
Roy-043
390cbd0962 Draft: fix Draft_Label viewprovider 2021-12-17 11:35:44 +01:00
Roy-043
b6381e325f 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
d019e28c08 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
24d1a3f054 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
b537a2351d Draft_Hatch_ViewProvider -> ViewProviderDraftHatch 2021-10-07 15:08:53 +02:00
Chris Hennes
5b415978ac 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
fb484a2367 Draft-fix-2-svg-pattern-issues
List of patterns is now sorted A-Z.
2021-09-24 10:54:51 +02:00
marioalexis
e2b3310277 Draft: Fix Unicode and UTF-8 encoding character behavior 2021-09-23 21:21:24 -03:00
Roy-043
bb1fccbc23 Update view_base.py 2021-09-23 20:24:35 +02:00
Roy-043
114b3b4d1f Draft: fix 2 edit mode issues 2021-09-23 20:16:53 +02:00
Yorik van Havre
117328250e 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
cfd4704024 Draft: fix wrong type for layer transparency
Also fixed a typo.
2021-09-23 16:25:40 +02:00
Roy-043
e2e16e60dc 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
2bf67f0191 Draft: Introduced Hatch command + object 2021-09-06 15:27:52 +02:00
Yorik van Havre
f8f541c1e7 Draft: Use different icon if object has AutoUpdate turned off 2021-07-16 12:24:26 +02:00
Yorik van Havre
6909597f9c 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
fd0d28eade Draft: Implemented edit mode for Draft texts 2021-06-28 15:47:42 +02:00
marioalexis
d47e822cf2 Draft: Fix rotations and Circle marker in ViewProviderLabel - fixes #0003987 2021-06-16 04:42:07 -03:00
Roy-043
a8ad89ae7c Draft: Fix wrong tree icon for Draft_PointArray 2021-06-08 14:29:03 +02:00
Yorik van Havre
e605b2f930 Draft: Allow to set 'arch' unit override on dimensions 2021-04-29 19:51:34 +02:00
Yorik van Havre
0a88f05317 Merge pull request #4548 from chennes/lgtmDraftColorArrayCreation
[Draft] Eliminate unused loop iteration variables
2021-03-30 13:00:45 +02:00
Chris Hennes
8097a9f3f8 [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