13 #ifndef QmitkDataStorageComboBoxWithSelectNone_h
14 #define QmitkDataStorageComboBoxWithSelectNone_h
37 Q_PROPERTY(
mitkDataNodePtr SelectedNode READ GetSelectedNode WRITE SetSelectedNode)
38 Q_PROPERTY(QString currentValue READ currentValue WRITE setCurrentValue)
52 const
mitk::NodePredicateBase* predicate,
53 QWidget* parent =
nullptr,
54 bool autoSelectNewNodes = false);
65 static const QString ZERO_ENTRY_STRING;
72 int Find(const
mitk::DataNode* dataNode) const override;
79 mitk::DataNode::Pointer GetNode(
int index) const override;
84 mitk::DataNode::Pointer GetSelectedNode() const override;
89 virtual
void SetSelectedNode(const
mitk::DataNode::Pointer& node);
96 void RemoveNode(
int index) override;
103 void SetNode(
int index, const
mitk::DataNode* dataNode) override;
108 virtual QString currentValue() const;
113 virtual
void setCurrentValue(const QString& path);
118 void SetZeroEntryText(const QString& zeroEntryString);
125 bool HasIndex(
unsigned int index) const;
130 void InsertNode(
int index, const
mitk::DataNode* dataNode) override;
135 void Reset() override;
145 QString m_CurrentPath;