Remco Burema
abe7c1bf7f
Search/replace Qt5->Qt6.
...
part of upgrading Qt to v6.2: CURA-8591
2021-12-28 14:46:02 +01:00
jelle Spijker
4067d9d607
Fixed typing
...
Contributes to CURA-6096
2021-09-02 10:17:40 +02:00
Jaime van Kessel
2bef85c6c2
Remove weird whitespace
...
CURA-6096
2021-08-24 14:45:52 +02:00
Jaime van Kessel
e0e8223c5d
Move DB handling into specialised classes
...
This keeps CuraContainerRegistry a lot cleaner, especially when more container types are
added
Cura-6096
2021-08-20 15:40:50 +02:00
Jaime van Kessel
27f0fe8bb9
Ensure that all metadata of profiles is stored
...
CURA-6096
2021-08-20 14:40:55 +02:00
Jaime van Kessel
6f32809a3a
Prepare the inserts before actually doing them
...
CURA-6096
2021-08-20 13:09:40 +02:00
Jaime van Kessel
5311c949f0
Add variants to the database
...
CURA-6096
2021-08-20 11:05:37 +02:00
Jaime van Kessel
48ab21ac68
Add functions to get & add variants & qualities from DB
...
CURA-6096
2021-08-20 10:17:57 +02:00
Jaime van Kessel
3f80fcb5e5
Add first stub for profile database
...
CURA-6096
2021-08-19 15:20:20 +02:00
Jelle Spijker
2263969d5f
Updated message with message types
...
Contributes to CURA-8418
2021-07-28 08:45:42 +02:00
Jaime van Kessel
900db57f0f
Update messages to use the message_types
...
CURA-8418
2021-07-27 11:54:43 +02:00
Ghostkeeper
58369822fc
Clean up invalid quality changes robust to asynchronous changes
...
It's possible that a profile is no longer in the registry by the time it gets to that point in the list if this clean-up is triggered by the very action of deleting a profile.
Fixes Sentry issue CURA-1T5.
2021-03-16 16:36:01 +01:00
Ghostkeeper
1b8463ba30
Catch TypeError when parsing setting version
...
Someone had a list in the setting version, which then crashed Cura.
2021-01-19 14:09:46 +01:00
Ghostkeeper
5cfe18d31c
Clarify user-facing string to remove internal terminology
...
The user doesn't know what a global stack is. This is a message that more clearly specifies what is really happening as far as the user can see.
The global stack may be None if this code is executed while there is no active printer. Normally the only time there is no active printer is:
- during first launch, while in the welcome screen
- during start-up until the profiles have been loaded
- if there was a profile corruption of some kind with the active printer.
So this function should not get called during those times. It probably isn't called except for the last case (in which case it's acceptable I guess).
This change is made after a request from a translator what the hell this means.
Contributes to issue CURA-7783.
2020-10-27 10:54:07 +01:00
Remco Burema
3fcd7d567f
Show warning icon on import non-visible profile.
...
part of CURA-7691
2020-09-16 08:26:41 +02:00
Kostas Karmas
0524e8d129
Fix missing quality profile when message says its successful
...
Make sure to add the container before doing any other checks. Then, if the importing fails, remove
all the profiles related to that quality.
CURA-7691
2020-09-11 11:35:39 +02:00
Kostas Karmas
665496ceff
Warn when importing quality profiles that don't match the current configuration
...
When importing a profile that doesn't much the current nozzle combination (e.g. importing a 'high'
quality when we have AA0.8 and AA0.4 nozzles), the profile was being accepted and a success message
was shown to the user, but the quality did not show up in the profile list.
This commit fixes that by accepting the quality profile and informing the user that the profile is
not visible due to the current configuration.
CURA-7691
2020-09-10 16:58:30 +02:00
Jaime van Kessel
f9c6bbb092
Fix strict noneCHeck mypy issue
2020-07-29 12:24:38 +02:00
Jaime van Kessel
fb2f40fba7
Add missing typing
2020-07-29 12:12:54 +02:00
Jaime van Kessel
65377770c4
Remove invalid quality_changes from the container registry
...
Fixes CURA-3T
2020-07-29 12:03:03 +02:00
Jaime van Kessel
6934e9521f
Make sure that loading an invalid container gets handled correctly
...
Previously it would still add them, which caused issues.
2020-07-29 11:08:10 +02:00
Ghostkeeper
ffac9adb96
Add default for extruder position
...
The position argument metadata always be there. However if it's not (because the file is old, or manually modified, or a version upgrade worked incorrectly, or whatever) then we shouldn't crash. We just don't know how to order it correctly then. This tries to repair it as best it can.
2020-06-25 15:08:08 +02:00
Nino van Hooff
58ffc9dcae
Merge remote-tracking branch 'origin/master' into doxygen_to_restructuredtext_comments
...
# Conflicts:
# cura/API/__init__.py
# cura/Settings/CuraContainerRegistry.py
# cura/Settings/ExtruderManager.py
# plugins/PostProcessingPlugin/scripts/PauseAtHeight.py
# plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py
# plugins/UM3NetworkPrinting/src/Cloud/ToolPathUploader.py
# plugins/UM3NetworkPrinting/src/Network/LocalClusterOutputDeviceManager.py
2020-05-28 17:31:24 +02:00
Nino van Hooff
c2c96faf5f
Convert remaining doxygen to rst
2020-05-28 17:13:44 +02:00
Ghostkeeper
4482b4f352
Use extruderList rather than deprecated extruders
...
This fixes a possible bug, too, if the extruders dictionary weren't iterated over in the order of the extruders. It would sometimes assign the profiles to the wrong extruders then. However I think the dictionary iteration in Python is in order of insertion and we probably insert them in the proper order by accident.
Done during Turbo Testing and Tooling to reduce the number of warnings in our log.
2020-05-15 15:14:56 +02:00
Ghostkeeper
e0e0371de4
Use extruderList rather than extruders
...
Removes another warning from the log. And it makes the code simpler in this case.
Done during Turbo Testing and Tooling to reduce the number of warnings in our log file.
2020-05-15 15:10:30 +02:00
Jaime van Kessel
e74f049142
Fix bunch of issues found by pylint
2020-01-10 16:37:46 +01:00
Lipu Fei
0d554c4938
Merge remote-tracking branch 'origin/master' into feature_intent
2019-10-04 10:19:36 +02:00
Ghostkeeper
38ae0e75f2
Fallback to fdmprinter if not has_machine_quality
...
Contributes to issue CURA-6847.
2019-10-03 16:25:09 +02:00
Lipu Fei
027768f151
Use machine def id as quality_definition fallback
...
CURA-6847
2019-10-03 12:56:22 +02:00
Jaime van Kessel
1def289bb9
Fix crash when importing profile that has different quality_definition
...
CURA-6847
2019-10-03 09:51:45 +02:00
Jaime van Kessel
f5f91c9c3a
Ensure that profiles are cleaned up if one of the set is incorrect
2019-10-02 13:06: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
Diego Prado Gesto
b18565d9cf
Merge branch 'master' into feature_intent_container_tree
2019-09-10 11:08:21 +02:00
Ghostkeeper
2f917c2841
Change definition ID upon reading profile
...
Implements CURA-6713.
2019-09-03 15:38:41 +02:00
Ghostkeeper
c41af1b9a0
Remove user-visible XML tags
...
These XML tags are outside of the i18n call and are therefore not removed by gettext. They should not be present there.
2019-09-03 14:00:09 +02:00
Ghostkeeper
b9370f864e
Get quality definition from container tree
...
Contributes to issue CURA-6600.
2019-08-28 14:34:00 +02:00
Ghostkeeper
ae77f9124c
Use container tree to determine quality_definition of profile and printer
...
To see if they match.
Contributes to issue CURA-6600.
2019-08-28 13:55:11 +02:00
Ghostkeeper
61e13087cd
Fix testing for available quality types
...
Contributes to issue CURA-6600.
2019-08-28 13:26:18 +02:00
Ghostkeeper
6dd0333626
Use container tree instead of getMachineDefinitionIdForQualitySearch
...
It's in the metadata there, so use it.
Contributes to issue CURA-6600.
2019-08-28 13:21:23 +02:00
Remco Burema
745390e51f
Fix typing.
...
part CURA-6600
2019-08-27 17:57:11 +02:00
Lipu Fei
69e9dc1313
Allow importing "not supported" profiles
...
CURA-6542
2019-08-27 09:08:19 +02:00
Jaime van Kessel
108b22932b
Override saveDirtyContainers with Cura specific logic
2019-08-26 14:55:30 +02:00
Ghostkeeper
648999e32b
Use regex literal instead of normal literal for regex
...
Hopefully this fixes the deprecation warning in newer Python versions.
Contributes to issue #6114 .
2019-08-08 09:46:21 +02:00
Jaime van Kessel
5f692f3028
Added missing typing
2019-08-02 15:16:29 +02:00
Ghostkeeper
7fbdccffdb
Add typing
2019-06-18 12:00:22 +02:00
Jaime van Kessel
14d5fa5529
Add a bunch of tests for importing profiles
2019-05-31 13:59:54 +02:00
Jaime van Kessel
43360aace0
Add tests for ExportQualityProfile
2019-05-31 13:07:03 +02:00
Jaime van Kessel
0616601250
Merge branch '4.0' of github.com:Ultimaker/Cura
2019-03-11 10:39:23 +01:00