Merge branch 'feature_preheat_bed' of github.com:Ultimaker/Cura

This commit is contained in:
Jaime van Kessel 2017-02-13 14:16:50 +01:00
commit e8c5f81c79
8 changed files with 652 additions and 63 deletions

View file

@ -103,6 +103,16 @@ class ExtruderManager(QObject):
def activeExtruderIndex(self):
return self._active_extruder_index
## Gets the extruder name of an extruder of the currently active machine.
#
# \param index The index of the extruder whose name to get.
@pyqtSlot(int, result = str)
def getExtruderName(self, index):
try:
return list(self.getActiveExtruderStacks())[index].getName()
except IndexError:
return ""
def getActiveExtruderStack(self):
global_container_stack = UM.Application.getInstance().getGlobalContainerStack()
if global_container_stack: