13 #ifndef QmitkDataStorageComboBoxWithSelectNone_h
14 #define QmitkDataStorageComboBoxWithSelectNone_h
36 Q_PROPERTY(
mitkDataNodePtr SelectedNode READ GetSelectedNode WRITE SetSelectedNode)
37 Q_PROPERTY(QString currentValue READ currentValue WRITE setCurrentValue)
51 const
mitk::NodePredicateBase* predicate,
52 QWidget* parent =
nullptr,
53 bool autoSelectNewNodes = false);
64 static const QString ZERO_ENTRY_STRING;
71 int Find(const
mitk::DataNode* dataNode) const override;
78 mitk::DataNode::Pointer GetNode(
int index) const override;
83 mitk::DataNode::Pointer GetSelectedNode() const override;
88 virtual
void SetSelectedNode(const
mitk::DataNode::Pointer& node);
95 void RemoveNode(
int index) override;
102 void SetNode(
int index, const
mitk::DataNode* dataNode) override;
107 virtual QString currentValue() const;
112 virtual
void setCurrentValue(const QString& path);
117 void SetZeroEntryText(const QString& zeroEntryString);
124 bool HasIndex(
unsigned int index) const;
129 void InsertNode(
int index, const
mitk::DataNode* dataNode) override;
134 void Reset() override;
144 QString m_CurrentPath;