38 Commits

Author SHA1 Message Date
Jaime van Kessel
2c82f5a177 Instead of writing quality + user to g-code, we now write quality_changes + user 2016-09-02 16:36:49 +02:00
Arjen Hiemstra
0f1c59c925 Properly catch when either extruder or global quality is not properly set
Cornercase, but it avoids bubbling odd error messages to the UI.

Fixes CURA-1997
2016-08-02 15:20:03 +02:00
Jaime van Kessel
b5d2533820 G-code writer no longer uses duplicate for flattening profile
Spent to much time fixing this already, so we now just make a new profile by hand based on the profiles to be flattened

CURA-1933
2016-07-29 09:59:57 +02:00
Jaime van Kessel
b3f0c257e4 Flattend profiles are now set to dirty
This fixes issue where profiles used in g-code writer were saved
2016-07-26 13:37:28 +02:00
Jaime van Kessel
70242ba502 Saving a file no longer causes a re-slice
CURA-1933
2016-07-25 15:44:16 +02:00
Jaime van Kessel
726eb97d9f Machine_id instead of definition_id is now used to link extruders
Contributes to CURA-1898
2016-07-13 11:17:44 +02:00
Simon Edwards
642ea6791b When saving the quality profile data, also incorporate any user settings/changes.
Contributes to CURA-1727 GCode Profile reading/writing: Broken and needs update
2016-07-13 09:29:47 +02:00
Simon Edwards
64ecb114b8 Store the Quality profile for the 'global' and extruders in the gcode. Read in all of the quality profile during import.
Contributes to CURA-1727 GCode Profile reading/writing: Broken and needs update
2016-07-12 12:41:49 +02:00
Thomas Karl Pietrowski
d49ba80117 GCodeWriter: Getting always the correct container with the currently used profile. 2016-06-24 16:00:38 +02:00
Thomas Karl Pietrowski
6a1942c254 GCodeWriter: Exporting the data as done on regualar exports 2016-06-23 19:40:00 +02:00
Ghostkeeper
d602c0754f
Properly serialise all settings to g-code file
This makes for ugly g-code files, true, but at least the functionality of saving settings is useful now: It's traceable. Could've implemented this somewhere else too, but this is fine for now.

Contributes to issue CURA-1278.
2016-05-24 03:00:16 +02:00
Ghostkeeper
8b5c4b0361
Document GCodeWriter class
Contributes to issue CURA-1278.
2016-05-24 02:28:56 +02:00
Ghostkeeper
673f63cf51
Remove unused import
The deep copy is no longer needed. Also updated copyright year.

Contributes to issue CURA-1278.
2016-05-24 02:26:02 +02:00
Ghostkeeper
59b8d5c169
Fix saving g-code to file
The settings that are serialised at the end of the g-code are now the serialised global container stack. That's fairly useless since the serialised version of a container stack just lists the IDs of the containers in the stack, not the settings themselves. One of these containers is likely a current_profile container and that's all the information you'll get from that serialisation.

Contributes to issue CURA-1278.
2016-05-24 02:24:11 +02:00
Jaime van Kessel
9009fb9d3d Codestyle & documentation
CURA-537
2016-04-28 16:01:54 +02:00
Ghostkeeper
0684cee681 Merge branch '2.1'
Conflicts:
	resources/machines/fdmprinter.json
	resources/machines/innovo-inventor.json
	resources/profiles/general/High+Quality.cfg
	resources/profiles/general/Low+Quality.cfg
	resources/profiles/general/Normal+Quality.cfg
	resources/profiles/general/Ulti+Quality.cfg
	resources/profiles/ultimaker2+/pla_0.4_high.curaprofile
2016-04-04 18:49:09 +02:00
Ghostkeeper
b457af1081
Add period at end of plug-in description
All other plug-in descriptions have that too. So for consistency.

Contributes to issue CURA-1190.
2016-03-22 15:07:05 +01:00
Thomas-Karl Pietrowski
c986fa0268 Removing unused imports 2016-03-15 12:50:29 +01:00
fieldOfView
90fda4cb3d Remove defaults section from current settings before adding it to a gcode file.
Contributes to CURA-936
2016-03-02 21:18:16 +01:00
fieldOfView
6e11c2409b Use working profile instead of "active" profile 2016-02-08 09:20:46 +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
541873ae6e Revert "Make serialisation version static"
This reverts commit 1771aafddb5082f51728b69f66862880701b4965.

Contributes to issue CURA-34.
2015-12-17 13:33:10 +01:00
Ghostkeeper
63bdb08ec2 Make serialisation version static
It needs to be accessed by GCodeReader to remain consistent.

Contributes to issue CURA-34.
2015-12-17 13:33:10 +01:00
Ghostkeeper
398dd60637 Limit g-code comments to 80 characters and add prefix
The prefix is of the form ;SETTING_n where n is the version ID of the profile serialisation.

Contributes to issue CURA-34.
2015-12-17 13:33:10 +01:00
Ghostkeeper
914ea8ba39 Append settings to g-code
A serialised version of the settings are now appended to the g-code. It doesn't introduce line breaks yet, so the g-code may be invalid if the firmware doesn't handle lines longer than 80 characters.

Contributes to issue CURA-34.
2015-12-17 13:33:09 +01:00
Arjen Hiemstra
67086b4d9f Update translated strings and contexts 2015-09-12 20:08:41 +02:00
Tamara Hogenhout
ef93524d78 adds/adapts translation context markers
last nesscessary changes for internationalisation -> Cura

Contributes to: issue CURA-116
2015-09-09 15:25:39 +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
a7780d9e42 Update all plugin metadata to specify API version 2015-07-31 17:07:33 +02:00
Arjen Hiemstra
d6b3044c79 Update GCodeWriter to the new API 2015-07-28 17:57:08 +02:00
Arjen Hiemstra
9d7e460b50 Add missing copyright headers
Fixes #5
2015-05-11 12:18:05 +02:00
Arjen Hiemstra
dca39383d9 Update Cura plugin metadata 2015-05-07 16:32:38 +02:00
Arjen Hiemstra
0a6562a8f1 Style: Use "" for strings not '' 2015-05-06 18:32:54 +02:00
Arjen Hiemstra
1646007e9c Use the right catalog for the Cura plugins 2015-05-01 15:56:44 +02:00
Arjen Hiemstra
bda10b5ce5 Add 'plugins/GCodeWriter/' from commit '6fc044387a3de779032ce69812040bb772971ddc'
git-subtree-dir: plugins/GCodeWriter
git-subtree-mainline: 92afe31e370d117e74c0ea2da9da559db7fa4603
git-subtree-split: 6fc044387a3de779032ce69812040bb772971ddc
2015-04-30 14:43:27 +02:00