setEnablements

Enable or disable controls and menu items based on the current state.