- added a method to do cleanup after a Plugin close

- in Distance Plugin added the cleanup after the Plugin is closed from the Tab close button
- renamed the Distance Minimum Plugin to Object Distance; started to add new functionality on this Plugin: to calculate the distance between the bounding box centers too
This commit is contained in:
Marius Stanciu
2021-10-13 14:39:47 +03:00
committed by Marius
parent 21880789ab
commit e6c0046e3f
7 changed files with 95 additions and 30 deletions

View File

@@ -295,11 +295,15 @@ class AppTool(QtWidgets.QWidget):
s_storage.clear()
s_storage.redraw()
def on_mouse_plugin_click_release(self, pos):
def on_plugin_mouse_click_release(self, pos):
# this should be implemented in the descendants, the Plugin classes
pass
def on_mouse_plugin_move(self, pos):
def on_plugin_mouse_move(self, pos):
# this should be implemented in the descendants, the Plugin classes
pass
def on_plugin_cleanup(self):
# this should be implemented in the descendants, the Plugin classes
pass