Skip to content

Commit

Permalink
update providers
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyleeow committed May 3, 2024
1 parent e29ce55 commit 6abba2e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions docs/developers/architecture/app_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,18 +465,17 @@ ways will not work:

### Providers and processors in napari

Non-Qt providers and processors are defined in
[`napari/_app_model/injection`](https://github.com/napari/napari/tree/main/napari/_app_model/injection).
Qt providers and processors are defined in
Currently there are only GUI related providers and processors.
They are defined in
[`napari/_qt/_qapp_model/injection`](https://github.com/napari/napari/tree/main/napari/_qt/_qapp_model/injection).
They are registered in {func}`~napari._qt._qapp_model.qactions.init_qactions`,
which gets called during initialization of `_QtMainWindow`. This is the same as
[registration of `Action`s](app-model-actions-napari).

Non-Qt providers and processors are registered in the `app` `Store` during
In future we intend to have non-GUI providers that will supply layer objects.
They would be registered in the `app` `Store` during
initialization of the napari `app`, in `NapariApplication`'s
{meth}`~napari._app_model._app.NapariApplication.__init__`.
Qt providers and processors are registered in
{func}`~napari._qt._qapp_model.qactions.init_qactions`, which gets called during
initialization of `_QtMainWindow`. This is the same as
[registration of `Action`s](app-model-actions-napari).

(app-model-testing)=

Expand Down

0 comments on commit 6abba2e

Please sign in to comment.