WIP: add getQaulityChangesGroup()

This commit is contained in:
Lipu Fei 2018-02-14 09:31:42 +01:00
parent 27169e883c
commit d84ea07e9e
3 changed files with 113 additions and 50 deletions

View file

@ -1,5 +1,5 @@
# Copyright (c) 2016 Ultimaker B.V.
# Cura is released under the terms of the AGPLv3 or higher.
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv2 or higher.
from UM.Extension import Extension
from PyQt5.QtCore import QObject
@ -12,6 +12,7 @@ class TestTool(Extension, QObject):
self.addMenuItem("Test material manager", self._testMaterialManager)
self.addMenuItem("Test get quality", self._testGetQuality)
self.addMenuItem("Test get quality changes", self.testGetQualityChanges)
def _testMaterialManager(self):
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
@ -24,4 +25,13 @@ class TestTool(Extension, QObject):
result_dict = {}
global_stack = CuraApplication.getInstance().getMachineManager()._global_container_stack
result = CuraApplication.getInstance()._quality_manager.getQualityGroups(global_stack)
print("!!!!!!!!!!!!!!!!!!!")
def testGetQualityChanges(self):
print("!!!!!!!!!!!!!!!!!!!")
from cura.CuraApplication import CuraApplication
result_dict = {}
global_stack = CuraApplication.getInstance().getMachineManager()._global_container_stack
result = CuraApplication.getInstance()._quality_manager.getQualityChangesGroup(global_stack)
print("!!!!!!!!!!!!!!!!!!!")