695 Commits

Author SHA1 Message Date
ChrisTerBeke
6c9d7b5a2e Fixes for resetting print time information when removing all or last model, reduce signals being used for print time resetting - CURA-4852 2018-01-23 09:49:26 +01:00
Diego Prado Gesto
d8ae78d80c CURA-4821 Select the groups to be deleted also when clearing the scene 2018-01-22 16:12:11 +01:00
Diego Prado Gesto
20ab6265c8 CURA-4821 Delete also the GCode SceneNode when clearing the buildplate 2018-01-22 13:58:35 +01:00
Jack Ha
8d8fa0269a CURA-4821 loading gcode will now delete all existing models from all build plates and delete existing layer data to be processed 2018-01-22 12:57:50 +01:00
ChrisTerBeke
d035ace40d Add method to set active extruder count to machine manager so other plugins can use it, add empty definitions container template 2018-01-19 13:32:25 +01:00
Ian Paschal
fad43be23b Fixes CURA-4789
Emits `sceneChanged` which `PrintInformation` listens for and then resets with. Same result re: print time, but also will update anythign else which is listening for `sceneChanged`.
2018-01-16 17:03:52 +01:00
Ian Paschal
ba1f915633 Fix for CURA-4789
`deleteAll()` within `CuraApplication.py` now resets the print information by calling its `setToZeroPrintInformation()` method, rather than by reinstatiating the `PrintInformation` class.
2018-01-16 16:30:10 +01:00
Ghostkeeper
f948203a63
Fix crash when clearing build plate
We shouldn't delete the singleton PrintInformation object. We should rather just zero out the print information. And instead of doing that explicitly in deleteAll, listen to scene changes from PrintInformation in order to keep the logic related to the print information contained within its class.

Contributes to issue CURA-4810.
2018-01-16 13:44:49 +01:00
Lipu Fei
51b49c89f4 Switch to LayerView after GCode has been fully loaded
CURA-4805
2018-01-16 13:09:35 +01:00
Lipu Fei
abece3c415 Add quality_type = not_supported to empty_quality_changes
CURA-4807
2018-01-16 11:57:20 +01:00
Ghostkeeper
27c0ca4dea
Move some things outside of try-catch clause
Only the pre-read should really be in there. Otherwise we'd hide some mistakes in our code.

Contributes to issue CURA-4810.
2018-01-16 10:53:14 +01:00
Lipu Fei
784707bb85 Stay on the same build plate after everything is removed
CURA-4795
2018-01-15 14:42:22 +01:00
Ian Paschal
5280501660 Fix for CURA-4789
`deleteAll()` within `CuraApplication.py` used to only delete all scene nodes but now also resets the print information, as deleting all scene nodes _should_ do that by default. Timer now resets to 0, and project name is reset.
2018-01-15 14:40:01 +01:00
Lipu Fei
a3c2635648 Fix profile manager to support not supported custom profiles
CURA-4796

Profile manager should be able to show custom profiles that are based on
the not supported profile correctly.
2018-01-15 14:29:52 +01:00
Lipu Fei
dc596d0e1e Only remove selectable nodes in deleteAll()
CURA-4795

Otherwise, after loading a project file, all nodes including the
machine will be removed and you don't see the machine any more.
2018-01-15 11:12:09 +01:00
Lipu Fei
87dc3535bb Use isinstance() for SceneNode type check
CURA-4525
2018-01-15 09:59:41 +01:00
Jack Ha
c5c357d126 Fixed merge conflicts of cherry picking dimensions fix 2018-01-15 09:48:17 +01:00
Lipu Fei
b54b075cc9 Use isinstance() instead or issubclass()
CURA-4525
2018-01-12 16:42:34 +01:00
Jack Ha
b8a21a5eb3 Merge branch 'master' of github.com:Ultimaker/Cura 2018-01-11 09:33:15 +01:00
Jack Ha
b9a99d4692 CURA-4525 fix placement on load to only avoid objects on current build plate 2018-01-11 09:33:07 +01:00
Lipu Fei
702d7dd3a8 Fix model importing with multi build plate
CURA-4782
2018-01-11 08:23:19 +01:00
Diego Prado Gesto
0722465fb9 Merge branch 'master' of https://github.com/Ultimaker/Cura 2018-01-09 09:17:51 +01:00
Diego Prado Gesto
4c8c4c78da CURA-4772 Create a CuraSceneNode instead of a SceneNode when reading a
GCode. Avoid creating an empty CuraSceneNode if the node is already an
instance of it.
2018-01-09 09:16:21 +01:00
Jack Ha
733d6234e6 CURA-4525 moved experimental preferences to bottom with its own label; all settings are by default off 2018-01-08 11:13:16 +01:00
Diego Prado Gesto
1a520a041b CURA-4768 Allow groups of models to be included in the select all and
arrange tools.
2018-01-05 16:27:57 +01:00
ChrisTerBeke
11a4845931 Move CuraSceneController together with rest of scene related code 2018-01-04 10:41:25 +01:00
Jack Ha
840eedbb3d CURA-4525 switch back to build plate 0 when deleting all objects 2018-01-04 09:35:23 +01:00
Jack Ha
8c7a0d4a8e CURA-4525 created CuraSceneController and took out logic from ObjectsModel and BuildPlateModel 2018-01-04 09:26:15 +01:00
ChrisTerBeke
08322d0a5e Move all decorators in the scene subfolder 2018-01-03 15:09:19 +01:00
ChrisTerBeke
62b06b063b Also move other operations into operations subfolder 2018-01-03 15:06:20 +01:00
ChrisTerBeke
a5630e5c54 Move all arranging related code into a subfolder 2018-01-03 15:05:06 +01:00
Jack Ha
bfa33c721c CURA-4525 solved merge conflicts 2018-01-03 13:52:55 +01:00
Ruben D
689a18ee57
Rename sidebar_collapsed and code style
sidebar_collapsed is more consistent with other options and setting names we use. Better change it before the next release rolls out otherwise we'd have to do a version upgrade.
Also changed some code style things to be in line with our guidelines.

Contributes to issue CURA-4234.
2017-12-30 19:35:46 +01:00
Ghostkeeper
4a3109c885
Don't crash when loading model before a printer is loaded
The model won't load successfully and you get a message that it failed to load, but Cura won't crash at least.

Contributes to issue CURA-4736.
2017-12-29 14:47:55 +01:00
ChrisTerBeke
f75d91071a Remove invisible flag from allowed command line options to trigger non-gui mode 2017-12-22 11:39:58 +01:00
ChrisTerBeke
b29047abd3 Small fixes for disable user data triggering preferences window 2017-12-22 11:38:56 +01:00
Aleksei S
447c6e7e23 Added Disable link style
CURA-4630
2017-12-21 16:25:13 +01:00
Jack Ha
5152b2ae65 Solved merge conflicts. CURA-4525 2017-12-21 10:52:51 +01:00
ChrisTerBeke
e3a996073e Remove duplicate --headless argument as it is now in Uranium 2017-12-18 11:09:41 +01:00
ChrisTerBeke
443e155cf7 Adding set stage back 2017-12-18 10:50:50 +01:00
ChrisTerBeke
6666829939
Merge pull request #2940 from thopiekar/master-prepare-for-com-support
(DONE) Registration of arguments of plugins, add invisible mode (No splashscreen!) and "--debug" mode as argument
2017-12-18 10:49:44 +01:00
Jack Ha
4519f9b46a CURA-4234 rename to cura/sidebar_collapse, fix spelling errors, styling 2017-12-13 14:04:02 +01:00
Jack Ha
f28846acb9 Merge branch 'master' into CURA-4234_expand_collapse 2017-12-12 15:43:32 +01:00
Aleksei S
3516d01f3d Move back machine selection
CURA-4234
2017-12-12 15:30:19 +01:00
Aleksei S
6968c089db Add sidebar_collapse to the saved preferences, typos, move back machine selection to the top bar
CURA-4234
2017-12-12 11:26:17 +01:00
Thomas Karl Pietrowski
79cb1a1293 closeAllWindows seems to take no effect - use exit instead
Looks like it does not work, because there was never a window or any other window on top of QApplication.
.exit() should let us out of the main loop.
2017-12-10 01:08:06 +01:00
Thomas Karl Pietrowski
1cd107965c Close all windows, if there is no main window 2017-12-10 00:39:20 +01:00
Thomas Karl Pietrowski
f1d5bc38dc Adding help arguments manually
.. and also print and exit as it normally does, when enabled.
2017-12-09 23:01:26 +01:00
Thomas Karl Pietrowski
8e89c1b361 No comment on this.. 2017-12-09 17:40:06 +01:00
Thomas Karl Pietrowski
7e7303a7e3 Code style 2017-12-09 16:00:56 +01:00