vocx-fc
1a2e79ecb9
Draft: move Draft_Arc_3Points to gui_arcs module
2020-04-16 11:40:58 +02:00
vocx-fc
1f3a88f1ce
Draft: move Draft_AddConstruction to gui_groups module
...
Also add a new icon for adding to the construction group.
2020-04-16 11:40:58 +02:00
vocx-fc
68119de02f
Draft: move Draft_AutoGroup to gui_groups module
2020-04-16 11:40:58 +02:00
vocx-fc
60f3155651
Draft: move Draft_Slope to gui_lineslope module
...
The class name was renamed to `LineSlope` as it is fundamentally
inteded to control slopes of lines.
2020-04-16 11:40:58 +02:00
vocx-fc
8aeb33f203
Draft: move Draft_FlipDimension to gui_dimension_ops module
2020-04-16 11:40:58 +02:00
vocx-fc
ed55c6e824
Draft: move Draft_Heal to gui_heal module
2020-04-16 11:40:58 +02:00
vocx-fc
8c177c7fe8
Draft: move Draft_ToggleGrid to gui_grid module
2020-04-16 11:40:58 +02:00
vocx-fc
1ed3df9df0
Draft: add base class for Snap commands
2020-04-16 11:40:58 +02:00
vocx-fc
11206b1d3a
Draft: move Draft_ShowSnapBar to gui_snaps module
2020-04-16 11:40:58 +02:00
vocx-fc
9eab03b593
Draft: add correct docstring to old Array tools
...
Previously they mentioned incorrectly the Shape2DView tool.
2020-04-16 11:40:58 +02:00
vocx-fc
ef3ad5121b
Draft: move SelectGroup command to gui_groups module
2020-04-16 11:40:58 +02:00
vocx-fc
d05a786e57
Draft: move AddToGroup command to gui_groups module
2020-04-16 11:40:58 +02:00
vocx-fc
14352677c5
Draft: move DisplayMode command to gui_togglemodes module
2020-04-16 11:40:58 +02:00
vocx-fc
9758d983ef
Draft: move mode commands to gui_togglemodes module
...
`Draft_ToggleConstructionMode` and `Draft_ToggleContinueMode`.
They call a base class `BaseMode` which also uses the base
`gui_base.GuiCommandSimplest` class.
Also add a new icon for continue mode.
2020-04-16 11:40:58 +02:00
vocx-fc
7189d3de05
Draft: move line GuiCommands to gui_lineops module
...
The commands `FinishLine`, `CloseLine`, and `UndoLine`
are moved from the huge `DraftTools.py` to `gui_lineops.py`
to reduce the complexity of the former file.
These GuiCommands aren't actually used presently
in the Draft Workbench. They were used in the past
particularly from the context menu when editing a Line object.
2020-04-16 11:40:58 +02:00
carlopav
ff3bdf86bc
[Draft] Improved Autogroup to handle Draft Annotations
...
Draft Dimension, Label and Text are now correctly auto-added to Part container
2020-04-16 11:37:10 +02:00
Yorik van Havre
97c8eff825
Draft: warn the user if offset direction is not set
2020-04-14 15:35:46 +02:00
vocx-fc
5afce788c9
Draft: move WorkingPlaneProxy to separate module
...
Previously it was in the `gui_selectplane` module
but we prefer to place it in its own module
so that the files are as small as possible.
2020-04-09 11:41:45 +02:00
vocx-fc
7a6b586a66
Draft: move ShapeString to the creation tools
...
Previously it was placed in the `annotation` category
but since it creates a group of shapes, it is better
in the `creation` category.
Also small fixes in the menu text and tooltip.
2020-04-07 18:12:06 +02:00
vocx-fc
f00fe58061
Draft: DraftTools.py clean up header and imports
...
Small spacing fixes like imports in separate lines for
more clarity, and the position of the license.
Also use the class name `ToDo` in `CamelCase`,
as it is indicated in Python guidelines for classes.
2020-04-07 18:12:06 +02:00
vocx-fc
9ed42f61a7
Draft: move Draft_Edit to another module
2020-04-06 12:51:55 +02:00
vocx-fc
7bc2e3ad48
Draft: move ScaleTaskPanel to a module
...
We remove it from `DraftGui.py` to reduce the size of this file.
Then we import it and tie it to its command defined
in `DraftTools.py`.
2020-04-02 16:53:49 +02:00
vocx-fc
50faaea5bf
Draft: move ShapeStringTaskPanel to a module
...
We remove it from `DraftGui.py` to reduce the size of this file.
Then we import it and tie it to its command defined
in `DraftTools.py`.
2020-04-01 13:22:04 +02:00
vocx-fc
f54ca61463
Draft: move and rename DraftSelectPlane
2020-03-31 12:00:38 +02:00
vocx-fc
a150b3048d
Draft: use functions from the utils module, not DraftGui
...
These functions were moved from DraftGui to individual
modules precisely to make them easy to import.
Otherwise we have to import the entire DraftGui module
which creates dependency problems when we want to use
some functions without the graphical interface.
2020-03-23 12:14:58 +01:00
vocx-fc
b38dcd9ff6
Draft: move DraftTrackers to another module.
...
Properly import the tracker classes. Avoid star imports,
and use the classes prefixed with the name of the module.
The BIM Workbench also has to be updated to use the new
module.
```
import draftguitools.gui_trackers as DraftTrackers
```
2020-03-23 12:14:33 +01:00
vocx-fc
699624fd26
Draft: move DraftSnap to another module
...
And do not load the `Snapper` in `DraftGui`.
The Snapper should be initialized by the module
that imports `DraftGui`, most probably `DraftTools`
or even by the `InitGui` of the workbench.
2020-03-20 08:11:04 -03:00
vocx-fc
d80ee4a820
Draft: properly import the Snapper class
...
Avoid star imports, and prepend the module name,
`DraftSnap.Snapper()`.
2020-03-20 08:11:04 -03:00
vocx-fc
f1a3e14226
Draft: move snap commands to an individual module
...
This way we remove lines from `DraftTools.py`
and we can more easily identify where the snapping
commands are defined.
2020-03-20 08:11:04 -03:00
triplus
c676a817b8
Draft - enable toggle grid command in edit mode
...
Some people would like to have more control over draft grid visibility while in Sketcher edit mode. Hence this PR enables the usage of Draft ToggleGrid command in Sketcher edit mode.
Forum discussion:
https://forum.freecadweb.org/viewtopic.php?f=34&t=43265&start=20#p374747
2020-03-12 09:26:48 -03:00
carlopav
f5f43913e0
[Draft] DraftGui and DraftEdit Cleanup to remove AddPoint & DelPoint
...
Lines to be deleted in DraftGui in the future, are now commented.
2020-03-12 09:11:34 -03:00
vocx-fc
13fd3470f7
Draft: Draft_Arc_3Points using the new arc function
...
Instead of creating the arc directly in the GuiCommand
it calls the new `make_arc_3point` function.
2020-03-05 09:03:02 -03:00
vocx-fc
b38ba6e11d
Draft: lowercase use_link option for arrays
...
Inside the class `_DraftLink` the `onDocumentRestored` function
tests for the existence of the old attribute `useLink`. If it is
present, it uses it to define the new variable name `use_link`.
This is done use Python naming conventions.
The old `useLink` is deleted so it is not longer saved
together with the object when the document is saved.
2020-03-04 09:58:56 -03:00
Syres916
f043f465c2
[Draft] WireToBSpline Fix Placement of makeWire
...
See Discussion https://forum.freecadweb.org/viewtopic.php?f=23&t=43184
2020-03-02 12:08:53 -03:00
carlopav
89d843d639
[Draft] Edit: set shortcut to D,E
...
Changed subelement highlight to S,E
[Draft] Edit bugfix
bugfix
2020-01-08 15:20:36 +01:00
luz.paz
ae7cb9e300
Draft: [skip ci] Fix header uniformity
...
This PR fixes header uniformity across all Draft files
2019-12-27 00:16:12 +01:00
vocx-fc
c021ff70de
Draft: rename SubelementModify to SubelementHighlight
2019-11-11 18:04:10 -03:00
vocx-fc
1d83fa7d92
Draft: renamed the command Draft_Edit_Improved to Draft_SubelementModify because the previous name was confusing; also provide a new icon
2019-10-10 19:13:28 -03:00
Syres916
db17426a1e
[Draft] Wire To BSpline fix to show new object
...
Discussion https://forum.freecadweb.org/viewtopic.php?f=8&t=39466
2019-10-07 13:45:25 -03:00
vocx-fc
24b07312c6
Draft: DraftTools, place the CubicBezCurve tool before the BezCurve, as the cubic curve is more used.
2019-10-07 13:45:01 -03:00
vocx-fc
0c18f5e256
Draft, makeBezCurve(), changed parameter Degree to degree, preferred lowercase
2019-10-07 13:44:25 -03:00
Yorik van Havre
b8de57d38e
Draft: Show info message if an object cannot be scaled
2019-09-03 11:55:07 -03:00
Yorik van Havre
9fb6aec313
Split Draft_SelectPlane and DraftSetWorkingPlaneProxy to a separate file
2019-09-02 17:23:57 -03:00
Dion Moult
3c52a3c2d1
Fix UI labels and unit type to be angle instead of length when doing draft rotate
2019-09-02 16:05:36 -03:00
Yorik van Havre
5b2e74c3bd
Draft: misc small fixes
2019-08-27 21:29:20 -03:00
Yorik van Havre
e9cbbb38ff
Draft: Fixed tooltips
2019-08-26 14:16:19 -03:00
vocx-fc
d3ade5520e
Draft: DraftFillet, changed some things about the implementation.
2019-08-22 10:54:41 -03:00
vocx-fc
d5ca09c77b
Draft: added DraftFillet.py to the sources, also InitGui.py, Draft.py, DraftTools.py, and CMakeLists.txt
2019-08-22 10:54:41 -03:00
Zheng, Lei
de66e563e0
Draft/Arch related changes
...
* Add Draft_LinkArray and Draft_PathLinkArray that uses link for both
data and visualization, which supports linking external objects
* Add link group support for draft snap
* Fix ArchWindows expression ambiguity
2019-08-17 15:32:47 +02:00
vocx-fc
a72d78507d
Draft: DraftTools.py, the docstrings need triple quotes and be next to the method or class in order to be picked up by Doxygen or Sphinx; this complies with PEP 257.
2019-08-14 14:33:57 -03:00