Remco Burema
507cb356d2
Remove (all?, most?) deprecated ContainerNode.getMetaDataEntry calls.
...
part of CURA-6600
2019-08-20 15:38:45 +02:00
Remco Burema
9374934d72
Merge branch 'feature_intent_container_tree' of https://github.com/Ultimaker/Cura into feature_intent_container_tree
2019-08-15 16:47:29 +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
c0f70c447e
Ensure that the materials are loaded again
...
CURA-6600
2019-08-15 13:32:42 +02:00
Ghostkeeper
54b46abd0f
Use specific classes instead of ContainerNode superclass
...
Also update the usage of these nodes because the getContainer() function is deprecated.
Contributes to issue CURA-6600.
2019-08-13 17:20:58 +02:00
Ghostkeeper
5738af4bb8
No longer use deprecated MaterialManager when asking for available materials
...
Use the ContainerTree structure instead. That's what it's for.
Contributes to issue CURA-6600.
2019-08-13 17:20:58 +02:00
Ghostkeeper
6a8e1557c3
Merge branch 'feature_intent' into feature_intent_container_tree
...
Conflicts:
.gitlab-ci.yml
cura/Machines/MaterialManager.py
cura/Machines/VariantManager.py
cura/Settings/ContainerManager.py
cura/Settings/MachineManager.py
tests/TestMachineManager.py
2019-08-13 14:59:05 +02:00
Ghostkeeper
447b1b9645
Actually import MaterialManager
...
Because this class is being used.
Contributes to issue CURA-6600.
2019-08-12 17:14:11 +02:00
Jaime van Kessel
e08feb1099
Fix final set of broken tests
...
CURA-6600
2019-08-12 16:32:59 +02:00
Ghostkeeper
595b0113b3
Don't link materialsChanged signal to update in MachineManager
...
The materialsChanged signal only gets called when the favourites are changed, so these updates are all completely unnecessary since they just make sure that the names and such of the materials are up to date.
Contributes to issue CURA-6600.
2019-08-09 14:25:44 +02:00
Jaime van Kessel
e0c2611a0a
Merge branch '4.2' of github.com:Ultimaker/Cura
2019-07-26 12:47:13 +02:00
Jaime van Kessel
a3dad0fa09
Fix issue with deprecation and pyqtSlot
2019-07-26 10:55:55 +02:00
Ghostkeeper
be4e754984
Remove cache of material manager
...
It doesn't make the code much simpler because the cache is also not a local variable.
Contributes to issue CURA-6679.
2019-07-24 16:04:40 +02:00
Jaime van Kessel
d8ddcba091
Fix typing ignore for breath frist iterator
2019-07-23 13:40:40 +02:00
Jaime van Kessel
a436d5e0bf
Added missing cast to getMachine
2019-07-19 12:43:17 +02:00
Remco Burema
fea8262656
Listen to 'material-changed' since it doesn't update immediately.
...
part of CURA-6590
2019-07-03 16:14:08 +02:00
Jaime van Kessel
a7d419f497
Fix deprecation decorator breaking the getExtruder function
2019-07-01 11:18:54 +02:00
Ghostkeeper
02b0242807
Fix translatability of caution message
...
Never put the formatting within the i18nc call. Always put the formatted string inside, but the formatting call outside of the function, like this:
catalog.i18nc('@info', 'I am {age} years old.').format(age = my_age)
Otherwise, when looking up the translation for the string, it's going to try to look up the translation for the formatted string (with the age already filled in). It won't be able to find that because this sentence was not translated for all possible ages of a human.
In this case I can make it even easier on the translator because the list must always follow after the text.
2019-06-14 11:00:52 +02:00
Jaime van Kessel
a98f88e6a3
Also move _getMachineTypeNameFromId to DiscoveredPrintersModel
...
As this is only used by that model, there is no point in keeping it in the machine manager
2019-06-07 15:04:19 +02:00
Jaime van Kessel
5eee3fc368
Move hasHumanReadableMachienTypeName to discovered printers
2019-06-07 15:01:30 +02:00
Jaime van Kessel
05a5f66856
Added few more deprecation warnings for functions that bloat the machine manager
2019-06-07 14:57:32 +02:00
Ghostkeeper
228fb62e60
Handle functions in user or user-changes profiles
...
Normally the user hasn't got any of these unless he selected a setting to be copied for all extruders.
2019-06-03 14:15:40 +02:00
Cherubim
63cd3a52ce
Don't reset all invisible settings
...
Why would you need to reset all invisible settings? It shouldn't matter whether a setting is visible or not.
This is causing bugs because the settings that are being reset are not necessarily extruder-type settings (as that is checked below). They are being reset to the value self._default_extruder, which is not always a valid setting value.
Fixes #4274 .
2019-05-28 15:08:03 +02:00
Jaime van Kessel
843bb6f5a3
Change some of the logging messages to info
...
CURA-6525
2019-05-15 17:25:31 +02:00
Lipu Fei
5e43e723e7
Fix activeMaterialsCompatible()
...
CURA-6511
Looks like a merge conflict
2019-05-07 14:28:13 +02:00
Jaime van Kessel
2e90078ec7
Fix incorrect deprecation message
2019-05-03 13:19:17 +02:00
Lipu Fei
d18c11a2c1
Fix filtering in switchPrinterType()
...
CURA-6483
2019-04-30 12:46:35 +02:00
Lipu Fei
bed13bf42b
Cleanup and make sure that group_name is set
2019-04-29 15:53:08 +02:00
Lipu Fei
d16da3da3a
Add group_id and fix remove printer
...
CURA-6483
- Added a unique group_id (a GUID) to all created GlobalStack.
- Changed version upgrade to generate unique group_ids for
GlobalStacks.
- RemoveMachine() now uses group_ids to remove hidden GlobalStacks.
2019-04-29 15:53:08 +02:00
Lipu Fei
19cd8f4edc
Better naming for hasMachineTypeName()
...
CURA-6449
2019-04-29 13:28:18 +02:00
Lipu Fei
0501ae2fbc
Handle case that printer type can be human readable string
...
CURA-6449
2019-04-25 13:14:28 +02:00
Ghostkeeper
6b139a9dce
Merge branch 'deprecate_some_mm_funcs'
2019-04-16 16:29:14 +02:00
Lipu Fei
8e579d2d68
Update default extruder when applying remote config
...
CURA-6452
2019-04-15 13:25:24 +02:00
Lipu Fei
ba37812793
Correct some deprecations and remove duplicated code
2019-04-15 09:47:09 +02:00
Lipu Fei
5f7f7f944f
Remove use XYZ instead
2019-04-15 09:39:05 +02:00
Remco Burema
d3310be846
Deprecate some MachineManagaer functions.
...
Note: You need the 'handle_log_once' branch in Uranium to prevent spamming the logs!
part of CURA-6457
2019-04-12 16:19:54 +02:00
Lipu Fei
ad51d8f1b6
Show readable machine type in add by ip page
...
CURA-6057
2019-04-08 13:06:30 +02:00
Jaime van Kessel
e1804e0a47
Merge branch 'CURA-5930_switch_to_first_enabled_extruder' of github.com:Ultimaker/Cura
2019-04-08 11:37:19 +02:00
Jaime van Kessel
fe14024620
Move existNetworkInstances into discover action
2019-04-05 17:49:29 +02:00
Jaime van Kessel
5b818d203a
Move a bunch of network only functions out of machine manager
...
Machine manager is way to big as is, so we need to move more code out of it to
locations where the code is actually used.
2019-04-05 17:45:19 +02:00
Lipu Fei
3adf7d49d0
Switch to the first enabled extruder after setActiveMachine
...
CURA-5930
2019-04-05 10:51:09 +02:00
Lipu Fei
d34b3b8585
Move associate um network printer function into UM3OutputDevicePlugin
2019-03-28 15:24:42 +01:00
Lipu Fei
8780fce7a7
Move MaterialOutputModel back
2019-03-28 14:26:54 +01:00
Lipu Fei
4a171eebf6
Move models around again
...
- Move machine related models to cura.Machines.Models
- Move printer device related models to cura.PrinterOutput.Models
- Other UI/GUI related modules in cura.UI
2019-03-26 08:29:22 +01:00
Lipu Fei
4e5d08f320
Fix merge conflicts with master
2019-03-21 14:59:53 +01:00
Lipu Fei
da351da611
Update comments for associateActiveMachineWithPrinterDevice()
2019-03-20 10:48:04 +01:00
Lipu Fei
81fbc525e4
Rename ConfigurationModel to PrinterConfigurationModel
2019-03-20 09:52:35 +01:00
Lipu Fei
e555f7da68
Move ConfigurationModel into cura.UI module
2019-03-20 09:51:06 +01:00
Lipu Fei
69eb381f10
Move MaterialOutputModel into cura.UI module
2019-03-20 09:47:44 +01:00
Lipu Fei
49c87a1e1d
Move ExtruderConfigurationModel into cura.UI module
2019-03-20 09:44:15 +01:00