Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Created EventMediator Infrastructure for FittingWidget to modularize and simplify event handling between multiple widgets and sections.
The Event Mediator (sometimes called Event Aggregator or Publish-Subscribe with a central mediator) is a behavioral design pattern that allows objects (publishers) to emit named events with optional data, and other objects (subscribers/listeners) to register interest in those events — all without the publishers and subscribers knowing about each other directly.
At its core, EventMediator is a glorified dictionary whose keys are event names (or types) and whose values are lists of callables (the “slots”). Everything else (subscribe/unsubscribe/publish, error handling, weak references, async support, sender filtering, signal objects, etc.) is just sophisticated dressing on top of that one dictionary.
How Has This Been Tested?
Local tests + unit tests created
Review Checklist:
[if using the editor, use
[x]in place of[ ]to check a box]Documentation (check at least one)
Installers
Licensing (untick if necessary)