Legend is now in the switching layer type area, removed legend upper right. CURA-3321

This commit is contained in:
Jack Ha 2017-02-28 13:34:58 +01:00
parent 27f013fd81
commit ba6a8eb869
4 changed files with 33 additions and 54 deletions

View file

@ -30,8 +30,7 @@ class LayerViewProxy(QObject):
active_view = self._controller.getActiveView()
if type(active_view) == LayerView.LayerView.LayerView:
return active_view.getMaxLayers()
#return 100
@pyqtProperty(int, notify = currentLayerChanged)
def currentLayer(self):
active_view = self._controller.getActiveView()
@ -124,18 +123,6 @@ class LayerViewProxy(QObject):
return active_view.getExtruderCount()
return 0
@pyqtSlot()
def enableLegend(self):
active_view = self._controller.getActiveView()
if type(active_view) == LayerView.LayerView.LayerView:
active_view.enableLegend()
@pyqtSlot()
def disableLegend(self):
active_view = self._controller.getActiveView()
if type(active_view) == LayerView.LayerView.LayerView:
active_view.disableLegend()
def _layerActivityChanged(self):
self.activityChanged.emit()