implement ReadOnly extension in WidgetBaseWithHeader

- icon lock at the beginning of header to indicate read-only status
(visible only in read-only mode)
- in DEBUG mode a button is displayed in the toolbar to switch read-only
mode