Commit Graph

2468 Commits

Author SHA1 Message Date
Yorik van Havre
8d7281e97b Draft: Fixed default color for new dimensions (now uses DefautTextColor instead of DefaultLineColor) 2021-04-23 15:46:39 +02:00
Yorik van Havre
07c914a8bb Merge pull request #4710 from marioalexis84/draft-draftgui
Draft: Sync input fields in task panel
2021-04-20 11:50:22 +02:00
Yorik van Havre
f78960179e Merge pull request #4743 from steelman/horizontal-snap-widget
Draft: Ensure horizontal orientation of snap_widget
2021-04-20 11:49:09 +02:00
Yorik van Havre
d366c38922 Merge pull request #4389 from marioalexis84/draft-close_button
[0.20] [Draft] Call finish method if Close button is pressed in dumb taskdialog
2021-04-20 11:36:03 +02:00
Łukasz Stelmach
9458e5c12f Draft: Ensure horizontal orientation of snap_widget
From time to time when switching to other workbenches snap_widget changes
orientation to vertical. Make sure it stays horizontal.

Signed-off-by: Łukasz Stelmach <stlman@poczta.fm>
2021-04-19 19:58:06 +02:00
marioalexis
d0c1935cbf Draft: Fix regression in trimex command 2021-04-11 16:24:02 -03:00
marioalexis
2f81ca40be Draft: Sync input fields in task panel 2021-04-07 18:36:56 -03:00
marioalexis
5cc042379a Draft: Add functions to transform Cartesian coordinates to spherical and vice versa 2021-04-07 18:36:56 -03:00
tomate44
c48ec7cff2 Draft.ShapeString : add option to choose wires or faces output 2021-04-05 12:20:04 +02:00
Yorik van Havre
433441298c Merge pull request #4410 from marioalexis84/draft-snap
Draft: Fixes #0004278: Working Plane Proxy origin hijack nearby object
2021-03-30 13:16:14 +02:00
Yorik van Havre
ac8f611fc7 Merge pull request #4546 from chennes/lgtmDraftUnusedLoopVariables
[DRAFT] Remove unused loop variable
2021-03-30 13:04:08 +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
Yorik van Havre
d30ecd96bd Merge pull request #4625 from marioalexis84/draft-edit
Draft: Make Edit closed wires consistent with open wires and tracker
2021-03-30 12:50:06 +02:00
Yorik van Havre
030bda5ce9 Merge pull request #4609 from hyarion/cleanup-draft-load-texture
Draft: Simplify load_texture after py3 requirement
2021-03-26 11:30:50 +01:00
Yorik van Havre
32a3e3177a Merge pull request #4656 from chennes/draftContextMenuFallback
[Draft] Enable Transform context menu item
2021-03-26 11:28:36 +01:00
Yorik van Havre
6797cfcd33 Merge pull request #4658 from chennes/draftFixScaleDataEntryGlitch
[Draft] Fix bug in data entry on scale w/ uniform scaling on
2021-03-26 11:27:30 +01:00
Yorik van Havre
32b48549be Merge pull request #4661 from chennes/draftImportDXFNoGUI
[Draft] Eliminate required GUI for importDXF
2021-03-26 11:26:50 +01:00
Yorik van Havre
7c6c0ea7bd Merge branch 'master' into draft-snap 2021-03-26 11:21:08 +01:00
Yorik van Havre
4a8319d63e Merge branch 'master' into draft-close_button 2021-03-26 11:19:09 +01:00
Yorik van Havre
94b9374b37 Merge pull request #4348 from marioalexis84/draft-coordinate_input
[0.20] [Draft] Add global mode to enter points - Fixes #0004108
2021-03-26 11:18:23 +01:00
Chris Hennes
4f95ffe7a3 [Draft] Eliminate required GUI for importDXF 2021-03-23 20:21:52 -05:00
Chris Hennes
2977cadc41 [Draft] Fix bug in data entry on scale w/ uniform
When entering a scale factor, if uniform scaling is on, the current code
keeps appending zeroes as you type, forcing you to delete them before
entering your next digit. This commit fixes that by ensuring that the
widget that you are currently editing is not updated continuously.

Fixes #0004601
2021-03-23 14:18:19 -05: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
marioalexis
b5f9a80543 Draft: Clear tracker attributes when finish method is executed in gui_stretch 2021-03-20 17:12:58 -03:00
marioalexis
6795e0d7e6 Draft: Change selectUi and makeDumbTask argument named 'callback' to 'on_close_call'
Suggested by user @carlopav
2021-03-20 17:12:58 -03:00
marioalexis
7a54edb33a Draft: Set reject method for working plane task dialog 2021-03-20 17:12:58 -03:00
marioalexis
7c00d19a28 Draft: Call finish method if pressed Close button in dumb taskdialog 2021-03-20 17:12:58 -03:00
marioalexis
b9421e2747 Draft: Make Edit closed wires consistent with open wires and tracker 2021-03-20 01:58:10 -03:00
marioalexis
4bbd75686c Draft: Fix regression in sync_snap_toolbar_button function 2021-03-14 17:14:58 -03:00
Benjamin Nauck
879532d852 Draft: Simplify load_texture after py3 requirement
This commit does the following things:
 * Remove python2 support
 * Using a bytearray instead of chr list to build up the binary data.
   this also removes the need of using char encoding.
2021-03-10 20:49:29 +01:00
Yorik van Havre
5c30dc8ce2 Merge pull request #4544 from chennes/draftSnapSyncRefactor
[DRAFT] Refactor sync_snap_toolbar_button
2021-03-10 16:24:16 +01:00
Yorik van Havre
78ce247a29 Merge pull request #4549 from chennes/lgtmFixDraftLocalizeVectors
[Draft] Fix localize_vectors double definition
2021-03-04 12:27:05 +01:00
David Osterberg
c1b3fba031 Beautify xml step 1: These changes do not affect the uic output 2021-03-02 16:29:11 +01:00
Chris Hennes
4ebdff9d9c [Draft] Fix localize_vectors double definition
LGTM identified an instance where a function was defined twice: in this
case, one version was intended to take a list of items and the second
version just a single item. Because they share the same name and number
of arguments, the second definition overrode the first. This causes no
problems in the current code because the version that takes a list is
never used. However, for consistency with the analogous
"globalize_vectors" and "globalize_vector" functions, the "localize*"
versions are changed to match that pattern. All calls in are
converted to the singular use.
2021-03-01 09:36:21 -06:00
Chris Hennes
784ee36121 [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
Chris Hennes
2d9c9accda [DRAFT] Remove unused loop variable
LGTM is concerned about the unused loop variable in this algorithm.
While there was nothing wrong here, to eliminate the alarm the loop was
removed entirely, since Python allows the use of the multiplication
operator here to achieve the same effect.
2021-02-28 23:18:53 -06:00
Chris Hennes
59ecfbe508 [Draft] Return once the button is found 2021-02-28 21:48:31 -06:00
Chris Hennes
747dc8b81a [DRAFT] Refactor sync_snap_toolbar_button
LGTM objected to the re-use of the loop variable a in the algorithm.
Upon closer inspection, the algorithm in this function could be modified
to match the algorithm in sync_snap_statusbar_button (which does the
same thing to the statusbar that this does to the toolbar). This
eliminates the double-use. This change does not affect the functionality
of the routine.
2021-02-28 21:42:46 -06:00
Chris Hennes
26ce308cf1 [DRAFT] Add call to super().__init__ where missing
Identified by LGTM. The toplevel superclass does initialize one data
member to an empty array, but this didn't appear to cause any problems.
2021-02-27 18:21:54 +01:00
Yorik van Havre
fa85db61f9 Merged crowdin translations 2021-02-25 13:27:48 +01:00
Yorik van Havre
5c12afb5b5 Merged crowdin translations 2021-02-24 18:07:59 +01:00
marioalexis
b8dee20115 Draft: Fix snap to proxy WP and BuildingParts - fixes #0004278 2021-02-23 21:40:06 -03:00
Yorik van Havre
74c280ae40 Merge branch 'master' into Draftutils_BugFixes_01 2021-02-23 11:45:23 +01:00
David Osterberg
a243ce6346 Draft: Fix PathTwistedArray bug 2021-02-22 08:01:34 +01:00
Yorik van Havre
335cc13d48 Draft: Applied patch from nahshon - fixes misc errors from translation fixes 2021-02-15 15:50:45 +01:00
David Osterberg
9dd96ed107 Draft: Fix regressions in Draft array 2021-02-14 01:20:06 +01:00
wmayer
ac6d06dd84 Draft: fix syntax errors 2021-02-13 12:14:12 +01:00
Yorik van Havre
0de8cceb53 Updated ts files 2021-02-12 14:47:37 +01:00
Yorik van Havre
abee35f38a Draft: Fixed broken translations everywhere 2021-02-12 14:44:58 +01:00
paul lee
998511e8f5 [Draft.draftutils.groups] get_windows() to support Links
FC Forum Discussion - https://forum.freecadweb.org/viewtopic.php?f=23&t=55438
2021-02-12 09:59:28 +08:00