fieldOfView
4bf4a20d44
Add small hover-effect to small buttons
2015-12-30 09:53:25 +01:00
fieldOfView
a900b02ae8
Added weight to viewmode plugins for sorting in the viewmode
2015-12-30 09:53:25 +01:00
fieldOfView
091f744838
Reuse code
2015-12-22 09:26:21 +01:00
fieldOfView
c900e27c19
Stop slicing immediately when a ToolOperation is started
2015-12-22 08:58:04 +01:00
Ghostkeeper
482f0461fc
Add check for profile version
...
The profile reader now checks whether the profile version is the same as the target version in the Dictionary of Doom.
Contributes to issue CURA-37.
2015-12-18 10:50:54 +01:00
Ghostkeeper
68496349a9
Fix import of top and bottom thickness
...
The legacy settings had a boolean for these, but in the current version is should just be a float.
Contributes to issue CURA-37.
2015-12-18 10:19:28 +01:00
Ghostkeeper
84613d99c4
Fix import of platform_adhesion
...
This setting should never be set to None.
Contributes to issue CURA-37.
2015-12-18 10:10:08 +01:00
Ghostkeeper
d2513f9bbb
Fix prime_tower_size import
...
It was using math.sqrt incorrectly and also was trying to divide strings by each other, while they were floats.
Contributes to issue CURA-37.
2015-12-18 10:03:34 +01:00
Ghostkeeper
0454b37243
Fix importing math to eval
...
We expose only math, so it can do mathematical operations on the setting values when translating.
Contributes to issue CURA-37.
2015-12-18 10:00:00 +01:00
Ghostkeeper
bfa332e227
Fix ternary operator in import of support_enable
...
The ternary operator of Python is different.
Contributes to issue CURA-37.
2015-12-18 09:54:35 +01:00
Ghostkeeper
5358b700ca
Fix ternary operator in import of support_enable
...
The ternary operator of Python is different.
Contributes to issue CURA-37.
2015-12-18 09:52:50 +01:00
Ghostkeeper
99a13ba3aa
Fix getting settings from JSON file
...
When reading a node of a JSON file, apparently it only lists the keys instead of key-value pairs. You have to get the values separately.
Contributes to issue CURA-37.
2015-12-18 09:14:55 +01:00
Ghostkeeper
6bde0e3404
Sync translation category name from JSON
...
The category was named 'translation' instead of 'translations'.
Contributes to issue CURA-37.
2015-12-18 09:10:52 +01:00
Ghostkeeper
644038af97
Missing imports
...
Test before commit. Test before commit. Test before commit. Test before commit!
Contributes to issue CURA-37.
2015-12-18 09:06:43 +01:00
Ghostkeeper
166c8a3048
Fix call to configparser.options
...
It needs to have the section from which to read the options.
Contributes to issue CURA-37.
2015-12-18 09:01:22 +01:00
Ghostkeeper
abb92afc27
Fix call to prepareLocals
...
Turns out the 'self.' is required...
Contributes to issue CURA-37.
2015-12-17 14:54:48 +01:00
Ghostkeeper
f2a95ae89c
Correct the configparser
...
The import was missing. Also, the parser was not called on the correct stream.
Contributes to issue CURA-37.
2015-12-17 14:30:53 +01:00
Ghostkeeper
57f5e60fa5
Fix link to LegacyProfileReader
...
This was preventing the entire plugin from being loaded.
Contributes to issue CURA-37.
2015-12-17 14:02:29 +01:00
Ghostkeeper
77453cf80f
Remove old version of LegacyProfileReader
...
This shouldn't have been committed. I suspect this came in via checking out a branch where this was still on the working tree and then going to a branch where it wasn't, and it kept the files and I thought LegacySettings was the plugin I had to commit.
Contributes to issue CURA-37.
2015-12-17 14:01:42 +01:00
Ghostkeeper
513941097f
Initial LegacyProfileReader plugin implementation
...
This plugin reads a profile from legacy Cura versions. It hasn't been tested much except that there are no syntax errors. It is currently being blocked by issue 34.
Contributes to issue CURA-37.
2015-12-17 13:49:53 +01:00
Ghostkeeper
9671ae3c74
Introduce blanco LegacySettings plugin
...
This plugin will be implemented to import settings from legacy versions of Cura.
Contributes to issue CURA-37.
2015-12-17 13:49:53 +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
a12246781d
CuraProfileWriter use SaveFile instead of streams
...
The SaveFile is safer since it should save the file atomically. This safety has proven important in the past so use it here too.
Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
3ec790f963
Add CuraProfileWriter plugin
...
This plugin writes the default Cura profile format.
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
f95bfd8ae3
Add normal Cura profile reader
...
This re-introduces the old functionality where you can import .curaprofile files. It's just now in the plug-in format.
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
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