Commit Graph

2892 Commits

Author SHA1 Message Date
Yorik van Havre
e13e3bcea3 Merge pull request #6899 from 0penBrain/draftGrid
Draft: fix issues with grid spacing parameter
2022-05-30 15:31:18 +02:00
Yorik van Havre
d3d96816ce Merged crowdin translations 2022-05-30 10:01:02 +02:00
Yorik van Havre
8676d67a87 merged crowdin translations 2022-05-28 12:16:47 +02:00
Yorik van Havre
1e034cc47f Merged crowdin translations 2022-05-27 11:28:55 +02:00
0penBrain
4474db7f50 Draft: force length unit in grid spacing in SelectPlane 2022-05-25 09:54:34 +02:00
0penBrain
ccdbf99341 Draft: fix issues with grid spacing parameter 2022-05-25 09:02:12 +02:00
Kuzemko Alexsandr
b903e949ae Update .ts with lupdate ver 6.4.0. 2022-05-23 16:53:07 +02:00
Roy-043
0b12cba3b5 Draft: Fix grid update issue
If the grid spacing was updated in this sequence: 1 -> 0 -> 1 (or any sequence where the first and last value are equal), the grid would not be redrawn.
2022-05-18 22:49:05 +02:00
Yorik van Havre
06515cd340 Draft: Prevented error when grid size is zero - issue #5427 2022-05-17 10:58:10 +02:00
Yorik van Havre
27277e29c6 Draft: Fixed qt connect style - fixes #6879 2022-05-17 09:58:56 +02:00
Chris Hennes
cd53c06b98 Draft: fix SVG rotation around non-origin center
Fixes #6869
2022-05-16 11:10:04 -05:00
Yorik van Havre
bd2c7dc651 Merge pull request #6798 from 0penBrain/draftWPTB
[BugFix] Draft: ensure Working Panel toolbar is deactivated on FC closing
2022-05-09 11:06:59 +02:00
luz paz
54edb231bb LGTM: Remove unnecessary deletion of local variables
Passing a local variable to a del statement results in that variable being removed from the local namespace. When exiting a function all local variables are deleted, so it is unnecessary to explicitly delete variables in such cases.

ref: https://lgtm.com/rules/1506104658325/
2022-05-05 23:03:36 +02:00
Yorik van Havre
0680ad5558 Merged crowdin translations 2022-05-05 15:46:09 +02:00
Yorik van Havre
ab5a6d83a1 Updated ts files 2022-05-05 15:20:57 +02:00
Roy-043
72e91dbbca Draft: Fix Draft_WorkingPlaneProxy ignores Auto Working Plane 2022-05-04 20:56:06 +02:00
Roy-043
868b5f1a1c Draft: fix 2 gui_groups.py translation issues 2022-04-30 21:40:34 +02:00
Roy-043
a222bc6782 Draft: Fix Draft_Snap_Intersection for self-intersecting objects 2022-04-29 14:20:15 +03:00
0penBrain
9848d6017e [BugFix] Draft: ensure Working Panel toolbar is deactivated on FC closing
Fixes #6242
2022-04-29 10:16:37 +02:00
Roy-043
fb85a2c93b Draft: Restore DontUseNativeDialog after ShapeString edit 2022-04-25 00:48:28 +02:00
Yorik van Havre
a4a0d11eca Merged crowdin translations 2022-04-21 14:18:33 +02:00
Yorik van Havre
0045c8facd Merge branch 'master' of github.com:FreeCAD/FreeCAD 2022-04-21 14:18:17 +02:00
Yorik van Havre
080f421448 Merge pull request #6749 from marioalexis84/draft-set_wp
Draft: Fix orientWP method used by in Draft_Line command
2022-04-21 14:04:03 +02:00
Yorik van Havre
eae87882cb Updated ts files 2022-04-21 14:00:58 +02:00
Roy-043
7cf1d7b582 Draft: Fix Angle Lock
Fix problem with self.angle = None.
2022-04-21 12:17:42 +02:00
marioalexis
e62496b636 Draft: Fix orientWP method used by in Draft_Line command 2022-04-20 14:12:26 -03:00
Yorik van Havre
35bb6278ea merged crowdin translations 2022-04-13 13:47:06 +02:00
Yorik van Havre
d0778faa2c updated ts files 2022-04-13 13:39:31 +02:00
marioalexis
04fe4ef695 Draft: Fix WorkingPlane setup in automatic mode - fixes #6060 2022-04-10 16:17:16 +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
Yorik van Havre
cb9dda7084 Merged crowdin translations 2022-03-31 11:41:28 +02:00
Yorik van Havre
93e63b85c3 Merge pull request #6676 from marioalexis84/draft-python2
Draft: Remove Python 2 type support
2022-03-31 11:10:07 +02:00
Yorik van Havre
356eca3316 Updated ts files 2022-03-31 11:02:28 +02:00
Chris Hennes
b13088664f Draft: PR6497 move return statement to new line 2022-03-29 12:35:46 -05:00
marioalexis
659e84e57f Draft: Remove Python 2 type support 2022-03-28 18:02:23 -03:00
Chris Hennes
c36f2ade86 Draft: PR4556 Step 3: sort QGridLayout by row-col 2022-03-28 10:43:21 -05:00
Chris Hennes
da22efe62b Draft: PR4556 Step 2: remove native=true 2022-03-28 10:43:21 -05:00
wmayer
988cfcef12 Draft: include header with export macros 2022-03-24 20:48:41 +01:00
wmayer
97330443a2 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
618deb751f Draft: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
Yorik van Havre
950a569b44 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2022-03-23 10:51:15 +01:00
Yorik van Havre
1dd773e7b3 Translations: Merged crowdin strings 2022-03-23 10:37:50 +01:00
Yorik van Havre
eecef83f28 Merge pull request #6619 from matthijskooijman/draft-misc-fixes
Draft: Misc fixes
2022-03-23 10:30:12 +01:00
Yorik van Havre
36f97d0ea4 Translations: updated ts files 2022-03-23 10:24:55 +01:00
Matthijs Kooijman
214e716a8f Draft: Simplify using getattr instead of hasattr
Using the default argument supported by getattr makes this code a bit
simpler and probably (ever so slightly) faster.

See https://forum.freecadweb.org/viewtopic.php?f=10&t=58611 for previous
discussion.

This is not an exhaustive change, these are just a few I encounted while
working with the code.
2022-03-22 14:46:50 +01:00
Matthijs Kooijman
be69ec5e00 Draft: Fix mixup of TextAlignment vs Justification for Labels
TextAlignment is the vertical alignment, while Justification is the
horizontal alignment. here, get_text was passed the vertical, while it
expected the horizontal. This caused the alignment of a Label to be
wrong in the resulting SVG (e.g. in a TechDraw draft view).

This seems to have been broken since SVG support for Labels was first
introduced in commit 3391a5ea4b (Initial work, only text (no lines)).
2022-03-22 14:46:50 +01:00
Matthijs Kooijman
fd8475b1c6 Draft: Fix SVG generation for label objects
Label objects would produce invalid SVG XML, because the stroke-linecap
property was added as if it was a style (with : and ;), but it was
inserted in the XML tag directly, rather than inside the style attribute
value. The invalid SVG prevented for example a TechDraw draft view from
rendering when it contained a label.

This was added in commit d8c74c06fd (Draft: Using square endcaps for
lines in SVG output).

This stroke-linecap is supported both as a presentation attribute inside
the style or a XML attribute, so for consistency with the surrounding
attributes, it is made a normal attribute, rather than putting it inside
the style.

See also https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap
2022-03-22 14:38:36 +01:00
Yorik van Havre
6160d0fe78 Draft: Restored cloning of arch objects 2022-03-21 15:16:53 +01: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