- added some icons in the Code Editor

- replaced some icons in the app
- in Code Editor, when changing text, the Save Code button will change color (text and icon) to red and after save it will revert the color to the default one
- in Code Editor some methods rework
This commit is contained in:
Marius Stanciu
2020-07-18 00:26:03 +03:00
committed by Marius
parent 1b15d2a2c1
commit 8409c74e23
29 changed files with 61 additions and 61 deletions

View File

@@ -1019,19 +1019,15 @@ class SolderPaste(AppTool):
return
try:
for line in lines:
proc_line = str(line).strip('\n')
self.text_editor_tab.code_editor.append(proc_line)
# for line in lines:
# proc_line = str(line).strip('\n')
# self.text_editor_tab.code_editor.append(proc_line)
self.text_editor_tab.load_text(lines, move_to_start=True)
except Exception as e:
log.debug('ToolSolderPaste.on_view_gcode() -->%s' % str(e))
self.app.inform.emit('[ERROR] %s --> %s' % ('ToolSolderPaste.on_view_gcode()', str(e)))
return
self.text_editor_tab.code_editor.moveCursor(QtGui.QTextCursor.Start)
self.text_editor_tab.handleTextChanged()
# self.app.ui.show()
def on_save_gcode(self):
"""
Save solderpaste dispensing GCode to a file on HDD.