Nino van Hooff
0b450ef9f4
Fix linked materials not being found due to key casing
...
CURA-6917
2019-11-07 15:51:22 +01:00
Ghostkeeper
7348c70af6
Don't get whole container to just get metadata
...
A performance improvement, especially in the material models.
Contributes to issue CURA-6793.
2019-10-16 13:56:23 +02:00
Jaime van Kessel
eced1fe907
Fix updating a profile with changed settings
2019-09-26 14:02:11 +02:00
Ghostkeeper
105e782e75
Remove unused imports to MaterialManager
...
Contributes to issue CURA-6776.
2019-09-20 09:57:35 +02:00
Ghostkeeper
bb0c9c80dc
Don't use material groups to find just the root container
...
Just look it up in the container registry. If you know the ID, this look-up is just a dictionary look-up as well.
Contributes to issue CURA-6600.
2019-09-13 14:42:27 +02:00
Ghostkeeper
1b9e710f72
Fix exporting with new quality changes groups
...
Those groups are starting to become a bit cumbersome...
Contributes to issue CURA-6600.
2019-09-12 13:40:47 +02:00
Ghostkeeper
2b96543cd3
Store intent category in metadata of quality_changes as well
...
This is necessary in order to restore it properly.
Contributes to issue CURA_6600.
2019-09-11 16:58:11 +02:00
Ghostkeeper
71b94f6d5b
Create own quality changes profiles instead of asking quality manager
...
It was a protected function call on a different class anyway, so that should never have gotten accepted.
Contributes to issue CURA-6600.
2019-09-05 17:26:48 +02:00
Remco Burema
745390e51f
Fix typing.
...
part CURA-6600
2019-08-27 17:57:11 +02:00
Remco Burema
507cb356d2
Remove (all?, most?) deprecated ContainerNode.getMetaDataEntry calls.
...
part of CURA-6600
2019-08-20 15:38:45 +02:00
Ghostkeeper
ae7c717636
Re-implement getLinkedMaterials without material manager
...
Contributes to issue CURA-6600.
2019-08-19 15:40:29 +02:00
Ghostkeeper
b0e6bb4bc9
Update documentation for getLinkedMaterials
...
Contributes to issue CURA-6600.
2019-08-19 15:33:07 +02:00
Jaime van Kessel
dc26f98a3a
Fix import issue
...
CURA-6600
2019-08-19 11:30:04 +02:00
Remco Burema
7fb9642e45
Replace deprecated .getContainer() calls with .container
...
part of CURA-6600
2019-08-15 13:40:08 +02:00
Jaime van Kessel
719e69692c
Fix import issues
...
CURA-6600
2019-08-12 15:20:09 +02:00
Ghostkeeper
98686dd088
Fix imports for CuraApplication
...
Also removed two unused imports.
Contributes to issue CURA-6600.
2019-08-12 15:06:04 +02:00
Ghostkeeper
9ed4713cde
Don't cache singletons in fields
...
This makes it harder to test these things and harder to make it perform well with lazy initialisation.
Contributes to issue CURA-6600.
2019-08-09 14:34:45 +02:00
Jaime van Kessel
7bb35cdbf7
Add test cases for the ContainerManager
2019-03-15 16:17:28 +01:00
Ghostkeeper
6d1b64465a
Fix URL in error message
...
Contributes to issue CURA-5929.
2018-11-12 12:50:18 +01:00
Ghostkeeper
9c555bf67f
Add typing and always add error message if loading failed
...
There were some places where it would return None. Then in the QML it would give a QML error that the null object has no dictionary items.
Contributes to issue CURA-5929.
2018-11-12 11:02:43 +01:00
Jaime van Kessel
3b70e5eb6b
Fix typing
...
For some reason, my MyPy started acting up once I started using the PythonPath while calling it.
2018-09-27 20:01:55 +02:00
Jaime van Kessel
e7d9f0ce45
Added typing for various setting classes
2018-09-10 15:24:11 +02:00
Jack Ha
e7c1d31bee
Fixed change material diameter, changed signature of getContainerMetaDataEntry. CURA-5408
2018-07-10 13:14:11 +02:00
Lipu Fei
e5a11c1f7b
Fix getContainerMetaDataEntry()
...
CURA-5408
2018-07-09 15:12:53 +02:00
Aleksei S
77bd6cf749
Read material weight from container
...
CURA-5408
2018-07-09 14:20:51 +02:00
Diego Prado Gesto
ff6bc9de4e
Fix some more code-style
2018-07-03 13:09:05 +02:00
Diego Prado Gesto
762a1b1bfd
Fix code-style
2018-07-03 12:06:06 +02:00
Diego Prado Gesto
554a3fd908
Merge branch 'master' into mypy_fixes
...
Conflicts:
cura/Backups/Backup.py
cura/Settings/ExtruderManager.py
cura/Settings/MachineManager.py
2018-06-13 11:53:02 +02:00
Lipu Fei
1b3706e172
Fix missing new quality_changes
...
CURA-5471
Otherwise they don't get saved...
2018-06-13 08:59:14 +02:00
Diego Prado Gesto
698c72e190
CURA-5330 Fix typing in ExtruderManager and ContainerManager
2018-06-12 17:24:20 +02:00
Diego Prado Gesto
e554adc1c8
CURA-5453 Remove duplicate line.
2018-06-12 10:40:02 +02:00
Lipu Fei
8ea3c879f4
Fix quality profile update
...
CURA-5453
Should take into account that the custom profile being updated may not
have a quality_changes container for each stack, and Cura should create
one if this is the case, so the user changes results can be stored.
2018-06-11 10:48:22 +02:00
Lipu Fei
051dd7a6e9
WIP: Make application initialization and start up more clear
...
- Create SingleInstance class to handling single instance stuff.
- Instead of calling getInstance() everywhere, initialize each object
explicitly in order when application starts and getInstance()s do not
create instances any more and they merely return the created
instances.
- Only set initial values in construtor functions __init__(). Move the
initialization of context-aware (i.e. things that depend on other
things) to separate functions.
- Split application creation and initialziation into several steps and
them should be called explicitly in the correct order.
2018-05-04 09:57:02 +02:00
Ghostkeeper
572721e20d
Catch ContainerFormatError when deserialising containers
...
Only the deserialize() functions themselves may pass the ContainerFormatError on, because their callers will have to handle those errors anyway.
Contributes to issue CURA-5045.
2018-04-06 13:26:16 +02:00
Ghostkeeper
6d3fed8f52
Allow getContainer() to return None
...
And in the rest of the locations we must then check if it's None and handle that gracefully.
Here we assume that the getContainer message shows a message to the user if necessary. For now we'll just log it.
Contributes to issue CURA-5045.
2018-03-26 15:48:03 +02:00
Lipu Fei
a115956575
Do not show a material itself in its linked material list
2018-03-16 10:40:16 +01:00
Jack Ha
d889795721
CURA-4400 correctly cope with quality changes that conflict with the current enabled extruders
2018-03-12 14:15:49 +01:00
Jack Ha
a3d6127dcb
CURA-4400 removed unnecessary correctExtruderSettings
2018-03-12 11:33:54 +01:00
Jack Ha
3b8d470323
Merge branch 'master' into feature_enable_disable_extruder
2018-03-08 09:35:49 +01:00
Lipu Fei
2a10c9a2d7
Move assertion in _performMerge()
...
CURA-5070
2018-03-08 09:10:45 +01:00
Jack Ha
bad637eb14
CURA-4400 fixed merge conflicts
2018-03-05 16:47:40 +01:00
Lipu Fei
3004b146ad
Fix: move createQualityChanges() to QualityManager
...
CURA-4606
2018-03-05 13:36:13 +01:00
Lipu Fei
5d5932547c
Cleanup imports for ContainerManager
2018-03-03 15:07:42 +01:00
Lipu Fei
c93643bc2f
Move createMaterial() to MaterialManager
2018-03-02 17:30:19 +01:00
Lipu Fei
5f0bb3a283
Move removeMaterial() to MaterialManager
2018-03-02 17:20:26 +01:00
Lipu Fei
7642afb9fe
Move duplicateMaterial() to MaterialManager
2018-03-02 17:16:35 +01:00
Lipu Fei
ca785c9df3
Move duplicateQualityChanges() to QualityManager
2018-03-02 17:08:58 +01:00
Lipu Fei
355b8cbac3
Move renameQualityChangesGroup() into QualityManager
2018-03-02 16:58:50 +01:00
Lipu Fei
8324f4f44e
Move removeQualityChangesGroup() into QualityManager
2018-03-02 16:47:25 +01:00
Lipu Fei
6cae82a64e
Fix comments for createQualityChanges()
2018-03-02 16:42:10 +01:00