Page MenuHomePhabricator

Introduce toolbar visibility presets
Closed, ResolvedPublic

Description

Based on the new preference feature to control the visibility of categories (later maybe views) it should be possible to

  • Choose between different presets and this selection is also stored in the preferences
  • Nice To have: Allow custom definition of presets
  • Following presets should be available
    1. "Classical"/focused Workbench
    2. Perfusion Workbench
    3. All (this might not be a explicitly defined preset (because then we would need to always update it), but a different mode that allways activates everything.
  • Nice To Have: Presets also have a little description opton.

Revisions and Commits

rMITK MITK
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision

Event Timeline

The current state of presets/a startup dialog is as follows:

Screenshot 2024-04-16 231843.png (392×482 px, 14 KB)

Its appearance is a little dull but essential and IMHO fine for a first version. Basically all requirements from above are fulfilled with pretty minimum code at the moment. We need to define a feature freeze, though, as there are many possibilities for further extensions and improvements. For example, currently the predefined presets are defined in code, while the "custom" option forwards to the "Tool Bars" preference page to customize visible plugins resp. categories. Also, the presets are limited to plugins/categories. In future we may also want to utilize command-line arguments to set a (serialized) preset.

The last mandatory part missing in the current iteration is to actually apply the presets. Therefore I want to refactor a little bit of the code from the Tool Bars preference page to have easy access to categories from modules.

Presets are now loaded at runtime from the :/org_mitk_presets resource path. They can build upon each other, e.g., the ModelFit preset just adds the Fitting and Perfusion categories to the categories of the Classic preset.

Also, everything moved from module to plugin level since we need to talk to BlueBerry.

Still, actually applying the selected preset is missing and a separate preference page for startup, on which one could tick "Show startup dialog" again, after ticking "Do not show this dialog again" in the startup dialog. As the startup dialog or something equivalent will gain some more features after the upcoming release, more preferences will be necessary anyways.

Presets are now applied. So everything major is completed. Last thing missing is the startup preference page. Also, while working on that, another requirement in that regard is to consolidate tool bar preferences into a single preference page, which seems to be split in two pages at the moment.

edit: Tool bar preferences are already on a single common page.

kislinsk added a revision: Restricted Differential Revision.Mon, Apr 22, 9:26 AM

Deleted branch from rMITK MITK: feature/T30332-ToolBarPresets.