Commit graph

16749 commits

Author SHA1 Message Date
Diego Prado Gesto
dc1e36d726 CURA-5444 Always create the instance of the material even if it is not
compatible, otherwise it will never show as
incompatible if the material profile doesn't define hotends in the
machine.
2018-06-11 11:20:32 +02:00
Ghostkeeper
54a03723ab
Set encoding correctly when opening files everywhere
Otherwise the encoding is interpreted differently on Windows and Mac.
2018-06-11 11:09:07 +02:00
Lipu Fei
c779795618 Remove unnecessary updateMaterialForDiameter()
CURA-5327
2018-06-11 10:55:10 +02:00
Lipu Fei
8ea3c879f4 Fix quality profile update
CURA-5453

Should take into account that the custom profile being updated may not
have a quality_changes container for each stack, and Cura should create
one if this is the case, so the user changes results can be stored.
2018-06-11 10:48:22 +02:00
Lipu Fei
ef4218830b Fix package manager initialization 2018-06-11 09:37:45 +02:00
Ghostkeeper
b55d2eda4f
Remove Polish translation option
The translator said he won't be maintaining this language any more. Someone else can pick it up now if he wants to, but we'll disable the language until it is complete again.

Contributes to issue CURA-5451.
2018-06-11 09:14:48 +02:00
Lipu Fei
553e9bcdc2
Merge branch 'master' into CURA-5334_extruder_def_for_all 2018-06-11 09:11:38 +02:00
Lipu Fei
19b02cd6e8 Use MachineManager to update material container
CURA-5327

The old update function in ExtruderManager is not functioning correctly.
2018-06-11 08:13:16 +02:00
Lipu Fei
83fcc60bee Show message for unknown machines in project files
CURA-5337

Do not crash on loading project files with unkown machine types. Show a
message instead.
2018-06-11 07:52:34 +02:00
Lipu Fei
dfdda24093 Update extruder definition if necessary
CURA-5334
2018-06-11 07:23:53 +02:00
Mikkel Kroman
4fbb524a98 Add Creality CR-10S machine definition
The CR-10S is functionally equivalent to the CR-10.
2018-06-08 18:05:42 +02:00
Lipu Fei
cecd7b55a1 No need to fix material diameter or nozzle size
CURA-5334
2018-06-08 17:05:31 +02:00
Lipu Fei
aba3795d0b Add extruder definition for all single-extrusion machines
CURA-5334

All changed printers:

 - 101Hero
 - 3dator
 - abax_pri3
 - abax_pri5
 - abax_titan
 - alya3dp
 - anycubic_i3_mega
 - bfb
 - bq_hephestos
 - bq_hephestos_2
 - bq_hephestos_xl
 - bq_witbox
 - bq_witbox_2
 - creality_cr10
 - creality_cr10s4
 - creality_cr10s5
 - dagoma_discoeasy200
 - dagoma_neva
 - delta_go
 - deltabot
 - deltacomb
 - easyarts_ares
 - fabtotum
 - folgertech_FT-5
 - gmax15plus
 - grr_neo
 - imade3d_jellybox
 - innovo_inventor
 - julia
 - kemiq_q2_beta
 - kemiq_q2_gama
 - kossel_mini
 - kossel_pro
 - kupido
 - makeR_pegasus
 - makeR_prusa_tairona_i3
 - maker_starter
 - makerbotreplicator
 - malyan_m180
 - malyan_m200
 - mankati_fullscale_xt_plus
 - mendel90
 - monoprice_select_mini_v1
 - monoprice_select_mini_v2
 - peopoly_moai
 - printrbot_play
 - printrbot_play_heated
 - printrbot_simple
 - printrbot_simple_extended
 - printrbot_simple_makers_kit
 - prusa_i3
 - prusa_i3_mk2
 - prusa_i3_xl
 - raise3D_N2_plus_single
 - raise3D_N2_single
 - renkforce_rf100
 - rigid3d
 - rigid3d_3rdgen
 - rigid3d_hobby
 - rigid3d_mucit
 - rigid3d_zero
 - rigid3d_zero2
 - rigidbot
 - rigidbot_big
 - robo_3d_r1
 - seemecnc_artemis
 - seemecnc_v32
 - tam
 - tevo_blackwidow
 - tevo_tarantula
 - ubuild-3d_mr_bot_280
 - ultimaker2
 - ultimaker2_extended
 - ultimaker2_extended_plus
 - ultimaker2_go
 - ultimaker2_plus
 - ultimaker_original
 - ultimaker_original_plus
 - uniqbot_one
 - vertex_delta_k8800
 - vertex_k8400
 - zone3d_printer
 - zyyx_agile
2018-06-08 17:05:31 +02:00
Diego Prado Gesto
2dfedf3ae4 CURA-5330 Add typing in CuraContainerRegistry and
QualityProfilesDropDownMenuModel
2018-06-08 17:02:59 +02:00
Diego Prado Gesto
7f34d7615e CURA-5330 Add typing to CuraSceneNode 2018-06-08 16:56:52 +02:00
Diego Prado Gesto
8c2ba64f32 CURA-5330 Add typing to NetworkedPrinterOutputDevice 2018-06-08 16:47:52 +02:00
Diego Prado Gesto
a6815e7c61 CURA-5330 Add typing to Backup 2018-06-08 16:31:43 +02:00
Ghostkeeper
b9d47f6092
Add function typing
This allows MyPy to detect mistakes in the typing of these functions.

Contributes to issue CURA-5330.
2018-06-08 16:31:32 +02:00
Ghostkeeper
adafea73cc
Ignore missing imports
We don't want to be type checking inside those files.

Contributes to issue CURA-5330.
2018-06-08 16:19:20 +02:00
Ghostkeeper
4e46963f58
Also send signature file if it exists
The files are not placed there yet when unpacking a package, as far as I know. Next time.

Contributes to issue CURA-5034.
2018-06-08 16:07:17 +02:00
Ghostkeeper
4727340ae4
Send only original files
When we re-serialize them, the XML file will not be exactly the same so the signature will fail to match. We need to send the original bytes.

This changes the behaviour: It now sends all non-default files instead of all files that were loaded fully.

Contributes to issue CURA-5034.
2018-06-08 16:02:00 +02:00
Diego Prado Gesto
51462b20c3 CURA-5330 Add typing to PrinterOutputModel constructor 2018-06-08 15:56:20 +02:00
Diego Prado Gesto
1982c9b84c CURA-5330 Change TYPE_CHECKING flag 2018-06-08 15:54:28 +02:00
Diego Prado Gesto
fcdb1aef52 CURA-5330 Add typing in ExtruderOutputModel 2018-06-08 15:53:33 +02:00
Diego Prado Gesto
ace7e89ea0 CURA-5330 Add typing to PrintJobOutputModel 2018-06-08 15:48:47 +02:00
Diego Prado Gesto
e1ecbdf8fe CURA-5330 Add typing in QualityGroup 2018-06-08 15:46:24 +02:00
Diego Prado Gesto
e5e96bc600 Merge branch 'master' into mypy_fixes
Contributes to CURA-5330
2018-06-08 15:29:22 +02:00
Ghostkeeper
ddb80be1ec
Send materials asynchronously
This way we won't block the interface while those materials are sending.

Contributes to issue CURA-5034.
2018-06-08 15:06:06 +02:00
Ian Paschal
dc5a48fb7d
Merge pull request #3908 from Ultimaker/CURA-5444_pva_default_hardware_compatible
CURA-5444: These are merged, but the branches are not deleted, so that we can also open a new PR to merge into 3.4.
2018-06-08 14:47:39 +02:00
Ghostkeeper
63f5c8346a
Implement API call to send material profile
It seems to work now. I don't know if the material actually arrives but from this end it seems to send it at least.

Contributes to issue CURA-5034.
2018-06-08 14:33:13 +02:00
Ghostkeeper
3b510af8f5
Add default 'None' for onFinished
I don't always need to know whether it was successful.

Contributes to issue CURA-5034.
2018-06-08 14:31:19 +02:00
Ghostkeeper
82a34b49eb
Add function to send material profiles to cluster
This only works for cluster.

Contributes to issue CURA-5034.
2018-06-08 13:55:29 +02:00
Lipu Fei
384618b5c4 Fix branded materials model binding
CURA-5336

When the global stack gets changed, the model should update itself
so it refers to the correct extruder stack.
2018-06-08 13:54:31 +02:00
Ghostkeeper
8438406d8b
Revert "CURA-5342 formulafy speed settings so when changing the main speed, the sub speeds change accordingly"
This reverts commit 9432252de4. It was assuming the wrong default speed_print value of 60. It's not always 60. We need to find a different solution or modify the script.

Reverts the fix for issue CURA-5342.
2018-06-08 13:44:40 +02:00
Ghostkeeper
4c1149643f
Remove unused import
Contributes to issue CURA-5034.
2018-06-08 13:08:34 +02:00
Diego Prado Gesto
e5699918ea CURA-5444 Also get the metadata even if the material was marked as not
compatible.
2018-06-08 12:03:46 +02:00
Ghostkeeper
fd19f8791e
Merge branch '3.4' 2018-06-08 11:47:29 +02:00
Ghostkeeper
79fb1bb2bd
Correction to translation of Retraction Extra Prime Amount
Thanks to @getget1980.

Fixes #3789.
2018-06-08 11:47:07 +02:00
Diego Prado Gesto
2a3eed30ab CURA-5444 Always create the instance of the material even if it is not
compatible, otherwise it will never show as
incompatible if the material profile doesn't define hotends in the
machine.
2018-06-08 11:21:17 +02:00
Lipu Fei
bddd32a5b6 Fix branded materials model binding
CURA-5336

When the global stack gets changed, the model should update itself
so it refers to the correct extruder stack.
2018-06-07 15:50:08 +02:00
Ghostkeeper
efe4d3734d
Add documentation
Done during issue CURA-5034.
2018-06-07 15:49:23 +02:00
Lipu Fei
54c827fd44 Do not run firmware update check jobs in parallel
CURA-5418

To avoid showing multiple update messages.
2018-06-07 15:24:21 +02:00
Lipu Fei
12a406529e Fix inconsistent curaproject mimetype definition
CURA-5334

 - In project file writer, it says the mime type is "application/x-curaproject+xml",
   and we decided to use this as THE mime type.
 - Pass preferred_mimetype to save project file dialog so it
   automatically adds the file extension upon open.
2018-06-07 14:42:36 +02:00
Jack Ha
d063741d7a Merge branch 'master' of github.com:Ultimaker/Cura 2018-06-07 13:50:50 +02:00
Jack Ha
b2b9de7960 CURA-5396 added timeout options for auto detecting baud rate over USB serial 2018-06-07 13:50:40 +02:00
Lipu Fei
afc5c1fbbd Do not run firmware update check jobs in parallel
CURA-5418

To avoid showing multiple update messages.
2018-06-07 13:45:10 +02:00
Ghostkeeper
af2d05ebfa
Remove superfluous 'enabled' field 2018-06-07 13:40:16 +02:00
Lipu Fei
3a7a1dbc6d Fix inconsistent curaproject mimetype definition
CURA-5334

 - In project file writer, it says the mime type is "application/x-curaproject+xml",
   and we decided to use this as THE mime type.
 - Pass preferred_mimetype to save project file dialog so it
   automatically adds the file extension upon open.
2018-06-07 12:51:54 +02:00
Ghostkeeper
8202b62343
Merge branch '3.4' 2018-06-07 11:38:13 +02:00
Ghostkeeper
624bbbeb4a
Account for the fact that createMachine can return None
Contributes to issue CURA-5337.
See also #3787.
2018-06-07 11:37:48 +02:00