FreeCAD: master ce2441c0

Author Committer Branch Timestamp Parent
vocx-fc yorik master 2019-11-09 21:50:45 master cd764c6d
Changeset Draft: new module for GUI utility functions

Many auxiliary tools used by `Draft.py` can be defined
in another module. Many functions are moved to this module
so that `Draft.py` isn't as big and hard to maintain.

The following is a list o functions that were moved:
`get3DView`, `autogroup`, `dimSymbol`, `dimDash`,
`removeHidden`, `formatObject`, `getSelection`,
`getSelectionEx`, `select`, `loadTexture`.

Moreover, many of these functions were renamed
to comply better with PEP8 guidelines,
particularly the use of `snake_case`. For example,
`get3DView` is now `get_3d_view`.

Aliases are provided for the old names so that
other functions and classes that depend on these
won't break. The new names should be the official
programming interface, while the old names
should be deprecated at some point in the future.
mod - src/Mod/Draft/CMakeLists.txt Diff File
mod - src/Mod/Draft/Draft.py Diff File
add - src/Mod/Draft/draftutils/gui_utils.py Diff File