FreeCAD: master dd41c1a4

Author Committer Branch Timestamp Parent
vocx-fc yorik master 2020-03-17 04:45:21 master 6f2fd045
Changeset Draft: GuiCommandSimplest to serve as base of simple Gui Commands

This class defines the `command_name` of the command,
so that it is output to the report view, and is also recorded
in the log file.

It also stores the current document so it can be used inside the
command.

The class implements with `IsActive` method so that the command
is only active when an active document exists.

Also `GuiCommandNeedsSelection`, which subclasses the former
class. It reimplements `IsActive` in order to be available
only when there is a selection.
mod - src/Mod/Draft/draftguitools/gui_base.py Diff File