- added a menu entry in Menu -> View for Toggle HUD

This commit is contained in:
Marius Stanciu
2020-05-17 04:02:50 +03:00
committed by Marius
parent 28f0c9c276
commit d0e80043a4
4 changed files with 8 additions and 3 deletions

View File

@@ -493,6 +493,8 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
QtGui.QIcon(self.app.resource_location + '/axis32.png'), _("&Toggle Axis\tShift+G"))
self.menuview_toggle_workspace = self.menuview.addAction(
QtGui.QIcon(self.app.resource_location + '/workspace24.png'), _("Toggle Workspace\tShift+W"))
self.menuview_toggle_hud = self.menuview.addAction(
QtGui.QIcon(self.app.resource_location + '/hud_32.png'), _("Toggle HUD\tAlt+M"))
# ########################################################################
# ########################## Objects # ###################################
@@ -2924,9 +2926,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
# Toggle HUD (Heads-Up Display)
if key == QtCore.Qt.Key_H:
state = False if self.app.plotcanvas.hud_enabled else True
self.app.plotcanvas.on_toggle_hud(state=state)
self.app.on_toggle_hud()
# Locate in Object
if key == QtCore.Qt.Key_J:
self.app.on_locate(obj=self.app.collection.get_active())