1964 Commits

Author SHA1 Message Date
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
Ghostkeeper
edbbc96281 Update metadata for GCodeReader
It more accurately describes what the plugin does.

Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
20151a5042 Change plugin type to profile_reader
This repairs the profile reading at startup. It should not be a mesh reader.

Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
6d225948f2 Remove newlines in deserialisation
The artificial line-breaks for the 80-character limit were taken along with the read-by-line of reading the g-code file, apparently. This obviously produced errors in the config parser.

Contributes to issue CURA-34.
2015-12-17 13:33:10 +01:00
Ghostkeeper
5358dfe2d6 Fix imports for GCodeReader
This code was more or less copied from the writer. It requires regular expressions and the application, but I didn't take the imports along.

Contributes to issue CURA-34.
2015-12-17 13:33:10 +01:00
Ghostkeeper
d60d2f6c71 Initial GCodeReader reading profiles from g-code
Hasn't been tested yet. Probably is wrong.

Contributes to issue CURA-34.
2015-12-17 13:33:10 +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
Ghostkeeper
d23cf97214 Allow multiple file types per mesh reader
A mesh reader plugin now uses a list of file types that it can offer to read, instead of being limited to one.

Contributes to issue CURA-266.
2015-12-15 11:21:19 +01:00
Arjen Hiemstra
bcaea7db09 Fix documentation of XRayView class and add a note about RenderPass ctor 2015-12-14 13:58:24 +01:00
Arjen Hiemstra
b229769c4e Uranium -> Cura and drop some unused code 2015-12-14 13:58:24 +01:00
Arjen Hiemstra
042c575b18 Update XRayView to render properly 2015-12-14 13:58:24 +01:00
Arjen Hiemstra
8a5f2b347a Add a working X-Ray view 2015-12-14 13:56:32 +01:00
Arjen Hiemstra
e0d6cd6f90 Remove commented out code 2015-12-14 13:56:32 +01:00
Arjen Hiemstra
435186e6d1 Fix convex hull and layer view rendering 2015-12-14 13:56:32 +01:00
Arjen Hiemstra
c5689e6256 Add SolidView plugin, which is what used to be Uranium's MeshView 2015-12-14 13:56:32 +01:00
Tamara Hogenhout
e61d3e4f3e Merge pull request #562 from Ultimaker/feature_ux2-1
Design rework for 2.1 release
2015-12-10 11:05:19 +01:00
Tamara Hogenhout
18df633837 Revert "Displays settings based on whether they are global-only or not"
This reverts commit 2e5bac5392f35d43c701abdfc2340e907258cfaa.
2015-12-10 11:00:40 +01:00
Tamara Hogenhout
7e12269ca4 Revert "Adds a global-only role to the SettingOverrideModel"
This reverts commit f8dbe056b2c53ac76f2ad124e26c7b8dbfd55b07.
2015-12-09 16:49:13 +01:00
fieldOfView
5fe1de2153 Add warning to PerObjectSettingsPanel when Print Sequence is set to All at Once 2015-12-09 15:05:39 +01:00
fieldOfView
03e9694e32 Fix PerObjectSettingsPanel layout 2015-12-09 13:02:30 +01:00
Tamara Hogenhout
f8dbe056b2 Adds a global-only role to the SettingOverrideModel
Also adds a reload function

Contributes to #CURA-458
2015-12-08 13:43:37 +01:00
Tamara Hogenhout
2e5bac5392 Displays settings based on whether they are global-only or not
blobal-only means it's not allowed to be used as a per object setting

Contribute to #CURA-458
2015-12-08 13:42:16 +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
fieldOfView
2ebeb72fac Rework Per Object Settings selection mechanism 2015-12-03 12:09:32 +01:00
fieldOfView
4d29fccb0b Remove cursorShapes for now 2015-12-03 12:09:30 +01:00
fieldOfView
47c53860fd Add hover cursorShape to open/viewmode buttons and layerslider 2015-12-03 12:09:29 +01:00
fieldOfView
6af05b8af7 Add order to PerObjectSettings tool 2015-12-03 12:09:29 +01:00
fieldOfView
2477617155 Reorient LayerView slider
Fix toolbar tooltip collisions
Refactor use of colors.text_default
2015-12-03 12:09:26 +01:00
fieldOfView
6bfed19477 Show slicing progress in SaveButton area instead of MessageStack
Add separators to sidebar
Tweak theme
2015-12-03 12:09:25 +01:00
fieldOfView
1ba1009b60 Initial theme rework:
* Move buttons around
* Resizing
* Colors
* Splash screen
2015-12-03 12:09:23 +01:00
Arjen Hiemstra
aefed915e2 Remove debug code
Fixes CURA-518
2015-12-01 13:03:41 +01:00
Arjen Hiemstra
949fd199a8 Fix the last code style issue 2015-11-30 11:56:08 +01:00
Arjen Hiemstra
9267b517d6 Fix coding style issues 2015-11-27 16:53:32 +01:00
daid
743b403b29 Whole bunch of um-pep8 style fixes. 2015-11-27 13:50:44 +01:00
daid
9302a36391 Small codestyle fix. 2015-11-26 15:29:32 +01:00
Tamara Hogenhout
1a4a396abd Makes it the same size as most other dialogs
Also makes it more readable

Contributes to #CURA-279
2015-11-19 16:03:15 +01:00
Tamara Hogenhout
c690095103 Adds naming changes to the changelog
fixes #CURA-279
2015-11-19 15:43:20 +01:00
Arjen Hiemstra
09ea598d28 Merge branch '15.10'
* 15.10:
  Update translations with the 15.10 versions
  Disable languages we have no updated translations for
  Display the version number in the splash screen
  Properly raise DeviceBusyError in RemovableDriveOutputDevice
2015-11-17 14:25:23 +01:00
Tim Kuipers
8060ab02f9 lil bugfix in parsing startGcode 2015-11-17 10:27:25 +01:00
Arjen Hiemstra
3e2797d727 Properly raise DeviceBusyError in RemovableDriveOutputDevice
Contributes to CURA-448
2015-11-16 12:20:03 +01:00
Mark Walker
4a3db419ec Add back placeholder expansion for start/end gcode
See issue Ultimaker/CuraEngine#240

The intent of this change it to allow token replacement in start/end
gcode similar to the old Cura. Tokens are of the form
{material_bed_temperature} where the name is any setting name that is
passed to the engine.

Control the backend's generation of temperature commands via new
settings material_bed_temp_prepend and material_print_temp_prepend based
on whether there are temperature tokens in the printer profile's start
gcode.

This change will generate the same temperature gcode as FffGcodeWriter
at the head, if none of the temperature tokens are present in the
machine profile. Otherwise, they're suppressed via the prepend settings.

Also, set fdmprinter.json so that all that inherit from it default to
having the gcode temperature prepend also wait for temperature. Profiles
can override these settings: material_bed_temp_wait and
material_print_temp_wait

This PR intends to change both Cura and CuraEngine.  However, it is safe
to sequence with the Cura change first which will do token replacement
(if present), but will fail to supress the temperature prepends.
2015-11-16 02:22:47 -08:00
Arjen Hiemstra
15747dedec Update Per Object Settings tool with changes made in 15.10 2015-11-13 11:32:43 +01:00
Arjen Hiemstra
751f58fb02 Merge branch '15.10'
* 15.10: (39 commits)
  Remove unused import in StartSliceJob
  conforming to code style
  fix typo's..
  Adjust initial view to be slightly from the side
  uses a different method to check whether a machine name excists
  Sets the languageComboBox to the default language
  Remove per-group settings for now
  Make sure to send all settings when an object overrides the profile
  Properly emit writeStarted in RemovableDriveOutputDevice
  Add xy_offset setting to list of settings that trigger a disallowed area update
  Properly trigger a reslice when the active instance is changed
  Wizardpages without hack
  Only hides the window when there are no more pages
  Only add layer data node after all processing
  Also account for "xy_offset" setting for the disallowed areas
  JSON: workaround for stutter in spiralize vase: set travel speed to printing speed
  Adds a color for the error-messages
  Shows an error message when a user tries to add a printer with a name that already excists.
  JSON: support bottom stair step height defaults changed so that the bottom distance to the model isn't violated too much
  Try to use Protobuf CPP implementation if it is available
  ...
2015-11-13 11:31:29 +01:00
Arjen Hiemstra
b7471d6b1d Remove unused import in StartSliceJob
Contributes to CURA-358
2015-11-11 11:00:28 +01:00
Arjen Hiemstra
288ad0c201 Remove per-group settings for now
This drops Layer height as a setting that can be changed per-object but
makes per-object settings work correctly.

Contributes to CURA-255
2015-11-06 17:56:51 +01:00
Arjen Hiemstra
f75b6bb046 Make sure to send all settings when an object overrides the profile
Contributes to CURA-255
2015-11-06 17:55:36 +01:00
Arjen Hiemstra
3029409b89 Properly emit writeStarted in RemovableDriveOutputDevice
Contributes to CURA-319
2015-11-06 15:43:11 +01:00