Просмотр исходного кода

- added the 'Save' menu entry to the Project context menu, for CNCJob: it will export the GCode.

Marius Stanciu 7 лет назад
Родитель
Сommit
3293223991
3 измененных файлов с 8 добавлено и 1 удалено
  1. 2 0
      FlatCAMApp.py
  2. 2 1
      ObjectCollection.py
  3. 4 0
      README.md

+ 2 - 0
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()")

+ 2 - 1
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)
 

+ 4 - 0
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