73 Commits

Author SHA1 Message Date
Thomas-Karl Pietrowski
0b0bc80805 RemovableDriveOutputDevice: Making output of uname command useful 2016-03-14 17:03:08 +01:00
Ghostkeeper
54ceafbcd0
Handle the flux capacitive fizbit ambigruously
Makes the unambigruous fizbit warp correctly when subjugated to the flux capacitor. The limit of the reciprocative function seems to be computed correctly now.

Contributes to no issue.
2016-03-11 17:39:53 +01:00
daid
8980600292 CURA-1104: Fix the incorrect "failed to eject drive" message for windows.
The C windows API call was wrong. The lpBytesReturned parameter was set to
NULL. While the docmentation at:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa363406(v=vs.85).aspx
states that it CANNOT be NULL if lpOverlapped is NULL. Overlapped is for
async operations. So the easiest way to fix this is to supply a proper
pointer.

I've also removed unused includes. And supplied the DeviceIoControl with
proper ctypes calling information to prevent other python->c problems.
2016-03-11 15:13:09 +01:00
Jaime van Kessel
3b66e887b0 Added logging 2016-03-11 14:49:21 +01:00
Jaime van Kessel
3df0b4de66 Fixed removable drive for OSX 2016-03-08 16:59:16 +01:00
Ghostkeeper
6bcce7ca8e Repair saving to removable drive
Typo. Sorry.

Contributes to issue CURA-611.
2016-02-10 15:05:44 +01:00
Ghostkeeper
edb7803760 Make the machine file types filter optional for OutputDevice
The call to OutputDevice from the save button filters by the file types available to the machine. The call to OutputDevice from the application menu doesn't.

Contributes to issue CURA-611.
2016-02-10 13:39:49 +01:00
Ghostkeeper
bc18b078ab Let Removable Drive auto-detect file format from machine
Instead of only writing g-code, the Removable Drive output device will now try to write a file format that the current machine supports. It just picks the first one it finds.

Contributes to issue CURA-611.
2016-02-09 17:57:19 +01:00
Ghostkeeper
bc0207cd14 Add invisible preference for file type of output
This preference can't be made visible since a string freeze is into effect, but at least a user could go into the .cfg file and set the setting manually.

Contributes to issue CURA-611.
2016-01-18 17:36:41 +01:00
Ghostkeeper
1db430c61a Log errors in case the file writing fails
An error message is written to the log including the file that was not written to and the stringified exception.
2015-12-03 14:09:22 +01:00
Arjen Hiemstra
9267b517d6 Fix coding style issues 2015-11-27 16:53:32 +01:00
daid
9302a36391 Small codestyle fix. 2015-11-26 15:29:32 +01:00
Arjen Hiemstra
3e2797d727 Properly raise DeviceBusyError in RemovableDriveOutputDevice
Contributes to CURA-448
2015-11-16 12:20:03 +01:00
Arjen Hiemstra
3029409b89 Properly emit writeStarted in RemovableDriveOutputDevice
Contributes to CURA-319
2015-11-06 15:43:11 +01:00
Arjen Hiemstra
de533b660e Catch any exception that happens while trying to eject
This should prevent crashes on eject on any platform.

CURA-106 #done
2015-09-29 16:58:04 +02:00
Arjen Hiemstra
5b2cdb8012 Update RemovableDrive and USB output devices to use the new file_name parameter
Contributes to CURA-183
2015-09-23 18:21:04 +02:00
Arjen Hiemstra
3f1e5bb44a Catch exceptions when trying to eject the SD card on Windows
CURA-106 #start-review
2015-09-18 12:27:10 +02:00
Arjen Hiemstra
0a2baec53b Use the right catalog for RemovableDriveOutputDevice 2015-09-11 14:47:53 +02:00
Tamara Hogenhout
506180fff9 changing the i18n call so that the actual string is shown instead of the context ;)
fixes #369
2015-09-11 10:06:34 +02:00
Tamara Hogenhout
4a9bf2b4d6 adds/adapts translation context markers
all nescessary in folder: Cura/plugins

Contributes to: issue CURA-116
2015-09-08 15:26:49 +02:00
Arjen Hiemstra
85a13b7ad7 Add proper translation contexts to RemovableDriveOutputDevice 2015-08-18 15:19:09 +02:00
Arjen Hiemstra
26aa78c3b9 Fix OSXRemovableDevicePlugin so it works properly on OSX 2015-08-04 15:39:58 +02:00
Arjen Hiemstra
825349b47b Add RemovableDrive plugin that has been moved from Uranium
Since it now depends on GCodeWriter we should put it somewhere where
GCodeWriter actually exists.
2015-07-30 17:14:22 +02:00