From 1fca6ef1bf5f608e64b6756047ba74d2e173bf0d Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sun, 18 Aug 2019 03:11:19 +0300 Subject: [PATCH] - added possibility to drag & drop FlatCAM config files (*.FlatConfig) into the canvas to be opened into the application --- FlatCAMApp.py | 1 + README.md | 1 + flatcamGUI/FlatCAMGUI.py | 3 +++ 3 files changed, 5 insertions(+) diff --git a/FlatCAMApp.py b/FlatCAMApp.py index 96e7a4c0..35eee49b 100644 --- a/FlatCAMApp.py +++ b/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 diff --git a/README.md b/README.md index 90a81714..a71f4ebf 100644 --- a/README.md +++ b/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 diff --git a/flatcamGUI/FlatCAMGUI.py b/flatcamGUI/FlatCAMGUI.py index 1388fe6b..1d97b0da 100644 --- a/flatcamGUI/FlatCAMGUI.py +++ b/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: