Files
create/src/Mod/Draft/draftguitools
vocx-fc 0b7c0800c1 Draft: improve the Python style gui_selectplane
Also import `todo` and `translate` from the utils module
instead of from `DraftGui`.
Otherwise we have to import the entire `DraftGui` module
which creates dependency problems when we want to use
some functions without the graphical interface.
2020-03-31 12:00:38 +02:00
..

2020 February

These files define the "GuiCommands", that is, classes called in a graphical way through either buttons, menu entries, or context actions. They don't define the graphical interfaces themselves, they just setup tools that connect with FreeCAD's C++ code.

These tools should be split from the big DraftTools.py module. The classes defined here internally use the GUI-less functions defined in Draft.py, or in the newer modules under draftobjects/.

These tools are loaded by InitGui.py, and thus require the graphical interface to exist.

Those commands that require a "task panel" call the respective module and class in drafttaskpanels/. The task panel interfaces themselves are defined inside the Resources/ui/ files created with QtCreator.

For more information see the thread: [Discussion] Splitting Draft tools into their own modules