Roy-043
d8150a9cd9
Draft: fix near snap for meshes ( #9719 )
2023-06-05 09:58:50 +02:00
Roy-043
a5c9da55cf
Draft: fix getcoords in gui_snapper.py ( #9654 )
...
The function did not handle global and relative mode properly
2023-05-26 19:45:31 +02:00
Yorik van Havre
bf944220a8
Draft: small optimization in snapper - issue #5761 ( #9239 )
2023-04-25 10:16:47 +02:00
luzpaz
129d5882a7
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
Yorik van Havre
3585ed46e3
Draft: Fixes grid on/off behaviour - fixes #5878
...
- If grid is on and auto grid on: Grid always appears
- If grid is on and auto grid off: Grid off at start, on when using a tool, off afterwards
- If grid is off: Grid never appears
2023-03-10 12:19:27 +01:00
Roy-043
19d624396f
Draft: housekeeping: indentation gui_snapper.py
...
As mentioned here: #8172
2023-01-12 16:04:31 +01:00
Roy-043
dec88420bf
Draft: Properly remove Snap toolbar when switching workbenches ( #8172 )
2023-01-12 15:29:21 +01:00
Roy-043
fe02d63c8c
Draft: update inspect.getargspec to inspect.getfullargspec ( #8101 )
2022-12-29 23:20:38 +01:00
Roy-043
e920410607
Draft: housekeeping: rename snap icons
2022-11-11 17:33:09 +01:00
Roy-043
1eee16e9f3
Draft: Change Snap toolbar to standard toolbar
2022-10-27 10:45:48 +02:00
wmayer
2b5b7cd607
Draft: fix snapper icons
...
* Add convenience function to get 3D views from MDI area
* Use 'inherits' instead of 'QMetaObject.className()' to check more reliably for sub-classes
2022-08-11 11:50:53 +02:00
Roy-043
e6e210467e
Update gui_snapper.py
2022-07-04 16:59:02 +02:00
Roy-043
88d1808ccb
Draft: Fix near snap
2022-07-04 09:43:15 +02:00
Roy-043
a222bc6782
Draft: Fix Draft_Snap_Intersection for self-intersecting objects
2022-04-29 14:20:15 +03:00
Roy
843ea92055
Draft: Fix additional translation issues related to the snapping commands
2022-01-12 13:44:05 +01:00
Roy-043
f6754eddfc
Draft: make Draft_Snap_Angle work in 3D
...
Draft_Snap_Angle only worked for circular edges on a plane parallel to the XY plane of the global coordinate system.
2022-01-06 16:57:55 +01:00
Roy-043
9baf044e6a
Draft: fix 3 snap issues
...
1. Draft_Snap_Parallel only worked beyond the endpoints of the edge.
2. It was very hard to select an edge for Draft_Snap_Parallel if no other snaps were active.
3. Only two snap objects were stored.
2021-11-25 15:21:11 +01:00
Roy-043
9a467f39d1
Draft: fix toggle grid issue.
2021-11-17 19:26:36 +01:00
carlopav
31a8fc5c7d
Draft: fix Snapper GridSnap not working over a face
...
ref. https://forum.freecadweb.org/viewtopic.php?f=23&t=62274&sid=4c9d07255e4f0db219b661c345768319
If the cursor is over a Face and no SnapCenter is active, the snapToObject method returns the current cursor point instead of None. Doing so the snap() method does not check for extension and grid snaps.
It seems this is a bug since the snap() already contains the deleted code.
One note: the no snaps case was moved before the lastObj setting, since if no snap point was found, it's not right to set it to a non snapped object.
2021-09-19 14:31:44 +02:00
marioalexis
0efc7a3e4f
Draft: Fix snap to proxy WP and BuildingParts - fixes #0004278
2021-02-23 21:40:06 -03:00
Chris Hennes
fe7e45a7de
[DRAFT] Catch only Exception, not BaseException
2021-02-11 11:52:45 +01:00
Roy-043
74d5c0a88a
[Draft] Fix snap to center of faces of solids
...
The code would only find a center snap on the face with index=0 of solids.
In V0.19 Part.getShape was introduced (line 399). But not all consequences were not fully implemented.
In the '# we are snapping to an edge' section (line 411) the code could be cleaned up. There is no need to check if the index of the edge is correct for the parent object since we are no longer dealing with a parent object. That portion was effectively dead code.
The '# we are snapping to a face' section (line 429 in the revised code) has been modified accordingly, which fixes the bug.
Forum discussion:
https://forum.freecadweb.org/viewtopic.php?f=23&t=54747
2021-01-25 15:33:36 +01:00
Yorik van Havre
d7d20ba484
Draft: Don't snap to ImagePlanes
2021-01-12 15:31:55 +01:00
Yorik van Havre
bff31175cb
Draft: better checks for no active document
2020-11-16 13:25:12 +01:00
Yorik van Havre
88f5fc20b1
Draft: Condensed the Draft toolbar style buttons into one with more options
2020-11-10 14:14:18 +01:00
luz paz
9f74b422a9
Fix various typos [skip-ci]
2020-10-24 12:25:46 +02:00
John Yani
6ff1bcb2e7
Proper check for Qt version
2020-09-30 22:36:22 +02:00
John Yani
7208e757b9
Fix indentation
2020-09-30 12:31:15 +02:00
John Yani
a76bdab449
HiDPI cursors: Support Qt < 5
...
Forum thread: https://forum.freecadweb.org/viewtopic.php?p=433621#p433621
2020-09-30 12:31:15 +02:00
carlopav
6f2691631c
Draft: fixed obj.TypeId output after utils.get_type() change
...
.
.
2020-09-09 14:13:29 +02:00
Roy-043
4c0bd797fe
Update gui_snapper.py
2020-09-08 16:13:02 +02:00
Vanuan
b53326b38c
High DPI support: Scale Draft cursor to device pixel ratio
2020-08-19 19:59:13 +02:00
Vanuan
024ae4dd9f
Fix a typo in draft snapping
2020-08-11 11:59:52 +02:00
vocx-fc
e3da572072
Draft: add modules of draftguitools to the proper Doxygen group
...
This includes `gui_annotationstyleeditor`, `gui_arcs`, `gui_array_simple`,
`gui_arrays`, `gui_base`, `gui_base_original`, `gui_beziers`,
`gui_circles`, `gui_circulararray`, `gui_clone`, `gui_circulararray`,
`gui_clone`, `gui_dimension_ops`, `gui_dimensions`, `gui_downgrade`,
`gui_draft2sketch`, `gui_drawing`, `gui_edit`, `gui_edit_arch_objects`,
`gui_edit_draft_objects`, `gui_edit_part_objects`, `gui_edit_sketcher_objects`,
`gui_ellipses`, `gui_facebinders`, `gui_fillets`, `gui_grid`,
`gui_groups`, `gui_heal`, `gui_join`, `gui_labels`, `gui_line_add_delete`,
`gui_lineops`, `gui_lines`, `gui_lineslope`, `gui_mirror`,
`gui_move`, `gui_offset`, `gui_orthoarray`, `gui_patharray`,
`gui_planeproxy`, `gui_pointarray`, `gui_points`, `gui_polararray`,
`gui_polygons`, `gui_rectangles`, `gui_rotate`, `gui_scale`,
`gui_selectplane`, `gui_shape2dview`, `gui_shapestrings`, `gui_snapper`,
`gui_snaps`, `gui_splines`, `gui_split`, `gui_stretch`, `gui_styles`,
`gui_subeleemnts`, `gui_texts`, `gui_togglemodes`, `gui_tools_utils`,
`gui_trackers`, `gui_trimex`, `gui_upgrade`, `gui_wire2spline`.
These are added to the `draftguitools` Doxygen group
so that the functions and classes contained in each module
are listed appropriately in the automatically generated
documentation.
2020-07-17 13:01:45 +02:00
Yorik van Havre
f05253f882
Draft: snapper.getPoint() does not return object anymore if no snapped object
2020-06-17 14:03:29 +02:00
carlopav
f433d7f63d
Draft: bugfix in Snapper
2020-05-12 10:03:52 +02:00
luz.paz
06a1099e2b
[skip-ci] Fix typos
...
Found via codespell v1.17.0.dev0
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-04-27 11:29:32 +02:00
Yorik van Havre
3802e07f54
Draft: fixed regression in snapper
2020-04-23 12:05:59 +02:00
carlopav
18cfafeed8
Draft: reintroduced grid button in snap toolbar
2020-04-22 12:14:23 +02:00
carlopav
81df9b76ae
[Draft] Snapper cleanup
...
Cleanup after @vocx-fc review
2020-04-20 12:38:06 +02:00
carlopav
64db721998
[Draft] Snap improvement and statusbar cleanup after rebase
...
[Draft] Attempt to make base classes compatible with super on py2
[Draft] Refactored imports of snapper and snaps gui tools
.
.
2020-04-20 12:38:06 +02:00
carlopav
55e537d79d
[Draft] Improved Snapper Toolbar Behaviour
...
Changed snap toolbar behaviour:
- create a list of available snaps (Gui.Snapper.snaps)
- make it consistent with Snap Gui Commands (in gui_snaps module)
- create a list of active snaps (Gui.Snapper.active_snaps)
- refactor the isEnabled() method to allow it to check if the given snap is in Gui.Snapper.active_snaps and not if the snap toolbar button isChecked()
- updated and reordered the new list of gui snap commands in draftutils.init_tools and used it as a base to refactor the creation of draft toolbar
- updated all the draft snap gui tools to make them control the toolbar buttons directly
.
.
.
2020-04-20 12:38:06 +02:00
vocx-fc
d91cc369f3
Draft: gui_snapper clean up docstrings and spaces (2)
2020-04-07 18:12:06 +02:00
vocx-fc
3f33f04827
Draft: gui_snapper clean up docstrings and spaces
2020-04-07 18:12:06 +02:00
vocx-fc
a9a10a7fd7
Draft: gui_snapper.py clean up imports and spaces
...
Small spacing fixes like imports in separate lines
for more clarity.
Also use the `OrderedDict` prefixed with the `collections` module.
2020-04-07 18:12:06 +02:00
vocx-fc
439d021dd7
Draft: Snapper class with new gui_trackers module
...
Also change the imports in `DraftFillet.py`
and `DraftEdit.py` so the trackers are found.
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