Somewhat better layout, added legend

This commit is contained in:
Jack Ha 2017-01-03 09:18:26 +01:00
parent f0e0d65635
commit 55dd08eff8
3 changed files with 67 additions and 5 deletions

View file

@ -76,6 +76,13 @@ class LayerViewProxy(QObject):
if type(active_view) == LayerView.LayerView.LayerView:
active_view.setLayerViewType(layer_view_type)
@pyqtProperty(bool)
def getLayerViewType(self):
active_view = self._controller.getActiveView()
if type(active_view) == LayerView.LayerView.LayerView:
return active_view.getLayerViewType()
return 0
@pyqtSlot(bool)
def setOnlyColorActiveExtruder(self, only_color_active_extruder):
active_view = self._controller.getActiveView()