Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Draft: Introduction of the PlaneGui class
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