70 Commits

Author SHA1 Message Date
Ghostkeeper
9daab5ed9b
Workaround for bug in PySerial: Don't crash if file doesn't exist
Gonna report this upstream at the PySerial folks, if nobody else found this yet.

Fixes Sentry issue CURA-11W.
2020-07-22 09:50:46 +02:00
Ghostkeeper
8714ff9edb
Add more explanations for HWID being None 2020-07-21 17:32:59 +02:00
Ghostkeeper
8c4533a2c3
Fix crash when port gets disconnected while iterating
Fixes Sentry issue CURA-11T.
2020-07-20 12:10:08 +02:00
Nino van Hooff
89f0970a88 Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
Nino van Hooff
de82406782 Convert doxygen to rst for UltimakerMachineActions, USBPrinting 2020-05-15 14:00:44 +02:00
Jaime van Kessel
fe27da5e8a
Remove a number of unused variables 2020-04-10 13:46:19 +02:00
Ghostkeeper
3629b955fe
Merge branch 'port-filter' of https://github.com/joba-1/Cura into joba-1-port-filter 2019-05-09 16:55:44 +02:00
Lipu Fei
2b39d6422c Move PrinterOutputDevice into cura.PrinterOutput module 2019-03-20 09:43:09 +01:00
Lipu Fei
6bf39a32a9 Rename Enum names to camal cases
CURA-6011
2018-12-14 09:56:10 +01:00
joba-1
c813005170 Prevent Cura from messing with serial ports of other devices by filtering ports with regular expressions passed in as environment variables 2018-10-11 23:05:08 +02:00
fieldOfView
7b00d6879a Factor out USBPrinterManager singleton 2018-08-22 15:44:11 +02:00
fieldOfView
339987be9d Move hardcoded firmware-file table to definitions 2018-08-02 11:50:28 +02:00
Lipu Fei
ac3d3bc5c0 Revert "Added signal to prevent window closing if USB printer is printing"
This reverts commit 596a7b7169b9c7e41cd4751f99eea656f67ed2b7.
2018-07-13 08:08:56 +02:00
Aleksei S
596a7b7169 Added signal to prevent window closing if USB printer is printing
CURA-5384
2018-07-11 13:23:30 +02:00
Diego Prado Gesto
a184fad8ee CURA-5330 Add typing to the USBPrinting plugin 2018-06-14 15:57:30 +02:00
Diego Prado Gesto
5704a7b184 Merge branch 'master' into WIP_improve_initialization
Conflicts:
	cura/AutoSave.py
	cura/BuildVolume.py
	cura/CuraApplication.py

Contributes to CURA-5164
2018-05-25 09:40:42 +02:00
ChrisTerBeke
fd2e692440 Merge branch '3.3' 2018-05-24 14:33:55 +02:00
ChrisTerBeke
0e0492327c
Fix missing argument in application stopped signal callback 2018-05-11 18:15:50 +02:00
Lipu Fei
051dd7a6e9 WIP: Make application initialization and start up more clear
- Create SingleInstance class to handling single instance stuff.
 - Instead of calling getInstance() everywhere, initialize each object
   explicitly in order when application starts and getInstance()s do not
   create instances any more and they merely return the created
   instances.
 - Only set initial values in construtor functions __init__(). Move the
   initialization of context-aware (i.e. things that depend on other
   things) to separate functions.
 - Split application creation and initialziation into several steps and
   them should be called explicitly in the correct order.
2018-05-04 09:57:02 +02:00
Fredrik Öhrn
33e35e114e Only open USB ports if the printer understands gcode. 2018-04-21 08:09:05 +02:00
Aleksei S
290adbd906 Fix: bed leveling for UM+
CURA-4844
2018-03-29 11:53:31 +02:00
Jaime van Kessel
79add4ffd8 Added typing
CL-541
2017-12-19 16:15:48 +01:00
Jaime van Kessel
b4c83814d9 Clean up unused imports
CL-541
2017-12-19 16:03:48 +01:00
Jaime van Kessel
32cbd27b70 Fixed the firmware update for USB print
CL-541
2017-12-19 15:59:21 +01:00
Jaime van Kessel
a35f665201 Fixed crash if the firmware was in the list, but not found.
CL-541
2017-12-19 10:45:38 +01:00
Jaime van Kessel
1ae881caee USB device is first added and then trying to connect.
This is to ensure that USB printers work without autodetect
2017-12-15 16:03:58 +01:00
Jaime van Kessel
6bdce54e1d Enable progress bar for USB printing
CL-541
2017-12-15 14:47:06 +01:00
Jaime van Kessel
d3b9ac0d45 Also start reworking the USBPrint.
It's also time for some much needed code cleaning in that bit. The auto-detect is moved to it's own job,
which should make it a whole lot easier to disable it all together.

CL-541
2017-12-14 17:37:57 +01:00
ChrisTerBeke
1d68bcc218 Cleanup usb printer output device manager qml component creation - CURA-4568 2017-11-28 14:31:21 +01:00
Jaime van Kessel
0613b1e4b7 Creating components is now done with the prefab function
CURA-4568
2017-11-27 13:00:49 +01:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
alekseisasin
204019702d Added Title for messages
CURA-4203
2017-09-13 13:58:08 +02:00
Ghostkeeper
3951239513
Don't emit devices changed signal if remove wasn't successful
The same could be done for adding but let's keep it at this for now.

Hopefully fixes #2238.
2017-08-31 13:24:40 +02:00
Youness Alaoui
7e7e15a12b Fix MachineManager connection to OutputDeviceManager signals late.
If a PrinterOutputDevice is able to connect quickly to a machine, then
by the time the MachineManager is created and connects to the signal,
it will be too late, and it might miss that there is already connected
devices.

# Conflicts:
#	plugins/USBPrinting/USBPrinterOutputDeviceManager.py
2017-07-12 14:06:08 +02:00
Robert Colbert
b6a5e5a1af Added VCP serial device support for USB Printing on Windows. 2017-05-02 12:51:34 -05:00
Jaime van Kessel
645e3e8dfe Don't try to send empty g-code lines 2017-03-23 19:42:52 +01:00
Jaime van Kessel
6ff130c361 Added logging 2017-03-23 17:57:52 +01:00
Simon Edwards
92cee4a9d7 Merge branch 'master' into python_type_hinting 2017-02-13 16:31:31 +01:00
Ghostkeeper
a3af887d3f
Add support for WSH USB driver when not filtering USB-only
This support was included when filtering for USB only, but not the case when we are not filtering. I don't like this bit of code much since we should just define a list of paths to check and iterate over it, so that we can re-use the data and prevent syncing mistakes like this.
2017-02-13 13:46:30 +01:00
Torsten Blindert
2fca555ea6 FEATURE: Support wsh usb driver 2017-02-11 16:34:49 +01:00
Jaime van Kessel
5e5cc723d7 Calling the stop of USBPrinterOutput device no longer joins the thread.
This caused quite a bit of delay on the application closing down (up to 5 seconds!)
2017-02-10 15:03:34 +01:00
Simon Edwards
1b43e4981e Fixes for all of the plugins. Added a script to invoke mypy. (I'm stiiiick of .bat files. They are just broken.) 2017-01-17 16:57:37 +01:00
fieldOfView
fc6e92e10f Fix uploading custom firmware on windows
The simple string replacement left an extraneous "/" in front of the path, which Windows can't handle. QUrl.toLocalFile() does a proper conversion.

CURA-955
2016-09-06 13:07:15 +02:00
fieldOfView
edd9643703 Merge branch '2.3' of https://github.com/Ultimaker/Cura into 2.3 2016-09-06 10:56:38 +02:00
Jaime van Kessel
6db03538a1 Removed capital letter
CURA-955
2016-09-06 09:23:20 +02:00
Jaime van Kessel
71e6733c8e Firmware update logging now uses correct path
CURA-955
2016-09-06 09:08:46 +02:00
fieldOfView
fcf89b79c6 Update wording of error messages 2016-09-06 08:55:32 +02:00
Jaime van Kessel
66f773434f UpgradeFirmwareAction now supports custom firmware uploading
CURA-955
2016-09-05 15:42:09 +02:00
Thomas Karl Pietrowski
c174ce4396 CURA-2079: Rework on adding detailed error messages to firmware updater 2016-08-17 22:34:04 +02:00
Thomas Karl Pietrowski
e72a10c97a CURA-2079: Using errorCode (WIP)
Sadly I don't see any reason why errorCode doesn't get updated in QML.
self._errorCode is accessible, but changes to it don't take any effect.
2016-08-17 01:09:07 +02:00