diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-01 13:37:19 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-02 00:31:41 +0100 |
commit | ba7128b30850594c7efb258d1794e377eede364a (patch) | |
tree | f805d511f6d12b0799c05b414054db8b8635bfc9 /docs/design.md | |
parent | 431c257dd29e2e3d8878db200f0de4d452bffe92 (diff) | |
download | kube-ba7128b30850594c7efb258d1794e377eede364a.tar.gz kube-ba7128b30850594c7efb258d1794e377eede364a.zip |
Instead of using the action system we use controllers only.
It's simpler, and the action system was just too complex to use in a
typesafe way.
Diffstat (limited to 'docs/design.md')
-rw-r--r-- | docs/design.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/design.md b/docs/design.md index 0120ecf5..3b37a5b2 100644 --- a/docs/design.md +++ b/docs/design.md | |||
@@ -94,7 +94,7 @@ The action can, through property-binding, reevaluate its ready state based on th | |||
94 | #### Pre-action handler | 94 | #### Pre-action handler |
95 | A pre-action handler can be used to supply additional context information for the action to execute. This can be used to i.e. retrieve configuration information or resolve a user uid over ldap. | 95 | A pre-action handler can be used to supply additional context information for the action to execute. This can be used to i.e. retrieve configuration information or resolve a user uid over ldap. |
96 | 96 | ||
97 | An action can be executed if a set of available pre-action handlers plus the initially supplied informatin can complete the context so the target action-handler can be executed. | 97 | An action can be executed if a set of available pre-action handlers plus the initially supplied information can complete the context so the target action-handler can be executed. |
98 | 98 | ||
99 | #### Selecting action handlers out of candidates. | 99 | #### Selecting action handlers out of candidates. |
100 | It is possible that multiple action handlers are avialable for the same action, i.e. because different accounts supplied an action handler for the same action. In such a case it is necessary to select the right action handler based on the context. | 100 | It is possible that multiple action handlers are avialable for the same action, i.e. because different accounts supplied an action handler for the same action. In such a case it is necessary to select the right action handler based on the context. |
@@ -102,7 +102,7 @@ It is possible that multiple action handlers are avialable for the same action, | |||
102 | A simple criteria could be the currently selected account. | 102 | A simple criteria could be the currently selected account. |
103 | 103 | ||
104 | #### Automatic action discovery | 104 | #### Automatic action discovery |
105 | While in many places explicit instantiation of actions is desirable, sometimes we may want to offer all available actions for a certain type. For this it should be possible to i.e. query for all actions that apply to a mail. That way it is possible to centrally add a new action that automatically becomes available everywhere. Note that this only works for actions that don't require an additional UI, since the components would have to embedd that somewhere. | 105 | While in many places explicit instantiation of actions is desirable, sometimes we may want to offer all available actions for a certain type. For this it should be possible to i.e. query for all actions that apply to a mail. That way it is possible to centrally add a new action that automatically become available everywhere. Note that this only works for actions that don't require an additional UI, since the components would have to embed that somewhere. |
106 | 106 | ||
107 | #### Implementation | 107 | #### Implementation |
108 | Actions are objects that provide the API, and that QML can instantiate directly with it's id. The C++ implementation looks up the action handler via a broker. | 108 | Actions are objects that provide the API, and that QML can instantiate directly with it's id. The C++ implementation looks up the action handler via a broker. |