FreeCAD: master 55e537d7

Author Committer Branch Timestamp Parent
carlopav yorik master 2020-03-21 09:09:34 master add62435
Changeset [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
.


.


.
mod - src/Mod/Draft/DraftGui.py Diff File
mod - src/Mod/Draft/draftguitools/gui_snapper.py Diff File
mod - src/Mod/Draft/draftguitools/gui_snaps.py Diff File
mod - src/Mod/Draft/draftutils/init_tools.py Diff File