Thomas Karl Pietrowski
4ca247cf37
Changing the profile name to something unique.
...
Imported profiles will be now called "Custom profile (<G-code
filename>)"
2016-06-17 12:41:24 +02:00
Thomas Karl Pietrowski
200529e8c9
Removing setReadOnly(False)
...
The profile is writable by default.
2016-06-17 11:43:23 +02:00
Thomas Karl Pietrowski
65f2afeebd
Use the same id as set when exporting
...
Nothing special. Doesn't fix anything..
2016-06-17 11:36:39 +02:00
Thomas Karl Pietrowski
42a860535c
Updating API to 3
2016-06-16 20:19:03 +02:00
Thomas Karl Pietrowski
9e1b10d1b8
CURA-1615: Updating GCodeProfileReader
...
I got the plugin most of all working. At least the "successfully"
imported profile XY" dialog appears. But sadly the profile does not
appear in the list of profiles after that. I can only guess something is
blocking here.
Additionally it should be noted that G-Code exported from Cura 2.1.x
does not work here anymore on Cura 2.2.x.
2016-06-16 20:02:21 +02:00
Jaime van Kessel
9009fb9d3d
Codestyle & documentation
...
CURA-537
2016-04-28 16:01:54 +02:00
Ghostkeeper
7a913bf99a
Fix comment
...
It had some variable name pasted into it by accident.
Contributes to issue CURA-936.
2016-03-02 17:31:58 +01:00
Jaime van Kessel
9c5e169f2b
Loaded profiles are now marked as dirty so they are saved correctly
...
CURA-936
2016-03-01 16:24:43 +01:00
Jaime van Kessel
e90fd95495
Profile importing now checks if it's the right file type
...
Contributes to CURA-936
2016-03-01 15:16:50 +01:00
Ghostkeeper
afd63c53c0
Escape characters of escape_characters dict at initialisation
...
Instead of escaping it each time you read a function with that ugly inline for loop, escape the characters when initialising the dict itself.
Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
a3936540d8
Move escape characters to be a static class variable
...
It is static and constant, so it won't need to initialise this dictionary every time it reads.
Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
6908f2c011
Move prefix length out of for loop
...
It is cached so it only needs to be computed once.
Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
cfa4382052
Move serialised version number to top of GCode reader/writer
...
The version number is more clearly exposed there.
Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
984a8efe1e
Allowing profile readers to read multiple file types per plugin
...
Both of these plugins only read one file type, but it's allowed now.
Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
8947873121
Update documentation
...
The doxygen documentation of the class and both its functions was also out of date.
Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
fedfffb98d
Update documentation
...
Just a slight inaccuracy in the documentation of one of the imports.
Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
065b954cad
GCodeProfileReader plugin properly returns a profile
...
Instead of setting the profile as the current profile, return the resulting profile.
Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
63d007c02c
Rename GCodeReader to GCodeProfileReader
...
The new name is more appropriate since it reads only the profiles from the g-code. In the future there might be some other plug-in that reads the actual g-code as for instance a mesh.
Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00