Bug #569
closedenabling/diabling menus and toolbars in MorphoFrame
0%
Description
In the current architecture, each MorphoFrame's menus and toolbars are created
by the UIController. However, the context of each window whould determine which
of those menus and toolbars are enabled. When a window is switched to the
foreground, its context would be used to set the enabled state for its menus and
toolbars.
Here are the types of Actions we need to support:
1) Those that are always enabled regardless of context
2) Those that are enabled depending on the current window context
3) Those that are enabled depending on application state outside of the current
window
Are there other possible cases?
We also may find that groups of actions are always enabled/disabled as a set,
and so we may want to make it easy to do that. For example, When a column is
selected in a data table, several menu items should be enabled in the Data menu,
including "Insert column before", Insert column after, Edit column metadata,
sort by column, etc.