Files
create/src/Mod/Draft/drafttaskpanels
luzpaz 38a01939e0 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
..

General

2020 May

These files provide the logic behind the "task panels" of the "GuiCommands" defined in draftguitools/.

These files should not have code to create the task panel widgets manually. These interfaces should be properly defined in .ui files made with Qt Designer and placed inside the Resources/ui/ directory.

There are many GUI commands which are "old style" and thus don't have an individual task panel. These commands use the task panel defined in the big DraftGui.py module. This module defines many widgets for many tools, and selectively chooses the widgets to show and to hide depending on the command that is activated.

A big file that controls many widgets at the same time is difficult to handle and to maintain because changing the behavior of one widget may affect the operation of various GUI commands. This must be changed so that in the future each tool has its own individual task panel file, and its own .ui file. Individual files are more maintainable because changes can be done to a single tool without affecting the rest.

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

To do

In the future each tool should have its own individual task panel file, and its own .ui file.

This should be done by breaking DraftGui.py, creating many .ui files, creating many task panel modules, and making sure these modules are used correctly by the GUI commands.