T466: Added ability to print loaded gcode

This commit is contained in:
Victor Larchenko 2016-10-14 18:08:33 +06:00 committed by Youness Alaoui
parent 2ee5e2cb0b
commit 64d7bb0c2a
390 changed files with 7 additions and 1 deletions

0
.gitignore vendored Normal file → Executable file
View file

0
CHANGES Normal file → Executable file
View file

0
CMakeLists.txt Normal file → Executable file
View file

0
CPackConfig.cmake Normal file → Executable file
View file

0
LICENSE Normal file → Executable file
View file

0
README.md Normal file → Executable file
View file

0
build.sh Normal file → Executable file
View file

0
cura.desktop.in Normal file → Executable file
View file

0
cura.sharedmimeinfo Normal file → Executable file
View file

0
cura/BuildVolume.py Normal file → Executable file
View file

0
cura/CameraAnimation.py Normal file → Executable file
View file

0
cura/CameraImageProvider.py Normal file → Executable file
View file

0
cura/ConvexHullDecorator.py Normal file → Executable file
View file

0
cura/ConvexHullNode.py Normal file → Executable file
View file

0
cura/CrashHandler.py Normal file → Executable file
View file

0
cura/CuraActions.py Normal file → Executable file
View file

0
cura/CuraApplication.py Normal file → Executable file
View file

0
cura/CuraSplashScreen.py Normal file → Executable file
View file

0
cura/CuraVersion.py.in Normal file → Executable file
View file

0
cura/Layer.py Normal file → Executable file
View file

0
cura/LayerData.py Normal file → Executable file
View file

0
cura/LayerDataBuilder.py Normal file → Executable file
View file

0
cura/LayerDataDecorator.py Normal file → Executable file
View file

0
cura/LayerPolygon.py Normal file → Executable file
View file

0
cura/MachineAction.py Normal file → Executable file
View file

0
cura/MachineActionManager.py Normal file → Executable file
View file

0
cura/OneAtATimeIterator.py Normal file → Executable file
View file

0
cura/PlatformPhysics.py Normal file → Executable file
View file

0
cura/PlatformPhysicsOperation.py Normal file → Executable file
View file

0
cura/PrintInformation.py Normal file → Executable file
View file

0
cura/PrinterOutputDevice.py Normal file → Executable file
View file

0
cura/ProfileReader.py Normal file → Executable file
View file

0
cura/ProfileWriter.py Normal file → Executable file
View file

0
cura/SetParentOperation.py Normal file → Executable file
View file

0
cura/Settings/ContainerManager.py Normal file → Executable file
View file

0
cura/Settings/ContainerSettingsModel.py Normal file → Executable file
View file

0
cura/Settings/CuraContainerRegistry.py Normal file → Executable file
View file

0
cura/Settings/ExtruderManager.py Normal file → Executable file
View file

0
cura/Settings/ExtrudersModel.py Normal file → Executable file
View file

0
cura/Settings/MachineManager.py Normal file → Executable file
View file

0
cura/Settings/MaterialSettingsVisibilityHandler.py Normal file → Executable file
View file

0
cura/Settings/QualitySettingsModel.py Normal file → Executable file
View file

0
cura/Settings/SettingInheritanceManager.py Normal file → Executable file
View file

0
cura/Settings/SettingOverrideDecorator.py Normal file → Executable file
View file

0
cura/Settings/__init__.py Normal file → Executable file
View file

0
cura/ZOffsetDecorator.py Normal file → Executable file
View file

0
cura/__init__.py Normal file → Executable file
View file

0
icons/cura-128.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before After
Before After

0
icons/cura-32.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before After
Before After

0
icons/cura-48.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before After
Before After

0
icons/cura-64.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before After
Before After

0
icons/cura.icns Normal file → Executable file
View file

0
icons/cura.ico Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 361 KiB

After

Width:  |  Height:  |  Size: 361 KiB

Before After
Before After

0
installer.nsi Normal file → Executable file
View file

0
plugins/3MFReader/ThreeMFReader.py Normal file → Executable file
View file

0
plugins/3MFReader/__init__.py Normal file → Executable file
View file

0
plugins/AutoSave/AutoSave.py Normal file → Executable file
View file

0
plugins/AutoSave/__init__.py Normal file → Executable file
View file

0
plugins/ChangeLogPlugin/ChangeLog.py Normal file → Executable file
View file

0
plugins/ChangeLogPlugin/ChangeLog.qml Normal file → Executable file
View file

0
plugins/ChangeLogPlugin/ChangeLog.txt Normal file → Executable file
View file

0
plugins/ChangeLogPlugin/__init__.py Normal file → Executable file
View file

0
plugins/CuraEngineBackend/Cura.proto Normal file → Executable file
View file

0
plugins/CuraEngineBackend/CuraEngineBackend.py Normal file → Executable file
View file

0
plugins/CuraEngineBackend/ProcessGCodeJob.py Normal file → Executable file
View file

0
plugins/CuraEngineBackend/ProcessSlicedLayersJob.py Normal file → Executable file
View file

0
plugins/CuraEngineBackend/StartSliceJob.py Normal file → Executable file
View file

0
plugins/CuraEngineBackend/__init__.py Normal file → Executable file
View file

0
plugins/CuraProfileReader/CuraProfileReader.py Normal file → Executable file
View file

0
plugins/CuraProfileReader/__init__.py Normal file → Executable file
View file

0
plugins/CuraProfileWriter/CuraProfileWriter.py Normal file → Executable file
View file

0
plugins/CuraProfileWriter/__init__.py Normal file → Executable file
View file

8
plugins/GCODEReader/GCODEReader.py Normal file → Executable file
View file

@ -76,7 +76,7 @@ class GCODEReader(MeshReader):
else:
backend = Application.getInstance().getBackend()
backend._pauseSlicing = True
backend.backendStateChange.emit(1)
backend.backendStateChange.emit(3)
Application.getInstance().getPrintInformation()._abbr_machine = "Pre-sliced"
Application.getInstance().setHideSettings(True)
@ -116,6 +116,9 @@ class GCODEReader(MeshReader):
backend.close()
backend.backendStateChange.emit(1)
glist = getattr(Application.getInstance().getController().getScene(), "gcode_list")
glist.clear()
file = open(file_name, "r")
layer_data = LayerDataBuilder.LayerDataBuilder()
@ -159,6 +162,7 @@ class GCODEReader(MeshReader):
# current_path.append([10, 10, 10])
# while file.readable():
for line in file:
glist.append(line)
if len(line) == 0:
continue
if line[0] == ";":
@ -241,6 +245,8 @@ class GCODEReader(MeshReader):
Preferences.getInstance().setValue("cura/jobname_prefix", True)
view = Application.getInstance().getController().getActiveView()
if view.getPluginId() == "LayerView":
view.resetLayerData()

0
plugins/GCODEReader/__init__.py Normal file → Executable file
View file

0
plugins/GCodeProfileReader/GCodeProfileReader.py Normal file → Executable file
View file

0
plugins/GCodeProfileReader/__init__.py Normal file → Executable file
View file

0
plugins/GCodeWriter/GCodeWriter.py Normal file → Executable file
View file

0
plugins/GCodeWriter/__init__.py Normal file → Executable file
View file

0
plugins/ImageReader/ConfigUI.qml Normal file → Executable file
View file

0
plugins/ImageReader/ImageReader.py Normal file → Executable file
View file

0
plugins/ImageReader/ImageReaderUI.py Normal file → Executable file
View file

0
plugins/ImageReader/__init__.py Normal file → Executable file
View file

0
plugins/LayerView/LayerPass.py Normal file → Executable file
View file

0
plugins/LayerView/LayerView.py Normal file → Executable file
View file

0
plugins/LayerView/LayerView.qml Normal file → Executable file
View file

0
plugins/LayerView/LayerViewProxy.py Normal file → Executable file
View file

0
plugins/LayerView/__init__.py Normal file → Executable file
View file

0
plugins/LayerView/layerview_composite.shader Normal file → Executable file
View file

0
plugins/LegacyProfileReader/DictionaryOfDoom.json Normal file → Executable file
View file

0
plugins/LegacyProfileReader/LegacyProfileReader.py Normal file → Executable file
View file

0
plugins/LegacyProfileReader/__init__.py Normal file → Executable file
View file

0
plugins/MachineSettingsAction/MachineSettingsAction.py Normal file → Executable file
View file

View file

0
plugins/MachineSettingsAction/__init__.py Normal file → Executable file
View file

0
plugins/PerObjectSettingsTool/PerObjectCategory.qml Normal file → Executable file
View file

0
plugins/PerObjectSettingsTool/PerObjectItem.qml Normal file → Executable file
View file

View file

View file

0
plugins/PerObjectSettingsTool/PerObjectSettingsTool.py Normal file → Executable file
View file

0
plugins/PerObjectSettingsTool/__init__.py Normal file → Executable file
View file

Some files were not shown because too many files have changed in this diff Show more