Diego Prado Gesto
e1fd9b03a4
Remove all dependencies of the CuraContainerStack with the
...
ContainerRegistry.
That will be very helpful for creating unit tests. Also this is not
needed because the next stack is always set in the machine or extruder
manager when switching printers.
Contributes to CURA-5628.
2018-08-14 15:35:00 +02:00
Lipu Fei
af02dc2758
Only use setMetaDataEntry()
2018-07-11 11:14:57 +02:00
Ghostkeeper
51f24bc8c8
Call getMachineManager on CuraApplication
...
Because Application doesn't have it. Its child class has.
Contributes to issue CURA-5330.
2018-06-04 09:53:20 +02:00
Ghostkeeper
49c684a741
Add function typing
...
Contributes to issue CURA-5330.
2018-06-04 09:51:34 +02:00
Ghostkeeper
2fbcc22123
Fix adding printers due to unused 'parent' parameter
...
The 'parent' parameter was unused, so I removed it. But I didn't remove all things that called it, apparently. I just removed some. I didn't try the stackbuilder.
Contributes to issue CURA-5330.
2018-06-01 14:02:32 +02:00
Diego Prado Gesto
b576423747
Adapt ovewritten method signature
2018-05-07 11:49:30 +02:00
Ian Paschal
d7b0f11ddf
CURA-4400 Fixed project loading
...
"enabled" metadata is now read from saved projects (.3mf)
2018-03-20 11:17:39 +01:00
Jack Ha
906ebe12e1
CURA-4400 fix disallowed areas by fixing the limit_to_extruder -1 value
2018-03-19 11:46:43 +01:00
Jack Ha
bad637eb14
CURA-4400 fixed merge conflicts
2018-03-05 16:47:40 +01:00
Jack Ha
b0801d40e3
CURA-4400 added metadata entry for enabled instead of internal variable
2018-03-05 12:47:32 +01:00
Lipu Fei
a2c2282b44
Use context to evaluate materialDiameter
2018-03-03 15:50:33 +01:00
Jack Ha
86c13e86c7
CURA-4400 first version that disables extruder and updates available quality profiles
2018-02-28 12:56:00 +01:00
Jack Ha
df46241225
CURA-4606 CURA-5012 corrected and moved approximateMaterialDiameter to ExtruderStack
2018-02-27 13:03:08 +01:00
Lipu Fei
9ddc6a52b7
Refactor fix for extruder stack material diameters and nozzle sizes
2018-02-26 11:40:21 +01:00
Lipu Fei
c432d4ffbb
WIP: Simplify global stack and extruder stack activation and fixes
2018-02-20 11:16:51 +01:00
Lipu Fei
f4d69918fb
WIP: Remove findDefault..()s
2018-02-16 14:23:11 +01:00
Lipu Fei
3927c70625
Fix material_diameter handling in ExtruderStacks
...
CURA-4898
2018-01-31 13:32:45 +01:00
Lipu Fei
1c605a5108
Fix different strategies for machine and quality in project loading
...
CURA-4839
2018-01-23 10:58:43 +01:00
ChrisTerBeke
129f9cc16c
Fixes for custom FMD printer material diameter upgrade and storage - CURA-4835
2018-01-22 17:18:09 +01:00
ChrisTerBeke
e17fbb0db2
Remove copying 1st extruder value to all extruders as that breaks re-loading from files
2018-01-22 16:05:43 +01:00
ChrisTerBeke
f589ce9570
Copy first extruder values when they are available when upgrading - CURA-4835
2018-01-22 11:25:23 +01:00
Lipu Fei
7c85db4a18
Fix material_diameter copy over for Extruders
...
CURA-4835
2018-01-19 12:30:56 +01:00
Lipu Fei
a7d51326c0
Move extruder-specific DC settings
...
CURA-4708
Read code comments.
2017-12-22 14:06:11 +01:00
Lipu Fei
18c7a5acf3
Pass optional file_name for deserialization
...
CURA-4613
Some upgrades depend on the file_name, so the file_name is needed in
this case.
2017-11-23 11:28:16 +01:00
ChrisTerBeke
657a91c525
Merge pull request #2685 from Ultimaker/container_stack_improvements
...
Container stack improvements
2017-11-20 17:42:26 +01:00
Mark
9a193ad5c5
Changing AGPLv3 to LGPLv3
2017-09-28 13:00:43 +02:00
Lipu Fei
365379f735
Add missing context in getProperty() in global and extruder stacks
...
CURA-4186
All getProperty() calls should use the provided context.
2017-08-24 17:01:03 +02:00
Lipu Fei
759d44dbef
Add stack context for function evaluation
...
CURA-4186
2017-08-23 14:39:08 +02:00
Ghostkeeper
cf1309c650
Don't update next stack if there is no next stack
...
Not all extruder stacks have a next stack. Well currently every extruder stack should have a next stack, but the code is built around the possibility that there isn't a next stack elsewhere too.
Contributes to issue CURA-4121.
2017-08-07 09:47:53 +02:00
Lipu Fei
18fddf50c7
Add type hinting for container_id in ExtruderStack
...
CURA-4049
2017-07-18 09:22:45 +02:00
Arjen Hiemstra
95b825a4c5
Emit propertiesChanged on the global stack from the extruder stack
...
But only when the setting that changed has a relation that is not
settable per extruder.
Fixes CURA-3521
2017-07-11 12:03:23 +02:00
Lipu Fei
9ff7852055
Only use limit_to_extruder when the extruder exists
...
CURA-3756
2017-05-19 13:37:38 +02:00
Arjen Hiemstra
a7bf205dbc
Turn GlobalStack's extruders property into a dict
...
We do not load the extruders in a fixed order, thus we cannot assume
that addExtruder is called in the right order. This means that index 0
of the extruders is not necessarily the extruder with position 0. So
instead, use the extruder position as a dict key.
Contributes to CURA-3738
2017-05-17 10:58:28 +02:00
Jaime van Kessel
ba8842f489
Removed unused imports
2017-05-15 11:56:19 +02:00
Jaime van Kessel
2cc56c5edf
Fixed type hinting for Extruder stack
2017-05-15 11:55:32 +02:00
Arjen Hiemstra
fdc6fbbac1
Handle limit_to_extruder in {Extruder,Global}Stack getProperty
...
This way we do not need to special case limit_to_extruder and instead
always use limit_to_extruder if it is set.
Contributest to CURA-3738
2017-05-11 17:50:12 +02:00
Jaime van Kessel
8d80f20db7
Added way to dynamicly set loading order
...
This is to ensure that Global stacks are loaded before extruders, so once the extruders are deseralized, they can always find the next (global) stack
CURA-3497
2017-05-03 09:54:00 +02:00
Jaime van Kessel
3dae6b4bbf
Fixed machine not being set
2017-05-02 11:58:48 +02:00
Arjen Hiemstra
0467a8688a
Make the UM3 work properly
2017-04-18 17:42:20 +02:00
Arjen Hiemstra
edc5b8b84e
Register extruders with ExtruderManager
...
For backward compatibility
2017-04-18 17:38:09 +02:00
Arjen Hiemstra
de57546020
Document ExtruderStack
2017-04-18 17:37:52 +02:00
Arjen Hiemstra
df8bba6c96
Add "machine" metadata entry when setting the next stack for an extruder
2017-04-13 01:33:22 +02:00
Arjen Hiemstra
d29ae60d38
Add missing Any import
2017-04-12 12:05:40 +02:00
Arjen Hiemstra
b9dc94e1f6
Override getProperty in ExtruderStack with some additional checks
2017-04-11 17:45:23 +02:00
Arjen Hiemstra
433537a2f0
Add type metadata to Extruder/Global stack
...
For backward compatibility with old code that still checks for "type".
2017-04-06 17:49:22 +02:00
Arjen Hiemstra
202f19a081
Make ExtruderStack a subclass of CuraContainerStack
2017-03-30 08:58:05 +02:00
Arjen Hiemstra
39803cf7dd
Add missing imports to Extruder/GlobalStack
2017-03-27 17:52:16 +02:00
Arjen Hiemstra
dd8ea6175c
Add properties for user changes etc. to ExtruderStack
2017-03-27 01:32:36 +02:00
Arjen Hiemstra
3b0fdecb60
Introduce an ExtruderStack class
...
This will allow us to codify some of the assumptions made about
extruders.
Contributes to CURA-3497
2017-03-20 17:22:11 +01:00