(self)
| 391 | ) |
| 392 | |
| 393 | def _on_rename_components(self): |
| 394 | from .tools import rename_left_right_top_bottom |
| 395 | self._scene._push_undo() |
| 396 | n = rename_left_right_top_bottom(self._scene) |
| 397 | if n == 0: |
| 398 | self._scene._undo_stack.pop() # nothing changed, discard the snapshot |
| 399 | msg = f"{n} component{'s' if n != 1 else ''} renamed." if n else "All components already numbered correctly." |
| 400 | QMessageBox.information(self, "Rename Components", msg) |
| 401 | |
| 402 | def _on_reload_symbols(self): |
| 403 | """Refresh the selected symbols with the most recent library definitions. |
nothing calls this directly
no test coverage detected