78 Commits

Author SHA1 Message Date
Ghostkeeper
0ce9bf61be
Move MIME type declarations into constructors of readers
So that if you disable the plug-in, the MIME type declaration is also not added.

Fixes #4151.
2018-09-27 13:58:06 +02:00
Ghostkeeper
88ba2ac345
Define gcode.gz extension in GCodeGzReader
So if you were to disable the GCodeGzReader plug-in, you will now no longer see the extension in the files you can read.

Fixes #4151.
2018-09-27 13:27:42 +02:00
Jaime van Kessel
b4f59a7822 Removed unneeded application reference in construction of meshreaders 2018-06-29 09:25:38 +02:00
Diego Prado Gesto
ddd7b056f3 CURA-5164 Make the mesh readers compliant with the new signature of the mesh reader. Also adapt the tests. 2018-05-23 17:17:41 +02:00
Diego Prado Gesto
8ad409ff55
Merge branch 'master' into WIP_improve_initialization 2018-05-14 15:15:02 +02:00
Diego Prado Gesto
43657010ba CURA-5164 The Preferences is not a singleton class anymore since in some point
several instances need to be created.

- In the ThreeMFWorkspaceReader we need to create some temporal
instances of Preferences that makes it not singleton anymore.

- The current preferences are kept in the Application class and so all
the calls to the preferences are changed to get the preferences from
Application.

- The method getInstance in Preferences is kept as deprecated since some
external plugins.
2018-05-11 08:50:42 +02:00
Aleksei S
9779c41071 Use MimeTypeDatabase to find loaded file extension and set proper project name
CURA-5323
2018-05-08 10:47:59 +02:00
Diego Prado Gesto
6dc416e180 CURA-5128 Change method name to be more clear.
Remove a line introduced by mistake in previous commit.
2018-03-23 17:21:09 +01:00
Diego Prado Gesto
dd0d0d20e9 CURA-5128 Modify the GCode parser to use a stream instead of a file so
we can reuse methods for the GCodeGZReader.
2018-03-23 17:14:53 +01:00
Lipu Fei
7dfc1a4aa7 Add encoding='utf-8' for text file reading
CURA-4875

When encoding is not provided, the behaviour is system dependent and it
can break on OS X.
2018-01-29 12:29:20 +01:00
Diego Prado Gesto
8054bc3d7d CURA-4552 Change names as indicated in the review and making Marlin the
default flavor. Also fix the case in which the read flavor was not in
the dict.
2017-11-28 11:47:34 +01:00
Diego Prado Gesto
cab2e14728 CURA-4552 Add flavors to GCodeReader. The preRead looks for the flavor
in the GCode and then the right flavor handler is responsible for
reading the code. At this moment just the Griffin and RepRap flavors are
taken into account.
2017-11-27 16:56:26 +01:00
Diego Prado Gesto
c8c2129b7e CURA-4552 Minor changes 2017-11-24 10:51:34 +01:00
ChrisTerBeke
46a575b84f Merge branch 'master' of https://github.com/Ultimaker/Cura 2017-11-24 10:31:30 +01:00
Diego Prado Gesto
7bb82cf56f CURA-4605 Fix render issues when importing a GCode that has empty
layers. Also fix gaps between raft and the model.
2017-11-23 16:47:34 +01:00
Jack Ha
5703f954d4 CURA-4552 fix support for relative extrusion 2017-11-23 14:13:18 +01:00
Diego Prado Gesto
b6e997c88d CURA-4526 Delete LayerView plugin because it will be replaced with the
SimulationView.
This commit also adapts the code in order to accept the messages coming
from the engine, with information about feedrates and line thicknesses.
Add also some changes in the GCodeReader that reads feedrates and
line thickness from the gcode file.
2017-11-21 10:47:29 +01:00
jack
f197508694 Merge pull request #2814 from Ultimaker/feature_maximum_resolution
Maximum mesh resolution
2017-11-20 18:09:11 +01:00
Diego Prado Gesto
a4ed3bb2c6 CURA-4577 Fix the previous change 2017-11-20 17:59:57 +01:00
ChrisTerBeke
85eab3606b Simplify relative positioning xyz value updates - CURA-4577 2017-11-20 17:58:46 +01:00
Diego Prado Gesto
dd8e5e2c6e CURA-4577 Take into account relative movements in GCodes 2017-11-20 17:48:05 +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
Jaime van Kessel
558b446b4a Fixed UMO g-code files not being loadable
The processGcode did not take gcode + comments in the same line into account
CURA-3677
2017-04-12 17:32:47 +02:00
Jaime van Kessel
dbfa5873ce Merge branch '2.5' of github.com:Ultimaker/Cura 2017-03-30 17:03:01 +02:00
Jack Ha
3135dc7d77 Solved MC 2017-03-30 16:20:08 +02:00
Lipu Fei
ef666aac88 Set gcode_list for Scene after loading gcode
CURA-3604
2017-03-30 16:09:16 +02:00
Lipu Fei
2158826e06 Change backend state to disabled after reading a gcode
CURA-3604
2017-03-30 16:09:16 +02:00
Jack Ha
0655771cb8 Removed comment. CURA-3390 2017-03-29 11:00:59 +02:00
Jack Ha
d5d265a996 Resolve mc cherry-picking CURA-3390 2017-03-29 11:00:54 +02:00
Jack Ha
02bb575ced Fixed extruder per gcode layer. Created show_caution preference for gcode reader. CURA-3390 2017-03-29 10:56:36 +02:00
Jack Ha
1e75c84662 Less yields for G-code reader and faster. CURA-3390 2017-03-29 10:56:28 +02:00
Jack Ha
ea0c55fff1 Solved merge conflict in cherry-pick CURA-3390 2017-03-29 10:56:26 +02:00
Jack Ha
fb2c318a0a Added caution message for g-code reader. CURA-3390 2017-03-29 10:53:25 +02:00
Jaime van Kessel
fbc372812c Minor refactor to improve readability
CURA-3390
2017-03-29 10:51:56 +02:00
Jack Ha
6194ffa27b Removed comment. CURA-3390 2017-03-16 15:28:57 +01:00
Jack Ha
9b06983f3e GCode reader: Better layerheight guess, refactoring, more robust, take extruder offset into account of multi extrusion. CURA-3390 2017-03-16 15:27:48 +01:00
Jack Ha
f918a978b2 Fixed extruder per gcode layer. Created show_caution preference for gcode reader. CURA-3390 2017-03-15 14:29:59 +01:00
Jack Ha
bab1de604f Less yields for G-code reader and faster. CURA-3390 2017-03-15 13:16:51 +01:00
Jack Ha
792332e2ec Made G-code reader a lot faster. CURA-3390 2017-03-15 13:14:51 +01:00
Jack Ha
fda00d4c9f Added caution message for g-code reader. CURA-3390 2017-03-15 11:40:31 +01:00
Jaime van Kessel
1c7c5545b5 Comment checking now uses startswith 2017-03-13 15:52:42 +01:00
Jaime van Kessel
ae97e60ee4 Added logging if unknown feature type was encountered 2017-03-13 15:48:30 +01:00
Jaime van Kessel
b57c5af348 Added documentation 2017-03-13 15:45:59 +01:00
Jaime van Kessel
412b8bcb41 Moved check to inside if statement to prevent undeeded parsing 2017-03-13 15:34:30 +01:00
Jaime van Kessel
69b8a06eca Added documentation why gcode0 was defined to be the same as gcode1 2017-03-13 15:33:04 +01:00
Jaime van Kessel
3c9010fde4 Minor refactor to improve readability
CURA-3390
2017-03-13 15:29:25 +01:00
Jack Ha
30af908e29 Fixed GCodeReader. CURA-3273 2017-02-09 15:27:53 +01:00
Youness Alaoui
ad95f94d40 Remove redundant check 2017-01-05 13:04:56 -05:00
Victor Larchenko
33cd386556 D6: Fixed layers and line widths 2017-01-05 13:04:32 -05:00