- major refactoring: started to move the methods connected to the Edit menu to their own class to clean up the App mega class
This commit is contained in:
@@ -217,7 +217,9 @@ class AppObject(QtCore.QObject):
|
||||
obj.moveToThread(self.app.main_thread)
|
||||
|
||||
if return_value == 'drill_gx2':
|
||||
self.object_created.emit(obj, obj_plot, obj_autoselected, self.app.convert_any2excellon, [name])
|
||||
self.object_created.emit(obj, obj_plot, obj_autoselected,
|
||||
self.app.edit_class.convert_any2excellon,
|
||||
[name])
|
||||
self.app.log.warning("Gerber X2 drill file detected. Converted to Excellon object.")
|
||||
self.app.inform.emit('[WARNING] %s' % _("Gerber X2 drill file detected. Converted to Excellon object."))
|
||||
else:
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
from PyQt6 import QtCore, QtWidgets
|
||||
|
||||
from appEditors.AppTextEditor import AppTextEditor
|
||||
from appEditors.appTextEditor import AppTextEditor
|
||||
from appObjects.AppObjectTemplate import FlatCAMObj, ObjectDeleted
|
||||
from appGUI.GUIElements import FCFileSaveDialog, FCCheckBox
|
||||
from appGUI.ObjectUI import CNCObjectUI
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
from PyQt6.QtCore import Qt
|
||||
|
||||
from appEditors.AppTextEditor import AppTextEditor
|
||||
from appEditors.appTextEditor import AppTextEditor
|
||||
from appObjects.AppObjectTemplate import *
|
||||
from appGUI.ObjectUI import DocumentObjectUI
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
from PyQt6 import QtCore
|
||||
|
||||
from appEditors.AppTextEditor import AppTextEditor
|
||||
from appEditors.appTextEditor import AppTextEditor
|
||||
from appObjects.AppObjectTemplate import FlatCAMObj
|
||||
from appGUI.ObjectUI import ScriptObjectUI
|
||||
|
||||
|
||||
Reference in New Issue
Block a user