- Copper Fill Tool: added possibility to select between a bounding box rectangular or convex hull when the reference is the geometry of the source Gerber object

- Copper Fill Tool: cleanup on not regular tool exit
This commit is contained in:
Marius Stanciu
2019-10-25 23:08:44 +03:00
committed by Marius
parent 2bde43ca3f
commit 4a3a0a5669
6 changed files with 118 additions and 22 deletions

View File

@@ -3512,6 +3512,30 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
# Jump to coords
if key == QtCore.Qt.Key_J:
self.app.on_jump_to()
elif self.app.call_source == 'copperfill_tool':
if modifiers == QtCore.Qt.ControlModifier | QtCore.Qt.AltModifier:
if key == QtCore.Qt.Key_X:
self.app.abort_all_tasks()
return
elif modifiers == QtCore.Qt.ControlModifier:
pass
elif modifiers == QtCore.Qt.ShiftModifier:
pass
elif modifiers == QtCore.Qt.AltModifier:
pass
elif modifiers == QtCore.Qt.NoModifier:
# Escape = Deselect All
if key == QtCore.Qt.Key_Escape or key == 'Escape':
self.app.copperfill_tool.on_exit()
# Grid toggle
if key == QtCore.Qt.Key_G:
self.app.ui.grid_snap_btn.trigger()
# Jump to coords
if key == QtCore.Qt.Key_J:
self.app.on_jump_to()
def createPopupMenu(self):
menu = super().createPopupMenu()