ControlCommand class specifying Animate workbench's Control button/command. More...
Public Member Functions | |
def | GetResources (self) |
Method used by FreeCAD to retrieve resources to use for this command. More... | |
def | Activated (self) |
Method used as a callback when the toolbar button or the menu item is clicked. More... | |
def | IsActive (self) |
Method to specify when the toolbar button and the menu item are enabled. More... | |
ControlCommand class specifying Animate workbench's Control button/command.
This class provides resources for a toolbar button and a menu button. It controls their behaivor(Active/Inactive) and responds to callbacks after either of them was clicked(Activated).
Definition at line 1422 of file Control.py.
def Control.ControlCommand.Activated | ( | self | ) |
Method used as a callback when the toolbar button or the menu item is clicked.
This method creates a Control instance in currently active document. Afterwards it adds a ControlProxy as a Proxy
to this instance as well as ViewProviderControlProxy to its ViewObject.Proxy
, if FreeCAD runs in the Graphic mode.
Definition at line 1445 of file Control.py.
def Control.ControlCommand.GetResources | ( | self | ) |
Method used by FreeCAD to retrieve resources to use for this command.
PixMap
, MenuText
and ToolTip
which contain a path to a command icon, a text to be shown in a menu and a tooltip message. Definition at line 1432 of file Control.py.
def Control.ControlCommand.IsActive | ( | self | ) |
Method to specify when the toolbar button and the menu item are enabled.
The toolbar button Control
and menu item Control
are set to be active only when there is an active document in which a Control instance can be created.
Definition at line 1463 of file Control.py.