Jaime van Kessel
1e240e3229
Let intent selection use the quality_definition instead of direct def
...
The issue was that sometimes intents are also shared.
CURA-10788
2023-07-21 10:57:39 +02:00
digitalfrost
250c038e03
CuraContainerStack.py: iterate directly over IndexTypeMap ( #12988 )
...
* CuraContainerStack.py: iterate directly over IndexTypeMap
There is no need for range(len
Co-authored-by: Jelle Spijker <spijker.jelle@gmail.com>
2022-09-06 11:41:50 +02:00
digitalfrost
60c8712b10
CuraContainerStack.py: improve TypeIndexMap
...
Cleaner and more idiomatic way to reverse a dictionary
2022-08-09 11:42:18 +02:00
Jaime van Kessel
b4b7e6a2b9
Fix warnings that "instanceContainer" is not a recognised type
2022-03-31 14:03:04 +02:00
Remco Burema
abe7c1bf7f
Search/replace Qt5->Qt6.
...
part of upgrading Qt to v6.2: CURA-8591
2021-12-28 14:46:02 +01:00
Jaime van Kessel
bc67b057ea
Add missing required typing
2020-08-14 15:19:59 +02:00
Jaime van Kessel
eee84a82bf
Use exception instead of check if key is in dict
...
Since the amount of times that the key is in there is orders of magnitude
larger, it's better to catch the exception when it doesn't (as that is
slightly faster)
2020-08-14 15:15:33 +02:00
Jaime van Kessel
9c904f95ce
Add a cache for settable_per_extruder property
2020-08-14 14:51:46 +02:00
Jaime van Kessel
f0002e265b
Mark recently constructed stacks as not dirty
...
The stacks would get marked dirty for setting some metadata, but since thats
part of their construction, they aren't really dirty.
Previously, every single stack that was loaded would be marked as dirty, which causes unneeded
saving.
2020-06-18 17:39:58 +02:00
Nino van Hooff
89f0970a88
Remove trailing whitespace from Python files
2020-05-29 14:30:33 +02:00
Nino van Hooff
c2c96faf5f
Convert remaining doxygen to rst
2020-05-28 17:13:44 +02:00
Lipu Fei
c030328b7f
Fix intent profile selection
...
CURA-6810
2019-10-01 15:21:01 +02:00
Remco Burema
cb7d99d2dc
Revert "Make 3MF-reader aware of setting-version for introduction Intent."
...
This reverts commit 16ea437255f059d7de2e9d76a4aba4e0d2cb74ab.
Should have been (and is now) done in the version upgrade instead.
2019-09-20 11:56:08 +02:00
Remco Burema
16ea437255
Make 3MF-reader aware of setting-version for introduction Intent.
2019-09-04 14:52:54 +02:00
Ghostkeeper
037f1967c8
Remove override for version number in CuraContainerStack
...
Otherwise plug-ins can't register ContainerStacks any more.
As discussed in the CCB.
2019-07-10 14:57:26 +02:00
Jaime van Kessel
35ec70a3cf
Add a selector for the intent profile
...
CURA-6534
2019-06-05 11:13:32 +02:00
Jaime van Kessel
a595feb24e
Increase the version of the CuraContainer stack
...
Since we added a new layer to it, it's version is one level higher (*DING*)
CURA-6534
2019-06-03 11:10:20 +02:00
Jaime van Kessel
2e71ce2710
Added intent to the CuraContainerStack
...
CURA-6534
2019-06-03 10:52:19 +02:00
Lipu Fei
89cb67017f
Add unit test for addDefaultMachineActions()
...
CURA-5812
2018-10-23 08:49:23 +02:00
Lipu Fei
fe8aa02e7c
Fix a direct signal emission that causes max recursion error
...
CURA-5682
A max recursion error will occur when the user creates a material on the
material management page. Too many signals get directly triggered and
some of them head back again and causes a max recursion error.
2018-09-24 11:44:55 +02:00
Lipu Fei
c20274e356
Move constant instance containers to a separate file
...
This way we separate the class/type definitions and the actual
constants.
2018-08-15 11:04:09 +02:00
Diego Prado Gesto
c8af4f45ce
Decouple the creation of the stack containers from the process that add
...
them to the container registry, that is done in CuraApplication.
That allow us to have access to the empty containers and so we can unit
test easily without mocking up stuff.
Contributes to CURA-5628.
2018-08-14 13:25:56 +02:00
Lipu Fei
af02dc2758
Only use setMetaDataEntry()
2018-07-11 11:14:57 +02:00
Diego Prado Gesto
f91b6faecc
Fix code-styling
2018-07-03 17:57:30 +02:00
Diego Prado Gesto
762a1b1bfd
Fix code-style
2018-07-03 12:06:06 +02:00
Ghostkeeper
b331736cb2
Let _findInstanceContainerDefinitionId work with DefinitionContainerInterface
...
But where it needs the .id field it needs to ignore this type because this works with getattr weirdness.
Contributes to issue CURA-5330.
2018-06-14 09:58:16 +02:00
Ghostkeeper
eac3c759cd
Cast each container in their stack to actual types
...
We know for sure that these containers have those types. We'll accept the risk here that this assumption was wrong.
Contributes to issue CURA-5330.
2018-06-14 09:58:07 +02:00
Ghostkeeper
b920b9de4f
Fix type of setProperty
...
And properly pass on the extra parameters.
Contributes to issue CURA-5330.
2018-06-01 14:53:54 +02:00
Ghostkeeper
e38228ac24
Remove unused target_container parameter
...
It's not compatible with ContainerInterface anyway.
Contributes to issue CURA-5330.
2018-06-01 14:53:54 +02:00
Ghostkeeper
e77592d718
Add missing typing for CuraContainerStack
...
This was already largely done, but not 100%.
Contributes to issue CURA-5330.
2018-06-01 14:53:13 +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
Lipu Fei
df1e15b1e5
Move the definition_changes fix to CuraContainerStack
...
CURA-5281
2018-04-25 16:12:47 +02:00
Jack Ha
bd775cf32e
CURA-4400 fix support_extruder_nr values in overhang angle and SliceInfo
2018-03-19 10:56:40 +01:00
Lipu Fei
f4d69918fb
WIP: Remove findDefault..()s
2018-02-16 14:23:11 +01:00
Lipu Fei
12164a0c88
WIP: Remove set..ById()s in CuraContainerStack
2018-02-16 14:23:11 +01:00
Jack Ha
8aab8f4394
CURA-4606 cleanup and optimization for replaceContainer
2018-02-16 14:23:11 +01:00
Diego Prado Gesto
e5e6da2970
Change comments
2018-01-11 09:49:07 +01:00
Diego Prado Gesto
3a01a407cf
CURA-4461 Set default variant builplate when the new printer is added
2018-01-11 09:16:11 +01:00
Diego Prado Gesto
ff10af905c
CURA-4461 Add code to set the default preferred buildplate when adding a
...
new machine that has different buildplates.
2018-01-10 16:04:30 +01:00
Aleksei S
2c18127cc1
Tests: Removed python circular import dependency and added empty containers
...
CURA-4687
2017-12-15 09:43:02 +01:00
Lipu Fei
6e6dc493f1
Fix material loading for unknown names
2017-12-13 12:27:55 +01:00
Jack Ha
ce78bddfbb
Prefer a read-only material in findDefaultMaterial.
...
Contributes to CURA-4243.
2017-12-05 09:51:57 +01:00
Ghostkeeper
dad99f5292
Merge branch 'master' into feature_local_container_server
...
Contributes to issue CURA-4243.
2017-11-29 13:06:08 +01:00
Lipu Fei
c7667b56e2
Multiple fixes for stacks
...
CURA-4617
2017-11-24 09:45:59 +01:00
Lipu Fei
17f09ec21e
Fix variant/material/quality handling in stacks
...
CURA-4613
2017-11-23 12:46:33 +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
Ghostkeeper
6c4c7fff4d
Use findContainersMetadata whenever possible
...
This ensures that we only load those containers that we actually need the data of.
Contributes to issue CURA-4243.
2017-10-20 15:09:45 +02:00
Mark
9a193ad5c5
Changing AGPLv3 to LGPLv3
2017-09-28 13:00:43 +02:00
fieldOfView
43c6801e58
Find a material with the correct diameter when adding a printer
2017-08-20 16:52:56 +02:00