- started to work to a new tool: Calibrate Excellon Tool

This commit is contained in:
Marius Stanciu
2019-10-20 05:25:54 +03:00
committed by Marius
parent 8797793472
commit 3ca4ab72d7
7 changed files with 333 additions and 9 deletions

View File

@@ -379,7 +379,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
# ########################################################################
# ########################## View # ######################################
# ########################################################################
self.menuview = self.menu.addMenu(_('&View'))
self.menuview = self.menu.addMenu(_('View'))
self.menuviewenable = self.menuview.addAction(QtGui.QIcon('share/replot16.png'), _('Enable all plots\tALT+1'))
self.menuviewdisableall = self.menuview.addAction(QtGui.QIcon('share/clear_plot16.png'),
_('Disable all plots\tALT+2'))
@@ -430,7 +430,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
# ########################################################################
# ########################## Tool # ######################################
# ########################################################################
self.menutool = QtWidgets.QMenu(_('&Tool'))
self.menutool = QtWidgets.QMenu(_('Tool'))
self.menutoolaction = self.menu.addMenu(self.menutool)
self.menutoolshell = self.menutool.addAction(QtGui.QIcon('share/shell16.png'), _('&Command Line\tS'))
@@ -2469,9 +2469,9 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
self.app.dblsidedtool.run(toggle=True)
return
# Transformation Tool
# Calibrate Excellon Tool
if key == QtCore.Qt.Key_E:
self.app.transform_tool.run(toggle=True)
self.app.cal_exc_tool.run(toggle=True)
return
# Toggle Grid lines
@@ -2519,9 +2519,9 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
self.app.on_view_source()
return
# Cutout Tool
if key == QtCore.Qt.Key_U:
self.app.cutout_tool.run(toggle=True)
# Transformation Tool
if key == QtCore.Qt.Key_T:
self.app.transform_tool.run(toggle=True)
return
# Substract Tool
@@ -2529,6 +2529,11 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
self.app.sub_tool.run(toggle=True)
return
# Cutout Tool
if key == QtCore.Qt.Key_X:
self.app.cutout_tool.run(toggle=True)
return
# Panelize Tool
if key == QtCore.Qt.Key_Z:
self.app.panelize_tool.run(toggle=True)