mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-22 09:59:56 +08:00
Remove TestTools plugin
This commit is contained in:
parent
8dfa52f15c
commit
f51129b103
@ -1,38 +0,0 @@
|
||||
# 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
|
||||
|
||||
|
||||
class TestTool(Extension, QObject):
|
||||
def __init__(self, parent = None):
|
||||
QObject.__init__(self, parent)
|
||||
Extension.__init__(self)
|
||||
|
||||
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("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
||||
from cura.CuraApplication import CuraApplication
|
||||
CuraApplication.getInstance()._material_manager._test_metadata()
|
||||
|
||||
def _testGetQuality(self):
|
||||
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
||||
from cura.CuraApplication import CuraApplication
|
||||
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.getQualityChangesGroups(global_stack)
|
||||
for name, r in result.items():
|
||||
print("!!!!!!!!!! [%s] - %s" % (name, r))
|
@ -1,13 +0,0 @@
|
||||
# Copyright (c) 2016 Ultimaker B.V.
|
||||
# Cura is released under the terms of the AGPLv3 or higher.
|
||||
|
||||
from . import TestTool
|
||||
|
||||
from UM.i18n import i18nCatalog
|
||||
catalog = i18nCatalog("cura")
|
||||
|
||||
def getMetaData():
|
||||
return {}
|
||||
|
||||
def register(app):
|
||||
return {"extension": TestTool.TestTool()}
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"name": "Test Tools",
|
||||
"author": "Ultimaker",
|
||||
"version": "1.0",
|
||||
"description": "Dump the contents of all settings to a HTML file.",
|
||||
"api": 4
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user