diff --git a/plugins/TestTools/TestTool.py b/plugins/TestTools/TestTool.py new file mode 100644 index 0000000000..3c852e5997 --- /dev/null +++ b/plugins/TestTools/TestTool.py @@ -0,0 +1,27 @@ +# Copyright (c) 2016 Ultimaker B.V. +# Cura is released under the terms of the AGPLv3 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) + + 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) + diff --git a/plugins/TestTools/__init__.py b/plugins/TestTools/__init__.py new file mode 100644 index 0000000000..7d41651404 --- /dev/null +++ b/plugins/TestTools/__init__.py @@ -0,0 +1,13 @@ +# 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()} diff --git a/plugins/TestTools/plugin.json b/plugins/TestTools/plugin.json new file mode 100644 index 0000000000..846e39bf09 --- /dev/null +++ b/plugins/TestTools/plugin.json @@ -0,0 +1,7 @@ +{ + "name": "Test Tools", + "author": "Ultimaker", + "version": "1.0", + "description": "Dump the contents of all settings to a HTML file.", + "api": 4 +} \ No newline at end of file