- in Fiducials Plugin added the support for ESCAPE key from manual mode and also exit by right clicking

This commit is contained in:
Marius Stanciu
2021-09-09 21:30:48 +03:00
committed by Marius
parent 9866bb9037
commit e0a158759c
4 changed files with 53 additions and 12 deletions

View File

@@ -7238,16 +7238,7 @@ class App(QtCore.QObject):
self.dx = pos[0] - float(self.rel_point1[0])
self.dy = pos[1] - float(self.rel_point1[1])
# self.ui.position_label.setText("&nbsp;<b>X</b>: %.4f&nbsp;&nbsp; "
# "<b>Y</b>: %.4f&nbsp;" % (pos[0], pos[1]))
# self.ui.rel_position_label.setText("<b>Dx</b>: %.4f&nbsp;&nbsp; <b>Dy</b>: "
# "%.4f&nbsp;&nbsp;&nbsp;&nbsp;" % (self.dx, self.dy))
self.ui.update_location_labels(self.dx, self.dy, pos[0], pos[1])
units = self.defaults["units"].lower()
# self.plotcanvas.text_hud.text = \
# 'Dx:\t{:<.4f} [{:s}]\nDy:\t{:<.4f} [{:s}]\n\nX: \t{:<.4f} [{:s}]\nY: \t{:<.4f} [{:s}]'.format(
# self.dx, units, self.dy, units, pos[0], units, pos[1], units)
self.plotcanvas.on_update_text_hud(self.dx, self.dy, pos[0], pos[1])
self.mouse = [pos[0], pos[1]]
@@ -7256,6 +7247,11 @@ class App(QtCore.QObject):
self.selection_type = None
return
# the object selection on canvas does not work for App Tools or for Editors
if self.call_source != 'app':
self.selection_type = None
return
# if the mouse is moved and the LMB is clicked then the action is a selection
if self.event_is_dragging == 1 and event.button == 1:
self.delete_selection_shape()