From 32932239914b7f5d4c2849e8a73a05ce1b80e70d Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sat, 16 Feb 2019 03:01:54 +0200 Subject: [PATCH] - added the 'Save' menu entry to the Project context menu, for CNCJob: it will export the GCode. --- FlatCAMApp.py | 2 ++ ObjectCollection.py | 3 ++- README.md | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/FlatCAMApp.py b/FlatCAMApp.py index 8e1d0ebe..9dea8c06 100644 --- a/FlatCAMApp.py +++ b/FlatCAMApp.py @@ -4720,6 +4720,8 @@ class App(QtCore.QObject): self.on_file_exportdxf() elif type(obj) == FlatCAMExcellon: self.on_file_exportexcellon() + elif type(obj) == FlatCAMCNCjob: + obj.on_exportgcode_button_click() def obj_move(self): self.report_usage("obj_move()") diff --git a/ObjectCollection.py b/ObjectCollection.py index b9e11c2d..4dfcaac1 100644 --- a/ObjectCollection.py +++ b/ObjectCollection.py @@ -520,7 +520,8 @@ class ObjectCollection(QtCore.QAbstractItemModel): self.app.ui.menuprojectgeneratecnc.setVisible(False) if type(obj) != FlatCAMGeometry and type(obj) != FlatCAMExcellon: self.app.ui.menuprojectedit.setVisible(False) - self.app.ui.menuprojectsavet.setVisible(False) + if type(obj) != FlatCAMGeometry and type(obj) != FlatCAMExcellon and type(obj) != FlatCAMCNCjob: + self.app.ui.menuprojectsave.setVisible(False) else: self.app.ui.menuprojectgeneratecnc.setVisible(False) diff --git a/README.md b/README.md index 1c8e1860..49d678fc 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing. ================================================= +16.02.2019 + +- added the 'Save' menu entry to the Project context menu, for CNCJob: it will export the GCode. + 15.02.2019 - rearranged the File and Edit menu's and added some explanatory tooltips on certain menu items that could be seen as cryptic