- fixed the Tcl Command Help to work as expected; made the text of the commands to be colored in Red color and bold
- added a 'Close' menu entry in the Tcl Shell context menu that will close (hide) the Tcl Shell Dock widget - on launching the Tcl Shell the Edit line will take focus immediately - in App.on_mouse_move_over_plot() method no longer will be done a setFocus() on every move, only when it is needed
This commit is contained in:
@@ -3247,7 +3247,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
||||
|
||||
# Shell toggle
|
||||
if key == QtCore.Qt.Key_S:
|
||||
self.app.on_toggle_shell()
|
||||
self.app.toggle_shell()
|
||||
|
||||
# Add a Tool from shortcut
|
||||
if key == QtCore.Qt.Key_T:
|
||||
|
||||
@@ -2560,10 +2560,11 @@ class DialogBoxRadio(QtWidgets.QDialog):
|
||||
|
||||
class _BrowserTextEdit(QTextEdit):
|
||||
|
||||
def __init__(self, version):
|
||||
def __init__(self, version, app=None):
|
||||
QTextEdit.__init__(self)
|
||||
self.menu = None
|
||||
self.version = version
|
||||
self.app = app
|
||||
|
||||
def contextMenuEvent(self, event):
|
||||
self.menu = self.createStandardContextMenu(event.pos())
|
||||
@@ -2571,6 +2572,12 @@ class _BrowserTextEdit(QTextEdit):
|
||||
clear_action.setShortcut(QKeySequence(Qt.Key_Delete)) # it's not working, the shortcut
|
||||
self.menu.addAction(clear_action)
|
||||
clear_action.triggered.connect(self.clear)
|
||||
|
||||
if self.app:
|
||||
close_action = QAction("Close", self)
|
||||
self.menu.addAction(close_action)
|
||||
close_action.triggered.connect(lambda: self.app.ui.shell_dock.hide())
|
||||
|
||||
self.menu.exec_(event.globalPos())
|
||||
|
||||
def clear(self):
|
||||
|
||||
Reference in New Issue
Block a user