Sfoglia il codice sorgente

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

Marius Stanciu 7 anni fa
parent
commit
3293223991
3 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  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()
             self.on_file_exportdxf()
         elif type(obj) == FlatCAMExcellon:
         elif type(obj) == FlatCAMExcellon:
             self.on_file_exportexcellon()
             self.on_file_exportexcellon()
+        elif type(obj) == FlatCAMCNCjob:
+            obj.on_exportgcode_button_click()
 
 
     def obj_move(self):
     def obj_move(self):
         self.report_usage("obj_move()")
         self.report_usage("obj_move()")

+ 2 - 1
ObjectCollection.py

@@ -520,7 +520,8 @@ class ObjectCollection(QtCore.QAbstractItemModel):
                     self.app.ui.menuprojectgeneratecnc.setVisible(False)
                     self.app.ui.menuprojectgeneratecnc.setVisible(False)
                 if type(obj) != FlatCAMGeometry and type(obj) != FlatCAMExcellon:
                 if type(obj) != FlatCAMGeometry and type(obj) != FlatCAMExcellon:
                     self.app.ui.menuprojectedit.setVisible(False)
                     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:
         else:
             self.app.ui.menuprojectgeneratecnc.setVisible(False)
             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
 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
 - rearranged the File and Edit menu's and added some explanatory tooltips on certain menu items that could be seen as cryptic