Page MenuHomePhabricator

FeatureRequestDataStorageComboBox.txt

Authored By
vanbruggen
Sep 2 2009, 3:46 PM
Size
1 KB
Referenced Files
None
Subscribers
None

FeatureRequestDataStorageComboBox.txt

Summary of feature request description
feature request description corresponding to Bug 2438.
* actual behaviour:
It is currently not possible to call a method that takes a DataTreeNode pointer as input and sets the corresponding item (if it exists) in the DataStorageComboBox as the current selected node.
* expected behaviour
A method SetSelectedNode(mitk::DataTreeNode::Pointer item) should be implemented that searches the DataStorageComboBox for this node and, if found, sets it as the current selected node. Just using an index is no satisfying solution, because the contents of the comboboxes can differ.
* Cause of the bug
Not applicable (feature request).
* Proposed solution
The new method is implemented as public method of the DataStorageComboBox. It uses the already available Find( const mitk::DataTreeNode* _DataTreeNode ) method that returns the index of the DataTreeNode (or -1 if it is not found) and calls setCurrentIndex with this index.
* How will the bugfix get tested?
Manually by the ones who are going to use the method in the future.

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
295
Default Alt Text
FeatureRequestDataStorageComboBox.txt (1 KB)

Event Timeline