- added a menu entry in Menu -> View for Toggle HUD
This commit is contained in:
parent
28f0c9c276
commit
d0e80043a4
|
@ -10,6 +10,7 @@ CHANGELOG for FlatCAM beta
|
|||
17.05.2020
|
||||
|
||||
- added new FlatCAM Tool: Corner Markers Tool which will add line markers in the selected corners of the bounding box of the targeted Gerber object
|
||||
- added a menu entry in Menu -> View for Toggle HUD
|
||||
|
||||
16.05.2020
|
||||
|
||||
|
|
|
@ -903,6 +903,7 @@ class App(QtCore.QObject):
|
|||
self.ui.menuview_toggle_grid_lines.triggered.connect(self.on_toggle_grid_lines)
|
||||
self.ui.menuview_toggle_axis.triggered.connect(self.on_toggle_axis)
|
||||
self.ui.menuview_toggle_workspace.triggered.connect(self.on_workspace_toggle)
|
||||
self.ui.menuview_toggle_hud.triggered.connect(self.on_toggle_hud)
|
||||
|
||||
self.ui.menutoolshell.triggered.connect(self.toggle_shell)
|
||||
|
||||
|
@ -4585,6 +4586,9 @@ class App(QtCore.QObject):
|
|||
self.plotcanvas.canvas.draw()
|
||||
self.toggle_axis = False
|
||||
|
||||
def on_toggle_hud(self):
|
||||
self.plotcanvas.on_toggle_hud(state=False if self.plotcanvas.hud_enabled else True)
|
||||
|
||||
def on_toggle_grid(self):
|
||||
self.defaults.report_usage("on_toggle_grid()")
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 631 B |
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue