- more refactoring in the app Editors
This commit is contained in:
@@ -10,7 +10,7 @@ from PyQt5 import QtWidgets, QtCore, QtGui
|
||||
from appTool import AppTool
|
||||
from appGUI.GUIElements import FCDoubleSpinner, EvalEntry, FCCheckBox, OptionalInputSection, FCEntry
|
||||
from appGUI.GUIElements import FCTable, FCComboBox, RadioSet
|
||||
from appEditors.FlatCAMTextEditor import TextEditor
|
||||
from appEditors.AppTextEditor import AppTextEditor
|
||||
|
||||
from shapely.geometry import Point
|
||||
from shapely.geometry.base import *
|
||||
@@ -1061,7 +1061,7 @@ class ToolCalibration(AppTool):
|
||||
|
||||
gcode += 'M2'
|
||||
|
||||
self.gcode_editor_tab = TextEditor(app=self.app, plain_text=True)
|
||||
self.gcode_editor_tab = AppTextEditor(app=self.app, plain_text=True)
|
||||
|
||||
# add the tab if it was closed
|
||||
self.app.ui.plot_tab_area.addTab(self.gcode_editor_tab, '%s' % _("Gcode Viewer"))
|
||||
|
||||
@@ -15,7 +15,7 @@ from shapely.geometry import Point, MultiLineString, Polygon
|
||||
|
||||
import appTranslation as fcTranslate
|
||||
from camlib import FlatCAMRTreeStorage
|
||||
from appEditors.appGeoEditor import DrawToolShape
|
||||
from appEditors.AppGeoEditor import DrawToolShape
|
||||
|
||||
from copy import copy
|
||||
import math
|
||||
|
||||
@@ -11,7 +11,7 @@ from appGUI.GUIElements import FCComboBox, FCEntry, FCTable, \
|
||||
FCInputDialog, FCDoubleSpinner, FCSpinner, FCFileSaveDialog
|
||||
from app_Main import log
|
||||
from camlib import distance
|
||||
from appEditors.FlatCAMTextEditor import TextEditor
|
||||
from appEditors.AppTextEditor import AppTextEditor
|
||||
|
||||
from PyQt5 import QtGui, QtCore, QtWidgets
|
||||
from PyQt5.QtCore import Qt
|
||||
@@ -1414,7 +1414,7 @@ class SolderPaste(AppTool):
|
||||
"""
|
||||
time_str = "{:%A, %d %B %Y at %H:%M}".format(datetime.now())
|
||||
|
||||
self.text_editor_tab = TextEditor(app=self.app)
|
||||
self.text_editor_tab = AppTextEditor(app=self.app)
|
||||
|
||||
# add the tab if it was closed
|
||||
self.app.ui.plot_tab_area.addTab(self.text_editor_tab, _("SP GCode Editor"))
|
||||
|
||||
Reference in New Issue
Block a user