16 #ifndef QmitkDataStorageComboBoxWithSelectNone_h
17 #define QmitkDataStorageComboBoxWithSelectNone_h
40 Q_PROPERTY(
mitkDataNodePtr SelectedNode READ GetSelectedNode WRITE SetSelectedNode)
41 Q_PROPERTY(QString currentValue READ currentValue WRITE setCurrentValue)
55 const
mitk::NodePredicateBase* predicate,
56 QWidget* parent =
nullptr,
57 bool autoSelectNewNodes=false);
68 static const QString ZERO_ENTRY_STRING;
75 virtual
int Find( const
mitk::DataNode* dataNode ) const override;
82 virtual
mitk::DataNode::
Pointer GetNode(
int index) const override;
87 virtual
mitk::DataNode::
Pointer GetSelectedNode() const override;
92 virtual
void SetSelectedNode(const
mitk::DataNode::
Pointer& node);
99 virtual
void RemoveNode(
int index) override;
106 virtual
void SetNode(
int index, const
mitk::DataNode* dataNode) override;
111 virtual QString currentValue() const;
116 virtual
void setCurrentValue(const QString& path);
121 void SetZeroEntryText(const QString& zeroEntryString);
128 bool HasIndex(
unsigned int index) const;
133 virtual
void InsertNode(
int index, const
mitk::DataNode* dataNode) override;
138 virtual
void Reset() override;
148 QString m_CurrentPath;
151 #endif // QmitkDataStorageComboBoxWithSelectNone_h
itk::SmartPointer< Self > Pointer
Displays all or a subset (defined by a predicate) of nodes of the Data Storage.
Displays all or a subset (defined by a predicate) of nodes of the Data Storage, and additionally...
DataCollection - Class to facilitate loading/accessing structured data.