13 #ifndef QmitkDataStorageListModel_h
14 #define QmitkDataStorageListModel_h
23 #include <QAbstractListModel>
49 QObject *parent =
nullptr);
66 std::vector<mitk::DataNode *> GetDataNodes()
const;
75 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
78 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
81 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
84 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
103 virtual void OnDataNodeModified(
const itk::Object *caller,
const itk::EventObject &event);
108 virtual void OnDataModified(
const itk::Object *caller,
const itk::EventObject &event);
113 virtual void OnDataStorageDeleted(
const itk::Object *caller,
const itk::EventObject &event);
126 void ClearInternalNodeList();
129 enum OBSERVER_TUPLE_NAMES
144 unsigned long m_DataStorageDeleteObserverTag;
150 std::vector<std::tuple<mitk::DataNode *, unsigned long, unsigned long>> m_NodesAndObserverTags;