Displays all or a subset (defined by a predicate) of nodes of the Data Storage, and additionally, index 0 is always "please select", indicating no selection, and will hence always return a nullptr mitk::DataNode* if asked for the node at index 0.
More...
|
| | QmitkDataStorageComboBoxWithSelectNone (QWidget *parent=nullptr, bool autoSelectNewNodes=false) |
| | Calls base class constructor. More...
|
| |
| | QmitkDataStorageComboBoxWithSelectNone (mitk::DataStorage *dataStorage, const mitk::NodePredicateBase *predicate, QWidget *parent=nullptr, bool autoSelectNewNodes=false) |
| | Calls base class constructor. More...
|
| |
| | ~QmitkDataStorageComboBoxWithSelectNone () override |
| | Nothing to do. More...
|
| |
| int | Find (const mitk::DataNode *dataNode) const override |
| | Searches for a given node, returning the index if found. More...
|
| |
| mitk::DataNode::Pointer | GetNode (int index) const override |
| | Retrieves the node at a given index, where if index is zero, will always return nullptr. More...
|
| |
| mitk::DataNode::Pointer | GetSelectedNode () const override |
| | Returns the selected DataNode or nullptr if there is none, or the current index is zero. More...
|
| |
| virtual void | SetSelectedNode (const mitk::DataNode::Pointer &node) |
| | Sets the combo box to the index that contains the specified node, or 0 if the node cannot be found. More...
|
| |
| void | RemoveNode (int index) override |
| | Removes a node from the ComboBox at a specified index (if the index exists). Gets called when a DataStorage Remove Event was thrown. More...
|
| |
| void | SetNode (int index, const mitk::DataNode *dataNode) override |
| | Set a DataNode in the ComboBox at the specified index (if the index exists). Internally the method just calls InsertNode(unsigned int) More...
|
| |
| virtual QString | currentValue () const |
| | Get the current file path. More...
|
| |
| virtual void | setCurrentValue (const QString &path) |
| | Set the current file path. More...
|
| |
| void | SetZeroEntryText (const QString &zeroEntryString) |
| | Set the string that will be present on index 0. More...
|
| |
| virtual void | RemoveNode (int index) |
| |
| virtual void | RemoveNode (const mitk::DataNode *dataNode) |
| |
| virtual void | SetNode (int index, const mitk::DataNode *dataNode) |
| |
| virtual void | SetNode (const mitk::DataNode *dataNode, const mitk::DataNode *otherDataNode) |
| |
| | QmitkDataStorageComboBox (QWidget *parent=nullptr, bool autoSelectNewNodes=false) |
| | Ctor for an empty combobox. Use setDataStorage and setPredicate afterwards. More...
|
| |
| | QmitkDataStorageComboBox (mitk::DataStorage *dataStorage, const mitk::NodePredicateBase *predicate, QWidget *parent=nullptr, bool autoSelectNewNodes=false) |
| | Ctor for constructing QmitkDataStorageComboBox with given DataStorageComboBox and given predicate. More...
|
| |
| | ~QmitkDataStorageComboBox () override |
| | Standard Dtor. Nothing to do here. More...
|
| |
| mitk::DataStorage::Pointer | GetDataStorage () const |
| | Get the DataStorage this ComboBox listens to. More...
|
| |
| const mitk::NodePredicateBase::ConstPointer | GetPredicate () const |
| | Return the predicate (may be nullptr) that is responsible for the dataNode selection of this ComboBox. More...
|
| |
| mitk::DataStorage::SetOfObjects::ConstPointer | GetNodes () const |
| | Returns all nodes that are stored in this combobox. More...
|
| |
| virtual bool | GetAutoSelectNewItems () |
| |
| void | SetDataStorage (mitk::DataStorage *dataStorage) |
| | Set the DataStorage this ComboBox should listen to. More...
|
| |
| void | SetPredicate (const mitk::NodePredicateBase *predicate) |
| | Set the predicate for this ComboBox. (QmitkDataStorageComboBox is now owner of the predicate) More...
|
| |
| virtual void | AddNode (const mitk::DataNode *dataNode) |
| |
| virtual void | RemoveNode (const mitk::DataNode *dataNode) |
| |
| virtual void | SetNode (const mitk::DataNode *dataNode, const mitk::DataNode *otherDataNode) |
| |
| virtual void | SetAutoSelectNewItems (bool autoSelectNewItems) |
| |
| virtual void | OnPropertyListChanged (const itk::Object *caller, const itk::EventObject &event) |
| | Called when the name property of the node was modified. More...
|
| |
|
| bool | HasIndex (unsigned int index) const |
| | Checks if the given index is within range. More...
|
| |
| void | InsertNode (int index, const mitk::DataNode *dataNode) override |
| | Inserts a new node at the given index, unless index is 0, which is silently ignored. More...
|
| |
| void | Reset () override |
| | Reset function whenever datastorage or predicate changes. More...
|
| |
| bool | HasIndex (unsigned int index) const |
| | Checks if the given index is within the range of the m_Nodes vector. More...
|
| |
| void | Init () |
| | Init-function this class with the given data storage and predicate. This function is called by all ctors. More...
|
| |
| void | RemoveNodeAndPropertyLists (int index) |
| | Remove the node at the given index and unregister its property list observers. More...
|
| |
| virtual void | UpdateComboBoxText (const mitk::PropertyList *) |
| | Update the combo box display text when a node's property list changes. More...
|
| |
Displays all or a subset (defined by a predicate) of nodes of the Data Storage, and additionally, index 0 is always "please select", indicating no selection, and will hence always return a nullptr mitk::DataNode* if asked for the node at index 0.
- Author
- Matt Clarkson (m.cla.nosp@m.rkso.nosp@m.n@ucl.nosp@m..ac..nosp@m.uk)
- See also
- QmitkDataStorageComboBox
Definition at line 32 of file QmitkDataStorageComboBoxWithSelectNone.h.