Merged in realthunder/flatcam/plot_toggle (pull request #43)
Toggle plot by pressing SPACE key in project panel
This commit is contained in:
commit
d63f9cbd43
|
@ -199,6 +199,9 @@ class FCCheckBox(QtGui.QCheckBox):
|
|||
def set_value(self, val):
|
||||
self.setChecked(val)
|
||||
|
||||
def toggle(self):
|
||||
self.set_value(not self.get_value())
|
||||
|
||||
|
||||
class FCTextArea(QtGui.QPlainTextEdit):
|
||||
def __init__(self, parent=None):
|
||||
|
|
|
@ -82,6 +82,11 @@ class ObjectCollection(QtCore.QAbstractListModel):
|
|||
# Delete via the application to
|
||||
# ensure cleanup of the GUI
|
||||
self.get_active().app.on_delete()
|
||||
return
|
||||
|
||||
if key == QtCore.Qt.Key_Space:
|
||||
self.get_active().ui.plot_cb.toggle()
|
||||
return
|
||||
|
||||
def on_mouse_down(self, event):
|
||||
FlatCAMApp.App.log.debug("Mouse button pressed on list")
|
||||
|
|
Loading…
Reference in New Issue