mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Convert doxygen to rst for GcodeWriter, LegacyProfileReader,
MachineSettingsAction, ModelChecker
This commit is contained in:
parent
40327c4259
commit
553b09b6cf
5 changed files with 117 additions and 87 deletions
|
@ -18,8 +18,8 @@ catalog = i18nCatalog("cura")
|
|||
|
||||
|
||||
class ModelChecker(QObject, Extension):
|
||||
## Signal that gets emitted when anything changed that we need to check.
|
||||
onChanged = pyqtSignal()
|
||||
"""Signal that gets emitted when anything changed that we need to check."""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
@ -47,11 +47,13 @@ class ModelChecker(QObject, Extension):
|
|||
if not isinstance(args[0], Camera):
|
||||
self._change_timer.start()
|
||||
|
||||
## Called when plug-ins are initialized.
|
||||
#
|
||||
# This makes sure that we listen to changes of the material and that the
|
||||
# button is created that indicates warnings with the current set-up.
|
||||
def _pluginsInitialized(self):
|
||||
"""Called when plug-ins are initialized.
|
||||
|
||||
This makes sure that we listen to changes of the material and that the
|
||||
button is created that indicates warnings with the current set-up.
|
||||
"""
|
||||
|
||||
Application.getInstance().getMachineManager().rootMaterialChanged.connect(self.onChanged)
|
||||
self._createView()
|
||||
|
||||
|
@ -106,8 +108,12 @@ class ModelChecker(QObject, Extension):
|
|||
if node.callDecoration("isSliceable"):
|
||||
yield node
|
||||
|
||||
## Creates the view used by show popup. The view is saved because of the fairly aggressive garbage collection.
|
||||
def _createView(self):
|
||||
"""Creates the view used by show popup.
|
||||
|
||||
The view is saved because of the fairly aggressive garbage collection.
|
||||
"""
|
||||
|
||||
Logger.log("d", "Creating model checker view.")
|
||||
|
||||
# Create the plugin dialog component
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue