Uranium
Application Framework
|
Public Member Functions | |
__init__ (self, str device_id, bool add_to_output_devices=False, parent=None, **kwargs) | |
bool | enabled (self) |
None | enabled (self, bool enabled) |
![]() | |
None | __init__ (self, str device_id, **str kwargs) |
str | getId (self) |
str | getName (self) |
None | setName (self, str name) |
str | getShortDescription (self) |
None | setShortDescription (self, str description) |
str | getDescription (self) |
None | setDescription (self, str description) |
str | getIconName (self) |
None | setIconName (self, str name) |
int | getPriority (self) |
None | setPriority (self, int priority) |
None | requestWrite (self, List[SceneNode] nodes, Optional[str] file_name=None, bool limit_mimetypes=False, Optional[FileHandler] file_handler=None, bool filter_by_machine=False, **str kwargs) |
Static Public Member Functions | |
Optional[str] | getLastOutputName () |
None | setLastOutputName (Optional[str] name=None) |
Public Attributes | |
add_to_output_devices = add_to_output_devices | |
menu_entry_text = None | |
shortcut = None | |
Static Public Attributes | |
enabledChanged = pyqtSignal() | |
last_out_name = None | |
![]() | |
metaDataChanged = Signal() | |
writeStarted = Signal() | |
writeProgress = Signal() | |
writeFinished = Signal() | |
writeError = Signal() | |
writeSuccess = Signal() | |
Protected Attributes | |
bool | _enabled = True |
![]() | |
_id = device_id | |
str | _name = "Unknown Device" |
str | _short_description = "Unknown Device" |
str | _description = "Do something with an unknown device" |
str | _icon_name = "generic_device" |
int | _priority = 0 |
Extends the OutputDevice class for OutputeDevices that support saving project files.
None UM.OutputDevice.ProjectOutputDevice.ProjectOutputDevice.enabled | ( | self, | |
bool | enabled ) |
Setter for the enable property. It ensures that a project output device that gets enabled is also added to the output devices, if that is necessary. :param enabled: Whether the device should be enabled or disabled