Roy-043
904b37b47d
Draft: implement DefaultAnnoLineWidth and DefaultAnnoLineColor prefs
...
The format_object function in gui_utils.py still requires some work (in connection with the Draft_SetStyle command). This will be done later.
2023-11-29 23:06:17 +01:00
Roy-043
a462e8e616
Draft: improve handling of anno DisplayMode and LineSpacing
...
* DisplayMode controlled by new pref DefaultAnnoDisplayMode. This replaces the old dimstyle pref.
* LineSpacing pref is now used when creating annotations. Will be added to prefs ui later.
* format_object no longer changes FontSize as this conflicted with the height parameter in the make_text function.
* make_text function updated.
2023-11-27 15:45:56 +01:00
Roy-043
8944c79ebe
Draft: make default anno style non-global
...
Additionally:
* Added the DimShowLine preference. Layout of the tab will be updated later.
* Improved handling of DraftAnnotationScale preference: catch division by zero and use it for the default anno style.
2023-11-23 09:45:12 +01:00
Roy-043
d065f13f67
Draft: Updates related to the PlaneGui class (step 2)
...
Related issue:
#5603 .
Additionally:
Fixed the issue where the texts of Arch_Space objects were not exported to DXF.
2023-10-23 16:25:12 +02:00
wmayer
ef9936a940
App: fixes #10460 : App::PropertyPythonObject is not saving data
...
Since Py3.11 the methods names __setstate__ and __getstate__ conflict with the method names added to the object class.
Thus rename them to 'loads' and 'dumps'
2023-09-24 10:56:35 -05:00
Roy-043
563ed76b44
Draft: Fix for PR10673 ( #10699 )
...
Fixes an issue that was missed in #10673 .
2023-09-16 17:10:02 +02:00
Roy-043
c9762572ee
Draft: V0.21 version of getPlaneRotation caused a dimension bug ( #10673 )
...
`DraftVecUtils.getPlaneRotation` can now return None. The `view_dimension.py` code did not handle that.
2023-09-13 17:00:35 +02:00
CalligaroV
457b676972
[Feature Request] [Draft] [UI/UX] Remove the center arrow on radial dimensions ( #10655 )
...
Related to issue #7573
Forum discussion
https://forum.freecadweb.org/viewtopic.php?p=631252#p631252
These modifications don't add the new properties suggested on the issue mentioned above and suggested on the forum discussion but just remove the center arrow
Other info and discussion can be found at https://gitlab.com/calligarov/FreeCAD/-/merge_requests/1
2023-09-13 15:27:51 +02:00
Yorik van Havre
b371058864
Draft: Allow to set a custom feet separator for dimensions ( #10481 )
2023-09-11 14:05:26 +02:00
Roy-043
b83e401836
Draft: Avoid dictionary.keys() where possible ( #10160 )
2023-08-13 11:46:25 +02:00
Roy-043
c868940cf1
Draft: Std_TransformManip should not be called from setEdit ( #9375 )
...
The object then seems to be put into edit mode twice (?) and Esc will not cancel the command.
2023-05-07 09:57:10 +02:00
luzpaz
38a01939e0
Migrate domain name from freecadweb to freecad ( #9352 )
...
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files
Closes #6415
2023-04-24 15:19:20 -05:00
Jolbas
202a6ca6b8
return pure rotation from getPlaneRotation()
2023-02-28 01:07:56 +01:00
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