Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft, Arch: import functions from utilities #3093

Merged
merged 6 commits into from
Mar 23, 2020

Conversation

vocx-fc
Copy link
Contributor

@vocx-fc vocx-fc commented Feb 21, 2020

Instead of importing certain tools from DraftTools and DraftGui, we import them from the new utility modules, draftutils.todo, draftutils.translate, and draftutils.utils.

This is done both in Draft and Arch.

This pull request needs to be merged after #3092 is merged so that the previous patches apply cleanly. When this happens, this request will create a conflict, so this pull request will have to be rebased onto the master branch, and then it will be able to be merged.

Forum thread: [Discussion] Splitting Draft tools into their own modules.


  • Branch rebased on latest master git pull --rebase upstream master
  • Unit tests confirmed to pass by running ./bin/FreeCAD --run-test 0
  • Commit message is well-written
  • Commit message includes issue #<id> or fixes #<id> where <id> is the associated MantisBT issue id if one exists

@vocx-fc vocx-fc force-pushed the Draft_Tools_utils branch 2 times, most recently from c7fae6a to 1a12377 Compare March 12, 2020 21:20
@vocx-fc vocx-fc force-pushed the Draft_Tools_utils branch 4 times, most recently from cd70c73 to acd1f8d Compare March 20, 2020 19:54
Properly import the tracker classes. Avoid star imports,
and use the classes prefixed with the name of the module.
The BIM Workbench also has to be updated to use the new
module.
```
import draftguitools.gui_trackers as DraftTrackers
```
Also change the imports in `DraftFillet.py`
and `DraftEdit.py` so the trackers are found.
These functions were moved from DraftGui to individual
modules precisely to make them easy to import.
Otherwise we have to import the entire DraftGui module
which creates dependency problems when we want to use
some functions without the graphical interface.
These functions were moved from DraftTools and DraftGui
to individual modules precisely to make them easy to import.
Otherwise we have to import the entire DraftTools and DraftGui
modules which creates dependency problems when we want to use
some functions without the graphical interface.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants