فهرست منبع

- added possibility to drag & drop FlatCAM config files (*.FlatConfig) into the canvas to be opened into the application

Marius Stanciu 6 سال پیش
والد
کامیت
1fca6ef1bf
3فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 1 0
      FlatCAMApp.py
  2. 1 0
      README.md
  3. 3 0
      flatcamGUI/FlatCAMGUI.py

+ 1 - 0
FlatCAMApp.py

@@ -2068,6 +2068,7 @@ class App(QtCore.QObject):
         self.dxf_list = ['dxf']
         self.pdf_list = ['pdf']
         self.prj_list = ['flatprj']
+        self.conf_list = ['flatconfig']
 
         # global variable used by NCC Tool to signal that some polygons could not be cleared, if True
         # flag for polygons not cleared

+ 1 - 0
README.md

@@ -15,6 +15,7 @@ CAD program, and create G-Code for Isolation routing.
 - projects at startup don't work in another thread so there is no multithreading if I want to double click an project and to load it
 - added messages in the application window title which show the progress in loading a project (which is not thread-safe therefore keeping the app from fully initialize until finished)
 - in NCC Tool added a new parameter (radio button) that offer the choice on the order of the tools both in tools table and in execution of engraving; added as a parameter also in Edit -> Preferences -> Tools -> NCC Tool
+- added possibility to drag & drop FlatCAM config files (*.FlatConfig) into the canvas to be opened into the application
 
 17.08.2019
 

+ 3 - 0
flatcamGUI/FlatCAMGUI.py

@@ -3218,6 +3218,9 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
                     if extension in self.app.prj_list:
                         # self.app.open_project() is not Thread Safe
                         self.app.open_project(self.filename)
+
+                    if extension in self.app.conf_list:
+                        self.app.open_config_file(self.filename)
                     else:
                         event.ignore()
         else: