Commit graph

1880 commits

Author SHA1 Message Date
Jaime van Kessel
6e7c4711e3 When creating XML profiles, directly set the name
The setName function is intended if the user changes the name (as by means of the edit material menu).
For deserializing this simply gives too much overhead
2017-02-10 14:58:22 +01:00
Jaime van Kessel
f4d4fb9001 Material values are now also lazy loaded
CURA-3311
2017-02-10 14:50:16 +01:00
Jaime van Kessel
bda818b104 MetaData of material profile is now set in one batch instead of multiple calls
CURA-3311
2017-02-10 14:15:35 +01:00
Jaime van Kessel
fce9df756c Fixed pause slicing not working when moving an object
CURA-3361
2017-02-10 11:43:38 +01:00
Jaime van Kessel
28a3858bc2 Fixed small isue where no type was found in zeroconf object 2017-02-10 11:30:50 +01:00
Ghostkeeper
0c9b9a3033
Add fallback name property in PrinterOutputDevice
It'll call this property, which gives an empty string, if the device doesn't implement giving a name.

Contributes to issue CURA-3161.
2017-02-09 17:34:51 +01:00
Jack Ha
655b3aa9cf Removed .gitignore from PauseBackendPlugin. CURA-3361 2017-02-09 17:20:49 +01:00
Jack Ha
3d1e5a84fc Added PauseBackendPlugin, added to changelog. CURA-3361 2017-02-09 17:19:59 +01:00
Jack Ha
c2bf88751e Enable functions pauseSlicing and continueSlicing in combination with BlockSlicingDecorator. CURA-3361 2017-02-09 16:06:36 +01:00
Jack Ha
30af908e29 Fixed GCodeReader. CURA-3273 2017-02-09 15:27:53 +01:00
Ghostkeeper
27c30006da
Give no address instead of a wrong address if unknown
Contributes to issue CURA-3161.
2017-02-09 10:33:14 +01:00
Jack Ha
81e575da31 Added comment. CURA-3273 2017-02-08 13:39:19 +01:00
Jack Ha
811f40d294 Renamed lightDir to light_dir. CURA-3273 2017-02-08 13:34:54 +01:00
Jack Ha
0d444298bc Added myEmitVertex function in layers3d.shader. CURA-3273 2017-02-08 13:29:24 +01:00
Jack Ha
8e80593232 Added comment. CURA-3273 2017-02-08 13:03:48 +01:00
Ghostkeeper
1395735ece
No longer mention printer name in status
The printer name is displayed right above it, so mentioning the name again is double.

Contributes to issue CURA-3161.
2017-02-08 12:53:54 +01:00
Jack Ha
cc950732b6 Added comment. CURA-3273 2017-02-08 11:57:59 +01:00
Jack Ha
47ab49795f Added comments, changed small layout and id thing. CURA-3273 2017-02-08 11:48:00 +01:00
Ghostkeeper
da4574cb32
Use fallback without time-out if preheating bed on old firmware
It manually sets the temperature just like what happens when you print via USB.

Contributes to issue CURA-3161.
2017-02-08 11:38:03 +01:00
Ghostkeeper
28e488dad7
Fix setting target bed temperature
The previous implementation just emitted the signal twice, once in setTargetBedTemperature and once in _setTargetBedTemperature. I've made the private one actually set the temperature.

Contributes to issue CURA-3161.
2017-02-08 11:37:04 +01:00
Jack Ha
50ba236e66 Removed unused option in LayerPolygon, added comments 2017-02-08 11:24:41 +01:00
Jack Ha
6c19bc1c16 Only show legend in color: line_type 2017-02-08 11:08:59 +01:00
Jack Ha
1d6ef4bc3c Default color if no material color is available. CURA-3273 2017-02-08 10:40:17 +01:00
Arjen Hiemstra
74bef2ff95 Fix OpenGL 2.0 fallback shader for Layer View 2017-02-07 17:34:02 +01:00
Ghostkeeper
7cf81412ae
Implement bed pre-heating via USB
It just calls the bed heating command without implementing the time-out. Implementing the time-out is impossible via just g-code.

Contributes to issue CURA-3161.
2017-02-07 17:26:44 +01:00
Ghostkeeper
9354a80504
Document no longer that pre-heating defaults to 15m
Because that was removed.

Contributes to issue CURA-3161.
2017-02-07 17:17:45 +01:00
Ghostkeeper
4ccadc6208
Round pre-heat temperature and duration to integer but allow floats
We want to allow floats in the interface since the interface needs to be agnostic of what device it is connected to. But the UM3 API only allows integers, so we still need to round it to the nearest integer.

Contributes to issue CURA-3161.
2017-02-07 16:57:20 +01:00
Ghostkeeper
785f10966e
Don't send a time-out for preheat if timeout is 0
The printer doesn't accept 0.

Contributes to issue CURA-3161.
2017-02-07 16:48:27 +01:00
Ghostkeeper
1a902b21bb
Store default pre-heat time in central location
Its default is 900s or 15 minutes. QML now requests the time-out time and sends it on to the printer.

Contributes to issue CURA-3161.
2017-02-07 16:29:41 +01:00
Ghostkeeper
d751285713
Provide pre-heat command with integer parameters
The firmware only accepts integers, apparently.

Contributes to issue CURA-3161.
2017-02-07 14:44:28 +01:00
Jack Ha
4057996e23 Made layers.shader compatibility shader compatible. CURA-3273 2017-02-07 14:28:22 +01:00
Ghostkeeper
b27a9e6535
Implement tracking target bed temperature
I had already assumed it was tracking this but apparently it wasn't. This works though.

Contributes to issue CURA-3161.
2017-02-07 13:52:44 +01:00
Ghostkeeper
3618ae0d4f
Properly float-format input of preheatBed
It rounds to 3 digits. The specification of the feature in the API doesn't mention how detailed the temperature and duration can go, but thousands seems more than enough. This also eliminates pesky problems with the JSON brackets in the format function.

Contributes to issue CURA-3161.
2017-02-07 13:35:09 +01:00
Ghostkeeper
559b40867e
Call pre-heat if pre-heat button is pressed
Contributes to issue CURA-3161.
2017-02-07 13:29:57 +01:00
Ghostkeeper
0df4afff33
Convert parameters to string before including them
This way you can provide normal floating point values instead of providing strings with numbers in them.

Contributes to issue CURA-3161.
2017-02-07 13:26:10 +01:00
Ghostkeeper
d7bf23ca21
Add function to cancel pre-heating the bed
You could also do this by calling preheatBed with a temperature of 0. In fact, that's what this function does.

Contributes to issue CURA-3161.
2017-02-07 13:23:56 +01:00
Ghostkeeper
9d8034d14f
Add default for duration parameter of preheatBed
It defaults to 15 minutes.

Contributes to issue CURA-3161.
2017-02-07 13:22:21 +01:00
Jack Ha
ed1fea2d3e Fix colors of compatibility mode. CURA-3273 2017-02-07 13:20:26 +01:00
Ghostkeeper
cfbcf56739
Add function to pre-head bed
This makes a PUT-request to the printer with the new API function call.

Contributes to issue CURA-3161.
2017-02-07 13:18:41 +01:00
Jack Ha
4b02a425d8 Let Layer View compatibility mode depend on OpenGL version we asked for (may be different than actual). CURA-3273 2017-02-07 11:55:51 +01:00
Jack Ha
1d77864915 Added force layer view compatibility mode. CURA-3273 2017-02-07 09:36:21 +01:00
Jaime van Kessel
3d01d7bc54 Removed unneeded bytearray to string conversion 2017-02-06 14:26:02 +01:00
Jaime van Kessel
4dc70cc2b1 3MF writer now also uses libSavitar
CURA-3215
2017-02-06 14:14:03 +01:00
Jaime van Kessel
b6118a764e Updated documentation
CURA-3215
2017-02-06 14:13:20 +01:00
Jack Ha
7c964045db Removed unused line in shader. CURA-3273 2017-02-06 13:16:47 +01:00
Ghostkeeper
9546c85967
Add boxes containing information on extruders
These are meant to eventually replace the bullet-list of information we currently have.

Contributes to issue CURA-3161.
2017-02-03 13:50:17 +01:00
Jack Ha
0889722350 Finishing up opengl 4.1 core profile things, it all works. CURA-3273 2017-02-02 17:08:20 +01:00
Jaime van Kessel
a3326a8313 3mf reader now uses libSavitar for loading
This greatly decreases (~factor 10) the time required to load 3mf files

CURA-3215
2017-02-02 15:54:44 +01:00
Ghostkeeper
7b41e844cc
Fix name and address for USB printing devices
As address it uses the serial port, which would be COM# for Windows and /dev/ttyUSB# for Linux. I don't know what it would display there on OSX, probably a drive directory.

Contributes to issue CURA-3161.
2017-02-02 15:19:56 +01:00
Ghostkeeper
cda5ee1dca
Separate name from address in properties
This way we can display them separately.

Contributes to issue CURA-3161.
2017-02-02 14:27:49 +01:00