mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-05 07:25:10 +08:00
Make ExtruderManagerModel no longer a PyQt model
It is still a model according to the MVC paradigm but not according to Qt. To be consistent with the rest, don't call it a model any more. Contributes to issues CURA-1278 and CURA-351.
This commit is contained in:
parent
2a288cd7a2
commit
a08e71774d
@ -1,7 +1,6 @@
|
|||||||
# Copyright (c) 2016 Ultimaker B.V.
|
# Copyright (c) 2016 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the AGPLv3 or higher.
|
# Cura is released under the terms of the AGPLv3 or higher.
|
||||||
|
|
||||||
from PyQt5.QtCore import QObject, pyqtSlot, pyqtProperty, pyqtSignal
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from UM.Application import Application #To get the global container stack to find the current machine.
|
from UM.Application import Application #To get the global container stack to find the current machine.
|
||||||
@ -15,13 +14,9 @@ from UM.Settings.ContainerRegistry import ContainerRegistry #Finding containers
|
|||||||
# This finds the extruders that are available for the currently active machine
|
# This finds the extruders that are available for the currently active machine
|
||||||
# and makes sure that whenever the machine is swapped, this list is kept up to
|
# and makes sure that whenever the machine is swapped, this list is kept up to
|
||||||
# date. It also contains and updates the setting stacks for the extruders.
|
# date. It also contains and updates the setting stacks for the extruders.
|
||||||
class ExtruderManagerModel(QObject):
|
class ExtruderManager:
|
||||||
## Registers listeners and such to listen to changes to the extruders.
|
## Registers listeners and such to listen to changes to the extruders.
|
||||||
#
|
def __init__(self):
|
||||||
# \param parent Parent QObject of this model.
|
|
||||||
def __init__(self, parent = None):
|
|
||||||
super().__init__(parent)
|
|
||||||
|
|
||||||
self._extruderDefinitions = [] #Extruder definitions for the current machine.
|
self._extruderDefinitions = [] #Extruder definitions for the current machine.
|
||||||
self._nozzles = {} #Nozzle instances for each extruder.
|
self._nozzles = {} #Nozzle instances for each extruder.
|
||||||
self._extruderTrains = [] #Container stacks for each of the extruder trains.
|
self._extruderTrains = [] #Container stacks for each of the extruder trains.
|
Loading…
x
Reference in New Issue
Block a user