- in Gerber isolation added the option to selectively isolate only certain polygons - made it to work for Legacy(2D) graphic mode

This commit is contained in:
Marius Stanciu
2019-11-25 21:03:12 +02:00
committed by Marius
parent cf3f7687c9
commit 07fb663e7b
5 changed files with 35 additions and 22 deletions

View File

@@ -1602,6 +1602,13 @@ class App(QtCore.QObject):
else:
self.is_legacy = True
# Event signals disconnect id holders
self.mp = None
self.mm = None
self.mr = None
self.mdc = None
self.mp_zc = None
# Matplotlib axis
self.axes = None
@@ -2511,12 +2518,6 @@ class App(QtCore.QObject):
self.width = None
self.height = None
# Event signals disconnect id holders
self.mp = None
self.mm = None
self.mr = None
self.mp_zc = None
# when True, the app has to return from any thread
self.abort_flag = False
@@ -8462,11 +8463,10 @@ class App(QtCore.QObject):
# if the released mouse button was RMB then test if it was a panning motion or not, if not it was a context
# canvas menu
if event.button == right_button: # right click
if self.ui.popMenu.mouse_is_panning is False:
self.cursor = QtGui.QCursor()
self.populate_cmenu_grids()
self.ui.popMenu.popup(self.cursor.pos())
if event.button == right_button and self.ui.popMenu.mouse_is_panning is False: # right click
self.cursor = QtGui.QCursor()
self.populate_cmenu_grids()
self.ui.popMenu.popup(self.cursor.pos())
# if the released mouse button was LMB then test if we had a right-to-left selection or a left-to-right
# selection and then select a type of selection ("enclosing" or "touching")