Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNino van Hooff <ninovanhooff@gmail.com>2020-05-08 17:20:55 +0300
committerNino van Hooff <ninovanhooff@gmail.com>2020-05-08 17:20:55 +0300
commit553b09b6cf35568e1ee791cc4c2bab8026872ae7 (patch)
treea9ba66c5d1f67203a629bc8e3f9f30da8fdecc6d /plugins/MachineSettingsAction
parent40327c42593e943ce91a2459eb331933cd376dbd (diff)
Convert doxygen to rst for GcodeWriter, LegacyProfileReader,
MachineSettingsAction, ModelChecker
Diffstat (limited to 'plugins/MachineSettingsAction')
-rwxr-xr-xplugins/MachineSettingsAction/MachineSettingsAction.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/MachineSettingsAction/MachineSettingsAction.py b/plugins/MachineSettingsAction/MachineSettingsAction.py
index 28535024a7..c82ef8f351 100755
--- a/plugins/MachineSettingsAction/MachineSettingsAction.py
+++ b/plugins/MachineSettingsAction/MachineSettingsAction.py
@@ -23,9 +23,11 @@ if TYPE_CHECKING:
catalog = UM.i18n.i18nCatalog("cura")
-## This action allows for certain settings that are "machine only") to be modified.
-# It automatically detects machine definitions that it knows how to change and attaches itself to those.
class MachineSettingsAction(MachineAction):
+ """This action allows for certain settings that are "machine only") to be modified.
+
+ It automatically detects machine definitions that it knows how to change and attaches itself to those.
+ """
def __init__(self, parent: Optional["QObject"] = None) -> None:
super().__init__("MachineSettingsAction", catalog.i18nc("@action", "Machine Settings"))
self._qml_url = "MachineSettingsAction.qml"
@@ -56,9 +58,11 @@ class MachineSettingsAction(MachineAction):
if isinstance(container, DefinitionContainer) and container.getMetaDataEntry("type") == "machine":
self._application.getMachineActionManager().addSupportedAction(container.getId(), self.getKey())
- ## Triggered when the global container stack changes or when the g-code
- # flavour setting is changed.
def _updateHasMaterialsInContainerTree(self) -> None:
+ """Triggered when the global container stack changes or when the g-code
+
+ flavour setting is changed.
+ """
global_stack = cura.CuraApplication.CuraApplication.getInstance().getGlobalContainerStack()
if global_stack is None:
return