17 #ifndef QmitkPropertyItemModel_h
18 #define QmitkPropertyItemModel_h
21 #include <QAbstractItemModel>
34 class IPropertyAliases;
35 class IPropertyFilters;
51 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
52 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
53 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
55 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
56 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const override;
57 void OnPreferencesChanged();
58 QModelIndex parent(
const QModelIndex &child)
const override;
59 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
60 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole)
override;
64 void SetShowAliases(
const bool showAliases) { this->m_ShowAliases = showAliases; }
66 void SetFilterProperties(
const bool filterProperties) { this->m_FilterProperties = filterProperties; }
69 void CreateRootItem();
71 void OnPropertyDeleted(
const itk::Object *property,
const itk::EventObject &event);
72 void OnPropertyListDeleted(
const itk::Object *propertyList);
73 void OnPropertyModified(
const itk::Object *property,
const itk::EventObject &event);
77 bool m_FilterProperties;
82 std::unique_ptr<QmitkPropertyItem> m_RootItem;
83 std::map<std::string, unsigned long> m_PropertyDeletedTags;
84 std::map<std::string, unsigned long> m_PropertyModifiedTags;
Interface of property aliases service.
static void Update(vtkPolyData *)
DataCollection - Class to facilitate loading/accessing structured data.
Key-value list holding instances of BaseProperty.
Abstract base class for properties.
void SetFilterProperties(const bool filterProperties)
bool GetFilterProperties() const
bool GetShowAliases() const
void SetShowAliases(const bool showAliases)
Interface of property filters service.