Locked History Attachments

ChangeRequests/4810

1. Summary of problem description

1.1. Actual behavior

New Nodes created from the File>Open action are always inserted at the top of the DataManager.

1.2. Expected behavior

The behaviour is controversially discussed (if it is intuitive that new nodes are always inserted at the top and not at the bottom). Thus, this should be an option which may be user adjustable through the Preference dialog

2. Cause of the bug

Not included in design phase to avoid complexity

3. Proposed solution

Add a bool flag in QmitkDataStorageTreeModel which determines where new nodes are inserted (at the top or at the bottom). Add a preference check box in QmitkDataManagerPreferencePage. The DataManager will listen to changes in its preferences and set flag adequately

4. Affected classes

mitk/Modules/Bundles/org.mitk.gui.qt.datamanager/src/QmitkDataManagerView.cpp mitk/Modules/Bundles/org.mitk.gui.qt.datamanager/src/QmitkDataManagerPreferencePage.cpp mitk/CoreUI/Qmitk/QmitkDataStorageTreeModel.cpp

5. How will the bugfix get tested?

Manual Test: Load an image, load another image (this should be inserted on top of the previously loaded). Then switch the behaviour in the DataManager prefernces. Load another image, should be inserted at the bottom. Remove everything, load an image, should work as well.