Skip to content

Commit

Permalink
Draft: Introduction of the PlaneGui class
Browse files Browse the repository at this point in the history
Related issue:
FreeCAD#5603.

Previous PRs:
FreeCAD#10766
FreeCAD#10838
FreeCAD#10931

Short explanation:
* The PlaneGui class handles several GUI related aspects of the WP including a WP history.
* The `get_working_plane` function should be used to get a WP.
* Some of the code was taken from gui_selectplane.py. The intention is to remove almost all WP related code from that file. The icon, tooltip and label for the draftToolBar are also handled by PlaneGui.
* The tooltip shows extended information about the WP (position and axes vectors). An asteriks is appended to the label if the origin does not match the global origin.
* The `_update_all` function still updates FreeCAD.DraftWorkingPlane for compatibility.
* Some confusing names from the Plane class have been changed: `weak` -> `auto`, `reset` -> `set_to_auto`, `setup` -> `auto_align`.

Next step:
Implementing PlaneGui in Draft and Arch. The gui_selectplane.py file will be updated first.
  • Loading branch information
Roy-043 authored and yorikvanhavre committed Oct 12, 2023
1 parent 56422b1 commit a0af13a
Showing 1 changed file with 629 additions and 10 deletions.

0 comments on commit a0af13a

Please sign in to comment.