|
@@ -128,12 +128,13 @@ if TYPE_CHECKING:
|
|
|
numpy.seterr(all = "ignore")
|
|
|
|
|
|
try:
|
|
|
- from cura.CuraVersion import CuraVersion, CuraBuildType, CuraDebugMode, CuraSDKVersion # type: ignore
|
|
|
+ from cura.CuraVersion import CuraAppDisplayName, CuraVersion, CuraBuildType, CuraDebugMode, CuraSDKVersion # type: ignore
|
|
|
except ImportError:
|
|
|
+ CuraAppDisplayName = "Ultimaker Cura"
|
|
|
CuraVersion = "master" # [CodeStyle: Reflecting imported value]
|
|
|
CuraBuildType = ""
|
|
|
CuraDebugMode = False
|
|
|
- CuraSDKVersion = ""
|
|
|
+ CuraSDKVersion = "5.0.0"
|
|
|
|
|
|
|
|
|
class CuraApplication(QtApplication):
|
|
@@ -161,7 +162,9 @@ class CuraApplication(QtApplication):
|
|
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
super().__init__(name = "cura",
|
|
|
+ app_display_name = CuraAppDisplayName,
|
|
|
version = CuraVersion,
|
|
|
+ api_version = CuraSDKVersion,
|
|
|
buildtype = CuraBuildType,
|
|
|
is_debug_mode = CuraDebugMode,
|
|
|
tray_icon_name = "cura-icon-32.png",
|
|
@@ -429,34 +432,30 @@ class CuraApplication(QtApplication):
|
|
|
|
|
|
self.setRequiredPlugins([
|
|
|
# Misc.:
|
|
|
- "ConsoleLogger",
|
|
|
- "CuraEngineBackend",
|
|
|
- "UserAgreement",
|
|
|
- "FileLogger",
|
|
|
- "XmlMaterialProfile",
|
|
|
- "Toolbox",
|
|
|
- "PrepareStage",
|
|
|
- "MonitorStage",
|
|
|
- "LocalFileOutputDevice",
|
|
|
- "LocalContainerProvider",
|
|
|
+ "ConsoleLogger", #You want to be able to read the log if something goes wrong.
|
|
|
+ "CuraEngineBackend", #Cura is useless without this one since you can't slice.
|
|
|
+ "UserAgreement", #Our lawyers want every user to see this at least once.
|
|
|
+ "FileLogger", #You want to be able to read the log if something goes wrong.
|
|
|
+ "XmlMaterialProfile", #Cura crashes without this one.
|
|
|
+ "Toolbox", #This contains the interface to enable/disable plug-ins, so if you disable it you can't enable it back.
|
|
|
+ "PrepareStage", #Cura is useless without this one since you can't load models.
|
|
|
+ "MonitorStage", #Major part of Cura's functionality.
|
|
|
+ "LocalFileOutputDevice", #Major part of Cura's functionality.
|
|
|
+ "LocalContainerProvider", #Cura is useless without any profiles or setting definitions.
|
|
|
|
|
|
# Views:
|
|
|
- "SimpleView",
|
|
|
- "SimulationView",
|
|
|
- "SolidView",
|
|
|
+ "SimpleView", #Dependency of SolidView.
|
|
|
+ "SolidView", #Displays models. Cura is useless without it.
|
|
|
|
|
|
# Readers & Writers:
|
|
|
- "GCodeWriter",
|
|
|
- "STLReader",
|
|
|
- "3MFWriter",
|
|
|
+ "GCodeWriter", #Cura is useless if it can't write its output.
|
|
|
+ "STLReader", #Most common model format, so disabling this makes Cura 90% useless.
|
|
|
+ "3MFWriter", #Required for writing project files.
|
|
|
|
|
|
# Tools:
|
|
|
- "CameraTool",
|
|
|
- "MirrorTool",
|
|
|
- "RotateTool",
|
|
|
- "ScaleTool",
|
|
|
- "SelectionTool",
|
|
|
- "TranslateTool",
|
|
|
+ "CameraTool", #Needed to see the scene. Cura is useless without it.
|
|
|
+ "SelectionTool", #Dependency of the rest of the tools.
|
|
|
+ "TranslateTool", #You'll need this for almost every print.
|
|
|
])
|
|
|
self._i18n_catalog = i18nCatalog("cura")
|
|
|
|