25 Commits

Author SHA1 Message Date
Remco Burema
a2d721b6ac Always return int's.
The problem was probably 'max', but cast the others just to be sure. (This would cause the C++ part of Qt to think it wasbeing given a float from Pyton somehow.)

should fix CURA-9196
2022-04-26 16:54:46 +02:00
j.delarago
aa190024d4 Update enum, this fixes connecting to printers
CURA-8640
2022-04-05 16:01:17 +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
Ghostkeeper
9674c54efb
Better type checking and handling of optionals
Adds type checking here and there to catch such errors in the future.
This makes it handle the optional fields of this model better.

Contributes to issue CURA-8730.
2021-12-08 17:36:09 +01:00
Ghostkeeper
3032221b70
Prevent division by 0 if total download size is 0
This can happen if the downloads are all so small that it gets rounded to 0kB.

Fixes Sentry issue CURA-ZM.
2020-07-06 17:23:58 +02:00
Nino van Hooff
9ffadb369d Fix ExtruderConfigurationModel.__eq__
Fixes an issue where 2 configurations
(empty, empty) and (pla, empty) were considered
equal

CURA-7248
2020-07-02 15:44:22 +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
Jaime van Kessel
81b33b8649
Add some missing typing 2020-01-10 14:58:53 +01:00
ChrisTerBeke
9a3ff527ac Bring back the printer selection dialog for networked printers 2019-10-25 12:25:41 +02:00
Lipu Fei
8b913f4009 Merge remote-tracking branch 'origin/master' into CURA-6863_duplicated_material_oddness 2019-10-14 12:23:49 +02:00
Remco Burema
09dc6ae44a Scouting: Try not to spam signals or errors as much.
nominally part of CURA-6863
2019-10-14 01:03:41 +02:00
Jaime van Kessel
05a6c9c3cf
Make code a bit smarter about reusing ExtruderConfigurationModels
This prevents a lot of unneeded signal noise
2019-10-11 11:04:16 +02:00
Jaime van Kessel
63f9483037 Connect the config changed of the configuration to that of the output model 2019-08-23 17:15:08 +02:00
ChrisTerBeke
882352c99d Test fixes, not working yet 2019-08-23 17:03:39 +02:00
ChrisTerBeke
36f6dba2fc Fix not displaying configuration with both extruders empty 2019-08-23 16:23:51 +02:00
Jaime van Kessel
bc4b2a596a Rename _printer_configuration to _active_printer_configuration
CURA-6732
2019-08-22 15:58:12 +02:00
Jaime van Kessel
a1ca705de9 Add documentation
CURA-6732
2019-08-22 15:10:17 +02:00
Jaime van Kessel
34c3a04744 Added missing tests for peripheral
Not part of the ticket, but I'm boyscouting this.
2019-08-22 14:24:19 +02:00
Jaime van Kessel
561a3e53e5 Only add available configuration if it wasn't already in the list
CURA-6732
2019-08-22 14:09:39 +02:00
Jaime van Kessel
d2e9715409 Add availableConfiguration property to the output model
CURA-6732
2019-08-22 14:02:29 +02:00
Ghostkeeper
fed275024a
Add slot to store peripherals
You can get the list of names of peripherals this way.

Contributes to issue CURA-6651.
2019-07-15 17:29:30 +02:00
Jaime van Kessel
c32c642ba5 Fixed highlighting matching configuration if a material is empty 2019-04-26 11:59:16 +02: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