The DataStorageCombobox has a AutoSelectNewNodes mode (default is false). If activated a fitting node will be automatically selected if added to the storage and nothing is selected. This is i.a. used by the segmentation views.
We should introduce this option to the SingleNodeSelectionWidget to ease the refactoring of e.g. the segmentation views:
Steps to do:
- Add a AddNode observer to the AbstractNodeSelectionWidget that derived classes can reimplement to react on new nodes.
- SingleNodeSelectionWidget introduces AutoSelectNewNodes flag (default false).
- If true and no valid selection alread set: SingleNodeSelectionWidget will check on 1) storage change, 2) AddNode and 3) predicate change if there is a fitting node. If this is the case the node will be automatically selected.
- Add this state to the DataStorageInspectorTestView to allow demonstration/testing